Пример #1
0
require_once 'include/ListView/ListView.php';
require_once 'modules/Faq/Faq.php';
require_once 'modules/CustomView/CustomView.php';
require_once 'include/database/Postgres8.php';
global $app_strings, $theme;
$current_module_strings = return_module_language($current_language, 'Faq');
global $currentModule, $adb;
require_once $theme_path . 'layout_utils.php';
if (isset($_REQUEST['category']) && $_REQUEST['category'] != '') {
    $category = vtlib_purify($_REQUEST['category']);
} else {
    $category = getParentTabFromModule($currentModule);
}
$focus = new Faq();
// Initialize sort by fields
$focus->initSortbyField('Faq');
// 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 delete " . $errormsg . " " . $currentModule);
} else {
    $smarty->assign("ERROR", "");