コード例 #1
0
ファイル: control.php プロジェクト: nickyudha/nagarey-v3
<?php

/*
# ----------------------------------------------------------------------
# BACK ORDER - DETAILS: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new ORDER_GET();
$_update = new ORDER_UPDATE();
$order_number = filter_var($_REQUEST['oid'], FILTER_SANITIZE_NUMBER_INT);
$count_detail = $_get->count_backorder($order_number);
$detail = $_get->get_backorder($order_number);
$stock = $_get->count_stock($detail->type_id, $detail->stockname);
/* --- BUTTON HANDLER --- */
if (isset($_POST['btn-back-order']) && $_POST['btn-back-order'] == 'Sent Notification') {
    $back_id = $detail->back_id;
    $status = 0;
    $fulfillment_date = date('Y-m-d H:i:s');
    $_update->update($status, $fulfillment_date, $back_id);
    $page = 'back-order-notification/' . $order_number;
    safe_redirect($page);
}
コード例 #2
0
ファイル: control.php プロジェクト: nickyudha/spalosophy
$default_sort_by = "time DESC";
$pgdata = page_init($equal_search, $default_sort_by);
$page = $pgdata['page'];
$query_per_page = $pgdata['query_per_page'];
$sort_by = $pgdata['sort_by'];
$first_record = $pgdata['first_record'];
$search_parameter = $pgdata['search_parameter'];
$search_value = $pgdata['search_value'];
$search_query = $pgdata['search_query'];
$search = $pgdata['search'];
if (isset($_REQUEST['src'])) {
    $_REQUEST['src'] = $_REQUEST['src'];
} else {
    $_REQUEST['src'] = '';
}
$full_order = $_get->count_backorder($search_query, $sort_by, $first_record, $query_per_page);
$total_query = $full_order['total_query'];
$total_page = $full_order['total_page'];
$listing_order = $_get->get_backorder($search_query, $sort_by, $first_record, $query_per_page);
/* --- HANDLING ARROW SORTING --- */
$arr_order_number = '';
$arr_order_date = '';
$arr_confirm_name = '';
$arr_confirm_bank = '';
$arr_confirm_amount = '';
$arr_payment_status = '';
if (isset($_REQUEST['srt'])) {
    if ($_REQUEST['srt'] == "order_number DESC") {
        $arr_order_number = "<span class=\"sort-arrow-up\"></span>";
    } else {
        if ($_REQUEST['srt'] == "order_number") {