Ignore:
Timestamp:
Nov 14, 2005 6:22:44 AM (19 years ago)
Author:
scdev
Message:

Rebuilt the services/admins.php script and templates. Fixes since v2 conversion. Lots of bugs and more to come!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/templates/admin_form.ihtml

    r18 r19  
    77<input type="hidden" name="old_username" value="<?php echo $frm['old_username']; ?>">
    88
    9 <table border="0" cellspacing="0" cellpadding="4">
     9<table>
    1010    <tr>
    11         <td class="formlabel" align="right" valign="top">&nbsp;</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>&nbsp;</td>
     12        <td valign="top"><?php printSubmitButtons($frm['submit_buttons']); ?></td>
    1813    </tr>
    1914    <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>
    2116        <td valign="top">
    2217            <input type="text" class="forminputtext" size="50" name="username" value="<?php echo oTxt($frm['username']); ?>">
     
    2419    </tr>
    2520    <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>
    2722        <td valign="top">
    2823            <input type="password" class="forminputtext" size="50" name="userpass" value="<?php echo oTxt($frm['userpass']); ?>">
     
    3025    </tr>
    3126    <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>
    3328        <td valign="top">
    3429            <input type="text" class="forminputtext" size="50" name="first_name" value="<?php echo oTxt($frm['first_name']); ?>">
     
    3631    </tr>
    3732    <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>
    3934        <td valign="top">
    4035            <input type="text" class="forminputtext" size="50" name="last_name" value="<?php echo oTxt($frm['last_name']); ?>">
     
    4237    </tr>
    4338    <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>
    5140        <td valign="top">
    5241            <input type="text" class="forminputtext" size="50" name="email" value="<?php echo oTxt($frm['email']); ?>">
     
    5443    </tr>
    5544    <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>
    5746        <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); ?>
    6049            </select>
    6150        </td>
    6251    </tr>
    6352    <tr>
    64         <td class="formlabel" align="right" valign="top">&nbsp;</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>&nbsp;</td>
     54        <td valign="top"><?php printSubmitButtons($frm['submit_buttons']); ?></td>
    7155    </tr>
    7256</table>
Note: See TracChangeset for help on using the changeset viewer.