if (strtolower($column_array_lk) != "mif") { if (is_numeric($column_array_lk) || in_array($column_array_lk, array("MIF", "INV"))) { $tablename = trim($column_arr[0], $column_array_lk); } else { $tablename = $column_arr[0]; } $sql = "SELECT fieldname,uitype FROM vtiger_field WHERE tablename=? AND columnname=?"; $result = $adb->pquery($sql, array($tablename, $column_arr[1])); while ($row = $adb->fetchByAssoc($result)) { if (isset($row["uitype"]) && in_array($row["uitype"], array("12", "15", "16", "52", "53", "54", "59", "62", "66", "67", "68", "111", "115"))) { $quick_columns_array[] = $column_str; } } } } $p_options = $oReport->getSMOwnerIDColumn($r_p_module); foreach ($p_options as $p_key => $p_value) { $quick_columns_array[] = $p_key; } $BLOCK1 = $oReport->getQuickFiltersHTML($quick_columns_array, $quick_columns_arraySelected); $report_column->assign("BLOCK1", $BLOCK1); $report_column->assign("E_BLOCK", empty($BLOCK1)); /* $sortorder = ""; if(isset($_REQUEST["record"]) && $_REQUEST['record']!='') { $recordid = vtlib_purify($_REQUEST["record"]); $oReport = new ITS4YouReports($recordid); $BLOCK1 = getPrimaryColumnsHTML($oReport->primarymodule); $BLOCK3 = getSecondaryColumnsHTML($oReport->relatedmodulesstring);