$stations = $db_read->getAll("SELECT station_id,station_name FROM ship_station where city_code {$city_code} "); $smarty->assign('stations', $stations); } $_REQUEST['status'] = '1'; $_REQUEST['orderstatus'] = 1; $_REQUEST['sdate'] = date('Y-m-d'); $list = order_list(); //echo '<pre>';print_r($list['senders']);echo '</pre>'; $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $smarty->assign('filter', $list['filter']); $smarty->assign('order_list', $list['orders']); $smarty->assign('employees', $list['senders']); $smarty->assign('ur_here', '配送任务'); $smarty->assign('full_page', 1); $smarty->assign('timeplan', getTurn()); $smarty->display('delivery_list.htm'); } elseif ($_REQUEST['act'] == 'query') { $list = order_list(); $smarty->assign('order_list', $list['orders']); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $smarty->assign('filter', $list['filter']); $smarty->assign('employees', $list['senders']); make_json_result($smarty->fetch('delivery_list.htm'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count'])); } elseif ($_REQUEST['act'] == 'sender') { $order_id = $_REQUEST['order_id']; $order_id_list = explode(',', $order_id); if (empty($_REQUEST['sender'])) { sys_msg('请选择配送员!', 1); } else {
<?php /** * 生产打印 * @author: bisc */ @(require dirname(__FILE__) . '/includes/init.php'); $_REQUEST['act'] = empty($_REQUEST['act']) ? 'list' : trim($_REQUEST['act']); if ($_REQUEST['act'] == 'list') { $smarty->assign('tdm', date('Y-m-d')); $smarty->assign('ur_here', '生产打印'); $smarty->assign('full_page', 1); $smarty->assign('city_arr', $_SESSION['city_arr']); $turn = getTurn(); //print_r($turn);exit; $smarty->assign('turn', $turn); $smarty->assign('cakes', $goods_array); //蛋糕种类 $sql = "select goods_id,goods_sn,goods_name from ecs_goods"; $goods_array = $db_read->getAll($sql); //print_r($goods_array); $smarty->assign('cakes', $goods_array); $_REQUEST['printp'] = 2; $list = order_list(); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $smarty->assign('cake_count', $list['cake_count']); $smarty->assign('filter', $list['filter']); $smarty->assign('orders', $list['list']); $smarty->display('pro_print_list.htm'); } elseif ($_REQUEST['act'] == 'query') {
var watchgame = false; function redo( ) { window.location.replace(\'chess.php\'); } '; // ouput confirmation for wake up email if ($wake_up_sent) { $head_extra .= "alert('Wake Up email sent');\n "; } elseif (isset($_POST['wakeID']) && !$wake_up_sent) { $head_extra .= "alert('Wake Up email FAILED !!');\n "; } // transfer game data to javacript vars $head_extra .= getJSFEN(); // writes 'FEN' array, and 'result' (gui.inc.php) $head_extra .= getTurn(); // writes 'isBoardDisabled', 'isPlayersTurn', and 'perspective' (gui.inc.php) $head_extra .= getMoves(); // writes the 'moves' array (gui.inc.php) $head_extra .= getStatus(); // writes 'whosMove', 'gameState', and 'statusMsg' (gui.inc.php) $head_extra .= "var DEBUG = " . JS_DEBUG . ";\n "; $head_extra .= "var numMoves = FEN.length - 1;\n "; // if it's not the player's turn, enable auto-refresh $autoRefresh = !$isPlayersTurn && !isBoardDisabled() && !$_SESSION['shared']; $head_extra .= "var autoreload = "; if (!$autoRefresh || 0 == $CFG_MINAUTORELOAD) { $head_extra .= "0"; } elseif ($_SESSION['pref_auto_reload'] >= $CFG_MINAUTORELOAD) { $head_extra .= $_SESSION['pref_auto_reload']; } else {
* $Id: shipping_commission.php */ require dirname(__FILE__) . '/includes/init.php'; //检查权限 admin_priv('s_sor'); $_REQUEST['act'] = empty($_REQUEST['act']) ? 'list' : trim($_REQUEST['act']); //初始化城市编号 $city_code = db_create_in(array_keys($_SESSION['city_arr'])); if ($_REQUEST['act'] == 'list') { $list = order_list(); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $smarty->assign('filter', $list['filter']); $smarty->assign('order_list', $list['orders']); $smarty->assign('total', $list['total']); $smarty->assign('turn', getTurn()); $smarty->assign('ur_here', '分拣查询'); $smarty->assign('full_page', 1); $smarty->display('fenjian2.html'); } elseif ($_REQUEST['act'] == 'query') { $list = order_list(); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $smarty->assign('filter', $list['filter']); $smarty->assign('order_list', $list['orders']); $smarty->assign('total', $list['total']); make_json_result($smarty->fetch('fenjian2.html'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count'])); } function order_list() { $filter['sdate'] = empty($_REQUEST['sdate']) ? date('Y-m-d') : trim($_REQUEST['sdate']);
* 配送调度单管理 * @author: bisc */ require dirname(__FILE__) . '/includes/init.php'; //检查权限 admin_priv('d_dis'); $_REQUEST['act'] = empty($_REQUEST['act']) ? 'list' : trim($_REQUEST['act']); //初始化城市编号,格式如 :IN(441,443) $city_code = db_create_in(array_keys($_SESSION['city_arr'])); if ($_REQUEST['act'] == 'list') { admin_priv('d_dis'); $_REQUEST['sdate'] = date('Y-m-d'); $_REQUEST['edate'] = date('Y-m-d', time() + 24 * 3600); $_REQUEST['status'] = 1; $_REQUEST['otatus'] = 1; $res = getTurn(); // 配送站(手动分包) $stations = $db_read->getAll("SELECT route_id, station_code FROM view_ship_route WHERE city_code {$city_code} AND flag =1 GROUP BY station_code"); // 配送站(搜索) $stations2 = $db_read->getAll("SELECT station_id, station_name FROM ship_station WHERE city_code {$city_code} AND flag =1 "); //配送包号(即每个站点下的分区) $route = $db_read->getAll("SELECT route_id,route_name FROM view_ship_route where city_code {$city_code} and flag =1 order by route_name "); $list = order_list(); $smarty->assign('ur_here', '调度管理'); $smarty->assign('full_page', 1); $smarty->assign('stations', $stations); // 配送站(手动分包) $smarty->assign('stations2', $stations2); // 配送站(搜索) $smarty->assign('timeplan', $res); //配送批此
if (in_array($_REQUEST['act'], $act)) { switch ($_REQUEST['act']) { case 'query': ob_clean(); $stat_list = get_stat_list(); $smarty->assign('stat_list', $stat_list['list']); $smarty->assign('filter', $stat_list['filter']); $smarty->assign('record_count', $stat_list['record_count']); $smarty->assign('page_count', $stat_list['page_count']); make_json_result($smarty->fetch('today.html'), '', array('filter' => $stat_list['filter'], 'page_count' => $stat_list['page_count'], 'sql' => $stat_list['sql'])); break; default: $stat_list = get_stat_list(); $smarty->assign('ur_here', '当日蛋糕统计'); $smarty->assign('full_page', 1); $smarty->assign('lot_list', getTurn()); $smarty->assign('city_list', $_SESSION['city_arr']); $smarty->assign('stat_list', $stat_list['list']); $smarty->assign('filter', $stat_list['filter']); $smarty->assign('record_count', $stat_list['record_count']); $smarty->assign('page_count', $stat_list['page_count']); $smarty->display('today.html'); } } else { sys_msg('坑爹呀,页面不存在!', 1, array(array('text' => '返回当日生产统计'), array('href' => 'today.php?act=list'))); } function get_goods_name($goods_id) { // Obtaion to the goods name $sql = "SELECT CONCAT(goods_sn,'--',goods_name) FROM ecs_goods WHERE goods_id='{$goods_id}'"; return $GLOBALS['db_read']->getOne($sql);
<form action="#" method="post"> <input type="hidden" value="<?php echo $id; ?> " name="id"> <input type="submit" <?php if (!$yourturn) { echo 'disabled'; } ?> value="<?php echo 'Turn ' . getTurn($id) . ' - ' . $buttonmsg; ?> "> </form> <?php /********************************************************************************************************************** * Show Red Player Points **********************************************************************************************************************/ echo '<h2 style="color: #770000;">' . getRedPoints($id) . '</h2></center>'; echo '<br />';