Révision 8c2a3d1e plugins/anet_epacks/front/plugin_anet_epacks.view.php
plugins/anet_epacks/front/plugin_anet_epacks.view.php | ||
---|---|---|
20 | 20 |
if($data['name'] == "revendeur") { |
21 | 21 |
print "<h1>Liste synthétique de vos epacks</h1>"; |
22 | 22 |
$entityid = $data['FK_entities']; |
23 |
print "<p>Liste des epacks attribués: <a href=\"" . $PHP_SELF . "\">Tous</a> - <a href=\"" . $PHP_SELF . "?year=2008\">2008</a> - <a href=\"" . $PHP_SELF . "?year=2009\">2009</a> - <a href=\"" . $PHP_SELF . "?year=2010\">2010</a> - <a href=\"" . $PHP_SELF . "?year=2011\">2011</a>.</p>"; |
|
23 |
print "<p>Liste des epacks attribués: <a href=\"" . $PHP_SELF . "\">Tous</a> - "; |
|
24 |
for($i=2008; $i <= date("Y"); $i++) { |
|
25 |
print "<a href=\"" . $PHP_SELF . "?year=$i\">$i</a> - "; |
|
26 |
} |
|
27 |
print "</p>"; |
|
24 | 28 |
|
25 | 29 |
//Les packs attribués |
26 | 30 |
//Permet de limiter un peu l'affichage, il faudra faire un système de recherche ou pagination à terme |
... | ... | |
74 | 78 |
checkRight("config","w"); |
75 | 79 |
//checkSeveralRightsOr(array("config" => "w", "profile" => "w")); |
76 | 80 |
|
77 |
print "<p>Liste des epacks attribués: <a href=\"" . $PHP_SELF . "\">Tous</a> - <a href=\"" . $PHP_SELF . "?year=2008\">2008</a> - <a href=\"" . $PHP_SELF . "?year=2009\">2009</a> - <a href=\"" . $PHP_SELF . "?year=2010\">2010</a> - <a href=\"" . $PHP_SELF . "?year=2011\">2011</a>.</p>"; |
|
81 |
//print "<p>Liste des epacks attribués: <a href=\"" . $PHP_SELF . "\">Tous</a> - <a href=\"" . $PHP_SELF . "?year=2008\">2008</a> - <a href=\"" . $PHP_SELF . "?year=2009\">2009</a> - <a href=\"" . $PHP_SELF . "?year=2010\">2010</a> - <a href=\"" . $PHP_SELF . "?year=2011\">2011</a>.</p>"; |
|
82 |
|
|
83 |
print "<p>Liste des epacks attribués: <a href=\"" . $PHP_SELF . "\">Tous</a> - "; |
|
84 |
for($i=2008; $i <= date("Y"); $i++) { |
|
85 |
print "<a href=\"" . $PHP_SELF . "?year=$i\">$i</a> - "; |
|
86 |
} |
|
87 |
print "</p>"; |
|
88 |
|
|
78 | 89 |
|
79 | 90 |
global $DB; |
80 | 91 |
|
... | ... | |
95 | 106 |
|
96 | 107 |
print "<table class='tab_cadre' width='100%' cellpadding='2'>\n"; |
97 | 108 |
print "<tr class='tab_bg_3'> |
109 |
<td>N°</td> |
|
98 | 110 |
<td>Nom</td> |
99 | 111 |
<td>Création</td> |
100 | 112 |
<td>Activation</td> |
... | ... | |
107 | 119 |
for($i = 0; $i < $DB->numrows($result); $i++) { |
108 | 120 |
$data=$DB->fetch_array($result); |
109 | 121 |
print "<tr class='tab_bg_3'>\n"; |
122 |
print " <td>" . ($i+1) . "</td>"; |
|
110 | 123 |
print " <td>" . $data['clientderyxeo'] . "</td> |
111 | 124 |
<td>" . $data['creation_date'] . "</td> |
112 | 125 |
<td>" . $data['activation_date'] . "</td> |
... | ... | |
143 | 156 |
|
144 | 157 |
print "<table class='tab_cadre' width='100%' cellpadding='2'>\n"; |
145 | 158 |
print "<tr class='tab_bg_3'> |
159 |
<td>N°</td> |
|
146 | 160 |
<td>Nom</td> |
147 | 161 |
<td>Date de création du pack</td> |
148 | 162 |
<td>Date d'activation du pack</td> |
... | ... | |
155 | 169 |
for($i = 0; $i < $DB->numrows($result); $i++) { |
156 | 170 |
$data=$DB->fetch_array($result); |
157 | 171 |
print "<tr class='tab_bg_3'>\n"; |
172 |
print " <td>" . ($i+1) . "</td>"; |
|
158 | 173 |
print " <td>" . $data['clientderyxeo'] . "</td> |
159 | 174 |
<td>" . $data['creation_date'] . "</td> |
160 | 175 |
<td>" . $data['activation_date'] . "</td> |
Formats disponibles : Unified diff