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


PHP view::make方法代码示例

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


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

示例1: setAddrDef

 public function setAddrDef()
 {
     $postData = input::get();
     $addritem = app::get('sysshoppubt')->model('deliveryaddr');
     try {
         $sql = "update sysshoppubt_deliveryaddr set def_addr = 0 where uniqid = '" . $postData['uniqid'] . "'";
         app::get('sysshoppubt')->database()->executeUpdate($sql);
         $sql = "update sysshoppubt_deliveryaddr set def_addr = 1 where deliveryaddr_id = '" . $postData['deliveryaddr_id'] . "'";
         app::get('sysshoppubt')->database()->executeUpdate($sql);
         $filter['uniqid'] = $postData['uniqid'];
         $userAddrList = $addritem->getList('*', $filter);
         foreach ($userAddrList as &$addr) {
             list($regions, $region_id) = explode(':', $addr['area']);
             $addr['region_id'] = str_replace('/', ',', $region_id);
         }
         $pagedata['userAddrList'] = $userAddrList;
         $msg = view::make('topc/member/shoppubt/add_edit.html', $pagedata)->render();
         return $this->splash('success', null, $msg, true);
     } catch (Exception $e) {
         $msg = $e->getMessage();
         return $this->splash('error', null, $msg);
     } catch (\LogicException $e) {
         $msg = $e->getMessage();
         return $this->splash('error', null, $msg);
     }
 }
开发者ID:453111208,项目名称:bbc,代码行数:26,代码来源:deliveryaddr.php

示例2: chart_view

    public function chart_view()
    {
        $type = $_GET['type'];
        $filter = array('time_from' => $_GET['time_from'], 'time_to' => $_GET['time_to']);
        $memberObj = app::get('sysstat')->model('analysis_member');
        $login_name = array();
        $saleTimes = array();
        $salePrice = array();
        if ($type == 'volume') {
            $data = $memberObj->getlist($cols = '*', $filter, 0, 20, 'saleTimes desc');
            foreach ($data as $val) {
                $login_name[] = '\'' . $val['login_name'] . '\'';
                $saleTimes[] = $val['saleTimes'];
            }
            $categories = implode(',', $login_name);
            $volume = implode(',', $saleTimes);
            $pagedata['categories'] = '[' . $categories . ']';
            $pagedata['data'] = '{
				name: \'' . app::get('sysstat')->_('订单量') . '\',
				data: [' . $volume . ']}';
        } else {
            $data = $memberObj->getlist($cols = '*', $filter, 0, 20, 'salePrice desc');
            foreach ($data as $val) {
                $login_name[] = '\'' . $val['login_name'] . '\'';
                $salePrice[] = $val['salePrice'];
            }
            $categories = implode(',', $login_name);
            $turnover = implode(',', $salePrice);
            $pagedata['categories'] = '[' . $categories . ']';
            $pagedata['data'] = '{
				name: \'' . app::get('sysstat')->_('订单额') . '\',
				data: [' . $turnover . ']}';
        }
        return view::make("sysstat/admin/analysis/chart_type_column.html", $pagedata);
    }
开发者ID:453111208,项目名称:bbc,代码行数:35,代码来源:member.php

示例3: detail_basic

 function detail_basic($id)
 {
     $oXHProf = app::get('serveradm')->model('xhprof');
     $aData = $oXHProf->dump($id);
     $pagedata['data'] = $aData;
     return view::make('serveradm/admin/xhprof_detail.html', $pagedata)->render();
 }
开发者ID:453111208,项目名称:bbc,代码行数:7,代码来源:xhprof.php

示例4: edit

 public function edit($id)
 {
     //$modul=Submodule::getModuleNotIn($id)->get();
     $modul = Submodule::getModule($id)->get();
     $allmodul = Module::getAllModule();
     return view::make('usermanagement::roles.editRoles', compact('modul', 'allmodul', 'id'));
 }
