Backports
[platal.git] / templates / marketing / private.tpl
index 034e4d7..8b0df79 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -20,7 +20,6 @@
 {*                                                                        *}
 {**************************************************************************}
 
-
 <h1>Marketing de {$prenom} {$nom}</h1>
 
 <h2>Matricules</h2>
@@ -46,59 +45,58 @@ sa derni
 {/if}
 </p>
 
-<p>[<a href='?uid={$smarty.request.uid}relance=1'>le relancer</a>]</p>
+<p>[<a href='{$path}/insrel'>le relancer</a>]</p>
 
 {/if}
 
 <h2>Adresses connues</h2>
 
-<form action="{$smarty.request.PHP_SELF}" method="post">
-<table class="bicol" cellpadding="0" cellspacing="0">
-  <tr>
-    <th>Adresse</th>
-    <th>Marketeur</th>
-    <th>Date</th>
-    <th>Envois</th>
-    <th>Nb.</th>
-    <th>&nbsp;</th>
-  </tr>
-  {iterate from=$addr item=a}
-  <tr class="{cycle values='impair,pair'}">
-    <td>{$a.email}</td>
-    <td><a href="{rel}/fiche.php?user={$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}</td>
-    <td>{$a.date|date_format|default:'-'}</td>
-    <td>{$a.last|date_format|default:'-'}</td>
-    <td class='center'>{$a.nb|default:"-"}</td>
-    <td class='action'>
-      <a href='?uid={$smarty.request.uid}&amp;del={$a.email}'>del</a><br />
-      <a href='?uid={$smarty.request.uid}&amp;rel={$a.email}'>relance</a>
-    </td>
-  </tr>
-  {/iterate}
-  <tr>
-    <td></td>
-    <td colspan='5' class='smaller'>(*): mail perso</td>
-  </tr>
-  <tr>
-    <td>
-      <input type='text' name='email' />
-    </td>
-    <td colspan="4">
-      <select name="type">
-        <option value="staff">staff</option>
-        <option value="user">user</option>
-      </select>
-    </td>
-    <td class='action'>
-      <input type='hidden' name='uid' value='{$smarty.request.uid}' />
-      <input type='submit' name='action' value='ajouter' />
-    </td>
-  </tr>
-</table>
+<form action="{$path}/add" method="post">
+  <table class="bicol" cellpadding="0" cellspacing="0">
+    <tr>
+      <th>Adresse</th>
+      <th>Marketeur</th>
+      <th>Date</th>
+      <th>Envois</th>
+      <th>Nb.</th>
+      <th>&nbsp;</th>
+    </tr>
+    {iterate from=$addr item=a}
+    <tr class="{cycle values='impair,pair'}">
+      <td>{$a.email}</td>
+      <td><a href="profile/{$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}</td>
+      <td>{$a.date|date_format|default:'-'}</td>
+      <td>{$a.last|date_format|default:'-'}</td>
+      <td class='center'>{$a.nb|default:"-"}</td>
+      <td class='action'>
+        <a href='{$path}/del/{$a.email}'>del</a><br />
+        <a href='{$path}/rel/{$a.email}'>relance</a>
+      </td>
+    </tr>
+    {/iterate}
+    <tr>
+      <td></td>
+      <td colspan='5' class='smaller'>(*): mail perso</td>
+    </tr>
+    <tr>
+      <td>
+        <input type='text' name='email' />
+      </td>
+      <td colspan="4">
+        <select name="type">
+          <option value="staff">staff</option>
+          <option value="user">user</option>
+        </select>
+      </td>
+      <td class='action'>
+        <input type='submit' value='ajouter' />
+      </td>
+    </tr>
+  </table>
 </form>
 
 {if $rel_to}
-<form action="{$smarty.request.PHP_SELF}" method="post">
+<form action="{$path}/relforce/{$email}" method="post">
   <table class="bicol">
     <tr class="pair">
       <th colspan="2">Edition du mail de relance</th>
@@ -129,8 +127,6 @@ sa derni
     </tr>
   </table>
   <div class="center">
-    <input type="hidden" name="uid" value="{$smarty.request.uid}" />
-    <input type="hidden" name="email" value="{$smarty.request.rel}" />
     <input type="reset" value="Recommencer" />
     <input type="submit" name="valider" value="Envoyer" />
   </div>