-
Notifications
You must be signed in to change notification settings - Fork 1
/
Export_and_Import_Rooms_export.php
52 lines (36 loc) · 1.34 KB
/
Export_and_Import_Rooms_export.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
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
require_once("classes/searchclause.php");
require_once("classes/sql.php");
require_once("include/Export_and_Import_Rooms_variables.php");
if( !Security::processPageSecurity( $strtablename, 'P' ) )
return;
require_once("include/export_functions.php");
require_once("classes/exportpage.php");
require_once("include/xtempl.php");
$xt = new Xtempl();
//array of params for classes
$params = array();
$params["id"] = postvalue_number("id");
$params["xt"] = &$xt;
$params["tName"] = $strTableName;
$params["pageType"] = PAGE_EXPORT;
$params["pageName"] = postvalue("page");
if( !$eventObj->exists("ListGetRowCount") && !$eventObj->exists("ListQuery") )
$params["needSearchClauseObj"] = false;
$params["selectedFields"] = postvalue("exportFields");
$params["exportType"] = postvalue("type");
$params["action"] = postvalue("a");
$params["records"] = postvalue("records");
$params["selection"] = postvalue("selection");
$params["csvDelimiter"] = postvalue("delimiter");
if( postvalue("txtformatting") == "raw" )
$params["useRawValues"] = true;
$params["mode"] = ExportPage::readModeFromRequest();
$pageObject = new ExportPage( $params );
$pageObject->init();
$pageObject->process();
?>