Changeset 289


Ignore:
Timestamp:
Nov 3, 2007 1:35:13 AM (17 years ago)
Author:
quinn
Message:

Modifications made for tilecity site.

Location:
branches/1.1dev
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/bin/module_maker/form_template.cli.php

    r90 r289  
    122122        <td>&nbsp;</td>
    123123        <td>
    124             <input type="checkbox" name="$field" <\x3fphp frmChecked(!empty(\$frm['$field'])) \x3f>><label><\x3fphp echo _("$title"); \x3f></label>
     124            <label><input type="checkbox" name="$field" <\x3fphp frmChecked(!empty(\$frm['$field'])) \x3f>><\x3fphp echo _("$title"); \x3f></label>
    125125        </td>
    126126    </tr>
  • branches/1.1dev/bin/module_maker/list_template.cli.php

    r185 r289  
    104104
    105105<\x3fphp include 'form_error_header.ihtml'; \x3f>
    106 <form action="<\x3fphp echo oTxt(\$_SERVER['PHP_SELF']); \x3f>" method="post">
     106<form action="<\x3fphp echo oTxt(\$_SERVER['PHP_SELF']); \x3f>" method="get">
    107107<\x3fphp printHiddenSession(false); \x3f>
    108108
     
    159159
    160160echo isset($op) ? '' : <<<E_O_F
    161         <td class="nowrap" align="right"><a title="<\x3fphp printf(_("Delete %s"), oTxt(\$list[\$i]['______RECORD_NAME______'])) \x3f>" href="<\x3fphp echo ohref(\$_SERVER['PHP_SELF'] . "?op=del&$primary_key=" . \$list[\$i]['$primary_key']); \x3f>" onClick="javascript:return confirm('<\x3fphp printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt(\$list[\$i]['______RECORD_NAME______'])) \x3f>')"><img src="<\x3fphp echo \$CFG->admin_url; \x3f>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> &nbsp;</td>
     161        <td class="nowrap" align="right"><a title="<\x3fphp printf(_("Delete %s"), oTxt(\$list[\$i]['______RECORD_NAME______'])) \x3f>" href="<\x3fphp echo ohref(\$_SERVER['PHP_SELF'] . "?op=del&$primary_key=" . \$list[\$i]['$primary_key']); \x3f>" onclick="javascript:return confirm('<\x3fphp printf(_("Are you sure you want to delete the record %s? This action is permanent and cannot be undone."), oTxt(\$list[\$i]['______RECORD_NAME______'])) \x3f>')"><img src="<\x3fphp echo \$CFG->admin_url; \x3f>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> &nbsp;</td>
    162162    </tr>
    163163    <\x3fphp } \x3f>
  • branches/1.1dev/bin/module_maker/skel/adm_list.ihtml

    r185 r289  
    1818<?php include 'adm_list_info.ihtml'; ?>
    1919
    20 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post">
     20<form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get">
    2121    <?php printHiddenSession(false); ?>
    2222    <table class="list">
     
    3232            <td class="padleft nowrap"><a title="<?php printf(_("Versions of %s"), oTxt($list[$i]['______RECORD_NAME______'])) ?>" href="<?php echo ohref("$CFG->admin_url/record_versions.php?record_table=%DB_TBL%&record_key=%PRIMARY_KEY%&boomerang=true&record_val=" . $list[$i]['%PRIMARY_KEY%']); ?>"><img src="<?php echo $CFG->admin_url; ?>/_widgets/subcategory.gif" alt="" width="18" height="14" border="0" /></a> &nbsp;</td>
    3333    %ADM_LIST_ROWS%
    34             <td class="padleft nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['______RECORD_NAME______'])) ?>" href="<?php echo ohref($_SERVER['PHP_SELF'] . "?op=del&%PRIMARY_KEY%=" . $list[$i]['%PRIMARY_KEY%']); ?>" 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]['______RECORD_NAME______'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> &nbsp;</td>
     34            <td class="padleft nowrap" align="right"><a title="<?php printf(_("Delete %s"), oTxt($list[$i]['______RECORD_NAME______'])) ?>" href="<?php echo ohref($_SERVER['PHP_SELF'] . "?op=del&%PRIMARY_KEY%=" . $list[$i]['%PRIMARY_KEY%']); ?>" 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]['______RECORD_NAME______'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> &nbsp;</td>
    3535        </tr>
    3636        <?php } ?>
  • branches/1.1dev/css/admin.inc.css

    r284 r289  
    5151    /*float: right;*/
    5252}
     53form .formtext label
     54{
     55    font-size: 100%;
     56    font-weight: normal;
     57    padding: 0;
     58}
    5359
    5460form table td {
     
    241247{
    242248    font-size: 70%;
    243     padding: 2px;
     249    padding: 2px 6px 2px 2px;
    244250    border-bottom: 1px dotted #000;
    245251}
    246252
    247 /* BEAU: The old stuff that was here...
    248 #content table
    249 {
    250          background-color: #FFF;
    251 }
    252 
    253 #content th
    254 {
    255     padding: 2px;
    256     text-align: left;
    257     vertical-align: middle;
    258     white-space: nowrap;
    259 }
    260 
    261 #content td
    262 {
    263     vertical-align: top;
    264 }
    265 
    266 #content table.list
    267 {
    268     width: 99%;
    269     margin: 4px 0;
    270     background-color: #FFF;
    271 }
    272 
    273 #content table.list th
    274 {
    275     padding-right: 6px;
    276     font-size: 70%;
    277     background-color: #CCC;
    278     border-bottom: 1px solid #000;
    279 }
    280 
    281 #content table.list td
    282 {
    283     font-size: 70%;
    284     padding: 2px;
    285     border-bottom: 1px dotted #000;
    286 }
    287 */
    288253/*_____________________ FOOTER ____________________*/
    289254#footer
  • branches/1.1dev/css/utilities.inc.css

    r81 r289  
    8080form label
    8181{
    82     padding: 7px 0px 0px 0px;
    8382    font-weight: bold;
    8483}
  • branches/1.1dev/lib/SpellCheck.inc.php

    r207 r289  
    300300                ?>
    301301                <li>
    302                 <select name="spelling_suggestions[<?php echo $form_name ?>][<?php echo $i ?>]" onChange="document.forms[0].elements['spelling_corrections[<?php echo $form_name ?>][<?php echo $i ?>]'].value = this.value;">
     302                <select name="spelling_suggestions[<?php echo $form_name ?>][<?php echo $i ?>]" onchange="document.forms[0].elements['spelling_corrections[<?php echo $form_name ?>][<?php echo $i ?>]'].value = this.value;">
    303303                <?php $original_word = array_shift($words); ?>
    304304                <option value="<?php echo $original_word ?>">(<?php echo $original_word ?>)</option>
  • branches/1.1dev/lib/TemplateGlue.inc.php

    r283 r289  
    6565    $row = mysql_fetch_row($qid);
    6666    if (preg_match('/^enum|^set/i', $row[1]) && preg_match_all("/'([^']*)'/", $row[1], $enum)) {
     67        natsort($enum[1]);
    6768        return $enum[1];
    6869    } else {
     
    292293        }
    293294    }
    294     $qid = dbQuery("SELECT $key_column, $val_column FROM $db_table $extra_clause",false);
     295    $key_column_name = preg_replace('/^.*?\.?([^\.]+)$/', '$1', $key_column);
     296    $val_column_name = preg_replace('/^.*?\.?([^\.]+)$/', '$1', $val_column);
     297    $qid = dbQuery("SELECT $key_column AS `$key_column_name`, $val_column AS `$val_column_name` FROM $db_table $extra_clause",false);
    295298    while ($row = mysql_fetch_assoc($qid)) {
    296         $selected = in_array($row[$val_column], $preselected) ? ' selected="selected"' : '';
    297         ?><option value="<?php echo $row[$val_column]; ?>"<?php echo $selected; ?>><?php echo oTxt($row[$key_column]); ?></option><?php
     299        $selected = in_array($row[$val_column_name], $preselected) ? ' selected="selected"' : '';
     300        ?><option value="<?php echo $row[$val_column_name]; ?>"<?php echo $selected; ?>><?php echo oTxt($row[$key_column_name]); ?></option><?php
    298301    }
    299302}
  • branches/1.1dev/templates/adm_admin_list.ihtml

    r185 r289  
    11
    22<?php include 'form_error_header.ihtml'; ?>
    3 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post">
     3<form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get">
    44<?php $carry_queries = array('search_query', 'filter_admin_priv'); ?>
    55<?php printHiddenSession(false); ?>
     
    4444        <td class="padleft nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> &nbsp;</td>
    4545        <td class="padleft right nowrap">
    46             <a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo ohref($CFG->admin_url . '/admins.php?op=del&admin_id=' . $list[$i]['admin_id']); ?>" onClick="javascript:return confirm('<?php printf(_("Are you sure you want to delete %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a>
     46            <a title="<?php printf(_("Delete %s"), oTxt($list[$i]['username'])) ?>" href="<?php echo ohref($CFG->admin_url . '/admins.php?op=del&admin_id=' . $list[$i]['admin_id']); ?>" onclick="javascript:return confirm('<?php printf(_("Are you sure you want to delete %s? This action is permanent and cannot be undone."), oTxt($list[$i]['username'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a>
    4747        </td>
    4848    </tr>
  • branches/1.1dev/templates/adm_log_list.ihtml

    r185 r289  
    2424                <?php if (!preg_match($no_download_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/logs.php?op=download&log=" . $l['filename']); ?>"><?php echo _("Download"); ?></a></span><?php } ?>
    2525                <?php if (!preg_match($no_archive_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/logs.php?op=archive&log=" . $l['filename']); ?>"><?php echo _("Archive"); ?></a></span><?php } ?>
    26                 <?php if (!preg_match($no_clear_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/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 reversable."), $l['filename'])?>')"><?php echo _("Clear"); ?></a></span><?php } ?>
    27                 <?php if (!preg_match($no_delete_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/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 reversable."), $l['filename'])?>')"><?php echo _("Delete"); ?></a></span><?php } ?>
     26                <?php if (!preg_match($no_clear_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/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 reversable."), $l['filename'])?>')"><?php echo _("Clear"); ?></a></span><?php } ?>
     27                <?php if (!preg_match($no_delete_files, $l['filename'])) { ?><span class="commanditem"><a href="<?php echo ohref("$CFG->admin_url/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 reversable."), $l['filename'])?>')"><?php echo _("Delete"); ?></a></span><?php } ?>
    2828            </td>
    2929        </tr><?php
Note: See TracChangeset for help on using the changeset viewer.