Example #1
0
 public function hotline()
 {
     $url = new Zend_View();
     $url = $url->baseUrl();
     $page = new Default_Model_Page();
     $hot = $page->page_3(9);
     $down = $page->page_3(13);
     echo " <div class=\"heed\"> ";
     foreach ($hot as $val) {
         echo "<div class=\"heed_1\">{$val['content']}</div>  ";
     }
     echo " <div class=\"heed_2\">";
     foreach ($down as $val) {
         echo "      <div class=\"heed_2_1\" >{$val['content']}  </div>";
     }
     echo "<div class=\"heed_2_2\" >\n                <a href=\"javascript:void(0)\">  <img src=\"{$url}/template/images/face_03.jpg\" ></a>\n                <a href=\"javascript:void(0)\">   <img src=\"{$url}/template/images/g+_03.jpg\" > </a>\n                <a href=\"javascript:void(0)\">   <img src=\"{$url}/template/images/tw_03.jpg\" > </a>\n                <a href=\"javascript:void(0)\">   <img src=\"{$url}/template/images/youtube_03.jpg\" > </a>\n                <a href=\"javascript:void(0)\">   <img src=\"{$url}/template/images/zing_03.jpg\" > </a>\n            </div>\n        </div>\n    </div> ";
 }
 public function detailpageAction()
 {
     $system = new Default_Model_Page();
     $id = $this->_request->getParam('id');
     $this->view->id = $id;
     $menu = $this->_request->getParam('menu');
     $this->view->menu = $menu;
     $list = $system->page_3($menu);
     $this->view->books = $list;
     $list_1 = $system->list_Page_1($id);
     $this->view->bookss = $list_1;
     $paginator = Zend_Paginator::factory($system->list_Page_3($id));
     $paginator->setItemCountPerPage(10);
     $paginator->setPageRange(5);
     $currentPage = $this->_request->getParam('page', 1);
     $paginator->setCurrentPageNumber($currentPage);
     $this->view->booksss = $paginator;
     $list_3 = $system->list_Page_4($id, $menu);
     $this->view->bookk = $list_3;
     $comment = $system->list_comment($id);
     $this->view->comment = $comment;
 }
Example #3
0
 function suppor_online()
 {
     echo " <div class=\"title1\">\n        <div style=\"padding-top:10px;\" align=\"center\">Tư Vấn Bán Hàng</div>\n        </div>\n        <div class=\"hotro\" align=\"center\">";
     $page = new Default_Model_Page();
     $hotline = $page->page_3(57);
     foreach ($hotline as $value) {
         echo $value['content'];
     }
     echo "<div style=\"clear:both; height:5px;\"></div>\n</div>";
 }