charset); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); print ''; print "\n"; print $this->hasChilds()?'':''; print "\n"; if($this->upperUrl) { $url = $this->upperUrl; printf('%s', $url->url, $url->text, "\n"); } } /** * @brief Output title **/ function printTitle() { if($this->totalPage > $this->mobilePage) $titlePageStr = sprintf("(%d/%d)",$this->mobilePage, $this->totalPage); printf('<%s%s>%s', $this->title,$titlePageStr,"\n"); } /** * @brief Output information * hasChilds() if there is a list of content types, otherwise output **/ function printContent() { if($this->hasChilds()) { foreach($this->getChilds() as $key => $val) { if(!$val['link']) continue; printf('%s%s',lang('cmd_select'), $val['href'], $val['text'], "\n"); } } else { printf('%s
%s', $this->getContent(),"\n"); } } /** * @brief Button to output **/ function printBtn() { // Menu Types if($this->hasChilds()) { if($this->nextUrl) { $url = $this->nextUrl; printf('%s%s', $url->text, $url->url, $url->text, "\n"); } if($this->prevUrl) { $url = $this->prevUrl; printf('%s%s', $url->text, $url->url, $url->text, "\n"); } if($this->homeUrl) { $url = $this->homeUrl; printf('%s%s', $url->text, $url->url, $url->text, "\n"); } // Content Types } else { if($this->nextUrl) { $url = $this->nextUrl; printf('%s', $url->text, $url->url, $url->text); } if($this->prevUrl) { $url = $this->prevUrl; printf('%s', $url->text, $url->url, $url->text); } if($this->homeUrl) { $url = $this->homeUrl; printf('%s', $url->text, $url->url, $url->text); } } } /** * @brief Footer information output **/ function printFooter() { print $this->hasChilds()?'
':''; print "\n"; print("
"); } } /* End of file hdml.class.php */ /* Location: ./addons/mobile/classes/hdml.class.php */