Changeset 14
- Timestamp:
- Oct 14, 2008, 9:24:18 AM (16 years ago)
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
base.php
r13 r14 493 493 while($DbRow = $DbResult->fetch_assoc()) 494 494 { 495 $Database->query($Query); 495 $Database->query($Query); 496 496 } 497 497 } -
forms.php
r13 r14 20 20 { 21 21 $this->DefinitionTextTypeToNumericType(); 22 $Output = '<center><form action="'.$this->OnSubmit.'" method="post"><div align="center">';22 $Output = '<center><form enctype="multipart/form-data" action="'.$this->OnSubmit.'" method="post"><div align="center">'; 23 23 $Table = $this->ShowEditBlock(); 24 24 $Output .= $this->Definition['Title'].Table($Table).$this->ShowHiddenBlock().'<input type="submit" value="'.$this->Definition['SubmitBuffonText'].'"></div></form>'; … … 41 41 if(!array_key_exists($Index, $this->Values) and isset($Item['Value'])) $this->Values[$Index] = $Item['Value']; 42 42 $Edit = ExecuteTypeEvent($Item['Type'], 'OnEdit', $Item); 43 array_push($Table['Rows'], array($Item['Caption'] .':', $Edit));43 array_push($Table['Rows'], array($Item['Caption'], $Edit)); 44 44 } 45 45 } … … 88 88 if(!array_key_exists($Item['Name'], $this->Values) and isset($Item['Value'])) $this->Values[$Item['Name']] = $Item['Value']; 89 89 $Edit = ExecuteTypeEvent($Item['Type'], 'OnView', $Item); 90 array_push($Table['Rows'], array($Item['Caption'] .':', $Edit));90 array_push($Table['Rows'], array($Item['Caption'], $Edit)); 91 91 } 92 92 return($Table); -
global.php
r13 r14 157 157 } 158 158 159 $UnitNames = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB'); 160 161 function HumanSize($Value) 162 { 163 global $UnitNames; 164 165 $UnitIndex = 0; 166 while($Value > 1024) 167 { 168 $Value = round($Value / 1024); 169 $UnitIndex++; 170 } 171 return($Value.' '.$UnitNames[$UnitIndex]); 172 } 173 159 174 ?> -
style.css
r9 r14 61 61 border-style: solid; 62 62 border-width: 1px; 63 padding: 3px;63 padding: 1px 3px 1px 3px; 64 64 } 65 65 -
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.