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


PHP Page::setEachNum方法代码示例

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


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

示例1: my_consultOp

 /**
  * 查询买家商品咨询
  */
 public function my_consultOp()
 {
     //实例化商品咨询模型
     $consult = Model('consult');
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     $list_consult = array();
     $search_array = array();
     if ($_GET['type'] != '') {
         if ($_GET['type'] == 'to_reply') {
             $search_array['consult_reply'] = '';
         }
         if ($_GET['type'] == 'replied') {
             $search_array['consult_reply'] = array('neq', '');
         }
     }
     $search_array['member_id'] = "{$_SESSION['member_id']}";
     $list_consult = $consult->getConsultList($search_array, $page);
     Tpl::output('show_page', $page->show());
     Tpl::output('list_consult', $list_consult);
     $_GET['type'] = empty($_GET['type']) ? 'consult_list' : $_GET['type'];
     self::profile_menu('my_consult', $_GET['type']);
     Tpl::showpage('member_my_consult');
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:28,代码来源:member_consult.php

示例2: indexOp

 public function indexOp()
 {
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     /*
      * 得到当前用户的投诉列表
      */
     $model_complain = Model('complain');
     $condition = array();
     $condition['order'] = 'complain_state asc,complain_id desc';
     $condition['accuser_id'] = $_SESSION['member_id'];
     switch (intval($_GET['select_complain_state'])) {
         case 1:
             $condition['progressing'] = 'true';
             break;
         case 2:
             $condition['finish'] = 'true';
             break;
         default:
             $condition['state'] = '';
     }
     $list = $model_complain->getComplain($condition, $page);
     $this->profile_menu('complain_accuser_list');
     Tpl::output('list', $list);
     Tpl::output('show_page', $page->show());
     $goods_list = $model_complain->getComplainGoodsList($list);
     Tpl::output('goods_list', $goods_list);
     Tpl::showpage('complain.list');
 }
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:30,代码来源:member_complain.php

示例3: pic_listOp

 /**
  * 闲置图片列表,发布闲置调用
  */
 public function pic_listOp()
 {
     /**
      * 分页类
      */
     $page = new Page();
     $page->setEachNum(12);
     $page->setStyle('admin');
     /**
      * 实例化相册类
      */
     $model_upload = Model('flea_upload');
     /**
      * 图片列表
      */
     $param = array();
     $param['store_id'] = $_SESSION['member_id'];
     $param['item_id'] = $_GET['goods_id'] ? $_GET['goods_id'] : '0';
     $pic_list = $model_upload->getUploadList($param, $page);
     Tpl::output('pic_list', $pic_list);
     Tpl::output('show_page', $page->show());
     if ($_GET['item'] == 'goods') {
         Tpl::showpage('store_flea_sample', 'null_layout');
     } elseif ($_GET['item'] == 'des') {
         Tpl::showpage('store_flea_sample_des', 'null_layout');
     }
 }
开发者ID:flying3615,项目名称:chuniang,代码行数:30,代码来源:flea_album.php

示例4: inform_listOp

 public function inform_listOp()
 {
     /*
      * 生成分页
      */
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     /*
      * 得到当前用户的举报列表
      */
     $model_inform = Model('inform');
     $condition = array();
     $condition['inform_state'] = intval($_GET['select_inform_state']);
     $condition['inform_member_id'] = $_SESSION['member_id'];
     $condition['order'] = 'inform_id desc';
     $list = $model_inform->getInform($condition, $page);
     //查询会员信息
     $this->get_member_info();
     $this->profile_menu('inform_list');
     Tpl::output('list', $list);
     Tpl::output('show_page', $page->show());
     Tpl::output('menu_sign', 'myinform');
     Tpl::output('menu_sign_url', 'index.php?act=member_inform');
     Tpl::output('menu_sign1', 'member_inform');
     Tpl::showpage('member_inform.list');
 }
开发者ID:noikiy,项目名称:nc-1,代码行数:27,代码来源:member_inform.php

示例5: detailOp

 /**
  * 申请细节列表
  */
 public function detailOp()
 {
     $rec_id = intval($_GET['rec_id']);
     if ($rec_id <= 0) {
         showMessage(Language::get('miss_argument'));
     }
     //条件
     $condition_arr = array();
     $condition_arr['adp_id'] = $rec_id;
     //审核状态
     if (!empty($_GET['searchstate'])) {
         $state = intval($_GET['searchstate']) - 1;
         $condition_arr['adp_apply_state'] = "{$state}";
     }
     //店铺名称
     if (!empty($_GET['searchstore'])) {
         $condition_arr['store_name'] = $_GET['searchstore'];
     }
     //店铺名称
     if (!empty($_GET['searchapplys'])) {
         $condition_arr['item_name'] = $_GET['searchapplys'];
     }
     $condition_arr['order'] = 'rec_applys.adp_apply_state asc,rec_applys.adp_apply_sort asc';
     //                Model('rec_position')->where()->find();
     //                Tpl::output('rec_position',)
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     $rec_model = Model('rec_applys');
     $list = $rec_model->getList($condition_arr, $page);
     //输出到模板
     Tpl::output('show_page', $page->show());
     Tpl::output('list', $list);
     Tpl::showpage('rec_detail.index');
 }
开发者ID:lehman3087,项目名称:wanhaoshop,代码行数:38,代码来源:rec_position.php

示例6: message_listOp

 /**
  * 消息列表
  *
  * @param
  * @return
  */
 public function message_listOp()
 {
     $model_message = Model('message');
     $types = $model_message->msgType;
     $message_type = $_REQUEST['message_type'];
     if (empty($message_type) || $message_type < 0) {
         output_special_code('10500');
     }
     $page = new Page();
     $page->setEachNum($this->page);
     //$page->setStyle('admin');
     $message_array = $model_message->listMessage(array('from_member_id' => '0', 'message_type' => $message_type, 'to_member_id' => $this->member_info['member_id'], 'no_del_member_id' => $this->member_info['member_id']), $page);
     $msgTypeCount = $model_message->msgTypeCount(array('message_open_common' => 0, 'from_member_id' => '0', 'message_type_in' => $message_type, 'to_member_id' => $this->member_info['member_id'], 'no_del_member_id' => $this->member_info['member_id']), $page);
     if (!empty($message_array) && is_array($message_array)) {
         foreach ($message_array as $k => $v) {
             $v['message_open'] = '0';
             if (!empty($v['read_member_id'])) {
                 $tmp_readid_arr = explode(',', $v['read_member_id']);
                 if (in_array($this->member_info['member_id'], $tmp_readid_arr)) {
                     $v['message_open'] = '1';
                     // $msgTypeCount[$message_type]+=1;
                 }
             }
             //$v['from_member_name'] = Language::get('home_message_system_message');
             $message_array[$k] = $v;
         }
     }
     //Tpl::output('show_page',$page->show());
     output_data(array('message_list' => $message_array, 'msg_type_unread_ount' => $msgTypeCount[$type[$message_type]]), mobile_page($page->getTotalPage()));
     // output_data($datas, $extend_data);
     // 新消息数量
 }
开发者ID:lehman3087,项目名称:wanhaoshop,代码行数:38,代码来源:member_message.php

示例7: groupbuy_listOp

 /**
  * 团购列表
  **/
 public function groupbuy_listOp()
 {
     //分页
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     $model_groupbuy = Model('goods_group');
     $param = array();
     $param['store_id'] = $_SESSION['store_id'];
     $param['state'] = intval($_GET['groupbuy_state']);
     $param['group_name'] = trim($_GET['group_name']);
     $param['group_subtitle'] = trim($_GET['group_subtitle']);
     $param['order'] = 'template_id desc,state asc';
     $group_list = $model_groupbuy->getList($param, $page);
     //输出分页
     Tpl::output('show_page', $page->show());
     //输出团购状态列表
     $this->get_groupbuy_state_list();
     //输出导航
     self::profile_menu('store_groupbuy');
     Tpl::output('group', $group_list);
     Tpl::output('menu_key', 'groupbuy');
     Tpl::output('menu_sign', 'groupbuy_manage');
     Tpl::showpage('store_groupbuy');
 }
开发者ID:my1977,项目名称:shopnc,代码行数:28,代码来源:store_groupbuy.php

示例8: pointorder_listOp

 /**
  * 积分兑换列表
  */
 public function pointorder_listOp()
 {
     //条件
     $condition_arr = array();
     //兑换单号
     if (trim($_GET['pordersn'])) {
         $condition_arr['point_ordersn_like'] = trim($_GET['pordersn']);
     }
     //兑换会员名称
     if (trim($_GET['pbuyname'])) {
         $condition_arr['point_buyername_like'] = trim($_GET['pbuyname']);
     }
     if (trim($_GET['porderstate'])) {
         $condition_arr['point_orderstatetxt'] = trim($_GET['porderstate']);
     }
     //分页
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     //查询直通车列表
     $pointprod_model = Model('pointorder');
     $order_list = $pointprod_model->getPointOrderList($condition_arr, $page, 'simple');
     if (is_array($order_list) && count($order_list) > 0) {
         foreach ($order_list as $k => $v) {
             $order_list[$k]['point_orderstatetext'] = $this->pointorder_state($v['point_orderstate']);
         }
     }
     //信息输出
     Tpl::output('order_list', $order_list);
     Tpl::output('show_page', $page->show());
     Tpl::showpage('pointorder.list');
 }
开发者ID:noikiy,项目名称:haifenbao,代码行数:35,代码来源:pointorder.php

示例9: points_logOp

 /**
  * 积分日志列表
  */
 public function points_logOp()
 {
     $condition_arr = array();
     $condition_arr['pl_memberid'] = $_SESSION['member_id'];
     if ($_GET['stage']) {
         $condition_arr['pl_stage'] = $_GET['stage'];
     }
     $condition_arr['saddtime'] = strtotime($_GET['stime']);
     $condition_arr['eaddtime'] = strtotime($_GET['etime']);
     if ($condition_arr['eaddtime'] > 0) {
         $condition_arr['eaddtime'] += 86400;
     }
     $condition_arr['pl_desc_like'] = $_GET['description'];
     //分页
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     //查询积分日志列表
     $points_model = Model('points');
     $list_log = $points_model->getPointsLogList($condition_arr, $page, '*', '');
     //查询会员信息
     $this->get_member_info();
     //信息输出
     self::profile_menu('points');
     Tpl::output('show_page', $page->show());
     Tpl::output('list_log', $list_log);
     Tpl::output('menu_sign', 'points');
     Tpl::output('menu_sign_url', 'index.php?act=member_points');
     Tpl::showpage('member_points');
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:33,代码来源:member_points.php

示例10: pointprodOp

 /**
  * 积分礼品列表
  */
 public function pointprodOp()
 {
     //自动开启积分中心
     $model_setting = Model('setting');
     if ($_GET['point_open'] == 1) {
         $update_array = array();
         $update_array['points_isuse'] = 1;
         $update_array['pointprod_isuse'] = 1;
         $model_setting->updateSetting($update_array);
     }
     //条件
     $condition_arr = array();
     $pgoods_name = trim($_GET['pg_name']);
     if ($pgoods_name) {
         $condition_arr['pgoods_name_like'] = $pgoods_name;
     }
     if ($_GET['pg_state']) {
         $condition_arr['pg_liststate'] = trim($_GET['pg_state']);
     }
     $condition_arr['order'] = " pgoods_sort asc,pgoods_id desc ";
     //分页
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     //查询直通车列表
     $pointprod_model = Model('pointprod');
     $prod_list = $pointprod_model->getPointProdList($condition_arr, $page);
     //信息输出
     Tpl::output('prod_list', $prod_list);
     Tpl::output('show_page', $page->show());
     Tpl::showpage('pointprod.list');
 }
开发者ID:norain2050,项目名称:xingkang,代码行数:35,代码来源:pointprod.php

示例11: goods_favoritesOp

 public function goods_favoritesOp()
 {
     $model_favorites = Model('favorites');
     $page = new Page();
     $page->setEachNum(20);
     $page->setStyle('admin');
     $condition = array();
     $condition['member_id'] = $_SESSION['member_id'];
     $condition['fav_type'] = 'goods';
     $favorites_list = $model_favorites->getFavoritesList($condition, $page);
     $goods_list = array();
     if (!empty($favorites_list) && is_array($favorites_list)) {
         $goods_id_string = '';
         foreach ($favorites_list as $key => $value) {
             $goods_id_string .= $value['fav_id'] . ',';
         }
         $goods_id_string = rtrim($goods_id_string, ',');
         $goods_model = Model('goods');
         $goods_list = $goods_model->getGoods(array('goods_id_in' => $goods_id_string));
     }
     Tpl::output('list', $goods_list);
     Tpl::output('goods_type', 'favorites');
     Tpl::output('show_page', $page->show());
     $this->get_commend_goods_list();
     //获得分享app列表
     self::get_share_app_list();
     Tpl::showpage('publish_goods');
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:28,代码来源:publish.php

示例12: linkOp

 /**
  * 合作伙伴
  */
 public function linkOp()
 {
     $lang = Language::getLangContent();
     $model_link = Model('link');
     /**
      * 删除
      */
     if ($_POST['form_submit'] == 'ok') {
         if (is_array($_POST['del_id']) && !empty($_POST['del_id'])) {
             foreach ($_POST['del_id'] as $k => $v) {
                 /**
                  * 删除图片
                  */
                 $v = intval($v);
                 $tmp = $model_link->getOneLink($v);
                 if (!empty($tmp['link_pic'])) {
                     @unlink(BasePath . DS . ATTACH_LINK . DS . $tmp['link_pic']);
                 }
                 unset($tmp);
                 $model_link->del($v);
             }
             //H('link',null);;
             showMessage($lang['link_index_del_succ']);
         } else {
             showMessage($lang['link_index_choose_del']);
         }
     }
     /**
      * 检索条件
      */
     $condition['like_link_title'] = $_GET['search_link_title'];
     $condition['order'] = 'link_sort asc';
     Tpl::output('search_link_title', $_GET['search_link_title']);
     /**
      * 分页
      */
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     if ($_GET['type'] == '0') {
         $condition['link_pic'] = 'yes';
     }
     if ($_GET['type'] == '1') {
         $condition['link_pic'] = 'no';
     }
     $link_list = $model_link->getLinkList($condition, $page);
     /**
      * 整理图片链接
      */
     if (is_array($link_list)) {
         foreach ($link_list as $k => $v) {
             if (!empty($v['link_pic'])) {
                 $link_list[$k]['link_pic'] = UPLOAD_SITE_URL . '/' . ATTACH_PATH . '/common/' . DS . $v['link_pic'];
             }
         }
     }
     Tpl::output('link_list', $link_list);
     Tpl::output('page', $page->show());
     Tpl::showpage('link.index');
 }
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:63,代码来源:link.php

示例13: 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

示例14: inform_listOp

 public function inform_listOp()
 {
     /*
      * 生成分页
      */
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     /*
      * 得到该店被举报禁售的列表
      */
     $model_inform = Model('inform');
     $condition = array();
     $condition['inform_state'] = 2;
     $condition['inform_store_id'] = $_SESSION['store_id'];
     $condition['inform_handle_type'] = 3;
     $condition['order'] = 'inform_id desc';
     $list = $model_inform->getInform($condition, $page);
     $this->profile_menu('inform_list');
     Tpl::output('list', $list);
     Tpl::output('show_page', $page->show());
     Tpl::output('menu_sign', 'store_inform');
     Tpl::output('menu_sign_url', 'index.php?act=store_inform');
     Tpl::output('menu_sign1', 'store_inform');
     Tpl::showpage('store_inform.list');
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:26,代码来源:store_inform.php

示例15: indexOp

 public function indexOp()
 {
     $page = new Page();
     $page->setEachNum(10);
     $page->setStyle('admin');
     $model_complain = Model('complain');
     $condition = array();
     $condition['order'] = 'complain_state asc,complain_id desc';
     $condition['accused_id'] = $_SESSION['store_id'];
     if (trim($_GET['add_time_from']) != '') {
         $add_time_from = strtotime(trim($_GET['add_time_from']));
         if ($add_time_from !== false) {
             $condition['complain_datetime_start'] = $add_time_from;
         }
     }
     if (trim($_GET['add_time_to']) != '') {
         $add_time_to = strtotime(trim($_GET['add_time_to']));
         if ($add_time_to !== false) {
             $condition['complain_datetime_end'] = $add_time_to;
         }
     }
     switch (intval($_GET['state'])) {
         case 1:
             $condition['accused_progressing'] = 'true';
             break;
         case 2:
             $condition['accused_finish'] = 'true';
             break;
         default:
             $condition['accused_all'] = 'true';
     }
     $type = $_GET['type'];
     $key = trim($_GET['key']);
     switch ($type) {
         case 'accuser_name':
             $condition['complain_accuser'] = $key;
             break;
         case 'complain_subject':
             $condition['complain_subject_content'] = $key;
             break;
         default:
             $key = intval($key);
             $condition['complain_id'] = $key;
     }
     $list = $model_complain->getComplain($condition, $page);
     $this->profile_menu('complain_accused_list');
     Tpl::output('list', $list);
     Tpl::output('show_page', $page->show());
     $goods_list = $model_complain->getComplainGoodsList($list);
     Tpl::output('goods_list', $goods_list);
     Tpl::showpage('complain.list');
 }
开发者ID:flying3615,项目名称:chuniang,代码行数:52,代码来源:store_complain.php


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