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


PHP Tpl::output方法代码示例

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


在下文中一共展示了Tpl::output方法的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: informationOp

 /**
  * 详细资料
  */
 public function informationOp() {
     $model_dp = Model('delivery_point');
     $delivery_info = $model_dp->getDeliveryPointInfo(array('dlyp_id' => $_SESSION['dlyp_id']));
     Tpl::output('delivery_info', $delivery_info);
     Tpl::output('delivery_state', $model_dp->getDeliveryState());
     Tpl::showpage('d_center.information', 'null_layout');
 }
开发者ID:noikiy,项目名称:ejia,代码行数:10,代码来源:d_center.php

示例3: showTip

 protected function showTip($msg, $url = '', $show_type = 'html', $msg_type = 'succ', $is_show = 1, $time = 2000)
 {
     /**
      * 如果默认为空,则跳转至上一步链接
      */
     $url = $url != '' ? $url : getReferer();
     $msg_type = in_array($msg_type, array('succ', 'error')) ? $msg_type : 'error';
     if (is_array($url)) {
         foreach ($url as $k => $v) {
             $url[$k]['url'] = $v['url'] ? $v['url'] : getReferer();
         }
     }
     /**
      * 读取信息布局的语言包
      */
     Language::read("msg");
     /**
      * html输出形式
      * 指定为指定项目目录下的error模板文件
      */
     Tpl::setDir('');
     Tpl::output('html_title', Language::get('nc_html_title'));
     Tpl::output('msg', $msg);
     Tpl::output('url', $url);
     Tpl::output('msg_type', $msg_type);
     Tpl::output('is_show', $is_show);
     Tpl::showpage('msg', $this->layout, $time);
     exit;
 }
开发者ID:noikiy,项目名称:shopnc-2,代码行数:29,代码来源:control.php

示例4: flistOp

 /**
  * 意见反馈
  */
 public function flistOp()
 {
     $lang = Language::getLangContent();
     $model_link = Model('mb_feedback');
     /**
      * 删除
      */
     if ($_POST['form_submit'] == 'ok') {
         if (is_array($_POST['del_id']) && !empty($_POST['del_id'])) {
             foreach ($_POST['del_id'] as $k => $v) {
                 $model_link->del($v);
             }
             showMessage($lang['feedback_del_succ']);
         } else {
             showMessage($lang['feedback_del_fiald']);
         }
     }
     /**
      * 分页
      */
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     $list = $model_link->getList(array(), $page);
     Tpl::output('list', $list);
     Tpl::output('page', $page->show());
     Tpl::showpage('mb_feedback.index');
 }
开发者ID:noikiy,项目名称:nc-1,代码行数:31,代码来源:mb_feedback.php

