-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bonjour,

Le 25/05/2010 10:26, Philippe Ouvrard a écrit :
> Salut à tous.
>
> quelques patchs de la 0.7
> * gestion_transactions.tpl : le & dans les url est remplacé par &
> pour le parseur XML.
> * contributions.class.php : bug dans la requête sql de comptage des
> contributions.
> Nle Fonctionnalité : listage des n° adhérents dans gestion_adherents
> avec tri possible sur le n° adhérent.
> * members.class.php : ajout ORDERBY_ID
> * gestion_adherents.tpl : ajout colonne ID

J'ai intégré ces modifications telles qu'elles sauf le correctif sur
le compte des contributions, la classe a dû bouger entre deux
(http://svn.gna.org/viewcvs/galette?view=rev&revision=915) .

Merci beaucoup :)

>
> J'ai avancé également sur la partie éditions et sur la déclaration
> de l'objet selected de la classe VarList. je poste ça + tard.
>
> Philippe.
>
>
>
> Index: gestion_transactions.tpl
> ===================================================================
> --- gestion_transactions.tpl (revision 874)
> +++ gestion_transactions.tpl (working copy)
> @@ -15,7 +15,7 @@
> {if $smarty.section.pageLoop.index eq $page}
> {$smarty.section.pageLoop.index}
> {else}
> - <a
> href="gestion_transactions.php?nbshow={$smarty.get.nbshow}&page={$smarty.section.pageLoop.index}">{$smarty.section.pageLoop.index}</a>
> + <a
> href="gestion_transactions.php?nbshow={$smarty.get.nbshow}&amp;page={$smarty.section.pageLoop.index}">{$smarty.section.pageLoop.index}</a>
> {/if}
> {/section}
> </span>
> @@ -103,7 +103,7 @@
> {if $smarty.section.pageLoop.index eq $page}
> {$smarty.section.pageLoop.index}
> {else}
> - <a
> href="gestion_transactions.php?nbshow={$smarty.get.nbshow}&page={$smarty.section.pageLoop.index}">{$smarty.section.pageLoop.index}</a>
> + <a
> href="gestion_transactions.php?nbshow={$smarty.get.nbshow}&amp;page={$smarty.section.pageLoop.index}">{$smarty.section.pageLoop.index}</a>
> {/if}
> {/section}
> </span>
>
>
>
> Index: contributions.class.php
> ===================================================================
> --- contributions.class.php (revision 874)
> +++ contributions.class.php (working copy)
> @@ -152,7 +152,7 @@
>
> $query = 'SELECT ' . $fieldsList . ' FROM ' . PREFIX_DB .
> self::TABLE;
> $querycount = 'SELECT count(' . self::PK . ') FROM ' .
> - PREFIX_DB . self::TABLE;
> + PREFIX_DB . self::TABLE . ' p ';
>
> $join = ' a JOIN ' . PREFIX_DB . Adherent::TABLE .
> ' p ON a.' . Adherent::PK . '=p.' . Adherent::PK;
>
>
> Index: members.class.php
> ===================================================================
> --- members.class.php (revision 874)
> +++ members.class.php (working copy)
> @@ -70,6 +70,7 @@
> const ORDERBY_NICKNAME = 1;
> const ORDERBY_STATUS = 2;
> const ORDERBY_FEE_STATUS = 3;
> + const ORDERBY_ID = 4;
>
> private $_filter = null;
> private $_count = null;
> @@ -328,6 +329,9 @@
> case self::ORDERBY_STATUS:
> $order .= 'priorite_statut ' . $varslist->getDirection();
> break;
> + case self::ORDERBY_ID:
> + $order .= 'id_adh ' . $varslist->getDirection();
> + break;
> case self::ORDERBY_FEE_STATUS:
> $order .= ' date_crea_adh ' . $varslist->getDirection() .
> ', bool_exempt_adh ' . $varslist->getDirection() .
>
>
> Index: gestion_adherents.tpl
> ===================================================================
> --- gestion_adherents.tpl (revision 874)
> +++ gestion_adherents.tpl (working copy)
> @@ -45,6 +45,7 @@
> <thead>
> <tr>
> <th class="listing" id="id_row">#</th>
> + <th class="listing" id="id_row"><a
> href="gestion_adherents.php?tri={php}echo Members::ORDERBY_ID;{/php}"
> class="listing">N°</a></th>
> <th class="listing left">
> <a href="gestion_adherents.php?tri={php}echo
> Members::ORDERBY_NAME;{/php}" class="listing">
> {_T string="Name"}
> @@ -108,6 +109,7 @@
> {foreach from=$members item=member key=ordre}
> <tr>
> <td class="{$member->getRowClass()}
> right">{php}$ordre = $this->get_template_vars('ordre');echo
> $ordre+1+($varslist->current_page - 1)*$numrows{/php}</td>
> + <td class="{$member->getRowClass()}
> right">{$member->id}</td>
> <td class="{$member->getRowClass()} nowrap
> username_row">
> <input type="checkbox" name="member_sel[]"
> value="{$member->id}"/>
> {if $member->politeness eq constant('Politeness::MR')}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3qC5sACgkQ7N2B+4uln5RDEACg11K6/WxC33KAqhHbvskCqDcq
ImEAoIRTLGuUnJh6m+6/yggeBRBLUfkR
=GgUZ
-----END PGP SIGNATURE-----


_______________________________________________
Galette-devel mailing list
Galette-devel@gna.org
https://mail.gna.org/listinfo/galette-devel

Répondre à