示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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;
             }
         }
     }
 }
示例#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;
             }
         }
     }
 }
示例#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;
     }
 }
示例#7
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "common.js", $path . "Dialog.js");
 }
示例#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"));
 }
示例#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"));
 }
示例#10
0
文件: Debug.php 项目: uedcw/webstory
 public static function use_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Debug.css");
 }
示例#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"));
 }
示例#12
0
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(array($path . 'Register.css'));
 }
示例#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");
 }
示例#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;
             }
         }
     }
 }
示例#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"));
 }
示例#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"));
 }
示例#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"));
 }
示例#20
0
 public static function use_boundable_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array($path . "Footer.js");
 }
示例#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"));
 }
示例#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'));
 }
示例#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'));
 }
示例#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"));
 }
示例#25
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_javascripts(), array($path . 'Pay.js'));
 }
示例#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)));
 }
示例#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");
 }
示例#29
0
文件: Add.php 项目: emilymwang8/ibug
 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"));
 }