public function view_whIoInvoicesTypeEdit() { $editId = trim($_GET['editId']); $this->where = "where id = " . $editId; $WarehouseManagement = new WarehouseManagementAct(); $editListArr = $WarehouseManagement->act_whIoInvoicesTypeList($this->where); $this->smarty->assign('key_id', $editListArr[0]['id']); $this->smarty->assign('invoiceName', $editListArr[0]['invoiceName']); $this->smarty->assign('storeId', $editListArr[0]['storeId']); $this->smarty->assign('note', $editListArr[0]['note']); $this->smarty->assign('ioTypeId', $editListArr[0]['ioTypeId']); $this->smarty->assign('ioType', $editListArr[0]['ioType']); $this->where = " where status = 1"; $warehouseManagementArrList = $WarehouseManagement->act_warehouseManagementList($this->where); $whIoTypeListArr = $WarehouseManagement->act_whIoTypeList($this->where = ''); $whIoTypeArrs = array(); foreach ($whIoTypeListArr as $typeLists) { $whIoTypeArrs[$typeLists['id']] = $typeLists['typeName']; } $whNameArr = array(); foreach ($warehouseManagementArrList as $storeArr) { $whNameArr[$storeArr['id']] = $storeArr['whName']; } $this->smarty->assign('whNameArr', $whNameArr); $this->smarty->assign('whIoTypeArrs', $whIoTypeArrs); //$this->smarty->assign('curusername', $_SESSION['userName']); $navlist = array(array('url' => 'index.php?mod=warehouseManagement&act=whStore', 'title' => '仓库设置'), array('url' => 'index.php?mod=warehouseManagement&act=whIoInvoicesTypeList', 'title' => '单据类型'), array('url' => '', 'title' => '单据类型修改')); $this->smarty->assign('toptitle', '修改出入库单据类型'); $toplevel = 4; //一级菜单的序号 0 开始 $this->smarty->assign('toplevel', $toplevel); $secondlevel = 07; //当前的二级菜单 $this->smarty->assign('secondlevel', $secondlevel); $this->smarty->assign('navlist', $navlist); $this->smarty->display('whIoInvoicesTypeEdit.htm'); }