$smarty->assign('full_page', 1); $order_list = order_list(); $smarty->assign('order_list', $order_list['orders']); $smarty->assign('filter', $order_list['filter']); $smarty->assign('record_count', $order_list['record_count']); $smarty->assign('page_count', $order_list['page_count']); $smarty->assign('sort_order_time', '<img src="images/sort_desc.gif">'); /* 显示模板 */ assign_query_info(); $smarty->display('order_list.htm'); } else { if ($_REQUEST['act'] == 'order_query') { /* 检查权限 */ admin_priv('order_view'); /* 载入配送方式 */ $smarty->assign('shipping_list', shipping_list()); /* 载入支付方式 */ $smarty->assign('pay_list', payment_list()); /* 载入国家 */ $smarty->assign('country_list', get_regions()); /* 载入订单状态、付款状态、发货状态 */ $smarty->assign('os_list', get_status_list('order')); $smarty->assign('ps_list', get_status_list('payment')); $smarty->assign('ss_list', get_status_list('shipping')); /* 模板赋值 */ $smarty->assign('ur_here', $_LANG['03_order_query']); $smarty->assign('action_link', array('href' => 'order.php?act=list', 'text' => $_LANG['02_order_list'])); /* 显示模板 */ assign_query_info(); $smarty->display('order_query.htm'); } elseif ($_REQUEST['act'] == 'query') {
$isexistHF = $healthy_file['baseInfo']['total']; $smarty->assign('healthy_file', $healthy_file); $smarty->assign('case_list', $case['case_list']); //idsease $smarty->assign('before_case', $case['before_case']); //idsease $smarty->assign('isexistHF', $isexistHF); $smarty->assign('disease', get_disease()); // diseases $smarty->assign('characters', get_characters()); // characters $smarty->assign('payment', payment_list()); // payment $smarty->assign('surplus_payment', payment_list()); // 充值提现支付方式 $smarty->assign('shipping', shipping_list(3)); // shipping $smarty->assign('service_class', get_service_class()); // servcie class $smarty->assign('service_manner', get_service_manner()); // sercie manner $smarty->assign('integral_log', get_integral_log($user_id)); // integral log $smarty->assign('bmi', get_user_bmi($user_id)); if (in_array($_SESSION['admin_id'], $ADMIN_POWER)) { $admin_list = get_admin_tmp_list(); $smarty->assign('all_power', true); } elseif (in_array($_SESSION['admin_id'], array(520))) { $sql = 'SELECT user_id,user_name FROM ' . $GLOBALS['ecs']->table('admin_user') . " WHERE role_id={$_SESSION['role_id']}"; $admin_list = $GLOBALS['db']->getAll($sql); if ($admin_list === false) {