marketing
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 11 Jan 2005 12:30:15 +0000 (12:30 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:26 +0000 (23:27 +0200)
* relax perms on marketing/public.php
* add link to private.php if not subscribed

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-283

htdocs/marketing/public.php
templates/include/form.valid.mark.tpl
templates/include/minifiche_pvt.tpl

index cb82dc2..829307a 100644 (file)
@@ -20,7 +20,7 @@
  ***************************************************************************/
 
 require_once('xorg.inc.php');
-new_skinned_page('marketing/public.tpl', AUTH_MDP);
+new_skinned_page('marketing/public.tpl', AUTH_COOKIE);
 
 if (! Env::has('num')) { exit; }
 
index d7c766d..44cc76f 100644 (file)
@@ -21,7 +21,7 @@
 
 <tr class="pair">
   <td class="titre">Marketing sur</td>
-  <td>{$valid->m_prenom} {$valid->m_nom} ({$valid->m_promo})</td>
+  <td><a href='{rel}/marketing/private.php?uid={$valid->m_id}'>{$valid->m_prenom} {$valid->m_nom} ({$valid->m_promo})</a></td>
 </tr>
 <tr class="pair">
   <td class="titre">Mail deviné</td>
index 98ba47a..52e03a6 100644 (file)
@@ -30,6 +30,8 @@
       *}<img src="{rel}/images/retirer.gif" alt="Retirer de la liste de mes surveillances" title="Retirer de la liste de mes surveillances" /></a>
     {/if}
     {perms level='admin'}
+    <a href="{rel}/marketing/private.php?uid={$c.user_id}">{*
+      *}<img src="{rel}/images/admin.png" alt='admin' title="administrer user" /></a>
     <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$c.matricule_ax}">{*
       *}<img src="{rel}/images/ax.png" alt='AX' title="fiche AX" /></a>
     {/perms}