示例#1
0
 public static function communitySignTopSigner($communityId, $currentSignRange, $per = 3)
 {
     $signs = Model_Broker_CommunitySign::data_access(date('Ym', strtotime($currentSignRange[0])))->filter('communityId', $communityId)->filter_by_op_multi(array(array('signTime', '>=', $currentSignRange[0]), array('signTime', '<=', $currentSignRange[1])))->sort('signTime', 'asc')->limit(3)->find_all();
     $signers = array();
     if ($signs) {
         $brokerIds = array();
         foreach ($signs as $sign) {
             $brokerIds[] = $sign['brokerId'];
         }
         $brokers = Model_Broker_AjkBrokerExtend::data_access()->filter('brokerId', $brokerIds)->find_all();
         $indexedBrokers = array();
         foreach ($brokers as $broker) {
             $indexedBrokers[$broker['brokerId']] = $broker;
         }
         foreach ($signs as $sign) {
             if (!isset($indexedBrokers[$sign['brokerId']])) {
                 continue;
             }
             $broker = $indexedBrokers[$sign['brokerId']];
             $signer = array();
             $signer['brokerId'] = $broker['brokerId'];
             $signer['brokerTrueName'] = $broker['trueName'];
             // 图片地址替换
             if ($broker['userPhoto']) {
                 $signer['brokerPhoto'] = Util_DisplayImages::get_img_url($broker['userPhoto'], -1, '100x133');
             } else {
                 $signer['brokerPhoto'] = PageHelper::pure_static_url('/img/bknoimg.gif');
                 // 默认头像
             }
             $signers[] = $signer;
         }
     }
     return $signers;
 }
示例#2
0
 /**
  * 获取“闪电侠”图标
  *
  * @param $isTalent
  *
  * @return array
  */
 public static function getTalentIcon($isTalent, $app)
 {
     $talentIcon = array();
     // TODO 下次更换时,保留旧文件,新文件修改文件版本号
     if (in_array($isTalent, array(1, 0))) {
         if (self::isTalentEventOngoing()) {
             switch ($app) {
                 case 'a-broker':
                     $format = '/img/mobile/app/android/icon_talent_3.4_%s.png?v=3.5';
                     break;
                 case 'i-broker2':
                 default:
                     $format = '/img/mobile/app/ios/icon_talent_3.4_%s.png?v=3.5';
                     break;
             }
             if ($isTalent) {
                 $uri = sprintf($format, 'on');
             } else {
                 $uri = sprintf($format, 'off');
             }
             $talentIcon[] = PageHelper::pure_static_url($uri);
         }
     }
     return $talentIcon;
 }
示例#3
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);
 }
 public function handle_request_internal()
 {
     /**
      * 00:00
      *  获取前一天20:00 以后
      * 10:00
      *  获取10:00 以后
      * 15:00
      *  获取15:00 以后
      * 20:00
      *  获取20:00 以后
      *
      */
     // 获取参数;
     $commId = $this->_params['commId'];
     // 根据ID获取小区
     $community = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId, 2);
     if (!$community || !$community['sosolat'] || !$community['sosolng']) {
         throw new Exception('经纪人不存在', Const_APIStatus::E_BROKER_NOT_EXISTS);
     }
     $data = array();
     if (Bll_Broker_CommunitySign::isTopSignerActivityOngoing()) {
         $hour = intval(date('H'));
         if ($hour >= 0 && $hour < 10) {
             $theSignRange = array(date('Y-m-d 20:00:00', strtotime('-1 day')), date('Y-m-d 23:59:59', strtotime('-1 day')));
         } elseif ($hour >= 10 && $hour < 15) {
             $theSignRange = array(date('Y-m-d 10:00:00'), date('Y-m-d 14:59:59'));
         } elseif ($hour >= 15 && $hour < 20) {
             $theSignRange = array(date('Y-m-d 15:00:00'), date('Y-m-d 19:59:59'));
         } else {
             $theSignRange = array(date('Y-m-d 20:00:00'), date('Y-m-d 23:59:59'));
         }
         $brokerInfos = Bll_Commsign::getFirstThr($commId, $theSignRange[0]);
         //var_dump($data);exit;
         $data = array();
         if (!empty($brokerInfos)) {
             foreach ($brokerInfos as $k => $v) {
                 $brokerTmp = Bll_Commsign::getBrokerInfo($v['brokerId']);
                 if (!$brokerTmp) {
                     $broker = Model_Broker_AjkBrokerExtend::data_access()->filter('brokerId', $v['brokerId'])->find_only();
                     $broker_photo = Util_ImageUtils::get_broker_photo_url($broker['userPhoto'], '200x200');
                     $brokerTmp = array('brokerId' => $broker['brokerId'], 'username' => $broker['trueName'], 'userPhoto' => $broker_photo, 'cityId' => $broker['cityId']);
                     Bll_Commsign::redisBrokerInfo($v['brokerId'], $brokerTmp);
                 }
                 if (empty($brokerTmp['userPhoto'])) {
                     $brokerTmp['userPhoto'] = PageHelper::pure_static_url('/img/bknoimg.gif');
                 }
                 $dataTmp = array('brokerId' => $brokerTmp['brokerId'], 'brokerTrueName' => $brokerTmp['username'], 'brokerPhoto' => $brokerTmp['userPhoto']);
                 $data[] = $dataTmp;
             }
         }
     }
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => $data);
 }
