| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2014 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 6 | {* This program is free software; you can redistribute it and/or modify *} |
| 7 | {* it under the terms of the GNU General Public License as published by *} |
| 8 | {* the Free Software Foundation; either version 2 of the License, or *} |
| 9 | {* (at your option) any later version. *} |
| 10 | {* *} |
| 11 | {* This program is distributed in the hope that it will be useful, *} |
| 12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
| 13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
| 14 | {* GNU General Public License for more details. *} |
| 15 | {* *} |
| 16 | {* You should have received a copy of the GNU General Public License *} |
| 17 | {* along with this program; if not, write to the Free Software *} |
| 18 | {* Foundation, Inc., *} |
| 19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | <h1>Mise à jour de l'annuaire</h1> |
| 24 | |
| 25 | {if t($newAccounts)} |
| 26 | <p> |
| 27 | Les comptes suivants ont été ajoutés : |
| 28 | <ul> |
| 29 | {foreach from=$newAccounts key=hruid item=name} |
| 30 | <li><a href="{$platal->ns}admin/user/{$hruid}">{$name}</a></li> |
| 31 | {/foreach} |
| 32 | </ul> |
| 33 | </p> |
| 34 | {/if} |
| 35 | |
| 36 | {if !t($add_type)} |
| 37 | <form action="{$platal->pl_self()}" method="post"> |
| 38 | <table class="tinybicol"> |
| 39 | <tr> |
| 40 | <td class="center"> |
| 41 | <strong>Ajouter :</strong> |
| 42 | <label><input type="radio" name="add_type" value="promo" checked="checked" /> une promotion</label> - |
| 43 | <label><input type="radio" name="add_type" value="account" /> des comptes seuls</label><br /> |
| 44 | </td> |
| 45 | </tr> |
| 46 | <tr> |
| 47 | <td class="center"> |
| 48 | <strong>Mettre à jour :</strong> |
| 49 | <label><input type="radio" name="add_type" value="ax_id" /> les matricules AX</label> |
| 50 | </td> |
| 51 | </tr> |
| 52 | <tr> |
| 53 | <td class="center"><input type='submit' value='Continuer' /></td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | </form> |
| 57 | |
| 58 | {else} |
| 59 | <form action="{$platal->pl_self()}" method="post"> |
| 60 | <table class="tinybicol" style="margin-bottom: 1em"> |
| 61 | <tr> |
| 62 | <td class="center"> |
| 63 | <strong>Promotion :</strong> |
| 64 | <input type="text" name="promotion" size="4" maxlength="4" /> |
| 65 | <input type="hidden" name="add_type" value="{$add_type}" /> |
| 66 | </td> |
| 67 | </tr> |
| 68 | {if $add_type eq 'promo'} |
| 69 | <tr> |
| 70 | <td class="center"> |
| 71 | <strong>Formation :</strong> |
| 72 | <label><input type="radio" name="edu_type" value="X" checked="checked" /> X</label> - |
| 73 | <label><input type="radio" name="edu_type" value="M" /> master</label> - |
| 74 | <label><input type="radio" name="edu_type" value="D" /> doctorat</label> |
| 75 | </td> |
| 76 | </tr> |
| 77 | </table> |
| 78 | <table class="bicol"> |
| 79 | <tr> |
| 80 | <td>Nom</td> |
| 81 | <td>Prénom</td> |
| 82 | <td>Date de naissance (JJ/MM/AAAA)</td> |
| 83 | <td>Sexe (F/M)</td> |
| 84 | <td>Matricule École</td> |
| 85 | <td>Matricule AX</td> |
| 86 | </tr> |
| 87 | <tr> |
| 88 | <td colspan="6"><textarea name="people" rows="20" cols="80"></textarea></td> |
| 89 | </tr> |
| 90 | </table> |
| 91 | |
| 92 | {elseif $add_type eq 'account'} |
| 93 | <tr> |
| 94 | <td class="center"> |
| 95 | <strong>Type de compte :</strong> |
| 96 | <select name="type"> |
| 97 | {foreach from=$account_types item=type} |
| 98 | <option value="{$type}">{$type}</option> |
| 99 | {/foreach} |
| 100 | </select> |
| 101 | </td> |
| 102 | </tr> |
| 103 | </table> |
| 104 | <br /> |
| 105 | <table class="bicol"> |
| 106 | <tr> |
| 107 | <td>Nom</td> |
| 108 | <td>Prénom</td> |
| 109 | <td>Adresse email</td> |
| 110 | <td>Sexe (F/M)</td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td colspan="4"><textarea name="people" rows="20" cols="80"></textarea></td> |
| 114 | </tr> |
| 115 | </table> |
| 116 | |
| 117 | {elseif $add_type eq 'ax_id'} |
| 118 | </table> |
| 119 | <br /> |
| 120 | <table class="bicol"> |
| 121 | <tr> |
| 122 | <td>Nom Prénom ou Identifiant (hrid)</td> |
| 123 | <td>Matricule AX</td> |
| 124 | </tr> |
| 125 | <tr> |
| 126 | <td colspan="2"><textarea name="people" rows="20" cols="80"></textarea></td> |
| 127 | </tr> |
| 128 | </table> |
| 129 | {/if} |
| 130 | |
| 131 | <p class="center"> |
| 132 | <strong>Séparateur :</strong> |
| 133 | <input type="text" name="separator" value=";" size="1" maxlength="1" /><br /><br /> |
| 134 | <input type='submit' value='Ajouter' /> |
| 135 | </p> |
| 136 | </form> |
| 137 | {/if} |
| 138 | |
| 139 | {* vim:set et sws=2 sts=2 sw=2 fenc=utf-8: *} |