Changeset 14 for types/Date.php
- Timestamp:
- Oct 14, 2008, 9:24:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Date.php
r11 r14 1 1 <?php 2 3 $MonthList = array('0', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec');4 2 5 3 function TypeDateOnView($Item) 6 4 { 7 global $Month List;5 global $MonthNames; 8 6 9 7 $Parts = explode('-', $Item['Value']); 10 8 11 $Output = ($Parts[2] * 1).'.'.$Month List[$Parts[1] * 1].'.'.$Parts[0];9 $Output = ($Parts[2] * 1).'.'.$MonthNames[$Parts[1] * 1].' '.$Parts[0]; 12 10 return($Output); 13 11 } … … 15 13 function TypeDateOnEdit($Item) 16 14 { 17 global $Month List;15 global $MonthNames; 18 16 19 17 $Parts = explode('-', $Item['Value']); … … 32 30 { 33 31 if($Parts[1] == $I) $Selected = ' selected="1"'; else $Selected = ''; 34 $Output .= '<option value="'.$I.'"'.$Selected.'>'.$Month List[$I].'</option>';32 $Output .= '<option value="'.$I.'"'.$Selected.'>'.$MonthNames[$I].'</option>'; 35 33 } 36 34 $Output .= '</select>';
Note:
See TracChangeset
for help on using the changeset viewer.