Changeset 687
- Timestamp:
- 12/21/09 17:33:42 (2 years ago)
- Location:
- trunk/phpbms/include
- Files:
-
- 2 modified
-
fields.php (modified) (1 diff)
-
tables.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/fields.php
r645 r687 82 82 function startForm($pageTitle){ 83 83 84 ?><form action="<?php echo str_replace("&","&",$this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" onsubmit="<?php echo $this->onsubmit?>" <?php 84 ?><form action="<?php echo str_replace("&","&",$this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" <?php 85 if($this->onsubmit !== NULL) { ?>onsubmit="<?php echo $this->onsubmit?>" <?php } 85 86 if(isset($this->enctype)) echo ' enctype="'.$this->enctype.'" '; 86 87 if(isset($this->id)) echo ' id="'.$this->id.'" '; -
trunk/phpbms/include/tables.php
r674 r687 341 341 * one of the standard names it sets the default value based on the type 342 342 * 343 * @retrun array associative array with record defaults 343 344 */ 344 345 function getDefaults(){ … … 442 443 443 444 444 // This is a placeholder function for preparing variables form a form 445 // In most cases it is overriden. 445 /** 446 * prepares variables (usually from a form) for inserting or updating 447 * 448 * @param array $variables associative array with the record information 449 * 450 * @return array associative array with the record information 'prepped' 451 */ 446 452 function prepareVariables($variables){ 447 453