Changeset 270 for trunk/services
- Timestamp:
- Jul 5, 2007 12:27:52 AM (17 years ago)
- Location:
- trunk/services/templates
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/templates/admin_list.ihtml
r185 r270 1 1 2 2 <?php $fv->printErrorMessages(); ?> 3 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method=" post">3 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get"> 4 4 <?php $app->printHiddenSession(false); ?> 5 5 <div id="commandbox"> 6 <span class="sc-nowrap commandtext"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span> 7 <br /> 6 <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=add'); ?>"><?php echo _("Add administrator"); ?></a></span> 8 7 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 <input type="submit" value="<?php echo _("Search"); ?>" /> 8 <div class="form"> 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.")); ?>" /> 10 <input type="submit" value="<?php echo _("Search"); ?>" /> 11 </div> 11 12 </div> 12 13 … … 31 32 <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?> 32 33 <tr> 33 <td class="sc-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="sc-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 35 <td class="sc-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 36 <td class="sc-nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> </td> … … 49 50 <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> </td> 50 51 <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="sc-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']); ?>" on Click="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 <td class="sc-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 53 </tr> 53 54 <?php } ?> … … 55 56 56 57 <?php if ($page->total_pages > 1) { ?> 57 <div class="sc-nowrap command text" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div>58 <div class="sc-nowrap commanditem" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> 58 59 <?php } ?> 59 60 </form> -
trunk/services/templates/list_info.ihtml
r136 r270 1 1 <div> 2 2 <?php if ($page->total_pages > 1) { ?> 3 <span class="sc-nowrap commanditem commandtext" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></span>3 <span class="sc-nowrap commanditem" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></span> 4 4 <?php } ?> 5 <span class="sc-nowrap commanditem commandtext">5 <span class="sc-nowrap commanditem"> 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
r185 r270 1 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method=" post">1 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get"> 2 2 <?php $app->printHiddenSession(false); ?> 3 4 3 <div id="commandbox"> 5 4 <?php if (is_array($logs) && !empty($logs)) { ?> … … 8 7 foreach ($logs as $l) { 9 8 ?> 10 <tr class="commandtext">9 <tr> 11 10 <td> 12 11 <?php if ($l['filename'] == $tmp_prefs->get('log_file')) { ?> 13 <s pan class="commanditem"><strong><?php echo sprintf(_("%s"), $l['filename']); ?></strong></span>12 <strong class="sc-padright"><?php echo sprintf(_("%s"), $l['filename']); ?></strong> 14 13 <?php } else { ?> 15 < span class="commanditem"><a href="<?php echo $app->oHREF('/admin/logs.php?log=' . $l['filename']); ?>"><strong><?php echo sprintf(_("%s"), $l['filename']); ?></strong></a></span>14 <a class="sc-padright" href="<?php echo $app->oHREF('/admin/logs.php?log=' . $l['filename']); ?>"><strong><?php echo sprintf(_("%s"), $l['filename']); ?></strong></a> 16 15 <?php } ?> 17 16 </td> 18 17 <td> 19 < span class="commanditem"><em><?php echo sprintf(_("%01.1f KB, last modified %s"), ($l['filesize']/1024), date($app->getParam('date_format'), $l['modified'])); ?></em></span>18 <em class="sc-padright"><?php echo sprintf(_("%01.1f KB, last modified %s"), ($l['filesize']/1024), date($app->getParam('date_format'), $l['modified'])); ?></em> 20 19 </td> 21 20 <td> 22 <?php if (!preg_match($no_download_files, $l['filename'])) { ?>< span class="commanditem"><a href="<?php echo $app->oHREF('/admin/logs.php?op=download&log=' . $l['filename']); ?>"><?php echo _("Download"); ?></a></span><?php } ?>23 <?php if (!preg_match($no_archive_files, $l['filename'])) { ?>< span class="commanditem"><a href="<?php echo $app->oHREF('/admin/logs.php?op=archive&log=' . $l['filename']); ?>"><?php echo _("Archive"); ?></a></span><?php } ?>24 <?php if (!preg_match($no_clear_files, $l['filename'])) { ?>< span class="commanditem"><a href="<?php echo $app->oHREF('/admin/logs.php?op=clear&log=' . $l['filename']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to clear the log file %s? This will empty this file of its contents. This action is not reversible."), $l['filename'])?>')"><?php echo _("Clear"); ?></a></span><?php } ?>25 <?php if (!preg_match($no_delete_files, $l['filename'])) { ?>< span class="commanditem"><a href="<?php echo $app->oHREF('/admin/logs.php?op=delete&log=' . $l['filename']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete the log file %s? This will remove this log file permanently. This action is not reversible."), $l['filename'])?>')"><?php echo _("Delete"); ?></a></span><?php } ?>21 <?php if (!preg_match($no_download_files, $l['filename'])) { ?><a class="sc-padright" href="<?php echo $app->oHREF('/admin/logs.php?op=download&log=' . $l['filename']); ?>"><?php echo _("Download"); ?></a><?php } ?> 22 <?php if (!preg_match($no_archive_files, $l['filename'])) { ?><a class="sc-padright" href="<?php echo $app->oHREF('/admin/logs.php?op=archive&log=' . $l['filename']); ?>"><?php echo _("Archive"); ?></a><?php } ?> 23 <?php if (!preg_match($no_clear_files, $l['filename'])) { ?><a class="sc-padright" href="<?php echo $app->oHREF('/admin/logs.php?op=clear&log=' . $l['filename']); ?>" onclick"javascript:return confirm('<?php printf(_("Are you sure you want to clear the log file %s? This will empty this file of its contents. This action is not reversible."), $l['filename'])?>')"><?php echo _("Clear"); ?></a><?php } ?> 24 <?php if (!preg_match($no_delete_files, $l['filename'])) { ?><a href="<?php echo $app->oHREF('/admin/logs.php?op=delete&log=' . $l['filename']); ?>" onclick"javascript:return confirm('<?php printf(_("Are you sure you want to delete the log file %s? This will remove this log file permanently. This action is not reversible."), $l['filename'])?>')"><?php echo _("Delete"); ?></a><?php } ?> 26 25 </td> 27 26 </tr><?php … … 30 29 </table> 31 30 <?php } ?> 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 <input type="checkbox" name="search_grep"<?php frmChecked(getFormData('search_grep')) ?> /><span class="commandtext"><?php echo _("Use Grep"); ?></span> 34 <input type="submit" name="list" value="<?php echo _("Search"); ?>" /> 31 <div class="form"> 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 <input type="checkbox" name="search_grep"<?php frmChecked(getFormData('search_grep')) ?> /><label class="sc-normal"><?php echo _("Use Grep"); ?></label> 34 <input class="sc-padleft" type="submit" name="list" value="<?php echo _("Search"); ?>" /> 35 </div> 35 36 </div> 36 37 … … 46 47 47 48 <?php if ($page->total_pages > 1) { ?> 48 <div class="sc-nowrap command text" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div>49 <div class="sc-nowrap commanditem" style="float: right;"><?php echo _("Pages:"); ?> <?php $page->printPageNumbers() ?></div> 49 50 <?php } ?> 50 51 </form> -
trunk/services/templates/versions_diff.ihtml
r267 r270 1 1 <div id="commandbox"> 2 2 <?php if (!getFormData('current', false)) { ?> 3 <span class="sc-nowrap command text"><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 commanditem"><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="sc-nowrap command text"> </span>5 <span class="sc-nowrap commanditem"> </span> 6 6 <?php } ?> 7 7 </div> 8 8 9 9 <?php if (is_array($data) && !empty($data) && is_array($current) && !empty($current)) { ?> 10 <table class="list" border="0" cellspacing="0" cellpadding="4">10 <table class="list"> 11 11 <tr> 12 12 <th class="sc-padleft"><?php echo _("Field"); ?></th> -
trunk/services/templates/versions_list.ihtml
r185 r270 2 2 <?php $app->printHiddenSession() ?> 3 3 <input type="submit" name="op" value="<?php echo _("Cancel"); ?>" /> 4 <table class="list" border="0" cellspacing="0" cellpadding="4">4 <table class="list"> 5 5 <tr> 6 6 <th class="sc-padleft" colspan="3"> </th> -
trunk/services/templates/versions_view.ihtml
r254 r270 1 1 <div id="commandbox"> 2 <span class="sc-nowrap command text"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span>2 <span class="sc-nowrap commanditem"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span> 3 3 <?php if (!getFormData('current', false)) { ?> 4 <span class="sc-nowrap command text"><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 <span class="sc-nowrap commanditem"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span> 5 5 <?php } ?> 6 6 </div> 7 7 8 8 <?php if (is_array($data) && !empty($data)) { ?> 9 <table class="list" border="0" cellspacing="0" cellpadding="4">9 <table class="list"> 10 10 <?php 11 11 while ((list($k, $v_d) = each($data))) {
Note: See TracChangeset
for help on using the changeset viewer.