示例#5
0
 public function getImageUrl()
 {
     $imageUrl = PageHelper::pure_static_url(APF::get_instance()->get_config('shop_background_image_url_default', 'weshop', '/img/mobile/app/weshop_bg_default.png'));
     if ($this->imageHash) {
         $config = APF::get_instance()->get_config('ais', 'weshop', array('format_host' => 'pic%d.ajkimg.com', 'path_prefix' => '/display/'));
         $host = sprintf($config['format_host'], $this->imageHostId);
         $pathPrefix = str_replace("anjuke", "e", $config['path_prefix']);
         //无水印格式
         $path = $pathPrefix . $this->imageHash . '/600x270c.jpg';
         $imageUrl = 'http://' . $host . $path;
     }
     return $imageUrl;
 }
示例#6
0
 public function handle_request_internal()
 {
     $brokerId = $this->_params['brokerId'];
     $app = $this->_params['app'];
     $brokerInfo = Model_Broker_AjkBrokerExtend::findWithBrokerId($brokerId);
     if (!$brokerInfo) {
         throw new Exception_BrokerNotFoundException('经纪人不存在', Const_APIStatus::E_BROKER_NOT_EXISTS);
     }
     /** 获取经纪人被关注的人数 */
     $brokerChatId = Model_Mobile_BrokerChatInfo::getBrokerChatInfo($brokerId, array('chatId'));
     $followerNum = 0;
     if ($brokerChatId['chatId']) {
         $followerNumInfo = Bll_Mobile_ChatInfoBll::getBrokerFollowerNum($brokerChatId['chatId']);
         if ($followerNumInfo['data']['status'] == 'OK') {
             $followerNum = $followerNumInfo['data']['result']['focus_count'];
         }
     }
     $analysis = Bll_Broker_CallAnalysis::getBrokerAnalysis($brokerId);
     $balanceInfo = Bll_Service_Payment::balance(Bll_Service_Payment::SITE_ANJUKE, array('userId' => Bll_Broker_MainBusiness::getDataByEsfId($brokerId)->memberId));
     $managerInfo = Bll_Broker::getWorkerNumInfo($brokerId);
     // 微聊达人
     $isTalent = -1;
     // 默认,微聊活动未开始或已结束
     if (Bll_Broker_CallAnalysis::isTalentEventOngoing()) {
         $isTalent = 0;
         // 活动中,默认不是微聊达人
         if ($analysis) {
             $isTalent = $analysis['isTalent'];
         }
     }
     $talentIcon = Bll_Broker_CallAnalysis::getTalentIcon($isTalent, $app);
     // 明星经纪人
     $isStarBroker = 0;
     $starBrokerIcon = '';
     try {
         $bllStarBroker = new Bll_Broker_StarIntermediary($brokerInfo['cityId']);
         $starBrokerInfo = $bllStarBroker->getBrokerNewestInfo($brokerId);
         if ($starBrokerInfo && $starBrokerInfo['broker']['isMingxing']) {
             $isStarBroker = 1;
             $starBrokerIcon = PageHelper::pure_static_url('/img/mobile/app/star_broker.png');
         }
     } catch (Exception $e) {
         // do nothing
     }
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('replyRate' => $analysis['reply5minRate'] * 100, 'responseTime' => $analysis['avgRespondTime'], 'customNum' => $analysis['accChatUser'], 'loginDays' => $analysis['accLoginDays'], 'isTalent' => $isTalent, 'talentIcon' => $talentIcon, 'isStarBroker' => $isStarBroker, 'starBrokerIcon' => $starBrokerIcon, 'ajkContact' => $managerInfo['userName'], 'balance' => empty($balanceInfo['data']['balance']) ? 0 : round($balanceInfo['data']['balance'] / 100, 2), 'tel' => $managerInfo['mobile'], 'followerNum' => $followerNum));
 }
 public static function imageUrl($fileName)
 {
     $imgBll = Bll_Image_EsfHouseImage::getInstance();
     $image_url = PageHelper::pure_static_url('/img/global/nopic_150x113.gif');
     if ($fileName) {
         $image_url = $fileName;
         if (preg_match("/,/", $image_url)) {
             $img = array();
             $arr = explode(",", $image_url);
             if ($arr[0] > 0) {
                 $img['host_id'] = $arr[0];
                 $img['FileName'] = $arr[1];
             }
             $image_url = $imgBll->convert_property_image_to_icon_url($img['FileName'], $img['host_id']);
             if (isset($image_url['photourl'])) {
                 $image_url = $image_url['photourl'];
             }
         }
     }
     return $image_url;
 }
