Changeset 8 for types/Date.php
- Timestamp:
- Sep 29, 2008, 2:35:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Date.php
r5 r8 3 3 $MonthList = array('0', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'); 4 4 5 function TypeDateViewHtml($Type, $ Parameter, $Table, $Id)5 function TypeDateViewHtml($Type, $Item) 6 6 { 7 7 global $MonthList; 8 8 9 $Parts = explode('-', $ Parameter);9 $Parts = explode('-', $Item['Value']); 10 10 11 11 $Output = ($Parts[2] * 1).'.'.$MonthList[$Parts[1] * 1].'.'.$Parts[0]; … … 13 13 } 14 14 15 function TypeDateEditHtml($Type, $ Parameter, $Table, $Id)15 function TypeDateEditHtml($Type, $Item) 16 16 { 17 17 global $MonthList; 18 18 19 $Parts = explode('-', $ Parameter);19 $Parts = explode('-', $Item['Value']); 20 20 21 21 // Day 22 $Output = '<select name=" %name%-day">';22 $Output = '<select name="'.$Item['Name'].'-day">'; 23 23 for($I = 1; $I <= 31; $I++) 24 24 { … … 28 28 $Output .= '</select>'; 29 29 // Month 30 $Output .= '<select name=" %name%-month">';30 $Output .= '<select name="'.$Item['Name'].'-month">'; 31 31 for($I = 1; $I <= 12; $I++) 32 32 { … … 36 36 $Output .= '</select>'; 37 37 // Year 38 $Output .= '<select name=" %name%-month">';38 $Output .= '<select name="'.$Item['Name'].'-month">'; 39 39 for($I = 1900; $I < 2100; $I++) 40 40 {
Note:
See TracChangeset
for help on using the changeset viewer.