Example #1
0
 protected function toHidden($exemptVars)
 {
     $hiddenVars = $this->respVars->del($this->navVar)->toHidden(false);
     foreach ($this->formVars as $key => $val) {
         if (!in_array($key, $exemptVars)) {
             $hiddenVars .= Tag::hidden($this->toFormName($key), $val);
         }
     }
     return $hiddenVars;
 }
Example #2
0
 /**
  * @return string
  */
 public function toHidden($guard = true)
 {
     if ($guard) {
         $this->addCSRFGuard();
     }
     TamperGuard::add($this);
     $html = '';
     $this->convertFormVarsToAssocArray();
     foreach ($this->intermediateHiddenArray as $key => $val) {
         $cypherText = $this->encryptValue($key, $val);
         $html .= Tag::hidden($key, $cypherText);
     }
     TamperGuard::del($this);
     if ($guard) {
         $this->delCSRFGuard();
     }
     return $html;
 }
Example #3
0
 /** Creates a Dual Select windows
  * @param string $lName Left Column name
  * @param array $lList Left Column name
  * @param string $rName Right Column name
  * @param array $rList Right Column name
  * @param int $ht Height
  * @returns String The Html pf a dual select
  */
 public static function dualSelect($lName, $lList, $rName, $rList, $ht = 8)
 {
     $title = array("title" => "Select items is the left list to move to the selected list. " . "Move items in the right list to remove from the selected list. " . "Select buttons in the moddle to move all the items in the list");
     $msg = "";
     $msg .= Tag::table($title);
     $msg .= Tag::tr();
     $msg .= Tag::td("align=center");
     $msg .= "Out of List<br>";
     $msg .= Lists::select($lName, $lList, "onChange=\"selMove ( '{$lName}','{$rName}',false );\" Size={$ht} Multiple");
     $msg .= Tag::_td();
     $msg .= Tag::td("valign=middle");
     $msg .= "<br>" . Tag::button(">>", "onClick=\"selMove ( '{$lName}','{$rName}',true );\"");
     $msg .= "<br>" . Tag::button("<<", "onClick=\"selMove ( '{$rName}','{$lName}',true );\"");
     $msg .= Tag::_td();
     $msg .= Tag::td("align=center");
     $msg .= "In the List<br>";
     $msg .= Lists::select($rName, $rList, "onChange=\"selMove ( '{$rName}','{$lName}',false );\" Size={$ht} Multiple");
     $msg .= Tag::hidden($rName . "Result");
     $msg .= Tag::_td();
     $msg .= Tag::_tr();
     $msg .= Tag::_table();
     return $msg;
 }