示例#8
0
 /**
  * 获取二手房房源图片地址
  *
  * @param $ProId
  * @param $CommId
  * @return string
  */
 public function getThumbImageUrl($ProId, $CommId)
 {
     $api = BLL_Service_JavaApi::getInstance(BLL_Service_JavaApi::ESFSITE);
     $url = 'service-internal/rest/image/getDef/' . $ProId;
     $mixResult = $api->useapi($url, array());
     $image_url = PageHelper::pure_static_url('/img/global/nopic_150x113.gif');
     if ($mixResult['status'] == 'ok') {
         $image_url = $mixResult['photo']['fileName'];
         if (preg_match("/,/", $image_url)) {
             $img = array();
             $arr = explode(",", $image_url);
             if ($arr[0] > 0) {
                 $img['host_id'] = $arr[0];
                 $img['FileName'] = $arr[1];
             }
             $image_url = $this->convert_property_image_to_icon_url($img['FileName'], $img['host_id']);
             if (isset($image_url['photourl'])) {
                 $image_url = $image_url['photourl'];
             }
         }
     }
     return $image_url;
 }
示例#9
0
 public function handle_request_internal()
 {
     /**
      * 签到小区详情
      *
      * - 验证参数
      *
      *
      * - 获取经纪人
      *
      * - 获取小区(AjkCommunity)
      * -
      *
      * - 获取小区签到人数
      *
      * - 判断经纪人是否可签到(经纪人是否已签到、当前是否在签到时间段)
      * - 校验小区坐标和lat、lng的距离5公里,超出不可签到(如小区无坐标,不可签到)
      *
      * - 计算距离下一时间点的签到倒计时(单位:s)
      *
      * - 获取小区各个时间段签到前3名
      *
      * - 返回数据
      */
     // 获取参数
     $brokerId = $this->_params['brokerId'];
     $commId = $this->_params['commId'];
     $lat = $this->_params['lat'];
     $lng = $this->_params['lng'];
     // 根据ID获取经纪人
     $broker = Bll_Commsign::getBrokerInfo($brokerId);
     if (!$broker) {
         $broker = Model_Broker_AjkBrokerExtend::data_access()->filter('brokerId', $brokerId)->find_only();
         if (!$broker) {
             throw new Exception('经纪人不存在', Const_APIStatus::E_BROKER_NOT_EXISTS);
         }
         $broker_photo = Util_ImageUtils::get_broker_photo_url($broker['userPhoto'], '200x200');
         $brokerInfo = array('brokerId' => $broker['brokerId'], 'username' => $broker['trueName'], 'userPhoto' => $broker_photo, 'cityId' => $broker['cityId']);
         Bll_Commsign::redisBrokerInfo($brokerId, $brokerInfo);
     }
     // 根据ID获取小区
     $community = Bll_Commsign::getCommInfo($commId);
     if (empty($community)) {
         $community = Bll_Community_APIComm::getInstance()->getInfoByIdMapping($commId, 2);
         $commInfo = array();
         $commInfo['commId'] = $community['commId'];
         $commInfo['commName'] = $community['commName'];
         $commInfo['sosolng'] = $community['sosolng'];
         $commInfo['sosolat'] = $community['sosolat'];
         Bll_Commsign::setCommInfo($commId, $commInfo);
     }
     if (!$community || !$community['sosolat'] || !$community['sosolng']) {
         throw new Exception('小区不存在', Const_APIStatus::E_COMMUNITY_NOT_EXISTS);
     }
     // 获取小区签到人数
     $communitySignCount = Bll_Commsign::getCommCount($commId);
     // 判断经纪人是否可签到
     $signAble = true;
     $currentSignRange = Bll_Broker_CommunitySign::getCurrentSignRange();
     if (!$currentSignRange) {
         $signAble = false;
     } else {
         // 经纪人是否已经签过到
         if (Bll_Commsign::isSignedAlready($brokerId, $commId, $currentSignRange[0])) {
             $signAble = false;
         }
     }
     // 对比小区坐标和参数坐标两点的距离(5km)
     $distance = Util_Map::distance($lat, $lng, $community['sosolat'], $community['sosolng']);
     if ($distance > 5000) {
         $signAble = false;
     }
     $data = array();
     $data['signAble'] = intval($signAble);
     $data['signCount'] = $communitySignCount;
     $data['countDown'] = $signAble ? 0 : Bll_Broker_CommunitySign::nextSignCountDown();
     $data['signList'] = array();
     // 获取各时间段签到前三名
     if (Bll_Broker_CommunitySign::isTopSignerActivityOngoing()) {
         $data['signList'] = array(array('hour' => '10:00', 'brokers' => array()), array('hour' => '15:00', 'brokers' => array()), array('hour' => '20:00', 'brokers' => array()));
         foreach ($data['signList'] as &$theSignList) {
             $theHour = intval($theSignList['hour']);
             $hour = intval(date('H'));
             if ($hour >= 0 && $hour < 10) {
                 break;
             } elseif ($hour >= 10 && $hour < 20) {
                 if ($theHour > $hour) {
                     continue;
                 }
             }
             $theSignRange = array();
             switch ($theHour) {
                 case 10:
                     $theSignRange = array(date('Y-m-d 10:00:00'), date('Y-m-d 14:59:59'));
                     break;
                 case 15:
                     $theSignRange = array(date('Y-m-d 15:00:00'), date('Y-m-d 19:59:59'));
                     break;
                 case 20:
                     $theSignRange = array(date('Y-m-d 20:00:00'), date('Y-m-d 23:59:59'));
                     break;
             }
             $theSignList['brokers'] = Bll_Commsign::getFirstThr($commId, $theSignRange[0]);
             if (empty($theSignList['brokers'])) {
                 $theSignList['brokers'] = Model_Broker_CommunitySign::data_access(date('Ym', strtotime($currentSignRange[0])))->filter('communityId', $commId)->filter_by_op_multi(array(array('signTime', '>=', $theSignRange[0]), array('signTime', '<=', $theSignRange[1])))->sort('signTime', 'asc')->limit(3)->get_all();
             }
             $tmp = array();
             if (!empty($theSignList['brokers'])) {
                 foreach ($theSignList['brokers'] as $k => $v) {
                     $brokerTmp = Bll_Commsign::getBrokerInfo($v['brokerId']);
                     if (!$brokerTmp) {
                         $broker = Model_Broker_AjkBrokerExtend::data_access()->filter('brokerId', $v['brokerId'])->find_only();
                         $broker_photo = Util_ImageUtils::get_broker_photo_url($broker['userPhoto'], '200x200');
                         $brokerTmp = array('brokerId' => $broker['brokerId'], 'username' => $broker['trueName'], 'userPhoto' => $broker_photo, 'cityId' => $broker['cityId']);
                         Bll_Commsign::redisBrokerInfo($v['brokerId'], $brokerTmp);
                     }
                     if (empty($brokerTmp['userPhoto'])) {
                         $brokerTmp['userPhoto'] = PageHelper::pure_static_url('/img/bknoimg.gif');
                     }
                     $dataTmp = array('brokerId' => $brokerTmp['brokerId'], 'brokerTrueName' => $brokerTmp['username'], 'brokerPhoto' => $brokerTmp['userPhoto']);
                     $tmp[] = $dataTmp;
                 }
                 $theSignList['brokers'] = $tmp;
             }
         }
     }
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => $data);
 }
