Overview
Comment:Garder l'ancien comportement pour le moment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 03c6e31ed5b75741ce7a5cfadef987ba85dcb249
User & Date: bohwaz on 2013-01-18 13:31:36
Other Links: manifest | tags
Context
2013-01-18
14:05
La configuration du mot de passe doit être minimale, car c'est un champ un peu dunmaique selon le contexte, ça serait donc trop compliqué check-in: f1290c6e52 user: bohwaz tags: trunk
13:31
Garder l'ancien comportement pour le moment check-in: 03c6e31ed5 user: bohwaz tags: trunk
2013-01-13
15:37
Avancement sur les champs membres personnalisés + réflexion sur la suite des cotisations... check-in: 932ea4a33e user: bohwaz tags: trunk
Changes

Modified include/class.membres.php from [e9c002d2c8] to [10533ef891].

509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525

    public function countAllButHidden()
    {
        $db = DB::getInstance();
        return $db->simpleQuerySingle('SELECT COUNT(*) FROM membres WHERE id_categorie NOT IN (SELECT id FROM membres_categories WHERE cacher = 1);');
    }

    static public function checkCotisation($id)
    {
        return true;
        if (is_null($date_verif))
            $date_verif = time();

        if (!$date_membre)
            return false;

        $echeance = new \DateTime($date_membre);







|

<







509
510
511
512
513
514
515
516
517

518
519
520
521
522
523
524

    public function countAllButHidden()
    {
        $db = DB::getInstance();
        return $db->simpleQuerySingle('SELECT COUNT(*) FROM membres WHERE id_categorie NOT IN (SELECT id FROM membres_categories WHERE cacher = 1);');
    }

    static public function checkCotisation($date_membre, $duree_cotisation, $date_verif = null)
    {

        if (is_null($date_verif))
            $date_verif = time();

        if (!$date_membre)
            return false;

        $echeance = new \DateTime($date_membre);

Modified www/admin/index.php from [b0dc52bbe0] to [abba5d78d2].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
namespace Garradin;

require_once __DIR__ . '/_inc.php';

$cats = new Membres_Categories;
$categorie = $cats->get($user['id_categorie']);

$tpl->assign('categorie', $categorie);
$tpl->assign('verif_cotisation', Membres::checkCotisation($user['id']));

$wiki = new Wiki;
$page = $wiki->getByURI($config->get('accueil_connexion'));
$tpl->assign('page', $page);

$tpl->display('admin/index.tpl');

?>









|








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
namespace Garradin;

require_once __DIR__ . '/_inc.php';

$cats = new Membres_Categories;
$categorie = $cats->get($user['id_categorie']);

$tpl->assign('categorie', $categorie);
$tpl->assign('verif_cotisation', Membres::checkCotisation($user['date_cotisation'], $categorie['duree_cotisation']));

$wiki = new Wiki;
$page = $wiki->getByURI($config->get('accueil_connexion'));
$tpl->assign('page', $page);

$tpl->display('admin/index.tpl');

?>