Re: [Galette-devel] Proposition de qqs patchs pour la 0.7dev.
-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 amp; 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=revrevision=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_rowa href=gestion_adherents.php?tri={php}echo Members::ORDERBY_ID;{/php} class=listingN°/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
Re: [Galette-devel] Proposition de qqs patchs pour la 0.7dev.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Salut, Le 25/05/2010 10:26, Philippe Ouvrard a écrit : Salut à tous. quelques patchs de la 0.7 Désolé pour le lag... Je repousse, parce que j'ai pas le temps, puis je repousse parce que j'ai pas envie, et enfin... Ben je zappe :/ Merci beaucoup pour ces patches, je n'ai pas encore eu le temps/courage d'y regarder, mais au moins ils sont là ; j'y pense de temps à autre :) * gestion_transactions.tpl : le dans les url est remplacé par amp; 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 avancé également sur la partie éditions et sur la déclaration de l'objet selected de la classe VarList. je poste ça + tard. Ok, ça marche. Personnellement, je m'éloigne un peu de Galette ; j'ai énormément d'autres choses à faire actuellement (j'ai aussi eu de gros changements dans ma vie professionnelle ; passant de 35h à 70h/semaine ; si vous voyez ce que je veux dire ;) ). Philippe. N'hésites pas à demander si tu as des questions, ou à râler si j'ai fait des trucs pas corrects (ça se pourrait bien)... Je promets d'essayer d'être un peu plus assidu à l'avenir ! @ bientôt, Johan -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Remi - http://enigmail.mozdev.org/ iEYEARECAAYFAkwnnzYACgkQ7N2B+4uln5Q4YQCgh8xEglqndPjgf8HXo+U/bZO1 M48AniSBDkFN5OLfoltayZfSGG8BDI1u =FN+j -END PGP SIGNATURE- ___ Galette-devel mailing list Galette-devel@gna.org https://mail.gna.org/listinfo/galette-devel
[Galette-devel] Proposition de qqs patchs pour la 0.7dev.
Salut à tous. quelques patchs de la 0.7 * gestion_transactions.tpl : le dans les url est remplacé par amp; 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 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_rowa href=gestion_adherents.php?tri={php}echo Members::ORDERBY_ID;{/php} class=listingN°/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')} ___ Galette-devel mailing list Galette-devel@gna.org https://mail.gna.org/listinfo/galette-devel