开发者ID:artcakstudio,项目名称:tiketsaya,代码行数:7,代码来源:RolesController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $rules = array('private' => 'numeric|required', 'title' => 'max:46|required', 'paste' => 'required', 'expire' => 'required|numeric', 'private' => 'required|numeric', 'tags' => 'max:6|alpha');
     $validator = Validator::make(Input::all(), $rules);
     if ($validator->fails()) {
         $messages = $validator->messages();
         return View::make('paste.form')->withErrors($messages);
     }
     $new_paste = new Paste();
     $new_paste->title = Input::get('title');
     $new_paste->token = Str::random(40);
     $new_paste->delete_token = Str::random(40);
     $new_paste->paste = Input::get('paste');
     $new_paste->private = Input::get('private');
     date_default_timezone_set('UTC');
     $expire_time = date('Y-m-d H:i:s', strtotime(sprintf('now + %s minutes', Input::get('expire'))));
     $new_paste->expire = $expire_time;
     if (!$new_paste->save()) {
         Debugbar::error('Saving failed!');
     }
     // Check if tags are set
     if (Input::has('hidden-tags')) {
         $tags = explode(' ', Input::get('hidden-tags'));
         foreach ($tags as $key => $tag) {
             $tag_model = new Tag();
             $tag_model->tag = $tag;
             $tag_model->paste_id = $new_paste->id;
             $new_paste->tags()->save($tag_model);
         }
     }
     if ($new_paste->id) {
         return Redirect::route('paste.show', $new_paste->token)->withCookie(Cookie::make('edittoken', $new_paste->token, 30));
     }
     return view::make('paste.form', array('page_title' => 'Create a paste'));
 }
开发者ID:dwbfox,项目名称:pasteboard,代码行数:40,代码来源:PasteController.php

示例6: check

 public function check()
 {
     $sa = kernel::single('desktop_user');
     $admName = $sa->get_login_name();
     $ideas = $_POST["ideas"];
     $is_through = $_POST["is_through"];
     $saveItem = app::get('sysshoppubt')->model('checks');
     $postData = input::get();
     $postData['create_time'] = time();
     $postData['name'] = $admName;
     $saveItem->save($postData);
     if ($is_through == '1') {
         $saveItem = app::get('sysshoppubt')->model('biddings');
         $paminfo = $saveItem->getRow('*', array('bidding_id' => $ideas));
         $paminfo1 = $paminfo;
         $seegoods_stime = strtotime($postData['seegoods_stime']);
         $paminfo['seegoods_stime'] = $seegoods_stime;
         $paminfo['through_time'] = $postData['create_time'];
         $paminfo['is_through'] = '1';
         $saveItem->update($paminfo, $paminfo1);
         return view::make('sysshoppubt/check/passsucc.html')->render();
     } else {
         return view::make('sysshoppubt/check/checksucc.html')->render();
     }
 }
开发者ID:453111208,项目名称:bbc,代码行数:25,代码来源:biddings.php

示例7: index

 public function index()
 {
     /** 登录之前的预先验证 **/
     if (!defined("STRESS_TESTING")) {
         $obj_services = kernel::servicelist('app_pre_auth_use');
         foreach ($obj_services as $obj) {
             if (method_exists($obj, 'pre_auth_uses') && method_exists($obj, 'login_verify')) {
                 $pagedata['desktop_login_verify'] = $obj->login_verify();
             }
         }
     }
     /** end **/
     //检查证书是否合法,从而判定产品功能是否可用。比如b2c功能
     $certCheckObj = kernel::service("product_soft_certcheck");
     if (is_object($certCheckObj) && method_exists($certCheckObj, "check")) {
         $certCheckObj->check();
     }
     $pagedata['desktop'] = url::route('shopadmin');
     $pagedata['redirect'] = input::get('url');
     $pagedata['Commerce'] = 'yes';
     $pagedata['img_url'] = app::get('desktop')->res_url . '/images/login.png';
     if (pamAccount::isEnableVcode('desktop')) {
         $pagedata['show_varycode'] = 'true';
     }
     $pagedata['error_info'] = urldecode(input::get('msg'));
     $conf = base_setup_config::deploy_info();
     $pagedata['product_key'] = $conf['product_key'];
     return view::make('desktop/login.html', $pagedata);
 }
