1: <?php
2: /**
3: * Description of jQmPage
4: *
5: * @author SARTAJ
6: */
7:
8: class jQmPage extends Control{
9: private $mcache = "true";
10: public $header = false;
11: public $footer = false;
12: public $headerbar = "";
13: public $footerbar = "";
14: public $pagename = "";
15:
16: public function oncreate($element){
17: $this->setHTMLName("");
18: $this->setHTMLID("");
19: $this->tempobj->addMetaData("jQpage",$this);
20: $this->pagename = $this->name;
21: }
22:
23: public function setCache($param) {
24: $this->mcache = $param;
25: }
26: public function setHeader($param) {
27: $this->header = true;
28: }
29: public function setFooter($param) {
30: $this->footer = true;
31: }
32:
33: public function onjsrender(){
34: $this->class = "col";
35: $this->setPreTag('<div data-dom-cache="'. $this->mcache .'" data-role="page" id="'. $this->name .'page" class="spage">' . $this->headerbar . ''
36: . '<div id="'. $this->name .'" role="main" data-role="content" class="ui-content" >
37: <div class="container-fluid">
38: <div class="row">');
39:
40: $this->setPostTag("</div></div></div>" . $this->footerbar . '</div>');
41:
42: }
43:
44:
45: }
46: