phpBMS

Changeset 687

Show
Ignore:
Timestamp:
12/21/09 17:33:42 (2 years ago)
Author:
brieb
Message:
  • Added ability to pass null onsubmit for form class so that form onsubmit is not shown
  • revised comments for tables clients table
Location:
trunk/phpbms/include
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/fields.php

    r645 r687  
    8282    function startForm($pageTitle){ 
    8383 
    84         ?><form action="<?php echo str_replace("&","&amp;",$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("&","&amp;",$this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" <?php 
     85                if($this->onsubmit !== NULL) { ?>onsubmit="<?php echo $this->onsubmit?>" <?php } 
    8586                if(isset($this->enctype)) echo ' enctype="'.$this->enctype.'" '; 
    8687                if(isset($this->id)) echo ' id="'.$this->id.'" '; 
  • trunk/phpbms/include/tables.php

    r674 r687  
    341341          * one of the standard names it sets the default value based on the type 
    342342          * 
     343          * @retrun array associative array with record defaults 
    343344          */ 
    344345        function getDefaults(){ 
     
    442443 
    443444 
    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         */ 
    446452        function prepareVariables($variables){ 
    447453 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.