Example #1
0
 public function view_iqcWaitCheck()
 {
     $IqcAct = new IqcAct();
     $where = "where sellerId=0 and detectStatus=1 and getUserId='{$_SESSION['userId']}' ";
     $total = $IqcAct->act_getNowWhNum($where);
     $num = 200;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "order by id desc " . $page->limit;
     $iqcList = $IqcAct->act_getNowWhList('*', $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('iqcList', $iqcList);
     $this->smarty->assign('secnev', '1');
     //二级导航
     $this->smarty->assign('module', 'SKU等待检测');
     $this->smarty->assign('username', $_SESSION['userName']);
     $navarr = array("<a href='index.php?mod=iqc&act=iqcList'>iqc检测领取</a>", ">>", "等待检测");
     $this->smarty->assign('navarr', $navarr);
     $this->smarty->display('iqcWaitCheck.html');
 }
 private function getTemplateList()
 {
     extract($this->generateInfo());
     $pagesize = 100;
     $msgtpl_obj = new AmazonMessageTemplateModel();
     $all = $msgtpl_obj->getAllMessageNumber(' and ownerid in (0, ' . $_SESSION['globaluserid'] . ')');
     $page_obj = new Page($all, $pagesize);
     $usercache = new UserCacheModel();
     $templatelist = $msgtpl_obj->getAllTemplateList(' and ownerid in (0,' . $_SESSION['globaluserid'] . ') ' . $page_obj->limit);
     foreach ($templatelist as &$tpval) {
         $info = empty($tpval['ownerid']) ? $tpval['username'] = '******' : $usercache->getUserInfoBySysId($tpval['ownerid'], 0);
         if (is_array($info)) {
             $tpval['username'] = $info['userName'];
         }
     }
     if ($all > $pagesize) {
         //分页
         $pagestr = $page_obj->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $page_obj->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     $this->smarty->assign('addurl', $editUrl);
     $this->smarty->assign('toplevel', 2);
     $this->smarty->assign('sec_menue', $sec_menueid);
     $this->smarty->assign('tpllist', $templatelist);
     $this->smarty->assign('toptitle', 'message模板列表');
     $this->smarty->display('msgtemplatelistAmazon.htm');
 }
Example #3
0
 function act_getSkuConversionList()
 {
     $sku = $_GET['sku'] ? post_check(trim($_GET['sku'])) : '';
     //sku
     $tName = 'pc_sku_conversion';
     $select = '*';
     $where = "WHERE is_delete=0 ";
     if (!empty($sku)) {
         $where .= "AND (old_sku like'{$sku}%' or new_sku like'{$sku}%') ";
     }
     $total = OmAvailableModel::getTNameCount($tName, $where);
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "order by auditStatus asc,id desc " . $page->limit;
     $skuConversionList = OmAvailableModel::getTNameList($tName, $select, $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     return array('skuConversionList' => $skuConversionList, 'show_page' => $show_page);
 }
Example #4
0
 /**
  * TrackEmailStatAct::actIndex()
  * 列出符合条件的数据并分页显示
  * @param string $condition 查询条件
  * @param integer $curpage 页码
  * @param integer $pagenum 每页个数
  * @return array 
  */
 public function actIndex()
 {
     $data = array();
     $condition = '';
     $trackEmailStat = new TrackEmailStatModel();
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $timeNode = isset($_GET['timeNode']) ? post_check(trim($_GET['timeNode'])) : '';
     $condition .= "1";
     if ($type && $key) {
         if (!in_array($type, array('trackNumber', 'platAccount'))) {
             redirect_to("index.php?mod=trackEmailStat&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     if (!empty($timeNode)) {
         if (!in_array($timeNode, array('addTime', 'lastTime'))) {
             redirect_to("index.php?mod=trackEmailStat&act=index");
         }
         $startTime = isset($_GET['startTime']) ? strtotime(trim($_GET['startTime']) . " 00:00:00") : strtotime(date("Y-m-d", time()) . " 00:00:00");
         $endTime = isset($_GET['endTime']) ? strtotime(trim($_GET['endTime']) . " 23:59:59") : strtotime(date("Y-m-d", time()) . " 23:59:59");
         if ($startTime && $endTime) {
             $condition .= ' AND ' . $timeNode . " BETWEEN '" . $startTime . "' AND " . "'" . $endTime . "'";
         }
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     $total = $trackEmailStat->modListCount($condition);
     $res = $trackEmailStat->modList($condition, $curpage, $pagenum);
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //封装数据返回
     $data['key'] = $key;
     $data['type'] = $type;
     $data['lists'] = $res;
     $data['pages'] = $pageStr;
     $data['timeNode'] = $timeNode;
     $data['startTime'] = $startTime ? date('Y-m-d', $startTime) : '';
     $data['endTime'] = $endTime ? date('Y-m-d', $endTime) : '';
     self::$errCode = trackEmailStatModel::$errCode;
     self::$errMsg = trackEmailStatModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }
Example #5
0
 public function view_systemManageList()
 {
     //基础代码准备
     $SystemManage = new systemManageAct();
     //搜索操作
     $condition = array();
     $keyWords = "";
     if (isset($_POST) && !empty($_POST)) {
         $keyWords = trim($_POST['keyWords']);
         //填写系统名称
         if (!empty($keyWords)) {
             $condition[] = "systemName = '{$keyWords}'";
             $this->where = "WHERE " . implode(" and ", $condition) . " ORDER BY addTime DESC ";
         } else {
             $this->where = " ORDER BY addTime DESC ";
         }
     } else {
         //默认
         $this->where = " ORDER BY addTime DESC ";
     }
     //分页
     $total = $SystemManage->act_getPageNum();
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $this->where .= $page->limit;
     $systemListArr = $SystemManage->act_systemManageList($this->where);
     //分页
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('show_page', $show_page);
     //面包屑
     $navlist = array(array('url' => 'index.php?mod=nameSystem&act=nameSystemList', 'title' => '系统名称中心'), array('url' => 'index.php?mod=systemManage&act=systemManageList', 'title' => '系统名称管理'));
     $this->smarty->assign('navlist', $navlist);
     //二级导航
     $this->smarty->assign('toplevel', 0);
     //一级导航
     $this->smarty->assign('systemListArr', $systemListArr);
     //显示数组
     //搜索选项值保留
     $this->smarty->assign('keyWords', $keyWords);
     $this->smarty->display("systemManageList.htm");
 }
Example #6
0
 /**
  * whGoodsAssignView::view_assignList()
  * 调拨单列表
  * @return void
  */
 public function view_assignList()
 {
     global $memc_obj;
     $pagesize = 100;
     //页面大小
     //print_r($this->assign_status);exit;
     $whereSql = $this->buildWhereSql();
     //拼接sql条件
     //$whereSql   =   ' and a.status = 100';
     //echo $whereSql;exit;
     //$assign_obj =   new WhGoodsAssignModel();
     $rownumber = WhGoodsAssignModel::getRowAllNumber($whereSql);
     //获得所有的行数
     if ($rownumber > 0) {
         $pager = new Page($rownumber, $pagesize);
         $lists = WhGoodsAssignModel::getAssignList($whereSql, 'a.id', $pager->limit, 'a.id', 'desc');
         //print_r($lists);   exit;
         foreach ($lists as $key => $val) {
             //处理调拨单
             $outStore = WarehouseManagementModel::warehouseManagementModelList(" where id = {$val['outStoreId']}");
             //print_r($outStore);exit;
             $lists[$key]['outStoreId'] = $outStore[0]['whName'];
             $inStore = WarehouseManagementModel::warehouseManagementModelList(" where id = {$val['inStoreId']}");
             //print_r($outStore);exit;
             $lists[$key]['inStoreId'] = $inStore[0]['whName'];
             $skusinfo = WhGoodsAssignModel::getsAssignListDetail($val['id']);
             $lists[$key]['skuinfo'] = $skusinfo;
             $lists[$key]['createUid'] = $val['createUid'] ? getUserNameById($val['createUid']) : '无';
             $lists[$key]['statusTime'] = date('Y-m-d H:i:s', $val['statusTime']);
             $lists[$key]['createTime'] = date('Y-m-d H:i:s', $val['createTime']);
             $lists[$key]['status'] = $this->assign_status[$val['status']];
         }
         if ($rownumber > $pagesize) {
             //分页
             $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pagestr = $pager->fpage(array(0, 2, 3));
         }
         $this->smarty->assign('pagestr', $pagestr);
     }
     $storeLists = WarehouseManagementModel::warehouseManagementModelList($where);
     //获取可用仓库列表
     self::bulidNav('调拨单浏览', '调拨单列表', 51);
     //print_r($storeLists);exit;
     //print_r($lists);exit;
     $this->smarty->assign('lists', $lists);
     //调拨单列表
     $this->smarty->assign('assign_status', $this->assign_status);
     //调拨单状态
     $this->smarty->assign('storeLists', $storeLists);
     $this->smarty->display('assignList.htm');
 }
Example #7
0
 public function view_index()
 {
     $condition = '';
     $partitionManage = new PartitionManageAct();
     $this->smarty->assign('title', '分区管理');
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $chid = isset($_GET['chid']) ? intval($_GET['chid']) : 0;
     //渠道ID
     $condition .= "1";
     $condition .= " AND channelId = {$chid}";
     if ($type && $key) {
         if (!in_array($type, array('partitionCode', 'partitionName'))) {
             redirect_to("index.php?mod=partitionManage&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     //每页显示的个数
     $res = $partitionManage->actList($condition, $curpage, $pagenum);
     $total = $partitionManage->actListCount($condition);
     //页面总数量
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     $carrierId = PartitionManageModel::getCarrierId($chid);
     //替换页面内容变量
     $this->smarty->assign('chid', $chid);
     //渠道ID
     $this->smarty->assign('carrierId', $carrierId);
     //运输方式ID
     $this->smarty->assign('key', $key);
     //关键词
     $this->smarty->assign('type', $type);
     //查询选项
     $this->smarty->assign('lists', $res);
     //循环赋值
     $this->smarty->assign('pageStr', $pageStr);
     //分页输出
     $this->smarty->display('partitionManage.htm');
 }
Example #8
0
 public function view_index()
 {
     $trackWarnNode = new TrackWarnNodeAct();
     $this->smarty->assign('title', '运输方式节点预警管理');
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $carrierId = isset($_GET['carrierId']) ? intval($_GET['carrierId']) : 0;
     $condition = "1";
     if ($type && $key) {
         if (!in_array($type, array('nodeName', 'trackName'))) {
             redirect_to("index.php?mod=trackWarnNode&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     if (!empty($carrierId)) {
         $condition .= " AND carrierId = '{$carrierId}'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     //每页显示的个数
     $res = $trackWarnNode->actList($condition, $curpage, $pagenum);
     $total = $trackWarnNode->actListCount($condition);
     //页面总数量
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //替换页面内容变量
     $this->smarty->assign('key', $key);
     //关键词
     $this->smarty->assign('type', $type);
     //条件选项
     $this->smarty->assign('lists', $res);
     //数据集
     $this->smarty->assign('carrierId', $carrierId);
     //运输方式ID
     $carrierList = TransOpenApiModel::getCarrier(2);
     $this->smarty->assign('carrierList', $carrierList);
     //运输方式列表
     $this->smarty->assign('pageStr', $pageStr);
     //分页输出
     $this->smarty->display('trackWarnNode.htm');
 }
Example #9
0
 /**
  * 获取供应商分页列表的函数
  * @param     $where    查询条件
  * @param     $perNum   每页显示的记录条数
  * @param     $pa       默认为空 ""
  * @param     $lang     语言类型,中文或英文
  * @return    void      分页array
  */
 public static function act_getPage($where, $field, $perNum, $pa = "", $lang = 'CN')
 {
     $result = PartnerModel::getPartnerList($where, 'count(*)', $limit = '');
     $total = $result[0]['count(*)'];
     $page = new Page($total, $perNum, $pa, $lang);
     $list = PartnerModel::getPartnerList($where, $field, $page->limit);
     if ($total > $perNum) {
         $fpage = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $fpage = $page->fpage(array(0, 1, 2, 3));
     }
     return array($list, $fpage, $total);
 }
Example #10
0
 /**
  * CarrierProNodeAct::actIndex()
  * 列出符合条件的数据并分页显示
  * @param string $condition 查询条件
  * @param integer $curpage 页码
  * @param integer $pagenum 每页个数
  * @return array 
  */
 public function actIndex()
 {
     $data = array();
     $carrierProNode = new CarrierProNodeModel();
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $carrierId = isset($_GET['carrierId']) ? intval($_GET['carrierId']) : 0;
     $condition = "1";
     if ($type && $key) {
         if (!in_array($type, array('nodeTitle', 'nodeKey'))) {
             redirect_to("index.php?mod=carrierProNode&act=index");
         }
         $condition .= ' AND ' . $type . " LIKE '%" . $key . "%'";
     }
     if (!empty($carrierId)) {
         $condition .= " AND carrierId = '{$carrierId}'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     //每页显示的个数
     $total = $carrierProNode->modListCount($condition);
     $res = $carrierProNode->modList($condition, $curpage, $pagenum);
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //封装数据返回
     $data['key'] = $key;
     $data['type'] = $type;
     $data['lists'] = $res;
     $data['pages'] = $pageStr;
     $data['carriers'] = TransOpenApiModel::getCarrier(2);
     $data['carrierId'] = $carrierId;
     self::$errCode = CarrierProNodeModel::$errCode;
     self::$errMsg = CarrierProNodeModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }
Example #11
0
 /**
  * WebAdAct::actIndex()
  * 列出符合条件的数据并分页显示
  * @param string $condition 查询条件
  * @param integer $curpage 页码
  * @param integer $pagenum 每页个数
  * @return array 
  */
 public function actIndex()
 {
     $data = array();
     $condition = '';
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $typeId = isset($_GET['typeId']) ? abs(intval($_GET['typeId'])) : 0;
     $condition .= "1";
     if ($type && $key) {
         if (!in_array($type, array('topic'))) {
             redirect_to("index.php?mod=webAd&act=index");
         }
         $condition .= ' AND ' . $type . " LIKE '%" . $key . "%'";
     }
     if (!empty($typeId)) {
         $condition .= " AND typeId = '{$typeId}'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     $total = WebAdModel::modListCount($condition);
     $res = WebAdModel::modList($condition, $curpage, $pagenum);
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //封装数据返回
     $data['key'] = $key;
     $data['type'] = $type;
     $data['typeId'] = $typeId;
     $data['lists'] = $res;
     $data['pages'] = $pageStr;
     self::$errCode = WebAdModel::$errCode;
     self::$errMsg = WebAdModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         exit;
     }
     return $data;
 }
Example #12
0
 /**
  * CountriesUsazoneAct::actIndex()
  * 列出符合条件的数据并分页显示
  * @param string $condition 查询条件
  * @param integer $curpage 页码
  * @param integer $pagenum 每页个数
  * @return array 
  */
 public function actIndex()
 {
     $data = array();
     $condition = '1';
     $countriesUsazone = new CountriesUsazoneModel();
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     if ($type && $key) {
         if (!in_array($type, array('zone', 'zip_code'))) {
             redirect_to("index.php?mod=countriesUsazone&act=index");
         }
         if ($type == 'zone') {
             $condition .= ' AND ' . $type . " = '" . $key . "'";
         }
         if ($type == 'zip_code') {
             $condition .= ' AND ' . $type . " like '%" . $key . "%'";
         }
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     $total = $countriesUsazone->modListCount($condition);
     $res = $countriesUsazone->modList($condition, $curpage, $pagenum);
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //封装数据返回
     $data['key'] = $key;
     $data['type'] = $type;
     $data['lists'] = $res;
     $data['pages'] = $pageStr;
     self::$errCode = CountriesUsazoneModel::$errCode;
     self::$errMsg = CountriesUsazoneModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }
Example #13
0
 public function view_getAccountList()
 {
     $type = isset($_GET['type']) ? $_GET['type'] : '';
     $status = isset($_GET['status']) ? $_GET['status'] : '';
     $omAvailableAct = new OmAvailableAct();
     $where = 'WHERE is_delete=0 ';
     if ($type == 'search') {
         $accountId = isset($_GET['accountId']) ? $_GET['accountId'] : '';
         $platformId = isset($_GET['platformId']) ? $_GET['platformId'] : '';
         if (intval($accountId) != 0) {
             $where .= "AND id='{$accountId}' ";
         }
         if (intval($platformId) != 0) {
             $where .= "AND platformId='{$platformId}' ";
         }
     }
     $omAccountList = $omAvailableAct->act_getTNameList('om_account', '*', $where);
     $total = $omAvailableAct->act_getTNameCount('om_account', $where);
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "ORDER BY id " . $page->limit;
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $navlist = array(array('url' => 'index.php?mod=omPlatform&act=getOmPlatformList', 'title' => '系统设置'), array('url' => '', 'title' => '平台账号'));
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->assign('toptitle', '账号管理');
     $this->smarty->assign('toplevel', 3);
     $this->smarty->assign('secondlevel', '32');
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('status', $status);
     $this->smarty->assign('omAccountList', $omAccountList);
     //循环列表
     $this->smarty->display("omAccountList.htm");
 }
Example #14
0
 public function view_waitWeighingList()
 {
     $pagesize = 100;
     //页面大小
     $statusar = array(PKS_WWEIGHING, PKS_WWEIGHING_EX, PKS_INLANDWWEIGHING);
     $statusstr = implode(',', $statusar);
     $packing_obj = new PackingOrderModel();
     $count = $packing_obj->getRecordsNumByStatus($statusar);
     //获得当前状态为待包装的发货单总数量
     $pager = new Page($count, $pagesize);
     //分页对象
     $billlist = $packing_obj->getBillList(' and orderStatus in (' . $statusstr . ') order by po.id ' . $pager->limit);
     $this->smarty->assign('billlist', $billlist);
     $ShipingTypeList = CommonModel::getShipingTypeListKeyId();
     $count = count($billlist);
     for ($i = 0; $i < $count; $i++) {
         $billlist[$i]['shipingname'] = isset($ShipingTypeList[$billlist[$i]['transportId']]) ? $ShipingTypeList[$billlist[$i]['transportId']] : '';
     }
     $acc_id_arr = array();
     foreach ($billlist as $key => $valbil) {
         if (!in_array($valbil['accountId'], $acc_id_arr)) {
             array_push($acc_id_arr, $valbil['accountId']);
         }
     }
     $salesaccountinfo = CommonModel::getAccountInfo($acc_id_arr);
     $this->smarty->assign('salesaccountinfo', $salesaccountinfo);
     if ($count > $pagesize) {
         //分页链接
         $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $pager->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     $navlist = array(array('url' => '', 'title' => '出库'), array('url' => '', 'title' => '待包装称重'));
     $this->smarty->assign('navlist', $navlist);
     $toptitle = '待包装称重';
     //顶部链接
     $this->smarty->assign('toptitle', $toptitle);
     $toplevel = 2;
     //顶层菜单
     $this->smarty->assign('toplevel', $toplevel);
     $secondlevel = '26';
     //当前的二级菜单
     $this->smarty->assign('secondlevel', $secondlevel);
     $this->smarty->assign('secnev', 3);
     //二级导航
     $this->smarty->display('waitweighinglist.htm');
 }
Example #15
0
 /**
  * ChannelManageAct::actIndex()
  * 列出符合条件的数据并分页显示
  * @param string $condition 查询条件
  * @param integer $curpage 页码
  * @param integer $pagenum 每页个数
  * @return array 
  */
 public function actIndex()
 {
     $data = array();
     $condition = '';
     $channelManage = new ChannelManageModel();
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
     //运输方式ID
     $condition .= "1";
     $condition .= " AND carrierId = {$id}";
     if ($type && $key) {
         if (!in_array($type, array('channelName', 'channelAlias'))) {
             redirect_to("index.php?mod=channelManage&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     $total = $channelManage->modListCount($condition);
     $res = $channelManage->modList($condition, $curpage, $pagenum);
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //封装数据返回
     $data['id'] = $id;
     $data['key'] = $key;
     $data['type'] = $type;
     $data['lists'] = $res;
     $data['pages'] = $pageStr;
     self::$errCode = ChannelManageModel::$errCode;
     self::$errMsg = ChannelManageModel::$errMsg;
     if (self::$errCode != 0) {
         show_message($this->smarty, self::$errMsg, "");
         return false;
     }
     return $data;
 }
Example #16
0
 /**
  * 显示供应商列表的函数
  * @return    void
  */
 public function view_index()
 {
     $usercompany = parent::$_companyid;
     $perpage = isset($_GET['perpage']) && intval($_GET['perpage']) > 0 ? intval($_GET['perpage']) : 20;
     $deptsingle = DeptAct::getInstance();
     $condition = array();
     $condition[] = "dept_company_id='{$usercompany}'";
     if (isset($_GET['deptname']) && !empty($_GET['deptname'])) {
         $deptname = addslashes(trim($_GET['deptname']));
         $condition[] = "dept_name LIKE '%{$deptname}%'";
     }
     $condition[] = "dept_isdelete=0";
     //增加逻辑删除判断 2013-09-17
     $deptcount = $deptsingle->count()->act_getDeptLists($condition);
     $pageclass = new Page($deptcount, $perpage, $this->page, 'CN');
     $deptlists = $deptsingle->act_getDeptLists($condition, 'dept_company_id ASC', $pageclass->limit);
     $pageformat = $usercount > $perpage ? array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) : array(0, 1, 2, 3, 4);
     $this->smarty->assign('runmsg', UserAct::$errMsg);
     $this->smarty->assign("sort", $sort);
     $this->smarty->assign("deptlists", $deptlists);
     $this->smarty->assign('pageStr', $pageclass->fpage($pageformat));
     $this->smarty->assign('title', '部门管理');
     //add by wxb
     $this->smarty->display('dept.htm');
 }
Example #17
0
 public function view_index()
 {
     //面包屑
     $navlist = array(array('url' => 'index.php?mod=Platform&act=index', 'title' => '系统设置'), array('url' => '#', 'title' => '运输方式策略管理'));
     F('order');
     $perpage = A('TransportStrategy')->act_getPerpage();
     $ordercount = A('Account')->act_getAccountCount();
     $pageclass = new Page($ordercount, $perpage, '', 'CN');
     $pageformat = $ordercount > $perpage ? array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) : array(0, 1, 2, 3, 4);
     $this->smarty->assign('toplevel', A('Topmenu')->act_getToplevel('transportStrategy'));
     $this->smarty->assign('secondlevel', A('Topmenu')->act_getSecondlevel('transportStrategy'));
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->assign('toptitle', '运输方式策略管理');
     $this->smarty->assign('accountList', A('TransportStrategy')->act_getTransportStrategyLists());
     //循环列表
     $this->smarty->assign('show_page', $pageclass->fpage($pageformat));
     $this->smarty->assign('accountListSearch', M('Account')->getAccountAll());
     $this->smarty->assign('channelIdArr', M('InterfaceTran')->getChannelList());
     $this->smarty->assign('transportIdArr', M('InterfaceTran')->key('id')->getCarrierList(2));
     $this->smarty->assign('priorityList', C('TRANSPORT_STRATEGY_PRIORITY'));
     $this->smarty->assign('currencyList', C('TRANSPORT_STRATEGY_CURRENCY_ARRAY'));
     //币种列表
     $this->smarty->assign('tranCountryList', M('InterfaceTran')->getAllCountryList());
     //print_r(M('InterfaceTran')->getCarrierList(2));exit;
     $this->smarty->display("transportStrategyIndex.htm");
 }
Example #18
0
 public static function act_getSMSPage($where, $perNum, $pa = "", $lang = 'CN')
 {
     $total = NoticeModel::getNoticeList($where, $limit = '', 'nt_sms');
     $page = new Page(count($total), $perNum, $pa, $lang);
     $list = NoticeModel::getNoticeList($where, $page->limit, 'nt_sms');
     $fpage = $page->fpage();
     return array($list, $fpage, count($total));
 }
Example #19
0
 public function view_index()
 {
     $countriesSmall = new CountriesSmallAct();
     $this->smarty->assign('title', '小语种国家列表管理');
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $condition = "1";
     if ($type && $key) {
         if (!in_array($type, array('countryName', 'small_country'))) {
             redirect_to("index.php?mod=countriesSmall&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     //每页显示的个数
     $res = $countriesSmall->actList($condition, $curpage, $pagenum);
     $total = $countriesSmall->actListCount($condition);
     //页面总数量
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     $code_arr = array("1" => "西班牙转英文", "2" => "法国转英文", "3" => "德文转英文", "4" => "俄文转英文", "5" => "意大利文转英文", "6" => "拉丁文转英文", "7" => "阿拉伯文转英文", "8" => "日文转英文", "9" => "韩文转英文", "10" => "泰文转英文", "11" => "葡萄牙语转英文");
     //替换页面内容变量
     $this->smarty->assign('key', $key);
     //关键词
     $this->smarty->assign('type', $type);
     //条件选项
     $this->smarty->assign('code_arr', $code_arr);
     //循环赋值
     $this->smarty->assign('lists', $res);
     //数据集
     $this->smarty->assign('pageStr', $pageStr);
     //分页输出
     $this->smarty->display('countriesSmall.htm');
 }
Example #20
0
 public function view_contentList()
 {
     $keyword = isset($_GET['keyword']) ? post_check($_GET['keyword']) : '';
     $where = 'where a.is_delete=0 ';
     if ($keyword) {
         $where .= " and content like '%{$keyword}%' ";
         $this->smarty->assign('keyword', $keyword);
     }
     $cntAct = new contentAct();
     $total = $cntAct->act_getContentNum($where);
     $num = 50;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= " order by a.id desc " . $page->limit;
     $contentList = $cntAct->act_getContentList('a.*,b.global_user_name as addUser', $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('contentList', $contentList);
     //var_dump($contentList);
     //$accAct 	 = new AccountAct();
     //$accountList = $accAct->act_getAccountList('id,account','where platformId = 2 and is_delete = 0');
     //$this->smarty->assign('accountList',$accountList);
     $this->smarty->assign('state', $state);
     //$this->smarty->assign('secnev','1');               //二级导航
     $this->smarty->assign('module', 'SKU等待领取');
     $this->smarty->assign('username', $_SESSION['userName']);
     $navarr = array("<a href='index.php?mod=FeedbackManage&act=fbkList'>卖家评价</a>", ">>", "评价列表");
     $this->smarty->assign('navarr', $navarr);
     $this->smarty->display('contentList.htm');
 }
Example #21
0
 public function view_index()
 {
     $shippingAddress = new ShippingAddressAct();
     $this->smarty->assign('title', '发货地址管理');
     //接收参数生成条件
     $curpage = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $type = isset($_GET['type']) ? trim($_GET['type']) : '';
     $key = isset($_GET['key']) ? post_check(trim($_GET['key'])) : '';
     $condition = "1";
     if ($type && $key) {
         if (!in_array($type, array('addressNameCn', 'addressNameEn'))) {
             redirect_to("index.php?mod=shippingAddress&act=index");
         }
         $condition .= ' AND ' . $type . " = '" . $key . "'";
     }
     //获取符合条件的数据并分页
     $pagenum = 20;
     //每页显示的个数
     $res = $shippingAddress->actList($condition, $curpage, $pagenum);
     $total = $shippingAddress->actListCount($condition);
     //页面总数量
     $page = new Page($total, $pagenum, '', 'CN');
     $pageStr = "";
     if ($res) {
         if ($total > $pagenum) {
             $pageStr = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $pageStr = $page->fpage(array(0, 1, 2, 3));
         }
     } else {
         $pageStr = '暂无数据';
     }
     //替换页面内容变量
     $this->smarty->assign('key', $key);
     //关键词
     $this->smarty->assign('type', $type);
     //循环赋值
     $this->smarty->assign('lists', $res);
     //循环赋值
     $this->smarty->assign('pageStr', $pageStr);
     //分页输出
     $this->smarty->display('shippingAddress.htm');
 }
Example #22
0
 public function view_getScrappedProductsList()
 {
     if (!isset($_SESSION['sysUserId'])) {
         //检测用户是否登陆
         header('location:index.php?mod=login&act=index');
         exit;
     }
     //		$type = isset ($_GET['type']) ? $_GET['type'] : '';
     $status = isset($_GET['status']) ? $_GET['status'] : '';
     $scrappedProductsAct = new ScrappedProductsAct();
     $where = 'WHERE 1=1 ';
     $total = $scrappedProductsAct->act_getScrappedProductsCount($where);
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "ORDER BY id " . $page->limit;
     $scrappedProductsList = $scrappedProductsAct->act_getScrappedProductsList('*', $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $navarr = array("<a href='index.php?mod=iqcInfo&act=iqcScanList'>QC检测信息</a>", ">>", "报废和内部处理列表");
     $this->smarty->assign('navarr', $navarr);
     $this->smarty->assign('module', '报废和内部处理列表');
     $this->smarty->assign('secnev', '3');
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('status', $status);
     $this->smarty->assign('username', $_SESSION['userName']);
     $this->smarty->assign('scrappedProductsList', $scrappedProductsList ? $scrappedProductsList : null);
     $this->smarty->display("scrappedProducts.htm");
 }
Example #23
0
 public function view_paypalEmail()
 {
     global $memc_obj;
     $pagesize = 30;
     //页面大小
     $where = "";
     $lists = paypalEmailModel::selectList($where);
     $num = count($lists);
     $pager = new Page($num, $pagesize);
     $lists = paypalEmailModel::selectList($where . " " . $pager->limit);
     foreach ($lists as $key => $value) {
         $msg = paypalEmailModel::selectMsg($value['accountId']);
         $list[$key]['id'] = $value['id'];
         $list[$key]['status'] = $value['status'];
         $list[$key]['email'] = $value['email'];
         $list[$key]['account'] = $msg[0]['account'];
         $list[$key]['plateform'] = $msg[0]['platform'];
     }
     $this->smarty->assign("lists", $list);
     if ($num > $pagesize) {
         //分页
         $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $pager->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     $data = isset($_POST['data']) ? $_POST['data'] : "";
     $this->smarty->assign("successLog", $data);
     $toptitle = 'paypal邮箱管理页面';
     //头部title
     $this->smarty->assign('toptitle', $toptitle);
     $navlist = array(array('url' => '', 'title' => '系统设置'), array('url' => '', 'title' => 'paypal邮箱管理'));
     $this->smarty->assign('navlist', $navlist);
     $toplevel = 3;
     //一级菜单的序号  0 开始
     $this->smarty->assign('toplevel', $toplevel);
     $secondlevel = '33';
     //当前的二级菜单
     $this->smarty->assign('secondlevel', $secondlevel);
     $this->smarty->display('paypalEmail.htm');
 }
Example #24
0
 /**
  * 列表页
  */
 public function view_index()
 {
     $data = AgreementModel::getList();
     $page = new Page($data['totalNum'], $pagenum = 100);
     $pageStr = $page->fpage();
     $this->smarty->assign("pageStr", $pageStr);
     $this->smarty->assign("listData", $data['listData']);
     $this->smarty->assign("title", "协议管理");
     $this->smarty->assign("companyTypeList", array('1' => '企业法人', '2' => '个体经营'));
     $this->smarty->assign("statusList", array('1' => '正常', '2' => '限制'));
     $this->smarty->display('agreementList.htm');
 }
Example #25
0
 public function view_powerlist()
 {
     $pagesize = 30;
     $powermodel = new PowerActionModel();
     $count = $powermodel->getPowerCount();
     //获取数据总条数
     //var_dump($count);exit;
     $pager = new Page($count, $pagesize);
     $grouplist = $powermodel->getPowerList(" order by pg.id asc {$pager->limit}");
     //var_dump($grouplist);exit;
     $page = isset($_GET['page']) ? abs(intval($_GET['page'])) : 1;
     $showpage = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     //echo $showpage;exit;
     $location_ar = array('<a href="index.php?mod=poweruser&act=list" class="navhref">授权管理</a>', '>', '<span class="navlast">ACT管理<span>');
     $this->tp_obj->set_var('module', '权限--权限管理');
     $this->tp_obj->set_var('pagehtml', $showpage);
     $this->tp_obj->set_file('header', 'header.html');
     $this->tp_obj->set_file('footer', 'footer.html');
     $this->tp_obj->set_file('navbar', 'transmanagernav.html');
     $this->tp_obj->set_file('powerleftmenu', 'powerleftmenu.html');
     $this->tp_obj->set_file('powerlist', 'powerlist.html');
     $this->tp_obj->set_block('navbar', 'navlist', 'locationlist');
     //导航
     foreach ($location_ar as $lval) {
         $this->tp_obj->set_var('location', $lval);
         $this->tp_obj->parse('locationlist', 'navlist', TRUE);
     }
     $groupmodel = new PowerActionGroupModel();
     $garray = $groupmodel->getAllPowerGroupList();
     $this->tp_obj->set_block('powerlist', 'gplist', 'gxlist');
     foreach ($garray as $val) {
         $this->tp_obj->set_var('gid', $val['id']);
         $this->tp_obj->set_var('text', $val['groupname']);
         $this->tp_obj->parse('gxlist', 'gplist', TRUE);
     }
     $this->tp_obj->set_block('powerlist', 'grouplist', 'glist');
     //权限组列表
     //var_dump($grouplist);exit;
     foreach ($grouplist as $gval) {
         $this->tp_obj->set_var('id', $gval['id']);
         $this->tp_obj->set_var('gname', $gval['groupname']);
         $this->tp_obj->set_var('name', $gval['actcode']);
         $this->tp_obj->set_var('desc', $gval['actnamezh']);
         $this->tp_obj->set_var('updatetime', date('Y-m-d H:i:s', $gval['lastupdatetime']));
         $this->tp_obj->parse('glist', 'grouplist', true);
     }
     $this->tp_obj->set_var('username', $_SESSION['userName']);
     $this->tp_obj->parse('header', 'header');
     $this->tp_obj->parse('footer', 'footer');
     $this->tp_obj->parse('powerleftmenu', 'powerleftmenu');
     $this->tp_obj->parse('powerpage', 'powerlist');
     $this->tp_obj->p('powerpage');
 }
Example #26
0
 public function view_libraryStatusGroupList()
 {
     $reason = array();
     $LibraryStatusAct = new LibraryStatusAct();
     $where = ' and storeId=1 ';
     $total = $LibraryStatusAct->act_getLibraryStatusGroupNum($where);
     $num = 10;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "order by id desc " . $page->limit;
     $LibraryStatusGroupInfo = $LibraryStatusAct->act_getLibraryStatusAllGroup($where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('LibraryStatusGroupInfo', $LibraryStatusGroupInfo);
     $navlist = array(array('url' => 'index.php?mod=warehouseManagement&act=whStore', 'title' => '仓库设置'), array('url' => 'index.php?mod=LibraryStatus&act=libraryStatusList', 'title' => '仓库状态码'), array('url' => 'index.php?mod=LibraryStatus&act=libraryStatusGroupList', 'title' => '仓库状态码分组列表'));
     $toplevel = 4;
     //一级菜单的序号  0 开始
     $this->smarty->assign('toplevel', $toplevel);
     $secondlevel = "08";
     //当前的二级菜单
     $this->smarty->assign('secondlevel', $secondlevel);
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->assign('toptitle', '仓库状态码分组列表');
     $this->smarty->assign('curusername', $_SESSION['userName']);
     $this->smarty->display('libraryStatusGroupShow.htm');
 }
Example #27
0
 public function view_getPmList()
 {
     //调用action层, 获取列表数据
     $packingMaterials = new PackingMaterialsAct();
     $status = $_GET['status'];
     //页面输出提示
     $select = '*';
     $where = "where is_delete=0 ";
     $total = $packingMaterials->act_getPmCount($where);
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $pmList = $packingMaterials->act_getPmList($select, $where . $page->limit);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $navlist = array(array('url' => 'index.php?mod=packingMaterials&act=getPmList', 'title' => '包材管理'), array('url' => 'index.php?mod=packingMaterials&act=getPmList', 'title' => '包材信息列表'));
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->assign('onevar', 3);
     $this->smarty->assign('twovar', 31);
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('pmList', $pmList);
     $this->smarty->assign("title", "包材管理");
     $this->smarty->assign("status", $status);
     $this->smarty->display("packingMaterials.htm");
 }
Example #28
0
 /**
  * 全部待打印列表
  */
 public function view_printList()
 {
     $pagesize = 100;
     $applicantId = $_SESSION['userId'];
     $where = '';
     $count = OrderPrintListModel::getRcordNumber($where . " and is_delete=0 and applicantId='{$applicantId}'");
     $pager = new Page($count, $pagesize);
     $printlist = OrderPrintListModel::getPrintList("*", $where . " where is_delete=0 and applicantId='{$applicantId}' order by id " . $pager->limit);
     foreach ($printlist as &$pval) {
         //数据整理
         $pval['statusstr'] = LibraryStatusModel::printCodeTostr($pval['status']);
         $pval['applicantTimestr'] = date('Y-m-d H:i:s', $pval['applicantTime']);
         $orders_arr = explode(',', $pval['orderIds']);
         $pval['orderCount'] = count($orders_arr);
     }
     $toptitle = '出库订单打印';
     $this->smarty->assign('toptitle', $toptitle);
     $this->smarty->assign('printlist', $printlist);
     $toplevel = 2;
     //顶层菜单
     $this->smarty->assign('toplevel', $toplevel);
     $secondlevel = '22';
     //当前的二级菜单
     $this->smarty->assign('secondlevel', $secondlevel);
     $this->smarty->assign('secnev', 3);
     //二级导航
     if ($count > $pagesize) {
         //分页
         $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $pager->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     $navlist = array(array('url' => 'index.php?mod=orderWaitforPrint&act=printList', 'title' => '出库'), array('url' => '', 'title' => '打印发货单'));
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->display('orderprintlist.htm');
     //输出页面
 }
Example #29
0
 public function view_getSpuPrefixList()
 {
     //调用action层, 获取列表数据
     $omAvailableAct = new OmAvailableAct();
     $status = $_GET['status'] ? $_GET['status'] : '';
     $tName = 'pc_auto_create_spu_prefix';
     $select = '*';
     $where = 'WHERE 1=1 ';
     $total = $omAvailableAct->act_getTNameCount($tName, $where);
     $num = 100;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "order by id " . $page->limit;
     $spuPrefixList = $omAvailableAct->act_getTNameList($tName, $select, $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $navlist = array(array('url' => 'index.php?mod=autoCreateSpu&act=getAutoCreatePrefixList', 'title' => 'SPU管理'), array('url' => 'index.php?mod=spu&act=getSpuPrefixList', 'title' => 'SPU自动生成前缀管理'));
     $this->smarty->assign('navlist', $navlist);
     $this->smarty->assign('onevar', 2);
     $this->smarty->assign('twovar', 24);
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('title', 'SPU自动生成前缀管理');
     $this->smarty->assign('status', $status);
     $this->smarty->assign('spuPrefixList', empty($spuPrefixList) ? null : $spuPrefixList);
     $this->smarty->display("spuPrefixList.htm");
 }
Example #30
0
 /**
  * WaveInfoManageView::view_index()
  * 配货单管理首页
  * @author Gary
  * @return void
  */
 public function view_index()
 {
     $navlist = array(array('url' => '', 'title' => '出库 '), array('url' => '', 'title' => '配货单管理'));
     self::bulidNav($navlist);
     $areas = WhWaveAreaInfoModel::select(array('is_delete' => 0));
     //区域列表
     $this->smarty->assign('areas', $areas);
     //$this->smarty->assign('storey', $storey);
     $search_where = self::get_search_where();
     //处理配货单搜索条件
     /** 分页处理**/
     $totalNums = WhWaveInfoModel::count_all_results($search_where);
     //查询总数
     $pager = new Page($totalNums, self::$pagesize);
     if ($totalNums > self::$pagesize) {
         //分页
         $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $pager->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     /** 结束**/
     $search_where['limit'] = ltrim($pager->limit, 'Limit ');
     $result = WhWaveInfoModel::get_wave_info_by_union_table(array('a.*', 'd.userId'), $search_where);
     //联表查询配货单信息
     $color_config = self::get_color_config();
     //获取箱子颜色配置
     $waveStatusArr = self::get_wave_status();
     //配货单状态
     //print_r($color_config);exit;
     $this->smarty->assign('result', $result);
     $this->smarty->assign('color_config', $color_config);
     $this->smarty->assign('waveStatusArr', $waveStatusArr);
     $this->smarty->assign('waveTypes', self::$waveTypes);
     $this->smarty->assign('waveZones', self::$waveZones);
     $this->smarty->display('waveIndex.htm');
 }