Changeset 289 for branches/1.1dev
- Timestamp:
- Nov 3, 2007 1:35:13 AM (17 years ago)
- Location:
- branches/1.1dev
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/bin/module_maker/form_template.cli.php
r90 r289 122 122 <td> </td> 123 123 <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> 125 125 </td> 126 126 </tr> -
branches/1.1dev/bin/module_maker/list_template.cli.php
r185 r289 104 104 105 105 <\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"> 107 107 <\x3fphp printHiddenSession(false); \x3f> 108 108 … … 159 159 160 160 echo 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>" on Click="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> </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> </td> 162 162 </tr> 163 163 <\x3fphp } \x3f> -
branches/1.1dev/bin/module_maker/skel/adm_list.ihtml
r185 r289 18 18 <?php include 'adm_list_info.ihtml'; ?> 19 19 20 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method=" post">20 <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="get"> 21 21 <?php printHiddenSession(false); ?> 22 22 <table class="list"> … … 32 32 <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> </td> 33 33 %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%']); ?>" 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]['______RECORD_NAME______'])) ?>')"><img src="<?php echo $CFG->admin_url; ?>/_widgets/delete.gif" alt="Delete" width="16" height="17" border="0"></a> </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> </td> 35 35 </tr> 36 36 <?php } ?> -
branches/1.1dev/css/admin.inc.css
r284 r289 51 51 /*float: right;*/ 52 52 } 53 form .formtext label 54 { 55 font-size: 100%; 56 font-weight: normal; 57 padding: 0; 58 } 53 59 54 60 form table td { … … 241 247 { 242 248 font-size: 70%; 243 padding: 2px ;249 padding: 2px 6px 2px 2px; 244 250 border-bottom: 1px dotted #000; 245 251 } 246 252 247 /* BEAU: The old stuff that was here...248 #content table249 {250 background-color: #FFF;251 }252 253 #content th254 {255 padding: 2px;256 text-align: left;257 vertical-align: middle;258 white-space: nowrap;259 }260 261 #content td262 {263 vertical-align: top;264 }265 266 #content table.list267 {268 width: 99%;269 margin: 4px 0;270 background-color: #FFF;271 }272 273 #content table.list th274 {275 padding-right: 6px;276 font-size: 70%;277 background-color: #CCC;278 border-bottom: 1px solid #000;279 }280 281 #content table.list td282 {283 font-size: 70%;284 padding: 2px;285 border-bottom: 1px dotted #000;286 }287 */288 253 /*_____________________ FOOTER ____________________*/ 289 254 #footer -
branches/1.1dev/css/utilities.inc.css
r81 r289 80 80 form label 81 81 { 82 padding: 7px 0px 0px 0px;83 82 font-weight: bold; 84 83 } -
branches/1.1dev/lib/SpellCheck.inc.php
r207 r289 300 300 ?> 301 301 <li> 302 <select name="spelling_suggestions[<?php echo $form_name ?>][<?php echo $i ?>]" on Change="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;"> 303 303 <?php $original_word = array_shift($words); ?> 304 304 <option value="<?php echo $original_word ?>">(<?php echo $original_word ?>)</option> -
branches/1.1dev/lib/TemplateGlue.inc.php
r283 r289 65 65 $row = mysql_fetch_row($qid); 66 66 if (preg_match('/^enum|^set/i', $row[1]) && preg_match_all("/'([^']*)'/", $row[1], $enum)) { 67 natsort($enum[1]); 67 68 return $enum[1]; 68 69 } else { … … 292 293 } 293 294 } 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); 295 298 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><?php299 $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 298 301 } 299 302 } -
branches/1.1dev/templates/adm_admin_list.ihtml
r185 r289 1 1 2 2 <?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"> 4 4 <?php $carry_queries = array('search_query', 'filter_admin_priv'); ?> 5 5 <?php printHiddenSession(false); ?> … … 44 44 <td class="padleft nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?> </td> 45 45 <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']); ?>" on Click="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> 47 47 </td> 48 48 </tr> -
branches/1.1dev/templates/adm_log_list.ihtml
r185 r289 24 24 <?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 } ?> 25 25 <?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']); ?>" on Click="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']); ?>" on Click="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 } ?> 28 28 </td> 29 29 </tr><?php
Note: See TracChangeset
for help on using the changeset viewer.