require_once 'modules/CustomView/CustomView.php'; require_once 'include/DatabaseUtil.php'; require_once 'modules/ListViewReport/ListViewReport.php'; global $app_strings, $mod_strings, $list_max_entries_per_page, $theme, $adb; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new CRMSmarty(); $focus = new $currentModule(); $listviewreport = new ListViewReport($currentModule); if (isset($_REQUEST['iscustomreport']) && $_REQUEST['iscustomreport'] == 'true') { $reportfun = $_REQUEST['reportfun']; $reportparams = $listviewreport->getSingleCustomReportInf($reportfun, true); $reportparams = $reportparams[1]; $listviewreport->retrivePicklistFromCustom($reportparams); } else { $listviewreport->retrivePicklistFromRequest(); } $oCustomView = new CustomView($currentModule); $viewid = $oCustomView->getViewId($currentModule); $viewnamedesc = $oCustomView->getCustomViewByCvid($viewid); if (isset($_REQUEST['query']) && $_REQUEST['query'] == 'true') { list($where, $ustring) = explode("#@@#", getWhereCondition($currentModule)); } elseif (isset($_SESSION['LiveViewSearch'][$currentModule])) { // if($viewid==$_SESSION['LiveViewSearch'][$currentModule][0]) // { $where = $_SESSION['LiveViewSearch'][$currentModule][1]; // } } if (isset($_REQUEST['iscustomreport']) && $_REQUEST['iscustomreport'] == 'true') { $listquery = $reportparams[0]; if (!empty($where)) {