-
Notifications
You must be signed in to change notification settings - Fork 1
/
Assign_Rooms_view.php
74 lines (54 loc) · 1.75 KB
/
Assign_Rooms_view.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
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
require_once("include/Assign_Rooms_variables.php");
require_once('include/xtempl.php');
require_once('classes/viewpage.php');
require_once("classes/searchclause.php");
add_nocache_headers();
if( !ViewPage::processEditPageSecurity( $strTableName ) )
return;
$pageMode = ViewPage::readViewModeFromRequest();
$xt = new Xtempl();
// $keys could not be set properly if editid params were no passed
$keys = array();
$keys["organization_id"] = postvalue("editid1");
$keys["unee_t_mefe_user_id"] = postvalue("editid2");
$keys["unee_t_level_3_id"] = postvalue("editid3");
$keys["unee_t_user_type_id"] = postvalue("editid4");
//array of params for classes
$params = array();
$params["id"] = postvalue_number("id");
$params["xt"] = &$xt;
$params["keys"] = $keys;
$params["mode"] = $pageMode;
$params["pageType"] = PAGE_VIEW;
$params["pageName"] = postvalue("page");
$params["tName"] = $strTableName;
$params["pdfMode"] = postvalue("pdf") !== "";
$params["masterTable"] = postvalue("mastertable");
if( $pageMode == VIEW_DASHBOARD )
{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("table");
if( postvalue("mapRefresh") )
{
$params["mapRefresh"] = true;
$params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
}
}
if( $pageMode == VIEW_POPUP )
{
$params["dashElementName"] = postvalue("dashelement");
$params["dashTName"] = postvalue("dashTName");
}
if( $params["masterTable"] )
{
$params["masterKeysReq"] = ViewPage::processMasterKeys();
}
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage");
$pageObject = new ViewPage($params);
$pageObject->init();
$pageObject->process();
?>