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


PHP Sample::category方法代码示例

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


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

示例1: getIndex

 public function getIndex()
 {
     $category = Sample::category(Session::get('user_name'));
     if ($category && $category->status == "success") {
         $products = $category->products;
         foreach ($products as $product) {
             Session::put($product->shortName, $product->prodCode);
         }
     }
     return View::make('retailer.dashboard.dashboard');
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:11,代码来源:RetailerdashboardController.php

示例2: getShow

 public function getShow($id)
 {
     $userdata = Sample::user($id);
     if ($userdata && $userdata->status == "success") {
         $userproducts = Sample::category($userdata->userId);
         $adminproducts = Sample::category(Session::get('user_name'));
         $usercategory = $userproducts->categories;
         $userproduct = $userproducts->products;
         $admincategory = $adminproducts->categories;
         $adminproduct = $adminproducts->products;
         return View::make('superadmin.admin.editview')->with('userdata', $userdata)->with('usercategory', $usercategory)->with('userproduct', $userproduct)->with('admincategory', $admincategory)->with('adminproduct', $adminproduct);
     } else {
         return View::make('superadmin.service');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:15,代码来源:SuperadminadminController.php

示例3: getRetailerprod

 public static function getRetailerprod($admin)
 {
     $userdata = Sample::category($admin);
     //$userdata=json_decode($senddata);
     //print_r($userdata);exit;
     $category = $userdata->categories;
     $products = $userdata->products;
     foreach ($category as $categories) {
         echo "<li class='parent-list'><input type='checkbox' name=''  class='canine parent' />" . $categories->fullName . " <i class='fa fa-arrow-down'></i><ul>";
         foreach ($products as $product) {
             if ($product->catgCode == $categories->catgCode) {
                 echo "<li><input type='checkbox' name='prodCode[]' class='canine' id='' value='" . $product->prodCode . "'/>" . $product->fullName . "</li>";
             }
         }
         echo "</ul></li>";
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:17,代码来源:FranchisedashboardController.php

示例4: getShow

 public function getShow($id)
 {
     $userdata = Sample::user($id);
     if ($userdata && $userdata->status == "success") {
         $userproducts = Sample::category($userdata->userId);
         $adminproducts = Sample::category($userdata->parentId);
         $usercategory = $userproducts->categories;
         $userproduct = $userproducts->products;
         $admincategory = $adminproducts->categories;
         $adminproduct = $adminproducts->products;
         return View::make('admin.subretailer.editview')->with('userdata', $userdata)->with('usercategory', $usercategory)->with('userproduct', $userproduct)->with('admincategory', $admincategory)->with('adminproduct', $adminproduct);
     } else {
         return Redirect::to('admin/noservice');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:15,代码来源:AdminsubretailerController.php

示例5: getPancardmanage

 public static function getPancardmanage()
 {
     $category = Sample::category(Session::get('user_name'));
     if ($category) {
         $products = $category->products;
         foreach ($products as $product) {
             if ($product->prodCode == '2001') {
                 $sendata = Services::getpan();
                 $senddata = json_decode($sendata);
                 //print_r($sendata); exit;
                 if ($sendata && $senddata->status == "success") {
                     $pandata = $senddata->panForms;
                     return View::make('subretailer.pancard.manageview')->with('pandata', $pandata);
                 } else {
                     $pandata = "";
                     return View::make('subretailer.pancard.manageview')->with('pandata', $pandata);
                 }
             }
         }
     } else {
         return View::make('service');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:23,代码来源:SubretailerController.php

示例6: getPancardmanage

 public static function getPancardmanage()
 {
     $category = Sample::category(Session::get('user_name'));
     if ($category) {
         $products = $category->products;
         //echo "<pre>";print_r(Session::all()); exit;
         foreach ($products as $product) {
             if ($product->prodCode == '2001') {
                 $sendata = Services::getpan();
                 $senddata = json_decode($sendata);
                 //print_r($senddata); exit;
                 if ($senddata) {
                     $pandata = $senddata->panForms;
                 }
                 return View::make('retailer.pancard.manageview')->with('pandata', $pandata);
             }
         }
         return View::make('retailer.static');
     } else {
         return View::make('retailer.service');
     }
 }
开发者ID:arctic-dev,项目名称:appandukan-php,代码行数:22,代码来源:RetailerController.php


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