/** * 增加一个分渠道 * @author czq */ public function view_add() { if ($_POST['submit']) { $data = array('title' => $_POST['title'], 'channelName' => $_POST['channelName'], 'transportId' => $_POST['transportId'], 'channelId' => $_POST['channelId'], 'partition' => $_POST['partition'], 'is_delete' => 0); WhChannelPartitionModel::insert($data); header("location:index.php?mod=whChannelPartition&act=index"); } else { $transportlist = CommonModel::getShipingTypeList(); $countrylist = CommonModel::getCountryList(); $this->smarty->assign('countrylist', $countrylist); $this->smarty->assign('transportlist', $transportlist); $this->smarty->display('whChannelPartitionAdd.htm'); } }