当前位置: 首页>>代码示例>>PHP>>正文


PHP Uk86Language::uk86_getLangContent方法代码示例

本文整理汇总了PHP中Uk86Language::uk86_getLangContent方法的典型用法代码示例。如果您正苦于以下问题:PHP Uk86Language::uk86_getLangContent方法的具体用法?PHP Uk86Language::uk86_getLangContent怎么用?PHP Uk86Language::uk86_getLangContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Uk86Language的用法示例。


在下文中一共展示了Uk86Language::uk86_getLangContent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pic_cutOp

 /**
  * 图片裁剪
  *
  */
 public function pic_cutOp()
 {
     Uk86Language::uk86_read('admin_common');
     $lang = Uk86Language::uk86_getLangContent();
     uk86_import('function.thumb');
     if (uk86_chksubmit()) {
         $thumb_width = $_POST['x'];
         $x1 = $_POST["x1"];
         $y1 = $_POST["y1"];
         $x2 = $_POST["x2"];
         $y2 = $_POST["y2"];
         $w = $_POST["w"];
         $h = $_POST["h"];
         $scale = $thumb_width / $w;
         $src = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_POST['url']);
         if (strpos($src, '..') !== false || strpos($src, BASE_UPLOAD_PATH) !== 0) {
             exit;
         }
         if (!empty($_POST['filename'])) {
             // 				$save_file2 = BASE_UPLOAD_PATH.'/'.$_POST['filename'];
             $save_file2 = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_POST['filename']);
         } else {
             $save_file2 = str_replace('_small.', '_sm.', $src);
         }
         $cropped = uk86_resize_thumb($save_file2, $src, $w, $h, $x1, $y1, $scale);
         @unlink($src);
         $pathinfo = pathinfo($save_file2);
         exit($pathinfo['basename']);
     }
     $save_file = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_GET['url']);
     $_GET['resize'] = $_GET['resize'] == '0' ? '0' : '1';
     Tpl::output('height', uk86_get_height($save_file));
     Tpl::output('width', uk86_get_width($save_file));
     Tpl::showpage('common.pic_cut', 'null_layout');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:39,代码来源:common.php

