/** * 获取全部已用的桶号 * @return array $partitions: * @author czq */ public static function getUsedPartitions() { $partionList = WhChannelPartitionModel::select(' is_delete = 0 ORDER BY partition ASC'); $partitions = array(); if ($partionList) { foreach ($partionList as $list) { $partitions = $list['partition']; } } return $partitions; }
/** * 分渠道首页 * @author czq */ public function view_index() { $navlist = array(array('url' => '', 'title' => '仓库设置 '), array('url' => '', 'title' => ' 分渠道列表')); $toplevel = 4; $secondlevel = 19; $toptitle = '仓库设置 - 分渠道列表'; $transportlist = CommonModel::getShipingTypeList(); $list = WhChannelPartitionModel::select("is_delete=0"); foreach ($list as $key => $val) { $list[$key]['transportId'] = $transportlist[$val['transportId']]['carrierNameCn']; } $this->smarty->assign('list', $list); $this->smarty->assign('transportlist', $transportlist); $this->smarty->assign('toptitle', $toptitle); $this->smarty->assign('navlist', $navlist); $this->smarty->assign('toplevel', $toplevel); $this->smarty->assign('secondlevel', $secondlevel); $this->smarty->display('whChannelPartitionList.htm'); }