{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{literal}
<script type="text/javascript">//<![CDATA[
+ var valid = new array();
function medal_add()
{
var selid = document.forms.prof_annu.medal_sel.selectedIndex;
document.forms.prof_annu.medal_op.value = "retirer";
document.forms.prof_annu.submit();
}
+
+ function medal_cancel(stamp)
+ {
+ document.forms.prof_annu.medal_id.value = stamp;
+ document.forms.prof_annu.medal_op.value = "annuler";
+ document.forms.prof_annu.submit();
+ }
var subgrades = new array();
function getoption( select_input, j)
{
{if $smarty.request.medal_op eq "ajouter"}
<div class="erreur">
- Ta demande a bien été prise en compte, elle sera validée prochainement par un administrateur.
+ Ta demande a bien été prise en compte, elle sera validée prochainement par un administrateur.
</div>
{/if}
<div class="blocunite_tab">
<table class="bicol" cellspacing="0" cellpadding="0">
<tr>
<th colspan="3">
- Médailles, Décorations, Prix, ...
+ Médailles, Décorations, Prix, ...
</th>
</tr>
<tr>
</td>
</tr>
{/foreach}
+ {foreach from=$medals_valid item=v}
+ <tr>
+ <td class="colg">
+ <img
+ {foreach from=$medal_list item=list}
+ {foreach from=$list item=m}
+ {if $m.id eq $v->mid}src="images/medals/{$m.img}"{/if}
+ {/foreach}
+ {/foreach}
+ title="Validation" alt="Validation" width="32" />
+ <td class="colm">
+ <span class="valeur">
+ {foreach from=$medal_list item=list}
+ {foreach from=$list item=m}
+ {if $m.id eq $v->mid}{$m.text} <em>(en attente de validation)</em>{/if}
+ {/foreach}
+ {/foreach}
+ </span><br />
+ {foreach from=$grades key=mid item=grd}
+ {if $mid eq $v->mid}
+ {foreach from=$grd item=g}
+ {if $g.gid eq $v->gid}{$g.text}{/if}
+ {/foreach}
+ {/if}
+ {/foreach}
+ </td>
+ <td class="cold">
+ <span class="lien">
+ <a href="javascript:medal_cancel({$v->stamp});">annuler</a>
+ </span>
+ </tr>
+ </tr>
+ {/foreach}
<tr>
<td class="colg">
</table>
</div>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}