Changeset 121 for trunk/services
- Timestamp:
- May 22, 2006 5:29:19 AM (18 years ago)
- Location:
- trunk/services/templates
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/admin_form.ihtml
r22 r121 13 13 </tr> 14 14 <tr> 15 <td class=" right"><label for="username"<?php $fv->err('username', ' class="error"') ?>><?php echo _("Username"); ?></label></td>15 <td class="sc-right"><label for="username"<?php $fv->err('username', ' class="error"') ?>><?php echo _("Username"); ?></label></td> 16 16 <td> 17 <input type="text" class="s mall" size="50" name="username" value="<?php echo oTxt($frm['username']); ?>" />17 <input type="text" class="sc-small" size="50" name="username" value="<?php echo oTxt($frm['username']); ?>" /> 18 18 </td> 19 19 </tr> 20 20 <tr> 21 <td class=" right"><label for="userpass"<?php $fv->err('userpass', ' class="error"') ?>><?php echo _("Password"); ?></label></td>21 <td class="sc-right"><label for="userpass"<?php $fv->err('userpass', ' class="error"') ?>><?php echo _("Password"); ?></label></td> 22 22 <td> 23 <input type="password" class="s mall" size="50" name="userpass" value="<?php echo oTxt($frm['userpass']); ?>" />23 <input type="password" class="sc-small" size="50" name="userpass" value="<?php echo oTxt($frm['userpass']); ?>" /> 24 24 </td> 25 25 </tr> 26 26 <tr> 27 <td class=" right"><label for="first_name"<?php $fv->err('first_name', ' class="error"') ?>><?php echo _("First name"); ?></label></td>27 <td class="sc-right"><label for="first_name"<?php $fv->err('first_name', ' class="error"') ?>><?php echo _("First name"); ?></label></td> 28 28 <td> 29 <input type="text" class="s mall" size="50" name="first_name" value="<?php echo oTxt($frm['first_name']); ?>" />29 <input type="text" class="sc-small" size="50" name="first_name" value="<?php echo oTxt($frm['first_name']); ?>" /> 30 30 </td> 31 31 </tr> 32 32 <tr> 33 <td class=" right"><label for="last_name"<?php $fv->err('last_name', ' class="error"') ?>><?php echo _("Last name"); ?></label></td>33 <td class="sc-right"><label for="last_name"<?php $fv->err('last_name', ' class="error"') ?>><?php echo _("Last name"); ?></label></td> 34 34 <td> 35 <input type="text" class="s mall" size="50" name="last_name" value="<?php echo oTxt($frm['last_name']); ?>" />35 <input type="text" class="sc-small" size="50" name="last_name" value="<?php echo oTxt($frm['last_name']); ?>" /> 36 36 </td> 37 37 </tr> 38 38 <tr> 39 <td class=" right"><label for="email"<?php $fv->err('email', ' class="error"') ?>><?php echo _("Email"); ?></label></td>39 <td class="sc-right"><label for="email"<?php $fv->err('email', ' class="error"') ?>><?php echo _("Email"); ?></label></td> 40 40 <td> 41 <input type="text" class=" medium" size="50" name="email" value="<?php echo oTxt($frm['email']); ?>" />41 <input type="text" class="sc-medium" size="50" name="email" value="<?php echo oTxt($frm['email']); ?>" /> 42 42 </td> 43 43 </tr> 44 44 <tr> 45 <td class=" right"><label for="user_type"<?php $fv->err('user_type', ' class="error"') ?>><?php echo _("User type"); ?></label></td>45 <td class="sc-right"><label for="user_type"<?php $fv->err('user_type', ' class="error"') ?>><?php echo _("User type"); ?></label></td> 46 46 <td> 47 <select name="user_type" class="s mall">47 <select name="user_type" class="sc-small"> 48 48 <?php printSetSelectForm('admin_tbl', 'user_type', $frm['user_type'], true); ?> 49 49 </select> -
trunk/services/templates/admin_list.ihtml
r54 r121 4 4 <?php App::printHiddenSession(false); ?> 5 5 <div id="commandbox"> 6 <span class=" nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span>6 <span class="sc-nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span> 7 7 <br /> 8 8 9 <input type="text" class="s mall" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: Admin id, Username, Userpass, First name, Last name, Email, User type, Login abuse exempt, Blocked, Blocked reason, Abuse warning level, Seconds online, Last login datetime, Last access datetime, Last login ip, Added by user id, Modified by user id, Added datetime, Modified datetime.")); ?>" />9 <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo getFormData('search_query'); ?>" title="<?php echo oTxt(_("Fields searched: Admin id, Username, Userpass, First name, Last name, Email, User type, Login abuse exempt, Blocked, Blocked reason, Abuse warning level, Seconds online, Last login datetime, Last access datetime, Last login ip, Added by user id, Modified by user id, Added datetime, Modified datetime.")); ?>" /> 10 10 <input type="submit" value="<?php echo _("Search"); ?>" /> 11 11 </div> … … 31 31 <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> 32 32 <tr> 33 <td class="padleft nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=edit&admin_id=' . $list[$i]['admin_id']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> </td>34 <td class="padleft nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF('/admin/versions.php?record_table=admin_tbl&record_key=admin_id&boomerang=true&record_val=' . $list[$i]['admin_id']); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td>35 <td class=" nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> </td>36 <td class=" nowrap"><?php echo oTxt($list[$i]['username'], true); ?> </td>37 <td class=" nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> </td>38 <td class=" nowrap"><?php echo oTxt($list[$i]['user_type'], true); ?> </td>39 <td class=" nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td>40 <td class=" nowrap"><?php33 <td class="padleft sc-nowrap"><a title="<?php printf(_("Edit %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=edit&admin_id=' . $list[$i]['admin_id']); ?>"><img src="/admin/_widgets/edit.gif" alt="Edit" width="14" height="18" border="0"></a> </td> 34 <td class="padleft sc-nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF('/admin/versions.php?record_table=admin_tbl&record_key=admin_id&boomerang=true&record_val=' . $list[$i]['admin_id']); ?>"><img src="/admin/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> </td> 35 <td class="sc-nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> </td> 36 <td class="sc-nowrap"><?php echo oTxt($list[$i]['username'], true); ?> </td> 37 <td class="sc-nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> </td> 38 <td class="sc-nowrap"><?php echo oTxt($list[$i]['user_type'], true); ?> </td> 39 <td class="sc-nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> </td> 40 <td class="sc-nowrap"><?php 41 41 if ($auth->isLoggedIn($list[$i]['admin_id'])) { 42 42 ?><strong><?php echo date(App::getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) ?></strong><?php … … 45 45 } 46 46 ?> </td> 47 <td class=" nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td>48 <td class=" nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['added_datetime'] ? '' : date(App::getParam('date_format'), strtotime($list[$i]['added_datetime'])); ?> </td>49 <td class=" nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> </td>50 <td class=" nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['modified_datetime'] ? '' : date(App::getParam('date_format'), strtotime($list[$i]['modified_datetime'])); ?> </td>51 <td class="padleft nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . "?op=del&admin_id=" . $list[$i]['admin_id']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </td>47 <td class="sc-nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> 48 <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['added_datetime'] ? '' : date(App::getParam('date_format'), strtotime($list[$i]['added_datetime'])); ?> </td> 49 <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> </td> 50 <td class="sc-nowrap"><?php echo '0000-00-00 00:00:00' == $list[$i]['modified_datetime'] ? '' : date(App::getParam('date_format'), strtotime($list[$i]['modified_datetime'])); ?> </td> 51 <td class="padleft sc-nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . "?op=del&admin_id=" . $list[$i]['admin_id']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="/admin/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </td> 52 52 </tr> 53 53 <?php } ?> … … 55 55 56 56 <?php if ($page->total_pages > 1) { ?> 57 <div class=" nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div>57 <div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> 58 58 <?php } ?> 59 59 </form> -
trunk/services/templates/list_info.ihtml
r42 r121 1 1 <div> 2 2 <?php if ($page->total_pages > 1) { ?> 3 <span class=" nowrap commanditem commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></span>3 <span class="sc-nowrap commanditem commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></span> 4 4 <?php } ?> 5 <span class=" nowrap commanditem commandtext">5 <span class="sc-nowrap commanditem commandtext"> 6 6 <?php printf(_("Listing <strong>%s-%s</strong> of <strong>%s</strong> results on <strong>%s</strong> pages"), (0==$page->total_items ? 0 : $page->first_item+1), (0==$page->total_items ? 0 : $page->last_item+1), $page->total_items, $page->total_pages) ?> 7 7 <a href="<?php echo App::oHREF($_SERVER['PHP_SELF'], false); ?>"><?php echo _("List all"); ?></a> -
trunk/services/templates/log_list.ihtml
r28 r121 30 30 </table> 31 31 <?php } ?> 32 <input type="text" class="s mall" size="20" name="search_query" value="<?php echo oTxt(getFormData('search_query')); ?>" title="<?php echo _("All lines in currently viewed log file are searched."); ?>" />32 <input type="text" class="sc-small" size="20" name="search_query" value="<?php echo oTxt(getFormData('search_query')); ?>" title="<?php echo _("All lines in currently viewed log file are searched."); ?>" /> 33 33 <input type="checkbox" name="search_grep"<?php frmChecked(getFormData('search_grep')) ?> /><span class="commandtext"><?php echo _("Use Grep"); ?></span> 34 34 <input type="submit" name="list" value="<?php echo _("Search"); ?>" /> … … 46 46 47 47 <?php if ($page->total_pages > 1) { ?> 48 <div class=" nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div>48 <div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> 49 49 <?php } ?> 50 50 </form> -
trunk/services/templates/login_form.ihtml
r22 r121 3 3 <table> 4 4 <tr> 5 <td class=" right"><label for="username"><?php echo _("Username"); ?></label></td>5 <td class="sc-right"><label for="username"><?php echo _("Username"); ?></label></td> 6 6 <td> 7 <input type="text" class="s mall" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" />7 <input type="text" class="sc-small" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" /> 8 8 </td> 9 9 </tr> 10 10 <tr> 11 <td class=" right"><label for="password"><?php echo _("Password"); ?></label></td>11 <td class="sc-right"><label for="password"><?php echo _("Password"); ?></label></td> 12 12 <td> 13 <input type="password" class="s mall" size="20" name="password" value="<?php echo oTxt($frm['password']); ?>" />13 <input type="password" class="sc-small" size="20" name="password" value="<?php echo oTxt($frm['password']); ?>" /> 14 14 </td> 15 15 </tr> -
trunk/services/templates/password.ihtml
r119 r121 6 6 <table> 7 7 <tr> 8 <td class=" right"><label for="oldpassword"<?php $fv->err('oldpassword', ' class="error"') ?>><?php echo _("Old password"); ?></label></td>8 <td class="sc-right"><label for="oldpassword"<?php $fv->err('oldpassword', ' class="error"') ?>><?php echo _("Old password"); ?></label></td> 9 9 <td> 10 <input type="password" class=" medium" size="50" name="oldpassword" />10 <input type="password" class="sc-medium" size="50" name="oldpassword" /> 11 11 </td> 12 12 </tr> 13 13 <tr> 14 <td class=" right"><label for="newpassword"<?php $fv->err('newpassword', ' class="error"') ?>><?php echo _("New password"); ?></label></td>14 <td class="sc-right"><label for="newpassword"<?php $fv->err('newpassword', ' class="error"') ?>><?php echo _("New password"); ?></label></td> 15 15 <td> 16 <input type="password" class=" medium" size="50" name="newpassword" />16 <input type="password" class="sc-medium" size="50" name="newpassword" /> 17 17 </td> 18 18 </tr> 19 19 <tr> 20 <td class=" right"><label for="newpassword2"<?php $fv->err('newpassword2', ' class="error"') ?>><?php echo _("New password again"); ?></label></td>20 <td class="sc-right"><label for="newpassword2"<?php $fv->err('newpassword2', ' class="error"') ?>><?php echo _("New password again"); ?></label></td> 21 21 <td> 22 <input type="password" class=" medium" size="50" name="newpassword2" />22 <input type="password" class="sc-medium" size="50" name="newpassword2" /> 23 23 </td> 24 24 </tr> -
trunk/services/templates/versions_diff.ihtml
r42 r121 1 1 <div id="commandbox"> 2 2 <?php if (!getFormData('current', false)) { ?> 3 <span class=" nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span>3 <span class="sc-nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span> 4 4 <?php } else { ?> 5 <span class=" nowrap commandtext"> </span>5 <span class="sc-nowrap commandtext"> </span> 6 6 <?php } ?> 7 7 </div> … … 10 10 <table class="list" border="0" cellspacing="0" cellpadding="4"> 11 11 <tr> 12 <th class=" padleft"><?php echo _("Field"); ?></th>13 <th class=" padleft"><?php echo _("Saved version"); ?></th>14 <th class=" padleft"><?php echo _("Current record"); ?></th>12 <th class="sc-padleft"><?php echo _("Field"); ?></th> 13 <th class="sc-padleft"><?php echo _("Saved version"); ?></th> 14 <th class="sc-padleft"><?php echo _("Current record"); ?></th> 15 15 </tr> 16 16 <?php … … 20 20 ?> 21 21 <tr> 22 <td class="padleft nowrap"<?php echo $style; ?>><label><?php echo $k; ?></label></td>23 <td class=" padleft"><?php echo $v_d; ?></td>24 <td class=" padleft"><?php echo $v_c; ?></td>22 <td class="padleft sc-nowrap"<?php echo $style; ?>><label><?php echo $k; ?></label></td> 23 <td class="sc-padleft"><?php echo $v_d; ?></td> 24 <td class="sc-padleft"><?php echo $v_c; ?></td> 25 25 </tr> 26 26 <?php } ?> -
trunk/services/templates/versions_list.ihtml
r49 r121 4 4 <table class="list" border="0" cellspacing="0" cellpadding="4"> 5 5 <tr> 6 <th class=" padleft" colspan="3"> </th>7 <th class=" padleft"><?php echo _("ID"); ?></th>8 <th class=" padleft"><?php echo _("Saved"); ?></th>9 <th class=" padleft"><?php echo _("By"); ?></th>6 <th class="sc-padleft" colspan="3"> </th> 7 <th class="sc-padleft"><?php echo _("ID"); ?></th> 8 <th class="sc-padleft"><?php echo _("Saved"); ?></th> 9 <th class="sc-padleft"><?php echo _("By"); ?></th> 10 10 </tr> 11 11 <?php … … 14 14 <tr> 15 15 <?php if ($first) { ?> 16 <td class="padleft nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=view¤t=true&version_id=' . $v['version_id']); ?>">view</a>]</td>17 <td class="padleft nowrap" colspan="2">(<?php echo _("Current record"); ?>)</td>16 <td class="padleft sc-nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=view¤t=true&version_id=' . $v['version_id']); ?>">view</a>]</td> 17 <td class="padleft sc-nowrap" colspan="2">(<?php echo _("Current record"); ?>)</td> 18 18 <?php } else { ?> 19 <td class="padleft nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=view&version_id=' . $v['version_id']); ?>">view</a>]</td>20 <td class="padleft nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=diff&version_id=' . $v['version_id']); ?>">diff</a>]</td>21 <td class="padleft nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore&version_id=' . $v['version_id']); ?>">restore</a>]</td>19 <td class="padleft sc-nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=view&version_id=' . $v['version_id']); ?>">view</a>]</td> 20 <td class="padleft sc-nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=diff&version_id=' . $v['version_id']); ?>">diff</a>]</td> 21 <td class="padleft sc-nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore&version_id=' . $v['version_id']); ?>">restore</a>]</td> 22 22 <?php } ?> 23 <td class="padleft nowrap"><?php echo $v['version_id']; ?></td>24 <td class="padleft nowrap"><?php echo date('d M Y H:i:s', strtotime($v['version_datetime'])); ?></td>25 <td class="padleft nowrap"><?php echo $v['editor']; ?></td>23 <td class="padleft sc-nowrap"><?php echo $v['version_id']; ?></td> 24 <td class="padleft sc-nowrap"><?php echo date('d M Y H:i:s', strtotime($v['version_datetime'])); ?></td> 25 <td class="padleft sc-nowrap"><?php echo $v['editor']; ?></td> 26 26 </tr> 27 27 <?php … … 30 30 ?> 31 31 </table> 32 <div class=" help"><?php printf(_("When there are more than %s versions, those over %s days old are deleted."), $version->getParam('min_qty'), $version->getParam('min_days')); ?></div>32 <div class="sc-help"><?php printf(_("When there are more than %s versions, those over %s days old are deleted."), $version->getParam('min_qty'), $version->getParam('min_days')); ?></div> 33 33 <input type="submit" name="op" value="<?php echo _("Cancel"); ?>" /> 34 34 </form> -
trunk/services/templates/versions_view.ihtml
r49 r121 1 1 <div id="commandbox"> 2 2 <?php if (!getFormData('current', false)) { ?> 3 <span class=" nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span>3 <span class="sc-nowrap commandtext"><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span> 4 4 <?php } else { ?> 5 <span class=" nowrap commandtext"> </span>5 <span class="sc-nowrap commandtext"> </span> 6 6 <?php } ?> 7 7 </div> … … 13 13 ?> 14 14 <tr> 15 <td class=" padleftnowrap"><label><?php echo $k; ?></label></td>16 <td class=" padleft"><?php echo $v_d; ?></td>15 <td class="sc-padleft sc-nowrap"><label><?php echo $k; ?></label></td> 16 <td class="sc-padleft"><?php echo $v_d; ?></td> 17 17 </tr> 18 18 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.