示例#10
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(array(PageHelper::pure_static_url("/js/jquery-1.7.2.min.js"), PHP_INT_MAX), array(PageHelper::pure_static_url("/js/uploadify-3.1/ajaxfileupload.js"), PHP_INT_MAX - 3), PageHelper::pure_static_url('/swf/uploadify-2.1.0/swfobject.js'), PageHelper::pure_static_url('/js/jquery-1.3.2/jquery.uploadify.v2.1.0.min.fv9.js')));
 }
示例#11
0
文件: Add.php 项目: emilymwang8/cms
 public static function use_boundable_styles()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_boundable_styles(), array(array(PageHelper::pure_static_url("/upload/uploadify.css"), PHP_INT_MAX)));
 }
示例#12
0
 public static function use_styles()
 {
     return array(PageHelper::pure_static_url("/js/select2-3.4.8/select2.css"));
 }
示例#13
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.align.js"), PHP_INT_MAX - 1)));
 }
示例#14
0
 public static function use_javascripts()
 {
     $path = apf_classname_to_path(__CLASS__);
     return array_merge(parent::use_javascripts(), array($path . 'HouseManageAjk.js', PageHelper::pure_static_url("/js/jquery.cookie.js")));
 }
示例#15
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/uploadify-3.1/ajaxfileupload.js"), PHP_INT_MAX - 3)));
 }
