Exemple #1
0
    if (empty($express_no)) {
        sys_msg('请输入快递单号!', 1);
    }
    if (empty($order_id)) {
        sys_msg('请输入订单号!', 1);
    }
    //检测订单是否属于该商户、检测订单是否处于待发货状态
    $sql = 'SELECT COUNT(*) FROM ' . $ecs->table('order_info') . ' WHERE supplier_id=' . $_SESSION['supplier_id'] . order_query_sql('await_ship');
    $result = $db->getOne($sql);
    if (empty($result)) {
        sys_msg('不满足一键发货条件!', 1);
    }
    quick_delivery($order_id, $express_no);
} elseif ($act == 'delivery_list') {
    /* 查询 */
    $data = delivery_list($delivery_sn, $order_sn, $consignee, $page);
    $delivery_list = $data['delivery'];
    $filter = $data['filter'];
    /* 模板赋值 */
    $smarty->assign('delivery_list', $delivery_list);
    $smarty->assign('filter', $data['filter']);
    _wap_assign_header_info('发货单列表');
    _wap_assign_footer_order_info();
    _wap_display_page('delivery_list.htm');
} elseif ($act == 'delivery_info') {
    admin_priv('delivery_order');
    $delivery_id = intval(trim($_REQUEST['delivery_id']));
    /* 根据发货单id查询发货单信息 */
    if (!empty($delivery_id)) {
        $delivery_order = delivery_order_info($delivery_id);
    } else {
Exemple #2
0
     $smarty->assign('os_unconfirmed', OS_UNCONFIRMED);
     $smarty->assign('cs_await_pay', CS_AWAIT_PAY);
     $smarty->assign('cs_await_ship', CS_AWAIT_SHIP);
     $smarty->assign('full_page', 1);
     $smarty->assign('delivery_list', $result['delivery']);
     $smarty->assign('filter', $result['filter']);
     $smarty->assign('record_count', $result['record_count']);
     $smarty->assign('page_count', $result['page_count']);
     $smarty->assign('sort_update_time', '<img src="images/sort_desc.gif">');
     /* 显示模板 */
     assign_query_info();
     $smarty->display('delivery_list.htm');
 } elseif ($_REQUEST['act'] == 'delivery_query') {
     /* 检查权限 */
     admin_priv('delivery_view');
     $result = delivery_list();
     $smarty->assign('delivery_list', $result['delivery']);
     $smarty->assign('filter', $result['filter']);
     $smarty->assign('record_count', $result['record_count']);
     $smarty->assign('page_count', $result['page_count']);
     $sort_flag = sort_flag($result['filter']);
     $smarty->assign($sort_flag['tag'], $sort_flag['img']);
     make_json_result($smarty->fetch('delivery_list.htm'), '', array('filter' => $result['filter'], 'page_count' => $result['page_count']));
 } elseif ($_REQUEST['act'] == 'delivery_info') {
     /* 检查权限 */
     admin_priv('delivery_view');
     $delivery_id = intval(trim($_REQUEST['delivery_id']));
     /* 根据发货单id查询发货单信息 */
     if (!empty($delivery_id)) {
         $delivery_order = delivery_order_info($delivery_id);
     } else {
Exemple #3
0
    $smarty->assign('full_page', 1);
    $smarty->assign('ur_here', $_LANG['split_share_order']);
    $smarty->assign('on', $separate_on);
    $smarty->assign('logdb', $logdb['orders']);
    $smarty->assign('filter', $logdb['filter']);
    $smarty->assign('record_count', $logdb['record_count']);
    $smarty->assign('page_count', $logdb['page_count']);
    if (!empty($_GET['auid'])) {
        $smarty->assign('action_link', array('text' => $_LANG['back_note'], 'href' => "users.php?act=edit&id={$_GET['auid']}"));
    }
    assign_query_info();
    $smarty->display('split_share_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    //$logdb = get_affiliate_ck();
    //$smarty->assign('logdb',        $logdb['logdb']);
    $logdb = delivery_list();
    $smarty->assign('logdb', $logdb['orders']);
    $smarty->assign('on', $separate_on);
    $smarty->assign('filter', $logdb['filter']);
    $smarty->assign('record_count', $logdb['record_count']);
    $smarty->assign('page_count', $logdb['page_count']);
    $sort_flag = sort_flag($logdb['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('split_share_list.htm'), '', array('filter' => $logdb['filter'], 'page_count' => $logdb['page_count']));
} elseif ($_REQUEST['act'] == 'separate') {
    admin_priv('split_share');
    include_once ROOT_PATH . 'includes/lib_order.php';
    $oid = (int) $_REQUEST['oid'];
    // 分润比例
    $sql = 'SELECT v2_percent FROM ' . $ecs->table('split_instal') . " WHERE is_line='1'";
    $split_instal = $db->getRow($sql);