/**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate loadFromForm() call
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function loadFromForm()
 {
     parent::loadFromForm();
     // 	    $this->formName = $_REQUEST['form_name'];
     //
     // // 	   echo 'Inside load_from_form of main page: <pre>'.print_r($this->formValues,true).'</pre><br>';
     //
     // 		switch($this->formName) {
     //
     // 			case 'basicStaffForm':
     //
     // 				$this->active_subPage = $this->basic_form;
     // 				break;
     // 			case 'scheduledActivityForm':
     // 				$this->active_subPage = $this->optional_sheduled_activity_form;
     // 				break;
     // 			default:
     // 				die('VALID FORM NAME **NOT** FOUND; name = '.$this->formName);
     // 		}
     // 		$this->active_subPage->loadFromForm();
     // 		$this->form_submitted = true;
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate loadFromForm() call
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function loadFromForm()
 {
     parent::loadFromForm();
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form.
  * </pre>
  * @return [void]
  */
 function loadFromForm()
 {
     parent::loadFromForm();
     /*
      * Put any additional data manipulations here.
      * if you don't need to do anything else, you should 
      * just remove this method and let the parent method get
      * called directly.
      */
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form.
  * </pre>
  * @return [void]
  */
 function loadFromForm()
 {
     parent::loadFromForm();
     // if the button pressed was a 'Delete?' confirmation then
     if (isset($_REQUEST['submit'])) {
         if ($_REQUEST['submit'] == $this->labels->getLabel('[Delete?]')) {
             // set shouldDelete
             $this->shouldDelete = true;
         }
     }
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate loadFromForm() call
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function loadFromForm()
 {
     $this->formName = $_REQUEST['form_name'];
     //	   echo 'Inside load_from_form of main page: <pre>'.print_r($this->formValues,true).'</pre><br>';
     switch ($this->formName) {
         case 'scholarshipForm':
             $this->active_subPage = $this->scholarship_subPage;
             break;
         case 'cashTransForm':
             $this->active_subPage = $this->cashTrans_subPage;
             break;
         case 'ccTransForm':
             $this->active_subPage = $this->ccTrans_subPage;
             break;
         case 'fieldValuesForm':
             $this->active_subPage = $this->fieldValues_subPage;
             break;
         case 'regStatusForm':
             $this->active_subpage = null;
             break;
         default:
             die('VALID FORM NAME **NOT** FOUND; name = ' . $this->formName);
     }
     if ($this->active_subPage == null) {
         parent::loadFromForm();
     } else {
         $this->active_subPage->loadFromForm();
     }
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form. Because this page is made up of 
  * sub-pages we just need to figure out the appropriate loadFromForm() call
  * </pre>
  * Precondition: sub-page objects must be initialized
  * @return [void]
  */
 function loadFromForm()
 {
     $this->formName = $_REQUEST['form_name'];
     // 	   echo 'Inside load_from_form of main page: <pre>'.print_r($this->formValues,true).'</pre><br>';
     switch ($this->formName) {
         case 'basicStaffForm':
             $this->active_subPage = $this->basic_form;
             break;
         case 'scheduledActivityForm':
             $this->active_subPage = $this->optional_sheduled_activity_form;
             break;
         case 'approvalForm':
             $this->active_subpage = null;
             break;
         default:
             die('VALID FORM NAME **NOT** FOUND; name = ' . $this->formName);
     }
     if ($this->active_subPage == null) {
         parent::loadFromForm();
     } else {
         $this->active_subPage->loadFromForm();
     }
     $this->form_submitted = true;
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form.
  * </pre>
  * @return [void]
  */
 function loadFromForm()
 {
     parent::loadFromForm();
     $stateVarID = $this->formValues['statevar_id'];
     if ($stateVarID == '-') {
         $this->formValues['statevar_id'] = -1;
     }
     $daType = $_REQUEST['dbType'];
     $daTypeModifier = $_REQUEST['dbTypeModifier'];
     $this->formValues['dbType'] = $daType;
     $this->formValues['dbTypeModifier'] = $daTypeModifier;
     // The value for the dafield_dbType field is actually derived from
     // 2 form elements : dbType  &  dbTypeModifier
     switch ($daType) {
         case 'int':
         case 'varchar':
         case 'enum':
             $this->formValues['dafield_dbType'] = $daType . '(' . $daTypeModifier . ')';
             break;
         case 'timestamp':
             $this->formValues['dafield_dbType'] = $daType . '(14)';
             break;
         default:
             $this->formValues['dafield_dbType'] = $daType;
             break;
     }
     // if the button pressed was a 'Delete?' confirmation then
     if (isset($_REQUEST['submit'])) {
         if ($_REQUEST['submit'] == $this->labels->getLabel('[Delete?]')) {
             // set shouldDelete
             $this->shouldDelete = true;
         }
     }
 }
 /**
  * function loadFromForm
  * <pre>
  * Loads the data from the submitted form.
  * </pre>
  * @return [void]
  */
 function loadFromForm()
 {
     // for each rowItem in family ...
     $this->rowManager->setFirst();
     while ($rowItem = $this->rowManager->getNext()) {
         parent::loadFromForm($rowItem->getPrimaryKeyValue());
     }
     // next rowItem
 }