- Timestamp:
- Oct 14, 2008, 9:24:18 AM (16 years ago)
- Location:
- types
- Files:
-
- 3 added
- 3 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>'; -
types/Float.php
r11 r14 7 7 } 8 8 9 function TypeFloat EditHtml($Item)9 function TypeFloatOnEdit($Item) 10 10 { 11 11 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'">'; -
types/include.php
r13 r14 9 9 include('types/PointerOneToOne.php'); 10 10 include('types/Date.php'); 11 include('types/DateTime.php'); 11 12 include('types/Password.php'); 12 13 include('types/Float.php'); 13 14 include('types/Hyperlink.php'); 14 15 include('types/Hidden.php'); 16 include('types/File.php'); 15 17 16 18 ?>
Note:
See TracChangeset
for help on using the changeset viewer.