Changeset 121 for trunk/services


Ignore:
Timestamp:
May 22, 2006 5:29:19 AM (18 years ago)
Author:
scdev
Message:

Q - Added "sc-" to all css class selectors; Finished reworking Upload and ImageThumb? (now with GD support!); More PHP 5 upgrades.

Location:
trunk/services/templates
Files:
9 edited

Legend:

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

    r22 r121  
    1313    </tr>
    1414    <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>
    1616        <td>
    17             <input type="text" class="small" 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']); ?>" />
    1818        </td>
    1919    </tr>
    2020    <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>
    2222        <td>
    23             <input type="password" class="small" 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']); ?>" />
    2424        </td>
    2525    </tr>
    2626    <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>
    2828        <td>
    29             <input type="text" class="small" 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']); ?>" />
    3030        </td>
    3131    </tr>
    3232    <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>
    3434        <td>
    35             <input type="text" class="small" 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']); ?>" />
    3636        </td>
    3737    </tr>
    3838    <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>
    4040        <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']); ?>" />
    4242        </td>
    4343    </tr>
    4444    <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>
    4646        <td>
    47             <select name="user_type" class="small">
     47            <select name="user_type" class="sc-small">
    4848            <?php printSetSelectForm('admin_tbl', 'user_type', $frm['user_type'], true); ?>
    4949            </select>
  • trunk/services/templates/admin_list.ihtml

    r54 r121  
    44<?php App::printHiddenSession(false); ?>
    55<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>
    77    <br />
    88
    9     <input type="text" class="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.")); ?>" />
     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.")); ?>" />
    1010    <input type="submit" value="<?php echo _("Search"); ?>" />
    1111</div>
     
    3131    <?php for ($i = 0; $i <= $page->last_item - $page->first_item && $page->total_items > 0; $i++) { ?>
    3232    <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> &nbsp;</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> &nbsp;</td>
    35         <td class="nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> &nbsp;</td>
    36         <td class="nowrap"><?php echo oTxt($list[$i]['username'], true); ?> &nbsp;</td>
    37         <td class="nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> &nbsp;</td>
    38         <td class="nowrap"><?php echo oTxt($list[$i]['user_type'], true); ?> &nbsp;</td>
    39         <td class="nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> &nbsp;</td>
    40         <td class="nowrap"><?php
     33        <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> &nbsp;</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> &nbsp;</td>
     35        <td class="sc-nowrap"><?php echo oTxt($list[$i]['admin_id'], true); ?> &nbsp;</td>
     36        <td class="sc-nowrap"><?php echo oTxt($list[$i]['username'], true); ?> &nbsp;</td>
     37        <td class="sc-nowrap"><?php echo oTxt($list[$i]['first_name'], true); ?> <?php echo oTxt($list[$i]['last_name'], true); ?> &nbsp;</td>
     38        <td class="sc-nowrap"><?php echo oTxt($list[$i]['user_type'], true); ?> &nbsp;</td>
     39        <td class="sc-nowrap"><?php echo round($list[$i]['seconds_online'] / 60); ?> &nbsp;</td>
     40        <td class="sc-nowrap"><?php
    4141            if ($auth->isLoggedIn($list[$i]['admin_id'])) {
    4242                ?><strong><?php echo date(App::getParam('date_format'), strtotime($list[$i]['last_login_datetime'])) ?></strong><?php
     
    4545            }
    4646        ?> &nbsp;</td>
    47         <td class="nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> &nbsp;</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'])); ?> &nbsp;</td>
    49         <td class="nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> &nbsp;</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'])); ?> &nbsp;</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> &nbsp;</td>
     47        <td class="sc-nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> &nbsp;</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'])); ?> &nbsp;</td>
     49        <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?> &nbsp;</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'])); ?> &nbsp;</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> &nbsp;</td>
    5252    </tr>
    5353    <?php } ?>
     
    5555
    5656<?php if ($page->total_pages > 1) { ?>
    57 <div class="nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></div>
     57<div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></div>
    5858<?php } ?>
    5959</form>
  • trunk/services/templates/list_info.ihtml

    r42 r121  
    11<div>
    22    <?php if ($page->total_pages > 1) { ?>
    3     <span class="nowrap commanditem commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></span>
     3    <span class="sc-nowrap commanditem commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></span>
    44    <?php } ?>
    5     <span class="nowrap commanditem commandtext">
     5    <span class="sc-nowrap commanditem commandtext">
    66        <?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) ?>
    77        &nbsp;&nbsp; <a href="<?php echo App::oHREF($_SERVER['PHP_SELF'], false); ?>"><?php echo _("List all"); ?></a>
  • trunk/services/templates/log_list.ihtml

    r28 r121  
    3030    </table>
    3131<?php } ?>
    32     <input type="text" class="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."); ?>" />
     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."); ?>" />
    3333    <input type="checkbox" name="search_grep"<?php frmChecked(getFormData('search_grep')) ?> /><span class="commandtext"><?php echo _("Use Grep"); ?></span>
    3434    <input type="submit" name="list" value="<?php echo _("Search"); ?>" />
     
    4646
    4747<?php if ($page->total_pages > 1) { ?>
    48 <div class="nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></div>
     48<div class="sc-nowrap commandtext" style="float: right;"><?php echo _("Pages:"); ?>&nbsp;<?php $page->printPageNumbers() ?></div>
    4949<?php } ?>
    5050</form>
  • trunk/services/templates/login_form.ihtml

    r22 r121  
    33<table>
    44    <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>
    66        <td>
    7             <input type="text" class="small" 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']); ?>" />
    88        </td>
    99    </tr>
    1010    <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>
    1212        <td>
    13             <input type="password" class="small" 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']); ?>" />
    1414        </td>
    1515    </tr>
  • trunk/services/templates/password.ihtml

    r119 r121  
    66<table>
    77    <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>
    99        <td>
    10             <input type="password" class="medium" size="50" name="oldpassword" />
     10            <input type="password" class="sc-medium" size="50" name="oldpassword" />
    1111        </td>
    1212    </tr>
    1313    <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>
    1515        <td>
    16             <input type="password" class="medium" size="50" name="newpassword" />
     16            <input type="password" class="sc-medium" size="50" name="newpassword" />
    1717        </td>
    1818    </tr>
    1919    <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>
    2121        <td>
    22             <input type="password" class="medium" size="50" name="newpassword2" />
     22            <input type="password" class="sc-medium" size="50" name="newpassword2" />
    2323        </td>
    2424    </tr>
  • trunk/services/templates/versions_diff.ihtml

    r42 r121  
    11<div id="commandbox">
    22<?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>
    44<?php } else { ?>
    5     <span class="nowrap commandtext">&nbsp;</span>
     5    <span class="sc-nowrap commandtext">&nbsp;</span>
    66<?php } ?>
    77</div>
     
    1010<table class="list" border="0" cellspacing="0" cellpadding="4">
    1111    <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>
    1515    </tr>
    1616<?php
     
    2020    ?>
    2121    <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>
    2525    </tr>
    2626<?php } ?>
  • trunk/services/templates/versions_list.ihtml

    r49 r121  
    44<table class="list" border="0" cellspacing="0" cellpadding="4">
    55<tr>
    6     <th class="padleft" colspan="3">&nbsp;</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">&nbsp;</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>
    1010</tr>
    1111<?php
     
    1414<tr>
    1515    <?php if ($first) { ?>
    16     <td class="padleft nowrap">[<a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?op=view&current=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&current=true&version_id=' . $v['version_id']); ?>">view</a>]</td>
     17    <td class="padleft sc-nowrap" colspan="2">(<?php echo _("Current record"); ?>)</td>
    1818    <?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>
    2222    <?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>
    2626</tr>
    2727<?php
     
    3030?>
    3131</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>
    3333<input type="submit" name="op" value="<?php echo _("Cancel"); ?>" />
    3434</form>
  • trunk/services/templates/versions_view.ihtml

    r49 r121  
    11<div id="commandbox">
    22<?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>
    44<?php } else { ?>
    5     <span class="nowrap commandtext">&nbsp;</span>
     5    <span class="sc-nowrap commandtext">&nbsp;</span>
    66<?php } ?>
    77</div>
     
    1313    ?>
    1414    <tr>
    15         <td class="padleft nowrap"><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>
    1717    </tr>
    1818<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.