| 1 | {if $doedit} |
| 2 | |
| 3 | {* we are in editor mode *} |
| 4 | <form method="post" action="{$post}"> |
| 5 | <input type="hidden" name="action" value="modifier" /> |
| 6 | <input type="hidden" name="MID" value="{$MID}" /> |
| 7 | <input type="hidden" name="MIDpere" value="{$MIDpere}" /> |
| 8 | |
| 9 | <table class="light"> |
| 10 | <tr> |
| 11 | <th colspan="3">{$msg_prop}</th> |
| 12 | </tr> |
| 13 | <tr> |
| 14 | <td>{$msg_title}</td> |
| 15 | <td colspan="2"> |
| 16 | <input type="text" name="title" value="{$title|escape}" size="30" maxlength="255" /> |
| 17 | </td> |
| 18 | </tr> |
| 19 | <tr> |
| 20 | <td>{$msg_type}</td> |
| 21 | <td colspan="2"> |
| 22 | <input type="radio" name="typelink" value="boutonZ" {$chk_z}> |
| 23 | {$msg_type_z} |
| 24 | </td> |
| 25 | <tr> |
| 26 | <td> </td> |
| 27 | <td> |
| 28 | <input type="radio" name="typelink" value="boutonPI" {$chk_pi}> |
| 29 | {$msg_type_pi} |
| 30 | </td> |
| 31 | <td> |
| 32 | <select name="PIvaleur"> |
| 33 | {html_options options=$page_opts selected=$page_sel} |
| 34 | </select> |
| 35 | </td> |
| 36 | </tr> |
| 37 | <tr> |
| 38 | <td> </td> |
| 39 | <td> |
| 40 | <input type="radio" name="typelink" value="boutonSE" {$chk_se}> |
| 41 | {$msg_type_se} |
| 42 | </td> |
| 43 | <td> |
| 44 | <input type="text" name="SEvaleur" value="{$SEvaleur}" size='30' maxlength='65535'> |
| 45 | </td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td colspan="3"> |
| 49 | <input type="submit" value="{$submit}"> |
| 50 | </th> |
| 51 | </tr> |
| 52 | </table> |
| 53 | |
| 54 | </form> |
| 55 | |
| 56 | {else} |
| 57 | |
| 58 | {* we are viewing the list *} |
| 59 | |
| 60 | <p>{$msg_ext}</p> |
| 61 | |
| 62 | <p><b>{$msg_menubar}</b> : {toolbar lnk=$menubar}</p> |
| 63 | |
| 64 | <table class="light"> |
| 65 | <tr> |
| 66 | <th> </th> |
| 67 | <th>{$msg_menu}</th> |
| 68 | <th>{$msg_link}</th> |
| 69 | <th colspan="2">{$msg_actions}</th> |
| 70 | </tr> |
| 71 | {counter start=0 assign=cnt print=0} |
| 72 | {foreach from=$entries item=entry} |
| 73 | <tr{if $cnt % 2} class="odd"{/if}> |
| 74 | <td><u>{$entry[0]}</u></td> |
| 75 | <td>{a lnk=$entry[1]}</td> |
| 76 | <td>{$entry[2]}</td> |
| 77 | <td> |
| 78 | {a lnk=$entry[3] class='action'} |
| 79 | {a lnk=$entry[4] class='action'} |
| 80 | </td> |
| 81 | <td> |
| 82 | {a lnk=$entry[5] class='action'} |
| 83 | {a lnk=$entry[6] class='action'} |
| 84 | </td> |
| 85 | </tr> |
| 86 | {counter} |
| 87 | {/foreach} |
| 88 | </table> |
| 89 | |
| 90 | <br/> |
| 91 | |
| 92 | <form method="get" action="{$script}" name="formulaire"> |
| 93 | <input type="hidden" name="action" value="editer" /> |
| 94 | <input type="hidden" name="MIDpere" value="{$MIDpere}" /> |
| 95 | <input type="submit" value="{$submit}"> |
| 96 | </form> |
| 97 | |
| 98 | {/if} |