Changeset 28497 for trunk/admin/batch_manager_unit.php
- Timestamp:
- May 18, 2014, 12:04:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager_unit.php
r28490 r28497 77 77 } 78 78 79 if ( isset($_POST['date_creation_action-'.$row['id']]))80 { 81 if ( 'set' == $_POST['date_creation_action-'.$row['id']])79 if (!empty($_POST['date_creation-'.$row['id']])) 80 { 81 if (!empty($row['date_creation'])) 82 82 { 83 $data['date_creation'] = 84 $_POST['date_creation_year-'.$row['id']] 85 .'-'.$_POST['date_creation_month-'.$row['id']] 86 .'-'.$_POST['date_creation_day-'.$row['id']]; 83 list(, $time) = explode(' ', $row['date_creation']); 87 84 } 88 else if ('unset' == $_POST['date_creation_action-'.$row['id']])85 else 89 86 { 90 $ data['date_creation'] = '';87 $time = '00:00:00'; 91 88 } 89 $data['date_creation'] = $_POST['date_creation-'.$row['id']].' '.$time; 92 90 } 93 91 else 94 92 { 95 $data['date_creation'] = $row['date_creation'];93 $data['date_creation'] = null; 96 94 } 97 95 … … 129 127 $base_url = PHPWG_ROOT_PATH.'admin.php'; 130 128 131 $month_list = $lang['month'];132 $month_list[0]='------------';133 ksort($month_list);134 135 129 $template->assign( 136 130 array( 137 131 'U_ELEMENTS_PAGE' => $base_url.get_query_string_diff(array('display','start')), 138 'F_ACTION'=>$base_url.get_query_string_diff(array()), 139 'month_list' => $month_list, 132 'F_ACTION' => $base_url.get_query_string_diff(array()), 140 133 'level_options' => get_privacy_level_options(), 141 134 ) … … 233 226 if (!empty($row['date_creation'])) 234 227 { 235 list($ year,$month,$day) = explode('-', $row['date_creation']);228 list($date) = explode(' ', $row['date_creation']); 236 229 } 237 230 else 238 231 { 239 list($year,$month,$day) = array('',0,0);232 $date = ''; 240 233 } 241 234 … … 268 261 'LEVEL' => !empty($row['level'])?$row['level']:'0', 269 262 'DESCRIPTION' => htmlspecialchars(@$row['comment']), 270 'DATE_CREATION_YEAR' => $year, 271 'DATE_CREATION_MONTH' => (int)$month, 272 'DATE_CREATION_DAY' => (int)$day, 263 'DATE_CREATION' => $date, 273 264 'TAGS' => $tag_selection, 274 265 )
Note: See TracChangeset
for help on using the changeset viewer.