corrections des liens .php en lien pl
[platal.git] / templates / marketing / promo.tpl
index 11c8067..3817e4a 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+<form action="marketing/promo/" method="post" onsubmit="this.action += this.promo.value">
+  <div class="center">
+    <a href="marketing/promo/{$promo-10}" title="-10"><img src="images/24/first-page.png" alt="[&lt;&lt;]" /></a>
+    <a href="marketing/promo/{$promo-1}" title="-1"><img src="images/24/previous.png" alt="[&lt;]" /></a>
 
+    &nbsp;
+    Promo:<input type="text" name="promo" value="{$promo}" size="4" maxlength="4" /><input type="submit" value="GO" />
+    &nbsp;
 
-<table style="margin-left: auto; margin-right: auto">
-  <tr>
-    <td>
-      <form action="?" method="get">
-        <div>
-          <input type="hidden" name="promo" value="{$promo-10}" />
-          <input type="submit" value="&lt;&lt;" />
-        </div>
-      </form>
-    </td>
-    <td>
-      <form action="?" method="get">
-        <div>
-          <input type="hidden" name="promo" value="{$promo-1}" />
-          <input type="submit" value="&lt;" />
-        </div>
-      </form>
-    </td>
-    <td>
-      <form action="?" method="get">
-        <div>
-          Promotion : <input type="text" name="promo" value="{$promo}" size="4" maxlength="4" />
-          <input type="submit" value="GO" />
-        </div>
-      </form>
-    </td>
-    <td>
-      <form action="?" method="get">
-        <div>
-          <input type="hidden" name="promo" value="{$promo+1}" />
-          <input type="submit" value="&gt;" />
-        </div>
-      </form>
-    </td>
-    <td>
-      <form action="?" method="get">
-        <div>
-          <input type="hidden" name="promo" value="{$promo+10}" />
-          <input type="submit" value="&gt;&gt;" />
-        </div>
-      </form> 
-    </td>
-  </tr>
-</table>
+    <a href="marketing/promo/{$promo+1}" title="+1"><img src="images/24/next.png" alt="[&gt;]" /></a>
+    <a href="marketing/promo/{$promo+10}" title="+10"><img src="images/24/last-page.png" alt="[&gt;&gt;]" /></a>
+  </div>
+</form>
 
 <br />
 
 <div class="center">
-  <a href="javascript:void(window.open('{"stats/stats_promo.php"|url}?promo={$promo}','','width=800,height=600,toolbar=no'))">
+  <a href="javascript:void(window.open('stats/promos/{$promo}','','width=800,height=600,toolbar=no'))">
     Voir l'évolution des inscriptions de la promotion
   </a>
 </div>
 
-<form action="{$smarty.server.PHP_SELF}" method="post">
+<br />
+
+<form action="marketing/promo" method="post">
   <table class="bicol" summary="liste des inscriptions non confirmées">
     <tr>
       <th>Nom</th>
         {/if}
       </td>
       <td class="center">
-        <a href="private.php?uid={$it.user_id}">{*
-          *}<img src="{rel}/images/admin.png" alt='Marketing' title="Marketing" /></a>
-        <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$it.matricule_ax}">{*
-          *}<img src="{rel}/images/ax.png" alt='AX' title="fiche AX" /></a>
+        <a href="marketing/private/{$it.user_id}">{icon name=wrench title="Marketing"}</a>
+        <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$it.matricule_ax}">{*
+          *}{icon name=user_gray title="fiche AX"}</a>
       </td>
     </tr>
     {/iterate}