示例5: detailOp

 /**
  * 店铺详细页
  */
 public function detailOp()
 {
     $store_id = intval($_GET['store_id']);
     if ($store_id <= 0) {
         header('location: ' . MICROSHOP_SITE_URL);
         die;
     }
     $model_store = Model('store');
     $model_goods = Model('goods');
     $model_microshop_store = Model('micro_store');
     $store_info = $model_microshop_store->getOneWithStoreInfo(array('microshop_store_id' => $store_id));
     if (empty($store_info)) {
         header('location: ' . MICROSHOP_SITE_URL);
     }
     //点击数加1
     $update = array();
     $update['click_count'] = array('exp', 'click_count+1');
     $model_microshop_store->modify($update, array('microshop_store_id' => $store_id));
     Tpl::output('detail', $store_info);
     $condition = array();
     $condition['store_id'] = $store_info['shop_store_id'];
     $goods_list = $model_goods->getGoodsListByColorDistinct($condition, 'goods_id,store_id,goods_name,goods_image,goods_price,goods_salenum', 'goods_id asc', 39);
     Tpl::output('comment_type', 'store');
     Tpl::output('comment_id', $store_id);
     Tpl::output('list', $goods_list);
     Tpl::output('show_page', $model_goods->showpage());
     //获得分享app列表
     self::get_share_app_list();
     Tpl::output('html_title', $store_info['store_name'] . '-' . Language::get('nc_microshop_store') . '-' . Language::get('nc_microshop') . '-' . C('site_name'));
     Tpl::showpage('store_detail');
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:34,代码来源:store.php

示例6: indexOp

 /**
  * 店铺帮助页
  *
  */
 public function indexOp()
 {
     $model_help = Model('help');
     $list = $model_help->getShowStoreHelpList();
     $type_id = intval($_GET['t_id']);
     //帮助类型编号
     if ($type_id < 1 || empty($list[$type_id])) {
         $type_array = current($list);
         $type_id = $type_array['type_id'];
     }
     Tpl::output('type_id', $type_id);
     $help_id = intval($_GET['help_id']);
     //帮助编号
     if ($help_id < 1 || empty($list[$type_id]['help_list'][$help_id])) {
         $help_array = current($list[$type_id]['help_list']);
         $help_id = $help_array['help_id'];
     }
     Tpl::output('help_id', $help_id);
     $help = $list[$type_id]['help_list'][$help_id];
     Tpl::output('list', $list);
     //左侧帮助类型及帮助
     Tpl::output('help', $help);
     //当前帮助
     Tpl::output('article_list', '');
     //底部不显示首页的文章分类
     $phone_array = explode(',', C('site_phone'));
     Tpl::output('phone_array', $phone_array);
     Tpl::output('html_title', C('site_name') . ' - ' . '商家帮助指南');
     Tpl::setLayout('store_joinin_layout');
     Tpl::showpage('store_help');
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:35,代码来源:show_help.php

示例7: indexOp

 /**
  * 编辑信息
  */
 public function indexOp()
 {
     $model_dp = Model('delivery_point');
     $dpoint_info = $model_dp->getDeliveryPointFailInfo(array('dlyp_id' => $_SESSION['dlyp_id']));
     Tpl::output('dpoint_info', $dpoint_info);
     Tpl::showpage('joinin_again', 'login_layout');
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:10,代码来源:joinin_again.php

示例8: profile_menu

 /**
  * 用户中心右边,小导航
  *
  * @param string 	$menu_key	当前导航的menu_key
  * @return
  */
 private function profile_menu($menu_key = '')
 {
     $menu_array = array();
     $menu_array[] = array('menu_key' => 'cost_list', 'menu_name' => '消费列表', 'menu_url' => urlShop('store_cost', 'cost_list'));
     Tpl::output('member_menu', $menu_array);
     Tpl::output('menu_key', $menu_key);
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:13,代码来源:store_cost.php

示例9: pointvoucherOp

 /**
  * 所有卡卷包
  */
 public function pointvoucherOp()
 {
     $model = Model('voucher_template');
     //查询条件
     $condition = array();
     $condition['voucher_t_start_date'] = array('lt', time());
     $condition['voucher_t_end_date'] = array('gt', time());
     $condition['voucher_t_state'] = 1;
     $condition['voucher_t_total'] = array('gt', 'voucher_t_giveout');
     //排序
     if ($_GET['order_type'] == 1 || empty($_GET['order_type'])) {
         $order = 'voucher_t_recommend desc, voucher_t_start_date desc';
     } elseif ($_GET['order_type'] == 2) {
         $order = 'voucher_t_giveout desc';
     } else {
         if ($_GET['order'] == 'asc') {
             $order = 'voucher_t_points asc';
         } else {
             $order = 'voucher_t_points desc';
         }
     }
     $field = 'voucher_t_id, voucher_t_end_date, voucher_t_price, voucher_t_points, voucher_t_limit, voucher_t_title, voucher_t_customimg';
     $voucher_list = $model->where($condition)->field($field)->order($order)->select();
     Tpl::output('list', $voucher_list);
     Tpl::showpage('ucoin.index');
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:29,代码来源:wap_UCoin.php

示例10: resources_manageOp

 /**
  * cms设置
  */
 public function resources_manageOp()
 {
     $model_setting = Model('setting');
     $setting_list = $model_setting->getListSetting();
     Tpl::output('setting', $setting_list);
     Tpl::showpage('resources_manage');
 }
开发者ID:ff00x0,项目名称:shopnc-api,代码行数:10,代码来源:resources_manage.php

示例11: indexOp

 public function indexOp()
 {
     $model_store = Model('store');
     $model_store_bind_class = Model('store_bind_class');
     $model_store_class = Model('store_class');
     $model_store_grade = Model('store_grade');
     // 店铺信息
     $store_info = $model_store->getStoreInfoByID($_SESSION['store_id']);
     Tpl::output('store_info', $store_info);
     // 店铺分类信息
     $store_class_info = $model_store_class->getOneClass($store_info['sc_id']);
     Tpl::output('store_class_name', $store_class_info['sc_name']);
     // 店铺等级信息
     $store_grade_info = $model_store_grade->getOneGrade($store_info['grade_id']);
     Tpl::output('store_grade_name', $store_grade_info['sg_name']);
     $model_store_joinin = Model('store_joinin');
     $joinin_detail = $model_store_joinin->getOne(array('member_id' => $store_info['member_id']));
     Tpl::output('joinin_detail', $joinin_detail);
     $store_bind_class_list = $model_store_bind_class->getStoreBindClassList(array('store_id' => $_SESSION['store_id']), null);
     $goods_class = H('goods_class') ? H('goods_class') : H('goods_class', true);
     for ($i = 0, $j = count($store_bind_class_list); $i < $j; $i++) {
         $store_bind_class_list[$i]['class_1_name'] = $goods_class[$store_bind_class_list[$i]['class_1']]['gc_name'];
         $store_bind_class_list[$i]['class_2_name'] = $goods_class[$store_bind_class_list[$i]['class_2']]['gc_name'];
         $store_bind_class_list[$i]['class_3_name'] = $goods_class[$store_bind_class_list[$i]['class_3']]['gc_name'];
     }
     Tpl::output('store_bind_class_list', $store_bind_class_list);
     Tpl::showpage('store_info');
 }
开发者ID:noikiy,项目名称:nc-1,代码行数:28,代码来源:store_info.php

示例12: indexOp

 /**
  * 分类列表
  */
 public function indexOp()
 {
     Language::read('home_category_index');
     $lang = Language::getLangContent();
     //得到分类类型
     $type = trim($_GET['type']);
     switch ($type) {
         case 'store':
             $model_sc = Model('store_class');
             $sc_list = $model_sc->getTreeList();
             //导航
             $nav_link = array('0' => array('title' => $lang['homepage'], 'link' => SiteUrl . '/index.php'), '1' => array('title' => $lang['category_index_store_class']));
             $model_store = Model('store');
             //推荐店铺
             $recommend_store = $model_store->getRecommendStore(5);
             Tpl::output('recommend_store', $recommend_store);
             //最新店铺
             $new_store = $model_store->getNewStore(5);
             Tpl::output('new_store', $new_store);
             Tpl::output('nav_link_list', $nav_link);
             Tpl::output('sc_list', $sc_list);
             Tpl::showpage('category_store');
             break;
         default:
             //导航
             $nav_link = array('0' => array('title' => $lang['homepage'], 'link' => SiteUrl . '/index.php'), '1' => array('title' => $lang['category_index_goods_class']));
             //分类
             $show_goods_class = ($g = F('goods_class')) ? $g : H('goods_class', true, 'file');
             Tpl::output('nav_link_list', $nav_link);
             Tpl::output('gc_list', $show_goods_class);
             Tpl::output('html_title', C('site_name') . ' - ' . Language::get('category_index_goods_class'));
             Tpl::showpage('category_goods');
             break;
     }
 }
开发者ID:my1977,项目名称:shopnc,代码行数:38,代码来源:category.php

示例13: indexOp

	public function indexOp(){
	    //查询会员及其附属信息
	    parent::pointshopMInfo();
	    
	    //开启代金券功能后查询推荐的热门代金券列表
	    if (C('voucher_allow') == 1){
	        $recommend_voucher = Model('voucher')->getRecommendTemplate(6);
	        Tpl::output('recommend_voucher',$recommend_voucher);
	    }
	    //开启积分兑换功能后查询推荐的热门兑换商品列表
	    if (C('pointprod_isuse') == 1){
	        //热门积分兑换商品
	        $recommend_pointsprod = Model('pointprod')->getRecommendPointProd(10);
	        Tpl::output('recommend_pointsprod',$recommend_pointsprod);
	    }
	    
	    //SEO
	    Model('seo')->type('point')->show();
	    //分类导航
	    $nav_link = array(
	            0=>array('title'=>L('homepage'),'link'=>SHOP_SITE_URL),
	            1=>array('title'=>L('nc_pointprod'))
	    );
	    Tpl::output('nav_link_list', $nav_link);
	    Tpl::showpage('pointprod');
	}
开发者ID:noikiy,项目名称:ejia,代码行数:26,代码来源:pointshop.php

示例14: welcomeOp

 /**
  * 欢迎页面
  */
 public function welcomeOp()
 {
     /**
      * 管理员信息
      */
     $model_admin = Model('admin');
     $tmp = $this->getAdminInfo();
     $condition['admin_id'] = $tmp['id'];
     $admin_info = $model_admin->infoAdmin($condition);
     $admin_info['admin_login_time'] = date('Y-m-d H:i:s', $admin_info['admin_login_time'] == '' ? time() : $admin_info['admin_login_time']);
     /**
      * 系统信息
      */
     require BasePath . DS . 'config.ini.php';
     if (!empty($config) && is_array($config)) {
         $version = $config['version'];
         $setup_date = $config['setup_date'];
     }
     $statistics['os'] = PHP_OS;
     $statistics['web_server'] = $_SERVER['SERVER_SOFTWARE'];
     $statistics['php_version'] = PHP_VERSION;
     $statistics['sql_version'] = Db::getServerInfo();
     $statistics['shop_version'] = $version;
     $statistics['setup_date'] = substr($setup_date, 0, 10);
     Tpl::output('statistics', $statistics);
     Tpl::output('admin_info', $admin_info);
     Tpl::showpage('welcome');
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:dashboard.php

示例15: pic_cutOp

 /**
  * 图片裁剪
  *
  */
 public function pic_cutOp()
 {
     import('function.thumb');
     if (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;
         }
         $save_file2 = str_replace('_small.', '_sm.', $src);
         $cropped = resize_thumb($save_file2, $src, $w, $h, $x1, $y1, $scale);
         @unlink($src);
         $pathinfo = pathinfo($save_file2);
         exit($pathinfo['basename']);
     } else {
         Language::read('cut');
         $lang = Language::getLangContent();
     }
     $save_file = str_ireplace(UPLOAD_SITE_URL, BASE_UPLOAD_PATH, $_GET['url']);
     $_GET['x'] = intval($_GET['x']) > 50 && $_GET['x'] < 400 ? $_GET['x'] : 200;
     $_GET['y'] = intval($_GET['y']) > 50 && $_GET['y'] < 400 ? $_GET['y'] : 200;
     $_GET['resize'] = $_GET['resize'] == '0' ? '0' : '1';
     Tpl::output('height', get_height($save_file));
     Tpl::output('width', get_width($save_file));
     Tpl::showpage('cut', 'null_layout');
 }
开发者ID:flying3615,项目名称:chuniang,代码行数:37,代码来源:cut.php


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