示例#16
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(PageHelper::pure_static_url("/js/uploadify-3.1/jquery.uploadify.modify.js")));
 }
示例#17
0
 public function handle_request_internal()
 {
     if (Bll_Weshop::weshopPropsIsMaintain()) {
         return array('status' => 'error', 'message' => "系统维护中,请稍后再试!");
     }
     header("Access-Control-Allow-Origin: *");
     $brokerId = $this->_params['brokerId'];
     $brokerInfo = Model_Broker_AjkBrokerExtend::findWithBrokerId($brokerId);
     if (!$brokerInfo) {
         throw new Exception_BrokerNotFoundException('经纪人不存在', Const_APIStatus::E_BROKER_NOT_EXISTS);
     }
     $sinceId = isset($this->_params['sinceId']) ? intval($this->_params['sinceId']) : 0;
     //从$sinceId 行开始读
     $per = isset($this->_params['per']) ? $this->_params['per'] : 10;
     //每页显示的条数
     //获取经纪人房源
     $brokerProps = Model_Weshop_Props::getWeshopPropsByBrokerId($brokerId, $per + 1, $sinceId);
     $totalProps = Model_Weshop_Props::getWeshopPropsCount($brokerId);
     $propList = array();
     $hasNextPage = 0;
     if (!empty($brokerProps)) {
         $hasNextPage = count($brokerProps) > $per ? 1 : 0;
         if ($hasNextPage) {
             array_pop($brokerProps);
             $sinceId += $per;
         } else {
             $sinceId = 0;
         }
         $propIds = array();
         $commIds = array();
         foreach ($brokerProps as $prop) {
             $propIds[] = $prop->id;
             $commIds[] = $prop->commId;
         }
         //批量获取小区信息
         list($commInfos, $areaIds, $blockIds) = $this->getCommInfos($commIds);
         $araNames = $this->getCommTypeInfo($areaIds);
         $blockIdNames = $this->getCommTypeInfo($blockIds);
         //批量获取房源默认图片
         $defaultImages = $this->getPropDefaultImage($propIds);
         foreach ($brokerProps as $brokerProp) {
             $row = array();
             $row['propId'] = $brokerProp->id;
             $row['commId'] = $brokerProp->commId;
             $row['commName'] = $commInfos[$brokerProp->commId]['commName'];
             //批量获取小区信息  commIds propIds
             $areaId = substr($commInfos[$brokerProp->commId]['areaCode'], 0, 8);
             $blockId = $commInfos[$brokerProp->commId]['areaCode'];
             $row['areaName'] = $araNames[$areaId];
             //批量获取区域 板块
             $row['blockName'] = $blockIdNames[$blockId];
             //批量获取区域 板块
             $row['room'] = $brokerProp->room;
             $row['hall'] = $brokerProp->hall;
             $row['toilet'] = $brokerProp->toilet;
             $row['area'] = $brokerProp->acreage;
             $row['areaUnit'] = '平米';
             $row['price'] = intval($brokerProp->price);
             $row['priceUnit'] = '万';
             $isJson = Util_String::isJson($brokerProp->description);
             $row['propDescription'] = $isJson ? json_decode($brokerProp->description) : $brokerProp->description;
             $row['title'] = $brokerProp->title ? $brokerProp->title : $row['commName'] . ' ' . $row['room'] . '室' . $row['hall'] . '厅' . ' ' . $row['area'] . '平' . ' ' . $row['price'] . '万';
             $imageUrl = PageHelper::pure_static_url(APF::get_instance()->get_config('prop_image_url_default', 'weshop', 'img/mobile/app/weshop_prop_default.jpg'));
             $url = Util_ImageUtils::getResizeURL($defaultImages[$brokerProp->id]['imageHash'], $defaultImages[$brokerProp->id]['imageHostId'], 290, 240);
             $url = str_replace("display", "display/e", $url);
             //无水印格式
             $url = str_replace("240", "240c", $url);
             $row['imageUrl'] = $defaultImages[$brokerProp->id] ? $url : $imageUrl;
             $row['previewUrl'] = Bll_Weshop::getPropPreviewUrl(array('brokerId' => $brokerId, 'propId' => $brokerProp->id));
             $propList[] = $row;
         }
     }
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('propList' => $propList, 'sinceId' => $sinceId, 'hasNextPage' => $hasNextPage, 'totalProps' => $totalProps));
 }
