1: <?php
2:
3: /**
4: * Description of Frame
5: *
6: * @author SARTAJ
7: */
8:
9: namespace Sphp\Comp\Form{
10:
11: class Frame extends \Sphp\tools\Component {
12: private $recID = 'txtid2';
13: private $txtid2 = '';
14:
15: protected function oninit() {
16: $this->tagName = "div";
17: $this->HTMLName = "";
18: $this->recID = $this->HTMLName . 're';
19: if (\SphpBase::sphp_request()->request($this->recID) !== "") {
20: $this->txtid2 = urldecode(\SphpBase::sphp_request()->request($this->recID));
21: if(isSecureVal($this->txtid2)){
22: $this->txtid2 = secure2Val($this->txtid2);
23: if($this->txtid2 == "") setErr("App", "Invalid Form Data");
24: }
25: }
26: }
27:
28: public function getRecID() {
29: return $this->txtid2;
30: }
31:
32: public function setRecID($v) {
33: $this->txtid2 = $v;
34: }
35:
36: protected function onrender() {
37: if($this->txtid2 != ""){
38: $this->txtid2 = urlencode(val2Secure($this->txtid2));
39: }
40: $hdn = "<input type=\"hidden\" name=\"" . $this->recID . "\" value=\"" . $this->txtid2 . "\" />";
41: $this->appendHTML($hdn);
42: $this->element->appendAttribute("class", "px-4 py-4");
43: }
44:
45: }
46:
47: }
48: