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


PHP CommonAction::index方法代码示例

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


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

示例1: index

 public function index()
 {
     if (strim($_REQUEST['order_sn']) != '') {
         $condition['order_id'] = M("DealOrder")->where("order_sn='" . strim($_REQUEST['order_sn']) . "'")->getField("id");
     }
     if (strim($_REQUEST['notice_sn']) != '') {
         $condition['notice_sn'] = $_REQUEST['notice_sn'];
     }
     if (strim($_REQUEST['user_name']) != '') {
         $condition['user_id'] = M("User")->where("user_name='" . strim($_REQUEST['user_name']) . "'")->getField("id");
     }
     if (strim($_REQUEST['begin_time']) != '') {
         $start_time = strtotime($_REQUEST['begin_time'] . ' 00:00:00');
         $end_time = strtotime($_REQUEST['begin_time'] . ' 23:59:59');
         $condition['s_create_time'] = $start_time;
         //开始时间
         $condition['e_create_time'] = $end_time;
         //结束时间
     }
     $condition['is_payment_list'] = 1;
     if (intval($_REQUEST['payment_id']) == 0) {
         unset($_REQUEST['payment_id']);
     }
     $this->assign("default_map", $condition);
     $this->assign("payment_list", M("Payment")->findAll());
     parent::index();
 }
开发者ID:macall,项目名称:jishida,代码行数:27,代码来源:PaymentNoticeAction.class.php

示例2: index

 public function index()
 {
     $this->assign("parent_region", M("DeliveryRegion")->where("id=" . intval($_REQUEST['pid']))->find());
     $condition['pid'] = intval($_REQUEST['pid']);
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:dalinhuang,项目名称:zsh_business,代码行数:7,代码来源:DeliveryRegionAction.class.php

示例3: index

 public function index()
 {
     $data = parent::index(true, false);
     $params = array($data, false);
     tag("assign_dataModel_data", $params);
     $this->response($params[0]);
 }
开发者ID:bqx619,项目名称:ones_dev,代码行数:7,代码来源:ProductTplAction.class.php

示例4: add_sms

 public function add_sms()
 {
     //输出会员组
     $group_list = M("UserGroup")->findAll();
     $this->assign("group_list", $group_list);
     parent::index();
 }
开发者ID:myjavawork,项目名称:sanxin-fangwei,代码行数:7,代码来源:PromoteMsgAction.class.php

示例5: index

 public function index()
 {
     $data = parent::index(true);
     if ($_GET["mergeSameRows"] && $_GET["batch"] === "all") {
         $tmp = array();
         foreach ($data as $row) {
             $k = $row["factory_code_all"] . "|" . $row["repository_id"];
             if (!$tmp[$k]) {
                 $tmp[$k] = $row;
                 $tmp[$k]["stocks"][] = $row["stock_name"];
             } else {
                 $tmp[$k]["num"] += $row["num"];
                 if (!in_array($row["stock_name"], $tmp[$k]["stocks"])) {
                     $tmp[$k]["stocks"][] = $row["stock_name"];
                 }
             }
         }
         foreach ($tmp as $k => $v) {
             $tmp[$k]["stock_name"] = implode(",", $v["stocks"]);
             unset($tmp[$k]["stocks"]);
         }
         $this->response(reIndex($tmp));
     } else {
         $this->response($data);
     }
 }
开发者ID:bqx619,项目名称:ones_dev,代码行数:26,代码来源:StockLogAction.class.php

示例6: index

 public function index()
 {
     if (strim($_REQUEST['name']) != '') {
         $condition['name'] = array('like', '%' . strim($_REQUEST['name']) . '%');
     }
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:macall,项目名称:jsd,代码行数:8,代码来源:DealCateTypeAction.class.php

示例7: index

 public function index()
 {
     //输出团购城市
     $city_list = M("DealCity")->where('is_delete = 0')->findAll();
     $city_list = D("DealCity")->toFormatTree($city_list, 'name');
     $this->assign("city_list", $city_list);
     parent::index();
 }
开发者ID:norain2050,项目名称:fanwei_xindai_3.2,代码行数:8,代码来源:MailListAction.class.php

示例8: index

 public function index()
 {
     if (trim($_REQUEST['deal_name']) != '') {
         $condition['deal_name'] = array('like', '%' . trim($_REQUEST['deal_name']) . '%');
     }
     //$condition['is_delete'] = 0;
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:eliu03,项目名称:fanweP2P,代码行数:9,代码来源:DealShowAction.class.php

示例9: unpassed

 public function unpassed()
 {
     if (trim($_REQUEST['title']) != '') {
         $condition['title'] = array('like', '%' . trim($_REQUEST['title']) . '%');
     }
     $condition['verify'] = 2;
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:9,代码来源:TaoxinAction.class.php

示例10: index

 public function index()
 {
     $groupClass = M("GroupClass")->where(array('status' => 1))->select();
     $array = array();
     foreach ($groupClass as $val) {
         $array[$val['menu']] = $val['name'];
     }
     $this->menu = $array;
     parent::index();
 }
开发者ID:diycp,项目名称:stusys,代码行数:10,代码来源:GroupAction.class.php

示例11: index

 public function index()
 {
     if (intval($_REQUEST['cate_id']) > 0) {
         $condition['cate_id'] = intval($_REQUEST['cate_id']);
     }
     $cate_list = M("MessageCate")->findAll();
     $this->assign("cate_list", $cate_list);
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:myjavawork,项目名称:sanxin-fangwei,代码行数:10,代码来源:MessageAction.class.php

示例12: index

 public function index()
 {
     $goods_type_id = intval($_REQUEST['goods_type_id']);
     $goods_type_info = M("GoodsType")->getById($goods_type_id);
     if (!$goods_type_info) {
         $this->error(l("GOODS_TYPE_NOT_EXIST"));
     }
     $this->assign("goods_type_info", $goods_type_info);
     parent::index();
 }
开发者ID:macall,项目名称:jsd,代码行数:10,代码来源:GoodsTypeAttrAction.class.php

示例13: index

 public function index()
 {
     $filter_group_id = intval($_REQUEST['filter_group_id']);
     $filter_group_info = M("FilterGroup")->getById($filter_group_id);
     if (!$filter_group_info) {
         $this->error(l("FILTERGROUP_NOT_EXIST"));
     }
     $this->assign("filter_group_info", $filter_group_info);
     parent::index();
 }
开发者ID:macall,项目名称:jsd,代码行数:10,代码来源:FilterAction.class.php

示例14: add_sms

 public function add_sms()
 {
     //输出团购城市
     $city_list = M("DealCity")->where('is_delete = 0')->findAll();
     $city_list = D("DealCity")->toFormatTree($city_list, 'name');
     $this->assign("city_list", $city_list);
     //输出会员组
     $group_list = M("UserGroup")->findAll();
     $this->assign("group_list", $group_list);
     parent::index();
 }
开发者ID:macall,项目名称:jsd,代码行数:11,代码来源:PromoteMsgAction.class.php

示例15: trash

 public function trash()
 {
     $condition['is_delete'] = 1;
     if (trim($_REQUEST['name']) != '') {
         $condition['name'] = array('like', '%' . trim($_REQUEST['name']) . '%');
     }
     if (trim($_REQUEST['id']) != '') {
         $condition['id'] = trim($_REQUEST['id']);
     }
     $this->assign("default_map", $condition);
     parent::index();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:12,代码来源:DealAction.class.php


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