Changeset 323
- Timestamp:
- Apr 24, 2008 5:53:05 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/sql.cli.php
r154 r323 75 75 $c[$field] = "'\" . isset(\$frm['$field']) . \"'"; 76 76 } else if ('added_by_user_id' == $field || 'modified_by_user_id' == $field) { 77 // Toggle types.77 // Expects a user_id. 78 78 $c[$field] = "'\" . \$db->escapeString(\$auth->get('user_id')) . \"'"; 79 79 } else if ('added_datetime' == $field || 'modified_datetime' == $field) { 80 80 // DB record insertion datetime. 81 81 $c[$field] = "NOW()"; 82 } else if (preg_match('/date_|_date/', $field)) { 83 // This is a date field. Convert to SQL date. 84 $c[$field] = "'\" . \$db->escapeString(strToSQLDate(\$frm['$field'])) . \"'"; 82 85 } else { 83 86 // Default. Just insert data. -
trunk/css/admin2.inc.css
r320 r323 53 53 } 54 54 55 #container-columns { 56 width: 100%; 57 } 58 55 59 /*_____________________ HEADER ____________________*/ 56 60 #userinfo { … … 89 93 /*_____________________ NAVIGATION ____________________*/ 90 94 #leftnav { 91 float: left; 95 /* float: left; */ 92 96 width: 9em; 93 97 margin: 0 0 10px 0; 94 /* border-right: 1px solid gray; */95 98 padding: 0; 96 99 background-color: #EEE; … … 100 103 padding: 0; 101 104 margin: 0; 102 width: 9em;103 105 } 104 106 … … 140 142 /*_____________________ CONTENT ____________________*/ 141 143 #content { 142 width: 100%; 144 /* width: 100%; */ 143 145 /* margin-left: 1em; */ 144 border-left: 1px solid gray; 146 /* border-left: 1px solid gray; */ 145 147 padding: 0.75em 0.5em 15px 0.75em; 146 148 background-color: #FFF; -
trunk/lib/TemplateGlue.inc.php
r295 r323 321 321 if (is_array($blank)) { 322 322 foreach ($blank as $key=>$val) { 323 $selected = in_array($ val, $preselected) ? ' selected="selected"' : '';323 $selected = in_array($key, $preselected) ? ' selected="selected"' : ''; 324 324 ?><option value="<?php echo $key; ?>"<?php echo $selected; ?>><?php echo oTxt($val); ?></option> 325 325 <?php
Note: See TracChangeset
for help on using the changeset viewer.