global $list_max_entries_per_page; $log = LoggerManager::getLogger('contact_list'); global $currentModule; global $theme; // Get _dom arrays from Database $comboFieldNames = array('leadstatus' => 'leadstatus_dom'); $comboFieldArray = getComboArray($comboFieldNames); $category = getParentTab(); if (!isset($where)) { $where = ""; } $url_string = ''; // assigning http url string $focus = new Leads(); // Initialize sort by fields $focus->initSortbyField('Leads'); // END $smarty = new vtigerCRM_Smarty(); $other_text = array(); if (!$_SESSION['lvs'][$currentModule]) { unset($_SESSION['lvs']); $modObj = new ListViewSession(); $modObj->sorder = $sorder; $modObj->sortby = $order_by; $_SESSION['lvs'][$currentModule] = get_object_vars($modObj); } if ($_REQUEST['errormsg'] != '') { $errormsg = vtlib_purify($_REQUEST['errormsg']); $smarty->assign("ERROR", "The User does not have permission to Change/Delete " . $errormsg . " " . $currentModule); } else { $smarty->assign("ERROR", "");