Changeset 20531
- Timestamp:
- Feb 3, 2013, 4:25:52 PM (11 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r19703 r20531 147 147 $_POST['date_creation_year'] 148 148 .'-'.$_POST['date_creation_month'] 149 .'-'.$_POST['date_creation_day']; 149 .'-'.$_POST['date_creation_day'] 150 .' '.$_POST['date_creation_time']; 150 151 } 151 152 else … … 350 351 and 'set' == $_POST['date_creation_action']) 351 352 { 352 foreach (array('day', 'month', 'year' ) as $varname)353 foreach (array('day', 'month', 'year', 'time') as $varname) 353 354 { 354 355 $$varname = $_POST['date_creation_'.$varname]; … … 357 358 else if (isset($row['date_creation']) and !empty($row['date_creation'])) 358 359 { 359 list($year, $month, $day) = explode('-', $row['date_creation']); 360 list($year, $month, $day) = explode('-', substr($row['date_creation'],0,10)); 361 $time = substr($row['date_creation'],11); 360 362 } 361 363 else 362 364 { 363 365 list($year, $month, $day) = array('', 0, 0); 366 $time = '00:00:00'; 364 367 } 365 368 … … 374 377 'DATE_CREATION_MONTH_VALUE' => $month, 375 378 'DATE_CREATION_YEAR_VALUE' => $year, 379 'DATE_CREATION_TIME_VALUE' => $time, 376 380 'month_list' => $month_list, 377 381 ) -
trunk/admin/themes/default/template/picture_modify.tpl
r13576 r20531 105 105 <input id="date_creation_year" name="date_creation_year" type="text" size="4" maxlength="4" value="{$DATE_CREATION_YEAR_VALUE}"> 106 106 <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> 107 <a href="#" id="unset_date_creation" style="display:none">unset</a> 107 <input name="date_creation_time" type="hidden" value="{$DATE_CREATION_TIME_VALUE}"> 108 <a href="#" id="unset_date_creation" style="display:none">unset</a> 108 109 </p> 109 110
Note: See TracChangeset
for help on using the changeset viewer.