Changeset 19 for trunk/services/templates/admin_form.ihtml
- Timestamp:
- Nov 14, 2005 6:22:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/admin_form.ihtml
r18 r19 7 7 <input type="hidden" name="old_username" value="<?php echo $frm['old_username']; ?>"> 8 8 9 <table border="0" cellspacing="0" cellpadding="4">9 <table> 10 10 <tr> 11 <td class="formlabel" align="right" valign="top"> </td> 12 <td valign="top"> 13 <?php if (!empty($frm['submit_caption'])) { ?><input type="submit" class="formsubmitbutton" name="submit" value="<?php echo oTxt($frm['submit_caption']); ?>" /><?php } ?> 14 <?php if (!empty($frm['repeat_caption'])) { ?><input type="submit" class="formsubmitbutton" name="repeat" value="<?php echo oTxt($frm['repeat_caption']); ?>" /><?php } ?> 15 <?php if (!empty($frm['reset_caption'])) { ?><input type="submit" class="formsubmitbutton" name="reset" value="<?php echo oTxt($frm['reset_caption']); ?>" /><?php } ?> 16 <?php if (!empty($frm['cancel_caption'])) { ?><input type="submit" class="formsubmitbutton" name="cancel" value="<?php echo oTxt($frm['cancel_caption']); ?>" /><?php } ?> 17 </td> 11 <td> </td> 12 <td valign="top"><?php printSubmitButtons($frm['submit_buttons']); ?></td> 18 13 </tr> 19 14 <tr> 20 <td class="formlabel" align="right" valign="top"<?php $fv->err('username', ' style="color:#f33;"') ?>><?php echo _("Username"); ?></td>15 <td class="formlabel" align="right" valign="top"<?php $fv->err('username', ' class="error"') ?>><?php echo _("Username"); ?></td> 21 16 <td valign="top"> 22 17 <input type="text" class="forminputtext" size="50" name="username" value="<?php echo oTxt($frm['username']); ?>"> … … 24 19 </tr> 25 20 <tr> 26 <td class="formlabel" align="right" valign="top"<?php $fv->err('userpass', ' style="color:#f33;"') ?>><?php echo _("Password"); ?></td>21 <td class="formlabel" align="right" valign="top"<?php $fv->err('userpass', ' class="error"') ?>><?php echo _("Password"); ?></td> 27 22 <td valign="top"> 28 23 <input type="password" class="forminputtext" size="50" name="userpass" value="<?php echo oTxt($frm['userpass']); ?>"> … … 30 25 </tr> 31 26 <tr> 32 <td class="formlabel" align="right" valign="top"<?php $fv->err('first_name', ' style="color:#f33;"') ?>><?php echo _("First name"); ?></td>27 <td class="formlabel" align="right" valign="top"<?php $fv->err('first_name', ' class="error"') ?>><?php echo _("First name"); ?></td> 33 28 <td valign="top"> 34 29 <input type="text" class="forminputtext" size="50" name="first_name" value="<?php echo oTxt($frm['first_name']); ?>"> … … 36 31 </tr> 37 32 <tr> 38 <td class="formlabel" align="right" valign="top"<?php $fv->err('last_name', ' style="color:#f33;"') ?>><?php echo _("Last name"); ?></td>33 <td class="formlabel" align="right" valign="top"<?php $fv->err('last_name', ' class="error"') ?>><?php echo _("Last name"); ?></td> 39 34 <td valign="top"> 40 35 <input type="text" class="forminputtext" size="50" name="last_name" value="<?php echo oTxt($frm['last_name']); ?>"> … … 42 37 </tr> 43 38 <tr> 44 <td class="formlabel" align="right" valign="top"<?php $fv->err('phone', ' style="color:#f33;"') ?>><?php echo _("Phone"); ?></td> 45 <td valign="top"> 46 <input type="text" class="forminputtext" size="50" name="phone" value="<?php echo oTxt($frm['phone']); ?>"> 47 </td> 48 </tr> 49 <tr> 50 <td class="formlabel" align="right" valign="top"<?php $fv->err('email', ' style="color:#f33;"') ?>><?php echo _("Email"); ?></td> 39 <td class="formlabel" align="right" valign="top"<?php $fv->err('email', ' class="error"') ?>><?php echo _("Email"); ?></td> 51 40 <td valign="top"> 52 41 <input type="text" class="forminputtext" size="50" name="email" value="<?php echo oTxt($frm['email']); ?>"> … … 54 43 </tr> 55 44 <tr> 56 <td class="formlabel" align="right" valign="top"<?php $fv->err(' priv', ' style="color:#f33;"') ?>><?php echo _("Priv"); ?></td>45 <td class="formlabel" align="right" valign="top"<?php $fv->err('user_type', ' class="error"') ?>><?php echo _("User type"); ?></td> 57 46 <td valign="top"> 58 <select name=" priv">59 <?php printSetSelectForm('admin_tbl', ' priv', $frm['priv'], true); ?>47 <select name="user_type"> 48 <?php printSetSelectForm('admin_tbl', 'user_type', $frm['user_type'], true); ?> 60 49 </select> 61 50 </td> 62 51 </tr> 63 52 <tr> 64 <td class="formlabel" align="right" valign="top"> </td> 65 <td valign="top"> 66 <?php if (!empty($frm['submit_caption'])) { ?><input type="submit" class="formsubmitbutton" name="submit" value="<?php echo oTxt($frm['submit_caption']); ?>" /><?php } ?> 67 <?php if (!empty($frm['repeat_caption'])) { ?><input type="submit" class="formsubmitbutton" name="repeat" value="<?php echo oTxt($frm['repeat_caption']); ?>" /><?php } ?> 68 <?php if (!empty($frm['reset_caption'])) { ?><input type="submit" class="formsubmitbutton" name="reset" value="<?php echo oTxt($frm['reset_caption']); ?>" /><?php } ?> 69 <?php if (!empty($frm['cancel_caption'])) { ?><input type="submit" class="formsubmitbutton" name="cancel" value="<?php echo oTxt($frm['cancel_caption']); ?>" /><?php } ?> 70 </td> 53 <td> </td> 54 <td valign="top"><?php printSubmitButtons($frm['submit_buttons']); ?></td> 71 55 </tr> 72 56 </table>
Note: See TracChangeset
for help on using the changeset viewer.