Changeset 13 for trunk/class
- Timestamp:
- Jun 19, 2012, 10:47:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Form.php
r11 r13 26 26 <table>'); 27 27 28 foreach($this->inputs as $ name => $type)28 foreach($this->inputs as $input) 29 29 { 30 if ($type == 'submit') { 31 echo '<tr><td><input type="'.$type.'" value="'.$name.'" /></td></tr>'; 32 } else { 33 echo '<tr><td><input type="'.$type.'" name="'.$name.'" /></td></tr>'; 34 } 30 echo '<tr>'; 31 32 if (isset($input['description'])) echo '<td>'.$input['description'].'</td>'; 33 else echo '<td></td>'; 34 35 echo '<td><input '; 36 37 if (isset($input['type'])) echo 'type="'.$input['type'].'" '; 38 if (isset($input['name'])) echo 'name="'.$input['name'].'" '; 39 if (isset($input['value'])) echo 'value="'.$input['value'].'" '; 40 41 echo '/></td></tr>'; 35 42 } 36 43
Note:
See TracChangeset
for help on using the changeset viewer.