{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2008 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-{include file=table-editor.tpl}
+{include core=table-editor.tpl}
<h1>Administration Polytechnique.org</h1>
{literal}
<script type="text/javascript">
<!--
- function new_grade() {
- document.forms.form_grade.act.value = "new";
- document.forms.form_grade.submit();
- return true;
- }
-
function del_grade( myid ) {
if (confirm ("You are about to delete this entry. Do you want to proceed?")) {
document.forms.form_grade.act.value = "del";
<table class='bicol'>
<tr>
<th>id</th>
- <th>intitulé</th>
+ <th>intitulé</th>
<th>ordre</th>
<th> </th>
</tr>
- <tr>
- <td colspan='3'>
- Nouveau ...
- </td>
- <td class='action'>
- <a href='javascript:new_grade()'>nouveau{icon name=add title='nouveau grade'}</a>
- </td>
- </tr>
{iterate from=$grades item=g}
<tr class="{cycle values="pair,impair"}">
<td>{$g.gid}</td>
</tr>
{/iterate}
<tr class="{cycle values="impair,pair"}">
+ <td></td>
+ <td>
+ <input type='text' size='65' name="grades[0]" />
+ </td>
+ <td>
+ <input type='text' maxlength='2' name="pos[0]" value="0" />
+ </td>
+ <td class='action'>
+ <a href='javascript:document.forms.form_grade.submit()'>{icon name=add title='nouveau grade'}</a>
+ </td>
+ </tr>
+ <tr class="{cycle values="impair,pair"}">
<td colspan='4' class="center">
<input type='hidden' name='frm_id' value='{$smarty.post.frm_id}' />
<input type='hidden' name='action' value='{$smarty.post.action}' />
<input type='hidden' name='act' value='' />
<input type='hidden' name='gid' value='' />
- <input type='submit' name='gr_sub' value='Sauver' />
+ <input type='submit' name='gr_sub' value='Enregistrer' />
</td>
</tr>
</table>
</form>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}