示例#1
0
文件: listdata.php 项目: sQcrm/sqcrm
$do_data_display = new DataDisplay();
$lp = false;
// if where is already in the query then no need to add the WHERE string
$method_param_used = false;
//custom view date and advanced filter setup
$custom_view_date_filter_qry = '';
$custom_view_adv_filter_qry = false;
$additional_where_condition = '';
if (isset($_GET["lp"]) && $_GET["lp"] == 'y' && isset($_GET["lp_object"]) && $_GET["lp_object"] != '') {
    $object = $_SESSION[$_GET["lp_object"]];
    $method = $_GET["method"];
    $mid = $_GET["lp_mid"];
    $method_param = $_GET["method_param"];
    $do_data_display->set_ds_show_edit_link(false);
    $do_data_display->set_ds_show_detail_link(false);
    $do_data_display->set_ds_show_delete_link(false);
    $do_data_display->set_ds_show_record_selector(false);
    if ($method_param != '') {
        $method_param = json_decode($method_param, true);
        if (is_array($method_param) && count($method_param) > 0) {
            call_user_func_array(array($object, $method), $method_param);
            $method_param_used = true;
        } else {
            $object->{$method}();
        }
    } else {
        $object->{$method}();
    }
} else {
    $do_crm_list_view = new CRMListView();
    $object = $do_crm_list_view->get_list_view_object($m, "list");