Changeset 56 for trunk/www/common/form.php
- Timestamp:
- Aug 4, 2009, 9:53:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/common/form.php
r54 r56 1 1 <?php 2 3 include('form_classes.php');4 2 5 3 class Form … … 9 7 var $OnSubmit = ''; 10 8 11 function __construct($ ClassName)9 function __construct($FormClass) 12 10 { 13 global $FormClasses; 14 15 if(array_key_exists($ClassName, $FormClasses)) 11 $this->Definition = $FormClass; 12 foreach($this->Definition['Items'] as $Index => $Item) 16 13 { 17 $this->Definition = &$FormClasses[$ClassName]; 18 foreach($this->Definition['Items'] as $Index => $Item) 19 { 20 $this->Values[$Index] = ''; 21 } 22 } else 23 { 24 $this->Definition = array('Title' => 'Neznámý formulář', 'Table' => '', 'Items' => array()); 25 } 14 $this->Values[$Index] = ''; 15 } 26 16 } 27 17
Note:
See TracChangeset
for help on using the changeset viewer.