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); }
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); }
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); }
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; } } } }
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; } } } }
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; } }
public static function use_boundable_javascripts() { $path = apf_classname_to_path(__CLASS__); return array($path . "common.js", $path . "Dialog.js"); }
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")); }
public static function use_styles() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_styles(), array($path . "Download.css", $path . "common.css")); }
public static function use_styles() { $path = apf_classname_to_path(__CLASS__); return array($path . "Debug.css"); }
public static function use_boundable_styles() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_boundable_styles(), array($path . "User.css")); }
public static function use_boundable_styles() { $path = apf_classname_to_path(__CLASS__); return array_merge(array($path . 'Register.css')); }
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"); }
/** * 载入组件显示页面 */ 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; } } } }
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")); }
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")); }
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")); }
public static function use_boundable_javascripts() { $path = apf_classname_to_path(__CLASS__); return array($path . "Footer.js"); }
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")); }
public static function use_boundable_styles() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_boundable_styles(), array($path . 'GoldenEggAdvance.css')); }
public static function use_boundable_styles() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_boundable_styles(), array($path . 'StarIntermediary.css')); }
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")); }
public static function use_javascripts() { $path = apf_classname_to_path(__CLASS__); return array_merge(parent::use_javascripts(), array($path . 'Pay.js')); }
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))); }
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"); }
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")); }