$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'] = ''; } if (isset($_REQUEST['srcval'])) { $_REQUEST['srcval'] = $_REQUEST['srcval']; } else { $_REQUEST['srcval'] = ''; } $full_order = $_get->count_voucher($search_query, $sort_by, $first_record, $query_per_page); $total_query = $full_order['total_query']; $total_page = $full_order['total_page']; $all_product = $_get->get_voucher($search_query, $sort_by, $first_record, $query_per_page); //$count_sale = $_get->count_sale_item(); /* --- HANDLING ARROW SORTING --- */ $arr_product_name = ''; $arr_type_name = ''; $arr_type_price = ''; $arr_promo_value = ''; if (isset($_REQUEST['srt'])) { if ($_REQUEST['srt'] == "product_name") { $arr_product_name = "<span class=\"sort-arrow-up\"></span>"; } else { if ($_REQUEST['srt'] == "product_name DESC") { $arr_product_name = "<span class=\"sort-arrow-down\"></span>";
<?php /* # ---------------------------------------------------------------------- # VOUCHER: CONTROL # ---------------------------------------------------------------------- */ $custom_order_number = 'DIM040215002'; include 'get.php'; include 'update.php'; $_get = new VOUCHER_GET(); $_update = new VOUCHER_UPDATE(); $count = $_get->count_voucher($custom_order_number); if ($count->rows > 0) { $data = $_get->get_voucher($custom_order_number); $show = 1; } else { $show = 2; }