From de4b22cce84e7196656040d89bf055c6dab6fe99 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 4 Dec 2006 20:50:31 +0000 Subject: [PATCH] Various improvements git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1240 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/xnet/page.inc.php | 4 ++-- modules/payment.php | 6 ++++-- plugins/function.select_db_table.php | 2 +- templates/payment/xnet.tpl | 23 ++++++++++++++++------- 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/include/xnet/page.inc.php b/include/xnet/page.inc.php index 0ff05f4..47e011a 100644 --- a/include/xnet/page.inc.php +++ b/include/xnet/page.inc.php @@ -103,8 +103,8 @@ class XnetPage extends PlatalPage $sub['créer un alias'] = "$dim/alias/create"; } if (S::has_perms()) { - $sub['gérer les groupes'] = 'admin'; - $sub['clear cache'] = 'purge_cache'; + $sub['gérer les groupes'] = array('href' => 'admin', 'style' => 'color: gray;'); + $sub['clear cache'] = array('href' => 'purge_cache', 'style' => 'color: gray;'); } $menu['Administrer'] = $sub; } elseif (S::has_perms()) { diff --git a/modules/payment.php b/modules/payment.php index d3e144a..30313d0 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -357,9 +357,11 @@ class PaymentModule extends PLModule $page->assign('titres', $tit); $order = Env::v('order', 'timestamp'); - $orders = array('timestamp', 'nom', 'promo', 'montant'); + $orders = array('timestamp', 'nom', 'promo', 'montant', 'comment'); if (!in_array($order, $orders)) { $order = 'timestamp'; + } elseif ($order == 'comment') { + $order = 't.comment'; } $inv_order = Env::v('order_inv', 0); $page->assign('order', $order); @@ -393,7 +395,7 @@ class PaymentModule extends PLModule $pid = $foo['id']; if (may_update()) { $res = XDB::query("SELECT IF(u.nom_usage<>'', u.nom_usage, u.nom) AS nom, - u.prenom, u.promo, a.alias, timestamp AS `date`, montant + u.prenom, u.promo, a.alias, timestamp AS `date`, t.comment, montant FROM {$globals->money->mpay_tprefix}transactions AS t INNER JOIN auth_user_md5 AS u ON ( t.uid = u.user_id ) INNER JOIN aliases AS a ON ( t.uid = a.id AND a.type='a_vie' ) diff --git a/plugins/function.select_db_table.php b/plugins/function.select_db_table.php index e8e921c..8bb048c 100644 --- a/plugins/function.select_db_table.php +++ b/plugins/function.select_db_table.php @@ -44,7 +44,7 @@ function select_options($table,$valeur,$champ="text",$pad=false, if (!is_null($optgrp)) { $html .= ''; } - $html .= ''; + $html .= ''; $optgrp = $my_grp; } $html .= sprintf("\n", diff --git a/templates/payment/xnet.tpl b/templates/payment/xnet.tpl index be65102..4fe758d 100644 --- a/templates/payment/xnet.tpl +++ b/templates/payment/xnet.tpl @@ -65,9 +65,9 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} {if $is_admin && $trans[$p.id]}

Liste des personnes ayant payé (pour les administrateurs uniquement) :

- +
- - - - + + {elseif $smarty.foreach.people.first} - + {else} - + {/if} -- 2.1.4
+ {if $order eq 'timestamp'} @@ -75,7 +75,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} {/if}Date + {if $order eq 'nom'} @@ -83,7 +83,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} {/if} NOM Prénom + {if $order eq 'promo'} @@ -91,7 +91,15 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} {/if}Promo + + {if $order eq 't.comment'} + + + {else} + + {/if}Commentaire + {if $order eq 'montant'} @@ -114,15 +122,16 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} {icon name=email title="mail"} {$p.promo}{$p.comment} {$p.montant}
Personne n'a encore payé pour ce télépaiementPersonne n'a encore payé pour ce télépaiement
Total Total {$p.montant}