示例2: performOp

 /**
  * 性能优化
  */
 public function performOp()
 {
     if ($_GET['type'] == 'clear') {
         $lang = Uk86Language::uk86_getLangContent();
         $cache = Cache::getInstance(C('cache.type'));
         $cache->clear();
         uk86_showMessage($lang['nc_common_op_succ']);
     }
     Tpl::showpage('setting.perform_opt');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:perform.php

示例3: indexOp

 /**
  * 分类列表
  */
 public function indexOp()
 {
     Uk86Language::uk86_read('home_category_index');
     $lang = Uk86Language::uk86_getLangContent();
     //导航
     $nav_link = array('0' => array('title' => $lang['homepage'], 'link' => SHOP_SITE_URL), '1' => array('title' => $lang['category_index_goods_class']));
     Tpl::output('nav_link_list', $nav_link);
     Tpl::output('html_title', C('site_name') . ' - ' . Uk86Language::uk86_get('category_index_goods_class'));
     Tpl::showpage('category');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:13,代码来源:category.php

示例4: clearOp

 /**
  * 清理缓存
  */
 public function clearOp()
 {
     if (!uk86_chksubmit()) {
         Tpl::showpage('cache.clear');
         return;
     }
     $lang = Uk86Language::uk86_getLangContent();
     // 清理所有缓存
     if ($_POST['cls_full'] == 1) {
         foreach ($this->cacheItems as $i) {
             uk86_dkcache($i);
         }
         // 表主键
         Model::dropTablePkArrayCache();
         // 商品分类
         uk86_dkcache('gc_class');
         uk86_dkcache('all_categories');
         uk86_dkcache('goods_class_seo');
         uk86_dkcache('class_tag');
         // 广告
         Model('adv')->makeApAllCache();
         // 首页
         Model('web_config')->getWebHtml('index', 1);
         uk86_delCacheFile('index');
     } else {
         $todo = (array) $_POST['cache'];
         foreach ($this->cacheItems as $i) {
             if (in_array($i, $todo)) {
                 uk86_dkcache($i);
             }
         }
         // 表主键
         if (in_array('table', $todo)) {
             Model::dropTablePkArrayCache();
         }
         // 商品分类
         if (in_array('goodsclass', $todo)) {
             uk86_dkcache('gc_class');
             uk86_dkcache('all_categories');
             uk86_dkcache('goods_class_seo');
             uk86_dkcache('class_tag');
         }
         // 广告
         if (in_array('adv', $todo)) {
             Model('adv')->makeApAllCache();
         }
         // 首页
         if (in_array('index', $todo)) {
             Model('web_config')->getWebHtml('index', 1);
             uk86_delCacheFile('index');
         }
     }
     $this->log(L('cache_cls_operate'));
     uk86_showMessage($lang['cache_cls_ok']);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:58,代码来源:cache.php

示例5: indexOp

 public function indexOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $model = Model('express');
     if (preg_match('/^[A-Z]$/', $_GET['letter'])) {
         $model->where(array('e_letter' => $_GET['letter']));
     }
     $list = $model->page(10)->order('e_order,e_state desc,id')->select();
     Tpl::output('page', $model->showpage());
     Tpl::output('list', $list);
     Tpl::showpage('express.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:12,代码来源:express.php

示例6: profile_menu

 /**
  * 用户中心右边,小导航
  *
  * @param string	$menu_type	导航类型
  * @param string 	$menu_key	当前导航的menu_key
  * @param array 	$array		附加菜单
  * @return
  */
 private function profile_menu($menu_key = '', $array = array())
 {
     Uk86Language::uk86_read('member_layout');
     $lang = Uk86Language::uk86_getLangContent();
     $menu_array = array();
     $menu_array = array(1 => array('menu_key' => 'points', 'menu_name' => $lang['nc_member_path_points'], 'menu_url' => 'index.php?act=member_points'), 2 => array('menu_key' => 'orderlist', 'menu_name' => Uk86Language::uk86_get('member_pointorder_list_title'), 'menu_url' => 'index.php?act=member_pointorder&op=orderlist'));
     if (!empty($array)) {
         $menu_array[] = $array;
     }
     Tpl::output('member_menu', $menu_array);
     Tpl::output('menu_key', $menu_key);
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:20,代码来源:member_points.php

示例7: indexOp

 /**
  * 登录操作
  *
  */
 public function indexOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $model_member = Model('member');
     //检查登录状态
     $model_member->checkloginMember();
     $script = "document.getElementsByName('codeimage')[0].src='" . APP_SITE_URL . "/index.php?act=seccode&op=makecode&nchash='+NC_HASH+'&t=' + Math.random();";
     $result = uk86_chksubmit(true, true, 'num');
     if ($result !== false) {
         if ($result === -11) {
             showDialog(L('login_index_login_illegal'), '', 'error', $script, 2);
         } elseif ($result === -12) {
             showDialog(L('login_index_wrong_checkcode'), '', 'error', $script, 2);
         }
         if (Uk86process::uk86_islock('login')) {
             showDialog(L('login_index_op_repeat'), APP_SITE_URL);
         }
         $array = array();
         $array['member_name'] = $_POST['user_name'];
         $array['member_passwd'] = md5($_POST['password']);
         $member_info = $model_member->infoMember($array);
         if (is_array($member_info) and !empty($member_info)) {
             if (!$member_info['member_state']) {
                 showDialog($lang['login_index_account_stop']);
             }
         } else {
             Uk86process::uk86_addprocess('login');
             showDialog($lang['login_index_login_fail'], '', 'error', $script, 2);
         }
         $model_member->createSession($member_info);
         Uk86process::uk86_clear('login');
         // cookie中的cart存入数据库
         Model('cart')->mergecart($member_info, $_SESSION['store_id']);
         // cookie中的浏览记录存入数据库
         Model('goods_browse')->mergebrowse($_SESSION['member_id'], $_SESSION['store_id']);
         //添加会员U币
         $model_member->addPoint($member_info);
         showDialog(L('login_index_login_success'), 'reload', 'succ', '', 2);
     }
     if (empty($_GET['ref_url'])) {
         $_GET['ref_url'] = uk86_getReferer();
     }
     Tpl::output('html_title', C('site_name') . ' - ' . $lang['login_index_login']);
     Tpl::output('nchash', uk86_getNchash());
     if ($_GET['inajax'] == 1) {
         Tpl::showpage('login_inajax', 'null_layout');
     } else {
         return false;
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:54,代码来源:login.php

示例8: indexOp

 public function indexOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     if ($_GET['code'] == '') {
         uk86_showMessage($lang['para_error'], '', 'html', 'error');
         //'缺少参数:文章标识'
     }
     $model_doc = Model('document');
     $doc = $model_doc->getOneByCode($_GET['code']);
     Tpl::output('doc', $doc);
     /**
      * 分类导航
      */
     $nav_link = array(array('title' => $lang['homepage'], 'link' => SHOP_SITE_URL), array('title' => $doc['doc_title']));
     Tpl::output('nav_link_list', $nav_link);
     Tpl::showpage('document.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:17,代码来源:document.php

示例9: fleaOp

 /**
  * 商品管理
  */
 public function fleaOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $model_goods = Model('flea');
     /**
      * 推荐,编辑,删除
      */
     if ($_POST['form_submit'] == 'ok') {
         if (!empty($_POST['del_id'])) {
             $model_goods->dropGoods(implode(',', $_POST['del_id']));
             uk86_showMessage($lang['goods_index_del_succ']);
         } else {
             uk86_showMessage($lang['goods_index_choose_del']);
         }
         uk86_showMessage($lang['goods_index_argument_invalid']);
     }
     /**
      * 排序
      */
     $condition['keyword'] = trim($_GET['search_goods_name']);
     $condition['like_member_name'] = trim($_GET['search_store_name']);
     //店铺名称
     $condition['brand_id'] = intval($_GET['search_brand_id']);
     $condition['gc_id'] = intval($_GET['cate_id']);
     /**
      * 分页
      */
     $page = new Uk86Page();
     $page->uk86_setEachNum(10);
     $page->uk86_setStyle('admin');
     $goods_list = $model_goods->listGoods($condition, $page);
     /**
      * 商品类别
      */
     /**
      * 商品分类
      */
     $model_class = Model('flea_class');
     $goods_class = $model_class->getTreeClassList(1);
     Tpl::output('search', $_GET);
     Tpl::output('goods_class', $goods_class);
     Tpl::output('goods_list', $goods_list);
     Tpl::output('page', $page->uk86_show());
     Tpl::showpage('flea.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:48,代码来源:flea.php

示例10: daddress_addOp

 /**
  * 新增/编辑发货地址
  */
 public function daddress_addOp()
 {
     Uk86Language::uk86_read('member_member_index');
     $lang = Uk86Language::uk86_getLangContent();
     $model_daddress = Model('daddress');
     if (uk86_chksubmit()) {
         //保存 新增/编辑 表单
         $obj_validate = new Uk86Validate();
         $obj_validate->validateparam = array(array("input" => $_POST["seller_name"], "require" => "true", "message" => $lang['store_daddress_receiver_null']), array("input" => $_POST["area_id"], "require" => "true", "validator" => "Number", "message" => $lang['store_daddress_wrong_area']), array("input" => $_POST["city_id"], "require" => "true", "validator" => "Number", "message" => $lang['store_daddress_wrong_area']), array("input" => $_POST["area_info"], "require" => "true", "message" => $lang['store_daddress_area_null']), array("input" => $_POST["address"], "require" => "true", "message" => $lang['store_daddress_address_null']), array("input" => $_POST['telphone'], 'require' => 'true', 'message' => $lang['store_daddress_phone_and_mobile']));
         $error = $obj_validate->uk86_validate();
         if ($error != '') {
             uk86_showValidateError($error);
         }
         $data = array('store_id' => $_SESSION['store_id'], 'seller_name' => $_POST['seller_name'], 'area_id' => $_POST['area_id'], 'city_id' => $_POST['city_id'], 'area_info' => $_POST['area_info'], 'address' => $_POST['address'], 'telphone' => $_POST['telphone'], 'company' => $_POST['company']);
         $address_id = intval($_POST['address_id']);
         if ($address_id > 0) {
             $condition = array();
             $condition['address_id'] = $address_id;
             $condition['store_id'] = $_SESSION['store_id'];
             $update = $model_daddress->editAddress($data, $condition);
             if (!$update) {
                 showDialog($lang['store_daddress_modify_fail'], '', 'error');
             }
         } else {
             $insert = $model_daddress->addAddress($data);
             if (!$insert) {
                 showDialog($lang['store_daddress_add_fail'], '', 'error');
             }
         }
         showDialog($lang['nc_common_op_succ'], 'reload', 'succ', 'CUR_DIALOG.close()');
     } elseif (is_numeric($_GET['address_id']) > 0) {
         //编辑
         $condition = array();
         $condition['address_id'] = intval($_GET['address_id']);
         $condition['store_id'] = $_SESSION['store_id'];
         $address_info = $model_daddress->getAddressInfo($condition);
         if (empty($address_info) && !is_array($address_info)) {
             uk86_showMessage($lang['store_daddress_wrong_argument'], 'index.php?act=store_deliver_set&op=daddress_list', 'html', 'error');
         }
         Tpl::output('address_info', $address_info);
     }
     Tpl::showpage('store_deliver_set.daddress_add', 'null_layout');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:46,代码来源:store_deliver_set.php

示例11: flea_class_indexOp

 /**
  * 设置
  */
 public function flea_class_indexOp()
 {
     /**
      * 加载语言包
      */
     $lang = Uk86Language::uk86_getLangContent();
     /**
      * 实例化商品分类模型
      */
     $model_class = Model('flea_class');
     $goods_class = $model_class->getTreeClassList(1);
     Tpl::output('goods_class', $goods_class);
     /**
      * 获取设置信息
      */
     $fc_index = $model_class->getFleaIndexClass(array());
     if (is_array($fc_index) && !empty($fc_index)) {
         foreach ($fc_index as $value) {
             Tpl::output($value['fc_index_code'], $value);
         }
     }
     if ($_POST['form_submit'] == 'ok') {
         $a = $model_class->setFleaIndexClass(array('fc_index_code' => 'shuma', 'fc_index_id1' => $_POST['shuma_cid1'], 'fc_index_id2' => $_POST['shuma_cid2'], 'fc_index_id3' => $_POST['shuma_cid3'], 'fc_index_id4' => $_POST['shuma_cid4']));
         $b = $model_class->setFleaIndexClass(array('fc_index_code' => 'zhuangban', 'fc_index_id1' => $_POST['zhuangban_cid1'], 'fc_index_id2' => $_POST['zhuangban_cid2'], 'fc_index_id3' => $_POST['zhuangban_cid3'], 'fc_index_id4' => $_POST['zhuangban_cid4']));
         $c = $model_class->setFleaIndexClass(array('fc_index_code' => 'jujia', 'fc_index_id1' => $_POST['jujia_cid1'], 'fc_index_id2' => $_POST['jujia_cid2'], 'fc_index_id3' => $_POST['jujia_cid3'], 'fc_index_id4' => $_POST['jujia_cid4']));
         $d = $model_class->setFleaIndexClass(array('fc_index_code' => 'xingqu', 'fc_index_id1' => $_POST['xingqu_cid1'], 'fc_index_id2' => $_POST['xingqu_cid2'], 'fc_index_id3' => $_POST['xingqu_cid3'], 'fc_index_id4' => $_POST['xingqu_cid4']));
         $e = $model_class->setFleaIndexClass(array('fc_index_code' => 'muying', 'fc_index_id1' => $_POST['muying_cid1'], 'fc_index_id2' => $_POST['muying_cid2'], 'fc_index_id3' => $_POST['muying_cid3'], 'fc_index_id4' => $_POST['muying_cid4']));
         if ($a && $b && $c && $d && e) {
             $a = $model_class->setFleaIndexClass(array('fc_index_code' => 'shuma', 'fc_index_name1' => $_POST['shuma_cname1'], 'fc_index_name2' => $_POST['shuma_cname2'], 'fc_index_name3' => $_POST['shuma_cname3'], 'fc_index_name4' => $_POST['shuma_cname4']));
             $b = $model_class->setFleaIndexClass(array('fc_index_code' => 'zhuangban', 'fc_index_name1' => $_POST['zhuangban_cname1'], 'fc_index_name2' => $_POST['zhuangban_cname2'], 'fc_index_name3' => $_POST['zhuangban_cname3'], 'fc_index_name4' => $_POST['zhuangban_cname4']));
             $c = $model_class->setFleaIndexClass(array('fc_index_code' => 'jujia', 'fc_index_name1' => $_POST['jujia_cname1'], 'fc_index_name2' => $_POST['jujia_cname2'], 'fc_index_name3' => $_POST['jujia_cname3'], 'fc_index_name4' => $_POST['jujia_cname4']));
             $d = $model_class->setFleaIndexClass(array('fc_index_code' => 'xingqu', 'fc_index_name1' => $_POST['xingqu_cname1'], 'fc_index_name2' => $_POST['xingqu_cname2'], 'fc_index_name3' => $_POST['xingqu_cname3'], 'fc_index_name4' => $_POST['xingqu_cname4']));
             $e = $model_class->setFleaIndexClass(array('fc_index_code' => 'muying', 'fc_index_name1' => $_POST['muying_cname1'], 'fc_index_name2' => $_POST['muying_cname2'], 'fc_index_name3' => $_POST['muying_cname3'], 'fc_index_name4' => $_POST['muying_cname4']));
             if ($a && $b && $c && $d && e) {
                 uk86_showMessage(Uk86Language::uk86_get('flea_class_setting_ok'));
             }
         } else {
             uk86_showMessage(Uk86Language::uk86_get('flea_class_setting_error'));
         }
     }
     Tpl::showpage('flea_class_index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:45,代码来源:flea_class_index.php

示例12: flea_indexOp

 function flea_indexOp()
 {
     /**
      * 读取语言包
      */
     $lang = Uk86Language::uk86_getLangContent();
     /**
      * 实例化模型
      */
     $model_setting = Model('setting');
     /**
      * 保存信息
      */
     if ($_POST['form_submit'] == 'ok') {
         $update_array = array();
         $update_array['flea_site_name'] = trim($_POST['flea_site_name']);
         $update_array['flea_site_title'] = trim($_POST['flea_site_title']);
         $update_array['flea_site_description'] = trim($_POST['flea_site_description']);
         $update_array['flea_site_keywords'] = trim($_POST['flea_site_keywords']);
         $update_array['flea_hot_search'] = str_replace(',', ',', trim($_POST['flea_hot_search']));
         $result = $model_setting->updateSetting($update_array);
         if ($result === true) {
             uk86_showMessage($lang['nc_common_save_succ']);
         } else {
             uk86_showMessage($lang['nc_common_save_fail']);
         }
     }
     /**
      * 读取设置内容 $list_setting
      */
     $list_setting = $model_setting->getListSetting();
     /**
      * 模板输出
      */
     Tpl::output('list_setting', $list_setting);
     Tpl::showpage('setting.flea_index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:37,代码来源:flea_index.php

示例13: store_domain_listOp

 /**
  * 店铺二级域名列表
  */
 public function store_domain_listOp()
 {
     $lang = Uk86Language::uk86_getLangContent();
     $condition = array();
     $condition['store_state'] = array('neq', 2);
     if (trim($_GET['store_name']) != '') {
         $condition['store_name'] = array('like', '%' . trim($_GET['store_name']) . '%');
     }
     if (trim($_GET['store_domain']) != '') {
         $condition['store_domain'] = array(array('neq', ''), array('like', '%' . trim($_GET['store_domain']) . '%'), 'and');
     } else {
         $condition['store_domain'] = array('neq', '');
     }
     $model_store = Model('store');
     $store_list = $model_store->where($condition)->order('store_sort asc')->page(10)->select();
     if (!empty($store_list)) {
         foreach ($store_list as $k => $v) {
             $store_list[$k]['state'] = $v['store_state'] == 1 ? $lang['open'] : $lang['close'];
         }
     }
     Tpl::output('store_list', $store_list);
     Tpl::output('page', $model_store->showpage('2'));
     Tpl::showpage('store_domain.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:domain.php

示例14: searchOp

 /**
  * 搜索设置
  */
 public function searchOp()
 {
     if (uk86_chksubmit()) {
         $lang = Uk86Language::uk86_getLangContent();
         $model_setting = Model('setting');
         /**
          * 转码  防止GBK下用中文逗号截取不正确
          */
         $comma = ',';
         if (strtoupper(CHARSET) == 'GBK') {
             $comma = Uk86Language::uk86_getGBK($comma);
         }
         $result = $model_setting->updateSetting(array('hot_search' => str_replace($comma, ',', $_POST['hot_search'])));
         if ($result) {
             uk86_showMessage($lang['nc_common_save_succ']);
         } else {
             uk86_showMessage($lang['nc_common_save_fail']);
         }
     }
     $model_setting = Model('setting');
     $list_setting = $model_setting->getListSetting();
     Tpl::output('list_setting', $list_setting);
     Tpl::showpage('setting.search');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:27,代码来源:search.php

示例15: brand_allOp

 /**
  * 所有品牌
  */
 public function brand_allOp()
 {
     //读取语言包
     Uk86Language::uk86_read('home_store_class_index');
     $lang = Uk86Language::uk86_getLangContent();
     //店铺类目快速搜索
     $class_list = ($h = F('store_class')) ? $h : uk86_rkcache('store_class', true, 'file');
     if (!key_exists($_GET['cate_id'], $class_list)) {
         $_GET['cate_id'] = 0;
     }
     Tpl::output('class_list', $class_list);
     //店铺搜索
     $model = Model();
     $condition = array();
     $keyword = trim($_GET['keyword']);
     if (C('fullindexer.open') && !empty($keyword)) {
         //全文搜索
         $condition = $this->full_search($keyword);
     } else {
         if ($keyword != '') {
             $condition['store_name|store_zy'] = array('like', '%' . $keyword . '%');
         }
         if ($_GET['user_name'] != '') {
             $condition['member_name'] = trim($_GET['user_name']);
         }
     }
     if (!empty($_GET['area_info'])) {
         $condition['area_info'] = array('like', '%' . $_GET['area_info'] . '%');
     }
     if ($_GET['cate_id'] > 0) {
         $child = array_merge((array) $class_list[$_GET['cate_id']]['child'], array($_GET['cate_id']));
         $condition['sc_id'] = array('in', $child);
     }
     $condition['store_state'] = 1;
     if (!in_array($_GET['order'], array('desc', 'asc'))) {
         unset($_GET['order']);
     }
     if (!in_array($_GET['key'], array('store_sales', 'store_credit'))) {
         unset($_GET['key']);
     }
     $order = 'store_sort asc';
     if (isset($condition['store.store_id'])) {
         $condition['store_id'] = $condition['store.store_id'];
         unset($condition['store.store_id']);
     }
     $model_store = Model('store');
     $store_list = $model_store->where($condition)->order($order)->page(10)->select();
     //获取店铺商品数,推荐商品列表等信息
     $store_list = $model_store->getStoreSearchList($store_list);
     //print_r($store_list);exit();
     //信用度排序
     if ($_GET['key'] == 'store_credit') {
         if ($_GET['order'] == 'desc') {
             $store_list = sortClass::sortArrayDesc($store_list, 'store_credit_average');
         } else {
             $store_list = sortClass::sortArrayAsc($store_list, 'store_credit_average');
         }
     } else {
         if ($_GET['key'] == 'store_sales') {
             //销量排行
             if ($_GET['order'] == 'desc') {
                 $store_list = sortClass::sortArrayDesc($store_list, 'num_sales_jq');
             } else {
                 $store_list = sortClass::sortArrayAsc($store_list, 'num_sales_jq');
             }
         }
     }
     Tpl::output('store_list', $store_list);
     Tpl::output('show_page', $model->showpage(2));
     //当前位置
     if (intval($_GET['cate_id']) > 0) {
         $nav_link[1]['link'] = 'index.php?act=shop_search';
         $nav_link[1]['title'] = $lang['site_search_store'];
         $nav = $class_list[$_GET['cate_id']];
         //如果有父级
         if ($nav['sc_parent_id'] > 0) {
             $tmp = $class_list[$nav['sc_parent_id']];
             //存入父级
             $nav_link[] = array('title' => $tmp['sc_name'], 'link' => "index.php?act=store_list&cate_id=" . $nav['sc_parent_id']);
         }
         //存入当前级
         $nav_link[] = array('title' => $nav['sc_name']);
     } else {
         $nav_link[1]['link'] = 'index.php';
         $nav_link[1]['title'] = $lang['homepage'];
         $nav_link[2]['title'] = $lang['site_search_store'];
     }
     $purl = $this->getParam();
     Tpl::output('nav_link_list', $nav_link);
     Tpl::output('purl', uk86_urlShop($purl['act'], $purl['op'], $purl['param']));
     //SEO
     Model('seo')->type('index')->show();
     Tpl::output('html_title', (empty($_GET['keyword']) ? '' : $_GET['keyword'] . ' - ') . C('site_name') . $lang['nc_common_search']);
     Tpl::showpage('brand_all');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:98,代码来源:store_list.php


注:本文中的Uk86Language::uk86_getLangContent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。