function act_getInvConditionList($select = '*', $where) { $list = InvConditionModel::getInvConditionList($select, $where); if ($list) { return $list; } else { self::$errCode = InvConditionModel::$errCode; self::$errMsg = InvConditionModel::$errMsg; return false; } }
public function view_editConditon() { $id = intval($_GET['id']); $condition = InvConditionModel::getInvConditionList("*", "where id={$id}"); $this->smarty->assign('condition', $condition); $navlist = array(array('url' => 'index.php?mod=skuStock&act=getSkuStockList', 'title' => '仓库'), array('url' => 'index.php?mod=inventory&act=inventory', 'title' => '盘点管理'), array('url' => 'index.php?mod=inventory&act=invCondition', 'title' => '盘点审核条件列表'), array('url' => '', 'title' => '修改审核条件')); $this->smarty->assign('navlist', $navlist); $this->smarty->assign('toptitle', '修改审核条件'); $toplevel = 0; //一级菜单的序号 0 开始 $this->smarty->assign('toplevel', $toplevel); $secondlevel = 04; //当前的二级菜单 $this->smarty->assign('secondlevel', $secondlevel); $this->smarty->assign('curusername', $_SESSION['userName']); $this->smarty->display('invConditionAdd.htm'); }