Esempio n. 1
0
 public static function use_javascripts()
 {
     $apf = APF::get_instance()->get_request();
     $path = apf_classname_to_path(__CLASS__);
     $pageType = $apf->get_attribute('pageType');
     $script = array($path . 'HouseManageV2.js');
     return array_merge(parent::use_javascripts(), $script);
 }
Esempio n. 2
0
 public static function use_javascripts()
 {
     $apf = APF::get_instance()->get_request();
     $path = apf_classname_to_path(__CLASS__);
     $pageType = $apf->get_attribute('pageType');
     $script = array($path . 'HouseManage.js', PageHelper::pure_static_url("/js/jquery.cookie.js"));
     if ($pageType == 'ajk') {
         $script = array($path . 'HouseManageAjk.js');
     }
     return array_merge(parent::use_javascripts(), $script);
 }
Esempio n. 3
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     $request = APF::get_instance()->get_request();
     $pageType = $request->get_attribute('pageType');
     $style = array($path . 'Proplist.css');
     if ($pageType == 'ajk') {
         $style = array($path . 'ProplistAjk.css');
     }
     return array_merge(parent::use_boundable_styles(), $style);
 }
Esempio n. 4
0
 public function real_component()
 {
     $view = $this->get_view();
     if ($view) {
         $file = "component/" . apf_classname_to_path(get_class($this)) . $view . '.phtml';
         global $G_LOAD_PATH;
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file);
                 break;
             }
         }
     }
 }
Esempio n. 5
0
 public function real_page()
 {
     $view = $this->get_view();
     if ($view) {
         $file = "page/" . apf_classname_to_path(get_class($this)) . $view . ".phtml";
         global $G_LOAD_PATH;
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file, FALSE);
                 break;
             }
         }
     }
 }
Esempio n. 6
0
 public static function use_boundable_styles()
 {
     //todo 单独资源加载的时候没有设置对应controller的变量,下面的实现无效
     $apf = APF::get_instance();
     $request = $apf->get_request();
     $attributes = $request->get_attributes();
     switch ($attributes['business']) {
         case 'ajk':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_styles(), array($path . 'ManageAjk.css'));
             break;
         case 'hz':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_styles(), array($path . 'ManageHz.css'));
             break;
         case 'jp':
             $path = apf_classname_to_path(__CLASS__);
             return array_merge(parent::use_boundable_styles(), array($path . 'ManageJp.css'));
             break;
         default:
             return false;
     }
 }
Esempio n. 7
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "common.js", $path . "Dialog.js");
 }
Esempio n. 8
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "../js/highcharts/js/highcharts.js", $path . "../js/highcharts/js/modules/exporting.js", $path . "UserOnlineBug.js"));
 }
Esempio n. 9
0
 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_styles(), array($path . "Download.css", $path . "common.css"));
 }
Esempio n. 10
0
 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Debug.css");
 }
Esempio n. 11
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . "User.css"));
 }
Esempio n. 12
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(array($path . 'Register.css'));
 }
Esempio n. 13
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array(array($path . "WechatBase.js", PHP_INT_MAX)));
 }
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "BrokerRegisterFooter.css");
 }
Esempio n. 15
0
 /**
  * 载入组件显示页面
  */
 public function execute()
 {
     $view = $this->get_view();
     if ($view) {
         $f = apf_classname_to_path(get_class($this)) . $view . '.phtml';
         $file = "component/" . $f;
         global $G_LOAD_PATH, $cached_files;
         if (defined('CACHE_PATH')) {
             $cf = apf_class_to_cache_file($f, "component");
             if (file_exists($cf)) {
                 $this->render($cf);
                 return;
             }
         }
         foreach ($G_LOAD_PATH as $path) {
             if (file_exists($path . $file)) {
                 $this->render($path . $file);
                 if (defined('CACHE_PATH')) {
                     apf_save_to_cache($f, "component", $path . $file);
                 }
                 break;
             }
         }
     }
 }
Esempio n. 16
0
 public static function use_boundable_styles()
 {
     $strPath = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($strPath . 'Input.css'));
 }
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . "BaseSub.css", $path . "CommunityApplyGardeners.css"));
 }
Esempio n. 18
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_styles(), array($path . 'common.js', "http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js", "http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"));
 }
Esempio n. 19
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . 'PhotoCommit.css', $path . "AbstractCommunity.css"));
 }
Esempio n. 20
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Footer.js");
 }
Esempio n. 21
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "ProjectBug.js", $path . "../home/Index.js"));
 }
Esempio n. 22
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . 'GoldenEggAdvance.css'));
 }
Esempio n. 23
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array($path . 'StarIntermediary.css'));
 }
Esempio n. 24
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "../js/amcharts/amcharts.js", $path . "RtReport.js"));
 }
Esempio n. 25
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_javascripts(), array($path . 'Pay.js'));
 }
Esempio n. 26
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_javascripts(), array(array(PageHelper::pure_static_url("/js/jquery-1.7.2.min.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/jquery-ui/jquery-ui-1.10.4.custom.min.js")), array(PageHelper::pure_static_url("/js/jquery.align.js"), PHP_INT_MAX - 1)));
 }
Esempio n. 27
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Suggestion.css");
 }
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "BrokerShareHeaderSimple.css");
 }
Esempio n. 29
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_javascripts(), array($path . "Add.js"));
 }
 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_styles(), array($path . "SupplierManager.css", $path . "Data.css", $path . "common.css", $path . "jquery-ui.css"));
 }