开发者ID:453111208,项目名称:bbc,代码行数:29,代码来源:passport.php

示例8: godelivery

 /**
  * 产生订单发货页面
  * @params string order id
  * @return string html
  */
 public function godelivery()
 {
     $tid = input::get('tid');
     if (!$tid) {
         header('Content-Type:application/json; charset=utf-8');
         echo '{error:"' . app::get('topshop')->_("订单号传递出错.") . '",_:null}';
         exit;
     }
     $params['tid'] = $tid;
     $params['fields'] = "tid,receiver_name,receiver_mobile,receiver_state,receiver_district,receiver_address,need_invoice,ziti_addr,invoice_type,invoice_name,invoice_main,orders.tid,orders.oid,dlytmpl_id";
     $tradeInfo = app::get('topshop')->rpcCall('trade.get', $params, 'seller');
     $oids = implode(',', array_column($tradeInfo['orders'], 'oid'));
     $delivery = $this->createDelivery(array('tid' => $tid, 'oids' => $oids));
     $pagedata['delivery'] = $delivery;
     $pagedata['tradeInfo'] = $tradeInfo;
     //获取用户的物流模板
     if ($tradeInfo['dlytmpl_id'] == 0 && $tradeInfo['ziti_addr']) {
         $dlycorp = app::get('topshop')->rpcCall('logistics.dlycorp.get.list');
         $pagedata['dlycorp'] = $dlycorp['data'];
     } else {
         $dtytmpl = app::get('topshop')->rpcCall('logistics.dlytmpl.get', array('shop_id' => $this->shopId, 'template_id' => $tradeInfo['dlytmpl_id']));
         $pagedata['dtyList'] = $dtytmpl;
     }
     return view::make('topshop/trade/godelivery.html', $pagedata);
 }
开发者ID:453111208,项目名称:bbc,代码行数:30,代码来源:flow.php

示例9: quiz

 public function quiz()
 {
     if (Session::has('id') && (Session::get('type') === 'Student' || Session::get('type') === 'SuperAdmin')) {
         //$questions = Question::all();
         //$ansAr = array(
         //);
         $random_question = Question::orderBY(DB::raw('Rand()', 'Unique()'))->take(2)->get(array('id', 'q_description', 'q_opt_1', 'q_opt_2', 'q_opt_3', 'q_opt_4', 'q_ans'));
         //print_r($random_question);
         $cnt = 0;
         foreach ($random_question as $tmp) {
             //			    print_r($tmp);
             //			    print("---------------\n-----------------");
             $cnt++;
         }
         $totNoOfQus = $cnt;
         //echo $cnt;
         $correct_answer = array_pluck($random_question, 'q_ans');
         $qIds = array_pluck($random_question, 'id');
         $combined = array_combine($qIds, $correct_answer);
         //		    echo '<pre>';
         //		    print_r($combined);
         //		    die;
         Session::put('correct_answer', $combined);
         Session::put('total_qus', $totNoOfQus);
         //		    return $correct_answer;
         return view::make('quiz')->with('title', 'QUIZ')->with('quiz', $random_question);
     } else {
         echo 'You are not authorised';
     }
 }
开发者ID:hramose,项目名称:MCQ-Test-using-Laravel-5.0,代码行数:30,代码来源:QuizController.php

示例10: create

 public function create()
 {
     $city = City::all();
     $type = VehicleType::all();
     $partner = Partner::all();
     return view::make('vehicle::addVehicle', compact('city', 'type', 'partner'));
 }
开发者ID:artcakstudio,项目名称:tiketsaya,代码行数:7,代码来源:VehicleController.php

