Ejemplo n.º 1
0
$my_sql['search']['show_banks']['options']['source']['script'] = "smart_getBanks";
$my_sql['search']['hide_duplicates'] = array("input_type" => "radio", "display" => "Hide Duplicates");
$my_sql['search']['hide_duplicates']['options']['source']['pairs'] = "HideDuplicates";
$my_sql['search']['page_count'] = array("input_type" => "select", "display" => "Results Per Page");
$my_sql['search']['page_count']['options']['source']['pairs'] = "ResultsPerPage";
$my_sql['postpage'] = "rebillSummary.php";
$my_sql['title'] = "Rebill Lookup";
$my_sql['result_actions']['postpage'] = "rebillSummary.php";
$my_sql['result_actions']['title'] = "Rebills Found";
/****************
Process and Render Forms
****************/
require_once 'includes/header.php';
smart_search_form($my_sql);
if (smart_process_mysql_form($my_sql)) {
    $rebills->set_user($_REQUEST['frm_user_id']);
    $rebills->set_limit_offset($_REQUEST['frm_page_count'], $_REQUEST['frm_page_offset']);
    $rebills->set_site_id($_REQUEST['frm_site']);
    $rebills->set_banks($_REQUEST['frm_show_banks']);
    $rebills->set_sort_by($_REQUEST['frm_sort_by']);
    $rebills->set_hide_dupes($_REQUEST['frm_hide_duplicates']);
    $rebills->set_subaccount_byname($_REQUEST['frm_subaccount_name']);
    $rebills->set_account_status($_REQUEST['frm_account_status']);
    $rebills->set_rebill_status($_REQUEST['frm_rebill_type']);
    $rebills->set_frozen_status($_REQUEST['frm_ss_rebill_frozen']);
    if (isset($_REQUEST['frm_displayrange']) && $_REQUEST['frm_displayrange'] == 1) {
        $rebills->set_date_range($_REQUEST['frm_tran_date_from'], $_REQUEST['frm_tran_date_to']);
    }
    $rebills->get_rebilldetails();
    if (isset($_REQUEST['frm_display_type'])) {
        echo in_array(1, $_REQUEST['frm_display_type']) ? $rebills->render_status_summary() . "<br><br>" : "";
require_once 'includes/sessioncheckuser.php';
require_once "includes/dbconnection.php";
require_once 'includes/function.php';
require_once 'includes/subFunctions/smart_search.php';
require_once 'includes/subFunctions/color_manip.php';
require_once "includes/transaction.class.php";
require_once "includes/subscription.class.php";
require_once "includes/calendar.class.php";
require_once "includes/rebill.class.php";
$sessionlogin = $companyInfo['userId'];
$companyId = $companyInfo['userId'];
/**************
Define functions to process form
**************/
$rebills = new rebill_class();
$rebills->set_user($sessionlogin);
/****************
Process Form
****************/
if ($_REQUEST['frm_cancel_rebills'] == "1") {
    $rebills->cancel_rebills($_REQUEST['frm_cancel_ids']);
    unset($_REQUEST['frm_cancel_ids']);
    unset($_REQUEST['frm_cancel_rebills']);
    $params = $rebills->request_params("frm_");
    header("Location: rebillSummary_smart.php?{$params}");
    exit;
}
$rebill_info = $rebills->get_rebill_info();
/**************
Define pairs
**************/