| 1: | <?php
|
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: |
|
| 7: |
|
| 8: | class jQmPage extends Sphp\tools\Component{
|
| 9: | private $mcache = "true";
|
| 10: | public $header = false;
|
| 11: | public $footer = false;
|
| 12: | public $headerbar = "";
|
| 13: | public $footerbar = "";
|
| 14: | public $pagename = "";
|
| 15: |
|
| 16: | protected function oncreate($element){
|
| 17: | $this->setHTMLName("");
|
| 18: | $this->setHTMLID("");
|
| 19: | $this->frontobj->addMetaData("jQpage",$this);
|
| 20: | $this->pagename = $this->name;
|
| 21: | }
|
| 22: |
|
| 23: | public function fu_setCache($param) {
|
| 24: | $this->mcache = $param;
|
| 25: | }
|
| 26: | public function fu_setHeader($param) {
|
| 27: | $this->header = true;
|
| 28: | }
|
| 29: | public function fu_setFooter($param) {
|
| 30: | $this->footer = true;
|
| 31: | }
|
| 32: |
|
| 33: | protected 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: | |