<?php /** * ECSHOP 转拨程序(yangsong) */ define('IN_ECS', true); require dirname(__FILE__) . '/includes/init.php'; require dirname(__FILE__) . '/includes/lib_store.php'; if ($_REQUEST['ismanagestore'] === false) { sys_msg('对不起!请线下联系你租用仓库的仓管来进行转拨操作!'); } $act = isset($_REQUEST['act']) && !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'list'; if ($act == 'list') { $store = getUserStock($_SESSION['supplier_user_id']); $store_info = getStoreId($_SESSION['supplier_user_id']); if (count($store_info) > 0) { $smarty->assign('action_link', array('text' => $_LANG['store_move_add'], 'href' => 'store_move.php?act=add')); } $store_str = implode(',', $store_info); if (empty($store_str)) { sys_msg('您当前登陆的用户没有任何仓库管理权限,请先给他一个仓库管理员的身份!'); } $inorout = isset($_REQUEST['io']) && !empty($_REQUEST['io']) ? $_REQUEST['io'] : 'out'; $smarty->assign('ur_here', $_LANG['move_here_' . $inorout]); $info = getMoveList($store_str); $smarty->assign('store_list', $store); $smarty->assign('status', getMoveStatus()); $smarty->assign('full_page', 1); $smarty->assign('info', $info['arr']); $smarty->assign('filter', $info['filter']); $smarty->assign('record_count', $info['record_count']);
<?php /** * ECSHOP 转拨程序(yangsong) */ define('IN_ECS', true); require dirname(__FILE__) . '/includes/init.php'; $act = isset($_REQUEST['act']) && !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'list'; if ($act == 'list') { $store = getUserStock($_SESSION['admin_id']); $store_info = getStoreId($_SESSION['admin_id']); if (count($store_info) > 0) { $smarty->assign('action_link', array('text' => $_LANG['store_move_add'], 'href' => 'store_move.php?act=add')); } $store_str = implode(',', $store_info); if (empty($store_str)) { sys_msg('您当前登陆的用户没有任何仓库管理权限,请先给他一个仓库管理员的身份!'); } $inorout = isset($_REQUEST['io']) && !empty($_REQUEST['io']) ? $_REQUEST['io'] : 'out'; $smarty->assign('ur_here', $_LANG['move_here_' . $inorout]); $info = getMoveList($store_str); $smarty->assign('store_list', $store); $smarty->assign('status', getMoveStatus()); $smarty->assign('full_page', 1); $smarty->assign('info', $info['arr']); $smarty->assign('filter', $info['filter']); $smarty->assign('record_count', $info['record_count']); $smarty->assign('page_count', $info['page_count']); assign_query_info(); $smarty->display('store_move.htm'); } elseif ($act == 'add' || $act == 'edit') {