예제 #1
0
 public function initialize()
 {
     $this->view->setTemplateAfter('main');
     Phalcon\Tag::setTitle('Downloads');
     $this->loadCustomTrans("downloads");
     parent::initialize();
 }
예제 #2
0
 public function initialize()
 {
     $this->view->setTemplateAfter('main');
     Phalcon\Tag::setTitle('Hypertext Preprocesor');
     $this->loadCustomTrans('index');
     parent::initialize();
 }
예제 #3
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('系统管理');
     parent::initialize();
     $this->assets->addCss("pagecss/admin.min.css");
     $this->assets->collection('footer')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("lib/dropzone.min.js");
     $this->view->setTemplateAfter('index-layout');
 }
예제 #4
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('心理健康问卷调查');
     parent::initialize();
     $this->view->setTemplateAfter("index-layout");
     if ($this->usecdn) {
         $this->assets->addCss("http://questionnaire-buaa.qiniudn.com/css/survey2.min.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/daterangepicker-bs3.css");
         $this->assets->collection("header")->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addCss("http://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/moment.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/daterangepicker.js");
     } else {
         $this->assets->addCss("css/survey.css")->addCss("css/datepicker.css");
         $this->assets->collection("header")->addJs("lib/moment.js")->addJs("js/jquery.js")->addJs("lib/daterangepicker.js")->addJs("lib/jquery.cookie.js");
     }
     $this->assets->addCss("css/buttons.css");
 }
예제 #5
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('系统管理');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://cdn.staticfile.org/jqgrid/4.6.0/css/ui.jqgrid.css")->addCss("http://cdn.staticfile.org/dropzone/3.10.2/css/dropzone.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css");
         $this->assets->collection('footer')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/twitter-bootstrap/3.3.0/js/bootstrap.min.js")->addJs("http://cdn.staticfile.org/dropzone/3.10.2/dropzone.min.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/jquery.jqGrid.src.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/i18n/grid.locale-cn.js");
     } else {
         $this->assets->addCss("pagecss/admin.min.css");
         $this->assets->collection('footer')->addJs("js/jquery.js")->addJs("lib/dropzone.min.js")->addJs("jqGrid/js/jquery.jqGrid.min.js")->addJs("jqGrid/js/i18n/grid.locale-cn.js");
     }
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js")->addJs("lib/ace-extra.min.js");
 }
예제 #6
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('欢迎登录本系统');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css");
         $this->assets->collection('header')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js");
     } else {
         $this->assets->addCss("pagecss/ace-bundle.min.css");
         $this->assets->collection('header')->addJs("js/jquery.js")->addJs("lib/jquery.qrcode.min.js");
     }
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js");
     $this->view->setTemplateAfter('backend-layout');
 }
예제 #7
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('问卷调查管理');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://cdn.staticfile.org/dropzone/3.10.2/css/dropzone.css")->addCss("http://cdn.staticfile.org/jqgrid/4.6.0/css/ui.jqgrid.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/backend.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/daterangepicker-bs3.css");
         $this->assets->collection("header")->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/twitter-bootstrap/3.3.0/js/bootstrap.min.js");
         $this->assets->collection('footer')->addJs("http://questionnaire-buaa.qiniudn.com/js/moment.js")->addJs("http://cdn.staticfile.org/dropzone/3.10.2/dropzone.min.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/daterangepicker.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/backend2.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/jquery.jqGrid.src.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/i18n/grid.locale-cn.js");
     } else {
         // 本地压缩版
         $this->assets->addCss("pagecss/index.min.css");
         $this->assets->collection("header")->addJs("js/jquery.js")->addJs("bootstrap/js/bootstrap.min.js");
         $this->assets->collection('footer')->addJs("lib/moment.js")->addJs("lib/dropzone.min.js")->addJs("lib/daterangepicker.js")->addJs("js/backend.js");
     }
     $this->assets->collection('footer')->addJs("js/ZeroClipboard.js");
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js")->addJs("lib/ace-extra.min.js");
     $this->view->setTemplateAfter('index-layout');
     date_default_timezone_set("PRC");
 }
예제 #8
0
 public function taggedAction($tag)
 {
     $tag = $this->filter->sanitize($tag, "alphanum");
     $exists = $this->view->getCache()->exists($tag);
     if (!$exists) {
         Phalcon\Tag::setTitle('Tagged ' . $tag);
         $category = Categories::findFirst("name='{$tag}'");
         if ($category == false) {
             return $this->dispatcher->forward(array('controller' => 'index', 'action' => 'index'));
         }
         $news = array();
         $newsCategories = NewsCategories::find(array("categories_id='" . $category->id . "'"));
         foreach ($newsCategories as $newCategory) {
             $news[] = $newCategory->getNews();
         }
         $this->view->setVar("activeYear", 0);
         $this->view->setVar("tag", $tag);
         $this->view->setVar("news", $news);
         $this->view->setVar("years", News::count(array('group' => 'year')));
     }
     $this->view->cache(array("lifetime" => 86400, "key" => $tag));
 }
 public function initialize()
 {
     $this->view->setTemplateAfter('main');
     Phalcon\Tag::setTitle('帮助中心');
     parent::initialize();
 }
예제 #10
0
 public function initialize()
 {
     Phalcon\Tag::setTitle('Index');
     parent::initialize();
 }
예제 #11
0
 public function initialize()
 {
     //Set the document title
     Phalcon\Tag::setTitle('Index');
     parent::initialize();
 }
예제 #12
0
 public function initialize()
 {
     Phalcon\Tag::setTitle("Your Website");
 }
예제 #13
0
 public function initialize()
 {
     $this->view->setTemplateAfter(array('main'));
     Phalcon\Tag::setTitle('Copyright');
     parent::initialize();
 }
예제 #14
0
<?php

Phalcon\Tag::setTitle('Welcome to my Page');
예제 #15
0
 public function initialize()
 {
     $this->view->setTemplateAfter('backend-temp');
     Phalcon\Tag::setTitle('BackendManager');
     parent::initialize();
 }