示例#18
0
文件: Edit.php 项目: emilymwang8/cms
 public static function use_javascripts()
 {
     return array(array(PageHelper::pure_static_url("/js/jquery.min.js")), array(PageHelper::pure_static_url("/js/jquery-ui-1.9.2.custom.min.js")), array(PageHelper::pure_static_url("/js/DateTimePicker.js")), array(PageHelper::pure_static_url("/js/fileprogress.js")), array(PageHelper::pure_static_url("/js/handlers.js")), array(PageHelper::pure_static_url("/js/swfupload.js")), array(PageHelper::pure_static_url("/js/swfupload.queue.js")));
 }
示例#19
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(PageHelper::pure_static_url("/js/localforage/localforage.min.js")));
 }
示例#20
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(array(PageHelper::pure_static_url("/js/highcharts4.0.1/highcharts.js"), PHP_INT_MAX - 1)));
 }
示例#21
0
文件: Index.php 项目: emilymwang8/cms
 public static function use_javascripts()
 {
     return array(array(PageHelper::pure_static_url("/js/jquery.min.js")));
 }
示例#22
0
文件: CMS.php 项目: emilymwang8/cms
 public static function use_boundable_styles()
 {
     return array(array(PageHelper::pure_static_url("/bootstrap/css/bootstrap.css"), PHP_INT_MAX - 1), array(PageHelper::pure_static_url("/bootstrap/css/bootstrap-theme.css"), PHP_INT_MAX - 2), array("CMS.css", PHP_INT_MAX - 3));
 }
示例#23
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(array(PageHelper::pure_static_url("/js/jquery-1.7.2.min.js"), PHP_INT_MAX, true)));
 }
示例#24
0
 /**
  * 
  * 获得图片地址
  * @param string $photo
  * @param int $host
  */
 public static function get_photo($photo, $host)
 {
     $dfs_param = explode(',', $photo);
     if ($photo) {
         if (count($dfs_param) == 2) {
             $photo = str_replace('.host.', $host . '.', APF::get_instance()->get_config("img_server")) . "/display/" . $dfs_param[1] . "/80x80.jpg";
         } else {
             $host_id = $host > 1 ? $host : 1;
             $photo = str_replace('.host.', $host_id . '.', APF::get_instance()->get_config("img_server")) . "/display/" . $photo . "/80x80.jpg";
         }
     } else {
         apf_require_class("PageHelper");
         $photo = PageHelper::pure_static_url('/img/member/null.gif');
     }
     return $photo;
 }
示例#25
0
 public static function use_javascripts()
 {
     return array(array("APF.js", PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/zepto-v1.0rc1/zepto.js"), PHP_INT_MAX));
 }
 public static function use_styles()
 {
     return array(PageHelper::pure_static_url("/js/jquery-ui/jquery-ui-1.10.4.custom.min.css"));
 }
示例#27
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(PageHelper::pure_static_url("/js/jquery.cookie.js")));
 }
示例#28
0
 public static function use_javascripts()
 {
     return array_merge(array(array("APF.js", PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/jquery-1.7.2.min.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/jquery.noConflict.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/prototype-1.6.0.3/prototype_gather_packed.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/ui.core.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/ui.dialog.js"), PHP_INT_MAX, true), array(PageHelper::pure_static_url("/js/jquery.align.js"), PHP_INT_MAX, true)));
 }
示例#29
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(PageHelper::pure_static_url('/html/editor/kindeditor-3.5.3/kindeditor-min.js')));
 }
示例#30
0
 public static function use_javascripts()
 {
     return array_merge(parent::use_javascripts(), array(PageHelper::pure_static_url('/js/uploadify-3.1/ajaxfileupload.js')));
 }