示例11: chart_view

 public function chart_view()
 {
     $show = $_GET['show'];
     //todo 这里需要根据不同的需求读取数据
     if ($_GET['callback']) {
         $data = kernel::single($_GET['callback'])->fetch_graph_data($_GET);
     } else {
         $data = kernel::single('ectools_analysis_base')->fetch_graph_data($_GET);
     }
     $pagedata['categories'] = '["' . @join('","', $data['categories']) . '"]';
     foreach ($data['data'] as $key => $val) {
         $tmp[] = '{name:"' . addslashes($key) . '",data:[' . @join(',', $val) . ']}';
     }
     $pagedata['data'] = '[' . @join(',', $tmp) . ']';
     switch ($show) {
         case 'line':
             return view::make("ectools/analysis/chart_type_line.html", $pagedata);
             break;
         case 'column':
             return view::make("ectools/chart_type_column.html", $pagedata);
             break;
         default:
             return view::make("ectools/analysis/chart_type_default.html", $pagedata);
             break;
     }
 }
开发者ID:453111208,项目名称:bbc,代码行数:26,代码来源:analysis.php

示例12: get_single

 public function get_single(Request $request, $id)
 {
     $view = view::make("project");
     $view->projects = Project::all();
     $view->active_project = Project::find($id);
     return $view;
 }
开发者ID:coderehab,项目名称:Tinypmt,代码行数:7,代码来源:ProjectController.php

示例13: ajaxCouponData

 public function ajaxCouponData()
 {
     $filter = input::get();
     if (!$filter['pages']) {
         $filter['pages'] = 1;
     }
     $pageSize = 10;
     $params = array('page_no' => $pageSize * ($filter['pages'] - 1), 'page_size' => $pageSize, 'fields' => '*', 'user_id' => userAuth::id());
     $couponListData = app::get('topm')->rpcCall('user.coupon.list', $params, 'buyer');
     $count = $couponListData['count'];
     $couponList = $couponListData['coupons'];
     //处理翻页数据
     $current = $filter['pages'] ? $filter['pages'] : 1;
     $filter['pages'] = time();
     if ($count > 0) {
         $total = ceil($count / $pageSize);
     }
     $pagedata['pagers'] = array('link' => url::action('topm_ctl_member_coupon@couponList', $filter), 'current' => $current, 'total' => $total, 'token' => $filter['pages']);
     $pagedata['couponList'] = $couponList;
     $pagedata['count'] = $count;
     $pagedata['action'] = 'topm_ctl_member_coupon@couponList';
     if (input::get('json')) {
         $data['html'] = view::make('topm/member/coupon/list.html', $pagedata)->render();
         $data['pagers'] = $pagedata['pagers'];
         $data['success'] = true;
         return response::json($data);
         exit;
     }
     return view::make('topm/member/coupon/list.html', $pagedata);
 }
开发者ID:453111208,项目名称:bbc,代码行数:30,代码来源:coupon.php

示例14: active_top_html

 public function active_top_html()
 {
     /** 获取证书,企业号的验证 **/
     $active_url = url::route('shopadmin', ['app' => 'entermembercenter', 'ctl' => 'register']);
     $pagedata['active_url'] = $active_url;
     return view::make('entermembercenter/desktop_active_top.html', $pagedata)->render();
 }
开发者ID:453111208,项目名称:bbc,代码行数:7,代码来源:use.php

示例15: get_output

 function get_output()
 {
     $act = app::get('desktop')->model('menus')->getList('menu_id,app_id,menu_title,menu_path,workground', array('menu_type' => 'workground', 'disabled' => 0));
     $user = kernel::single('desktop_user');
     if ($user->is_super()) {
         $aData = $act;
     } else {
         $group = $user->group();
         $meuns = app::get('desktop')->model('menus');
         $data = array();
         foreach ($group as $key => $val) {
             $aTmp = $meuns->workgroup($val);
             foreach ($aTmp as $val) {
                 $data[] = $val;
             }
         }
         $aData = $data;
     }
     $menu_id = array();
     $wrokground = array();
     foreach ((array) $aData as $value) {
         if (!in_array($value['menu_id'], (array) $menu_id)) {
             $workground[] = $value;
         }
         $menu_id[] = $value['menu_id'];
     }
     $pagedata['actions'] = $workground;
     $pagedata['side'] = "sidepanel";
     return view::make('desktop/sidepanel.html', $pagedata)->render();
 }
开发者ID:453111208,项目名称:bbc,代码行数:30,代码来源:dashboard.php


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