本文整理汇总了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();
}
示例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();
}
示例3: index
public function index()
{
$data = parent::index(true, false);
$params = array($data, false);
tag("assign_dataModel_data", $params);
$this->response($params[0]);
}
示例4: add_sms
public function add_sms()
{
//输出会员组
$group_list = M("UserGroup")->findAll();
$this->assign("group_list", $group_list);
parent::index();
}
示例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);
}
}
示例6: index
public function index()
{
if (strim($_REQUEST['name']) != '') {
$condition['name'] = array('like', '%' . strim($_REQUEST['name']) . '%');
}
$this->assign("default_map", $condition);
parent::index();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}