-
Notifications
You must be signed in to change notification settings - Fork 1
/
Export_and_Import_Units_search.php
86 lines (61 loc) · 1.95 KB
/
Export_and_Import_Units_search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
add_nocache_headers();
require_once("classes/searchclause.php");
require_once("include/Export_and_Import_Units_variables.php");
require_once("classes/searchcontrol.php");
require_once("classes/advancedsearchcontrol.php");
require_once("classes/panelsearchcontrol.php");
Security::processLogoutRequest();
if( !isLogged() )
{
Security::saveRedirectURL();
redirectToLogin();
}
$cname = postvalue("cname");
$rname = postvalue("rname");
$accessGranted = CheckTablePermissions($strTableName, "S");
if(!$accessGranted)
{
HeaderRedirect("menu");
}
require_once('include/xtempl.php');
require_once('classes/searchpage.php');
require_once('classes/searchpage_dash.php');
$xt = new Xtempl();
$pageMode = SearchPage::readSearchModeFromRequest();
if( $pageMode == SEARCH_LOAD_CONTROL )
$layoutVersion = postvalue("layoutVersion");
$params = array();
$params['xt'] = &$xt;
$params['id'] = postvalue_number("id");
$params['mode'] = $pageMode;
$params['tName'] = $strTableName;
$params["pageName"] = postvalue("page");
$params['pageType'] = PAGE_SEARCH;
$params['chartName'] = $cname;
$params['reportName'] = $rname;
$params['templatefile'] = $templatefile;
$params['shortTableName'] = 'Export_and_Import_Units';
$params['layoutVersion'] = $layoutVersion;
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
$params['ctrlField'] = postvalue('ctrlField');
$params['needSettings'] = postvalue('isNeedSettings');
if( $pageMode == SEARCH_DASHBOARD )
{
$params["dashTName"] = postvalue("table");
$params["dashElementName"] = postvalue("dashelement");
}
// e.g. crosstable params
$params["extraPageParams"] = SearchPage::getExtraPageParams();
$pageObject = new SearchPage($params);
if( $pageMode == SEARCH_LOAD_CONTROL )
{
$pageObject->displaySearchControl();
return;
}
$pageObject->init();
$pageObject->process();
?>