示例#1
0
文件: ListView.php 项目: Pengzw/c3crm
require_once 'modules/Maillisttmps/Maillisttmps.php';
require_once 'include/logging.php';
require_once 'include/ListView/ListView.php';
require_once 'include/utils/utils.php';
require_once 'modules/Maillisttmps/ModuleConfig.php';
require_once 'modules/CustomView/CustomView.php';
require_once 'include/DatabaseUtil.php';
global $app_strings, $mod_strings, $list_max_entries_per_page;
$log = LoggerManager::getLogger('maillisttmp_list');
global $currentModule, $image_path, $theme;
$focus = new Maillisttmps();
$smarty = new CRMSmarty();
$other_text = array();
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
$sorder = $focus->getSortOrder();
$order_by = $focus->getOrderBy();
$_SESSION['MAILLISTTMPS_ORDER_BY'] = $order_by;
$_SESSION['MAILLISTTMPS_SORT_ORDER'] = $sorder;
//<<<<<<<<<<<<<<<<<<< sorting - stored in session >>>>>>>>>>>>>>>>>>>>
if ($_REQUEST['parenttab'] != '') {
    $category = $_REQUEST['parenttab'];
} else {
    $category = getParentTab();
}
if (!$_SESSION['lvs'][$currentModule]) {
    unset($_SESSION['lvs']);
    $modObj = new ListViewSession();
    $modObj->sorder = $sorder;
    $modObj->sortby = $order_by;
    $_SESSION['lvs'][$currentModule] = get_object_vars($modObj);
}