require_once "data/Tracker.php"; require_once 'modules/PurchaseOrder/PurchaseOrder.php'; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/utils/utils.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'include/database/Postgres8.php'; global $app_strings, $list_max_entries_per_page, $currentModule, $theme; $log = LoggerManager::getLogger('order_list'); if (!isset($where)) { $where = ""; } $url_string = '&smodule=PO'; $focus = new PurchaseOrder(); // Initialize sort by fields $focus->initSortbyField('PurchaseOrder'); // 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", "");