test
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- php/chat_agent_add.php +108 -0
- php/chat_agent_edit.php +107 -0
- php/chat_agent_export.php +53 -0
- php/chat_agent_import.php +53 -0
- php/chat_agent_list.php +163 -0
- php/chat_agent_print.php +46 -0
- php/chat_agent_search.php +84 -0
- php/chat_agent_view.php +67 -0
- php/chat_external_add.php +108 -0
- php/chat_external_edit.php +107 -0
- php/chat_external_export.php +53 -0
- php/chat_external_import.php +53 -0
- php/chat_external_list.php +163 -0
- php/chat_external_print.php +46 -0
- php/chat_external_search.php +84 -0
- php/chat_external_view.php +67 -0
- php/classes/charts.php +6 -0
- php/classes/db.php +2 -0
- php/classes/projectsettings.php +6 -0
- php/connections/ConnectionManager_base.php +2 -0
- php/dashboard_dashboard.php +34 -0
- php/dashboard_search.php +84 -0
- php/include/appsettings.php +5 -8
- php/include/audit.php +24 -0
- php/include/chat_agent_settings.php +998 -0
- php/include/chat_agent_variables.php +13 -0
- php/include/chat_external_settings.php +999 -0
- php/include/chat_external_variables.php +13 -0
- php/include/commonfunctions.php +63 -0
- php/include/dal.php +4 -0
- php/include/dal/chats_at_localhost__chat_agent.php +10 -0
- php/include/dal/chats_at_localhost__chat_external.php +10 -0
- php/include/dashboard_settings.php +62 -0
- php/include/dashboard_variables.php +8 -0
- php/include/events.php +0 -31
- php/include/menunodes_main.php +78 -0
- php/include/pages/_global_menu_Chat1.php +69 -6
- php/include/pages/chat_agent_add.php +199 -0
- php/include/pages/chat_agent_edit.php +210 -0
- php/include/pages/chat_agent_export.php +134 -0
- php/include/pages/chat_agent_import.php +95 -0
- php/include/pages/chat_agent_list.php +562 -0
- php/include/pages/chat_agent_print.php +284 -0
- php/include/pages/chat_agent_search.php +149 -0
- php/include/pages/chat_agent_view.php +210 -0
- php/include/pages/chat_external_add.php +211 -0
- php/include/pages/chat_external_edit.php +222 -0
- php/include/pages/chat_external_export.php +134 -0
- php/include/pages/chat_external_import.php +95 -0
- php/include/pages/chat_external_list.php +562 -0
php/chat_agent_add.php
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
require_once("classes/searchclause.php");
|
6 |
+
require_once("include/chat_agent_variables.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/addpage.php');
|
9 |
+
require_once('include/lookuplinks.php');
|
10 |
+
|
11 |
+
add_nocache_headers();
|
12 |
+
|
13 |
+
InitLookupLinks();
|
14 |
+
|
15 |
+
if( Security::hasLogin() ) {
|
16 |
+
if( !AddPage::processAddPageSecurity( $strTableName ) )
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
AddPage::handleBrokenRequest();
|
21 |
+
|
22 |
+
|
23 |
+
$pageMode = AddPage::readAddModeFromRequest();
|
24 |
+
|
25 |
+
$xt = new Xtempl();
|
26 |
+
|
27 |
+
$id = postvalue_number("id");
|
28 |
+
$id = $id ? $id : 1;
|
29 |
+
|
30 |
+
//an array of AddPage constructor's params
|
31 |
+
$params = array();
|
32 |
+
$params["id"] = $id;
|
33 |
+
$params["xt"] = &$xt;
|
34 |
+
$params["mode"] = $pageMode;
|
35 |
+
$params["pageType"] = PAGE_ADD;
|
36 |
+
$params["tName"] = $strTableName;
|
37 |
+
$params["pageName"] = postvalue("page");
|
38 |
+
$params["action"] = postvalue("a");
|
39 |
+
$params["needSearchClauseObj"] = false;
|
40 |
+
$params["afterAdd_id"] = postvalue("afteradd");
|
41 |
+
|
42 |
+
$params["hostPageName"] = postvalue("hostPageName");
|
43 |
+
$params["listPage"] = postvalue("listPage");
|
44 |
+
|
45 |
+
$params["newRowId"] = postvalue("newRowId");
|
46 |
+
|
47 |
+
$params["masterTable"] = postvalue("mastertable");
|
48 |
+
if( $params["masterTable"] )
|
49 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
;
|
54 |
+
$params["captchaName"] = "captcha_1209xre";
|
55 |
+
$params["captchaValue"] = postvalue("value_captcha_1209xre_" . $id);
|
56 |
+
$params["dashElementName"] = postvalue("dashelement");
|
57 |
+
$params["fromDashboard"] = postvalue("fromDashboard");
|
58 |
+
$params["dashTName"] = $params["fromDashboard"] ? $params["fromDashboard"] : postvalue("dashTName");
|
59 |
+
$params["dashPage"] = postvalue("dashPage");
|
60 |
+
|
61 |
+
$params["forSpreadsheetGrid"] = postvalue("spreadsheetGrid");
|
62 |
+
|
63 |
+
if ( $pageMode == ADD_POPUP ) {
|
64 |
+
$params["forListPageLookup"] = postvalue('forLookup');
|
65 |
+
}
|
66 |
+
|
67 |
+
if( $pageMode == ADD_DASHBOARD )
|
68 |
+
{
|
69 |
+
$params["dashElementName"] = postvalue("dashelement");
|
70 |
+
$params["dashTName"] = postvalue("table");
|
71 |
+
$params["dashPage"] = postvalue("dashPage");
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
if( $pageMode == ADD_INLINE )
|
76 |
+
{
|
77 |
+
// Inline add in a 'List page with search' lookup
|
78 |
+
$params["forListPageLookup"] = postvalue('forLookup');
|
79 |
+
|
80 |
+
$params["screenWidth"] = postvalue("screenWidth");
|
81 |
+
$params["screenHeight"] = postvalue("screenHeight");
|
82 |
+
$params["orientation"] = postvalue("orientation");
|
83 |
+
|
84 |
+
$params["masterPageType"] = postvalue("masterpagetype");
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
if( $pageMode == ADD_ONTHEFLY || ( $pageMode == ADD_INLINE || $pageMode == ADD_POPUP ) && postvalue('forLookup') )
|
89 |
+
{
|
90 |
+
//table where lookup is set
|
91 |
+
$params["lookupTable"] = postvalue("table");
|
92 |
+
//field with lookup is set
|
93 |
+
$params["lookupField"] = postvalue("field");
|
94 |
+
//the ptype od the page where lookup is set
|
95 |
+
$params["lookupPageType"] = postvalue("pageType");
|
96 |
+
|
97 |
+
if( postvalue('parentsExist') )
|
98 |
+
{
|
99 |
+
//the parent controls values data
|
100 |
+
$params["parentCtrlsData"] = my_json_decode( postvalue("parentCtrlsData") );
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
$pageObject = new AddPage($params);
|
105 |
+
$pageObject->init();
|
106 |
+
|
107 |
+
$pageObject->process();
|
108 |
+
?>
|
php/chat_agent_edit.php
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
@ini_set("display_errors","1");
|
4 |
+
@ini_set("display_startup_errors","1");
|
5 |
+
|
6 |
+
require_once("include/dbcommon.php");
|
7 |
+
require_once("classes/searchclause.php");
|
8 |
+
require_once("include/chat_agent_variables.php");
|
9 |
+
require_once('include/xtempl.php');
|
10 |
+
require_once('classes/editpage.php');
|
11 |
+
|
12 |
+
add_nocache_headers();
|
13 |
+
|
14 |
+
if( Security::hasLogin() ) {
|
15 |
+
if( !EditPage::processEditPageSecurity( $strTableName ) )
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
|
19 |
+
EditPage::handleBrokenRequest();
|
20 |
+
|
21 |
+
// render all necessary layouts
|
22 |
+
|
23 |
+
|
24 |
+
// parse control parameters
|
25 |
+
$pageMode = EditPage::readEditModeFromRequest();
|
26 |
+
|
27 |
+
$xt = new Xtempl();
|
28 |
+
|
29 |
+
$id = postvalue_number("id");
|
30 |
+
$id = intval($id) == 0 ? 1 : $id;
|
31 |
+
|
32 |
+
|
33 |
+
// $keys could not be set properly if editid params were no passed
|
34 |
+
$keys = array();
|
35 |
+
$keys["id"] = postvalue("editid1");
|
36 |
+
|
37 |
+
//array of params for classes
|
38 |
+
$params = array();
|
39 |
+
$params["id"] = $id;
|
40 |
+
$params["xt"] = &$xt;
|
41 |
+
$params["keys"] = $keys;
|
42 |
+
$params["mode"] = $pageMode;
|
43 |
+
$params["pageType"] = PAGE_EDIT;
|
44 |
+
$params["pageName"] = postvalue("page");
|
45 |
+
$params["tName"] = $strTableName;
|
46 |
+
$params["action"] = postvalue("a");
|
47 |
+
$params["selectedFields"] = postvalue("fields");
|
48 |
+
|
49 |
+
;
|
50 |
+
$params["captchaName"] = "captcha_1209xre";
|
51 |
+
$params["captchaValue"] = postvalue("value_captcha_1209xre_" . $id);
|
52 |
+
$params["selection"] = postvalue("selection");
|
53 |
+
$params["rowIds"] = my_json_decode( postvalue("rowIds") );
|
54 |
+
|
55 |
+
$params["masterTable"] = postvalue("mastertable");
|
56 |
+
if( $params["masterTable"] )
|
57 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
58 |
+
|
59 |
+
// locking parameters
|
60 |
+
$params["lockingAction"] = postvalue("action");
|
61 |
+
$params["lockingSid"] = postvalue("sid");
|
62 |
+
$params["lockingKeys"] = postvalue("keys");
|
63 |
+
$params["lockingStart"] = postvalue("startEdit");
|
64 |
+
|
65 |
+
if( $pageMode == EDIT_INLINE )
|
66 |
+
{
|
67 |
+
$params["screenWidth"] = postvalue("screenWidth");
|
68 |
+
$params["screenHeight"] = postvalue("screenHeight");
|
69 |
+
$params["orientation"] = postvalue("orientation");
|
70 |
+
}
|
71 |
+
|
72 |
+
if( $pageMode == EDIT_DASHBOARD )
|
73 |
+
{
|
74 |
+
$params["dashElementName"] = postvalue("dashelement");
|
75 |
+
$params["dashTName"] = postvalue("table");
|
76 |
+
$params["dashPage"] = postvalue("dashPage");
|
77 |
+
|
78 |
+
if( postvalue("mapRefresh") )
|
79 |
+
{
|
80 |
+
$params["mapRefresh"] = true;
|
81 |
+
$params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
+
if(( $pageMode == EDIT_POPUP || $pageMode == EDIT_INLINE ) && postvalue("dashTName"))
|
86 |
+
{
|
87 |
+
$params["dashTName"] = postvalue("dashTName");
|
88 |
+
$params["dashElementName"] = postvalue("dashelement");
|
89 |
+
$params["dashPage"] = postvalue("dashPage");
|
90 |
+
}
|
91 |
+
|
92 |
+
$params["forSpreadsheetGrid"] = postvalue("spreadsheetGrid");
|
93 |
+
$params["hostPageName"] = postvalue("hostPageName");
|
94 |
+
$params["listPage"] = postvalue("listPage");
|
95 |
+
|
96 |
+
$pageObject = EditPage::EditPageFactory($params);
|
97 |
+
|
98 |
+
if( $pageObject->isLockingRequest() )
|
99 |
+
{
|
100 |
+
$pageObject->doLockingAction();
|
101 |
+
exit();
|
102 |
+
}
|
103 |
+
|
104 |
+
$pageObject->init();
|
105 |
+
|
106 |
+
$pageObject->process();
|
107 |
+
?>
|
php/chat_agent_export.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
|
6 |
+
|
7 |
+
require_once("classes/searchclause.php");
|
8 |
+
require_once("classes/sql.php");
|
9 |
+
|
10 |
+
require_once("include/chat_agent_variables.php");
|
11 |
+
|
12 |
+
if( Security::hasLogin() ) {
|
13 |
+
if( !Security::processPageSecurity( $strtablename, 'P' ) )
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
require_once("include/export_functions.php");
|
19 |
+
require_once("classes/exportpage.php");
|
20 |
+
require_once("include/xtempl.php");
|
21 |
+
|
22 |
+
$xt = new Xtempl();
|
23 |
+
|
24 |
+
//array of params for classes
|
25 |
+
$params = array();
|
26 |
+
$params["id"] = postvalue_number("id");
|
27 |
+
$params["xt"] = &$xt;
|
28 |
+
$params["tName"] = $strTableName;
|
29 |
+
$params["pageType"] = PAGE_EXPORT;
|
30 |
+
$params["pageName"] = postvalue("page");
|
31 |
+
|
32 |
+
$params["selectedFields"] = postvalue("exportFields");
|
33 |
+
$params["exportType"] = postvalue("type");
|
34 |
+
|
35 |
+
$params["allPagesMode"] = postvalue("records") == "all";
|
36 |
+
$params["currentPageMode"] = postvalue("records") == "page";
|
37 |
+
$params["selection"] = postvalue("selection");
|
38 |
+
$params["csvDelimiter"] = postvalue("delimiter");
|
39 |
+
|
40 |
+
if( postvalue("txtformatting") == "raw" )
|
41 |
+
$params["useRawValues"] = true;
|
42 |
+
|
43 |
+
$params["mode"] = ExportPage::readModeFromRequest();
|
44 |
+
|
45 |
+
$params["masterTable"] = postvalue("mastertable");
|
46 |
+
if( $params["masterTable"] )
|
47 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
48 |
+
|
49 |
+
$pageObject = new ExportPage( $params );
|
50 |
+
$pageObject->init();
|
51 |
+
|
52 |
+
$pageObject->process();
|
53 |
+
?>
|
php/chat_agent_import.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
|
6 |
+
|
7 |
+
set_time_limit(600);
|
8 |
+
|
9 |
+
require_once("include/chat_agent_variables.php");
|
10 |
+
require_once("include/import_functions.php");
|
11 |
+
require_once('classes/importpage.php');
|
12 |
+
|
13 |
+
if( Security::hasLogin() ) {
|
14 |
+
if( !Security::processPageSecurity( $strtablename, 'I' ) )
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
require_once('include/xtempl.php');
|
20 |
+
$xt = new Xtempl();
|
21 |
+
|
22 |
+
//an array of params for ImportPage constructor
|
23 |
+
$params = array();
|
24 |
+
$params["id"] = postvalue_number("id");
|
25 |
+
$params["xt"] = &$xt;
|
26 |
+
$params["tName"] = $strTableName;
|
27 |
+
$params["action"] = postvalue("a");
|
28 |
+
$params["pageType"] = PAGE_IMPORT;
|
29 |
+
$params["pageName"] = postvalue("page");
|
30 |
+
$params["needSearchClauseObj"] = false;
|
31 |
+
$params["strOriginalTableName"] = $strOriginalTableName;
|
32 |
+
|
33 |
+
if( $params["action"] == "importPreview" )
|
34 |
+
{
|
35 |
+
$params["importType"] = postvalue("importType");
|
36 |
+
$params["importText"] = postvalue("importText");
|
37 |
+
$params["useXHR"] = postvalue("useXHR");
|
38 |
+
}
|
39 |
+
elseif( $params["action"] == "importData" )
|
40 |
+
{
|
41 |
+
$params["importData"] = my_json_decode( postvalue("importData") );
|
42 |
+
}
|
43 |
+
|
44 |
+
$params["masterTable"] = postvalue("mastertable");
|
45 |
+
if( $params["masterTable"] )
|
46 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
47 |
+
|
48 |
+
$pageObject = new ImportPage($params);
|
49 |
+
$pageObject->init();
|
50 |
+
|
51 |
+
$pageObject->process();
|
52 |
+
|
53 |
+
?>
|
php/chat_agent_list.php
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
$requestTable = "chat_agent";
|
6 |
+
$requestPage = "list";
|
7 |
+
|
8 |
+
require_once("include/dbcommon.php");
|
9 |
+
add_nocache_headers();
|
10 |
+
|
11 |
+
require_once('include/xtempl.php');
|
12 |
+
|
13 |
+
require_once("classes/searchcontrol.php");
|
14 |
+
require_once("classes/searchclause.php");
|
15 |
+
require_once("classes/panelsearchcontrol.php");
|
16 |
+
require_once("include/chat_agent_variables.php");
|
17 |
+
require_once('classes/listpage.php');
|
18 |
+
require_once('include/lookuplinks.php');
|
19 |
+
|
20 |
+
// Check whether the page was called as a part of Lookup wizard - List page with search.
|
21 |
+
// Verify the eligibility of such a call.
|
22 |
+
|
23 |
+
InitLookupLinks();
|
24 |
+
if( Security::hasLogin() ) {
|
25 |
+
if( !ListPage::processListPageSecurity( $strTableName ) )
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
|
29 |
+
if( ListPage::processSaveParams( $strTableName ) )
|
30 |
+
return;
|
31 |
+
|
32 |
+
$options = array();
|
33 |
+
//array of params for classes
|
34 |
+
|
35 |
+
// Include necessary files in accordance with the page displaying mode
|
36 |
+
$mode = ListPage::readListModeFromRequest();
|
37 |
+
if( $mode == LIST_SIMPLE )
|
38 |
+
{
|
39 |
+
require_once('classes/listpage_simple.php');
|
40 |
+
require_once("classes/searchpanelsimple.php");
|
41 |
+
}
|
42 |
+
elseif( $mode == LIST_AJAX )
|
43 |
+
{
|
44 |
+
require_once('classes/listpage_simple.php');
|
45 |
+
require_once('classes/listpage_ajax.php');
|
46 |
+
require_once("classes/searchpanelsimple.php");
|
47 |
+
}
|
48 |
+
elseif( $mode == LIST_LOOKUP )
|
49 |
+
{
|
50 |
+
require_once('classes/listpage_embed.php');
|
51 |
+
require_once('classes/listpage_lookup.php');
|
52 |
+
|
53 |
+
$options["mainTable"] = postvalue("table");
|
54 |
+
$options["mainField"] = postvalue("field");
|
55 |
+
$options["mainPageType"] = postvalue("pageType");
|
56 |
+
|
57 |
+
$options["mainRecordData"] = my_json_decode( postvalue('data') );
|
58 |
+
$options["mainRecordMasterTable"] = postvalue('mainRecordMasterTable');
|
59 |
+
|
60 |
+
if( postvalue("parentsExist") )
|
61 |
+
$options["parentCtrlsData"] = my_json_decode( postvalue("parentCtrlsData") );
|
62 |
+
}
|
63 |
+
elseif( $mode == LIST_POPUPDETAILS )
|
64 |
+
{
|
65 |
+
require_once('classes/listpage_embed.php');
|
66 |
+
require_once('classes/listpage_dpinline.php');
|
67 |
+
require_once('classes/listpage_dppopup.php');
|
68 |
+
}
|
69 |
+
elseif( $mode == LIST_DETAILS )
|
70 |
+
{
|
71 |
+
require_once('classes/listpage_embed.php');
|
72 |
+
require_once('classes/listpage_dpinline.php');
|
73 |
+
require_once('classes/listpage_dplist.php');
|
74 |
+
}
|
75 |
+
elseif( $mode == LIST_DASHDETAILS )
|
76 |
+
{
|
77 |
+
require_once('classes/listpage_embed.php');
|
78 |
+
require_once('classes/listpage_dashboard.php');
|
79 |
+
require_once('classes/listpage_dpdash.php');
|
80 |
+
}
|
81 |
+
elseif( $mode == LIST_DASHBOARD )
|
82 |
+
{
|
83 |
+
require_once('classes/listpage_embed.php');
|
84 |
+
require_once('classes/listpage_dashboard.php');
|
85 |
+
}
|
86 |
+
elseif( $mode == MAP_DASHBOARD )
|
87 |
+
{
|
88 |
+
require_once('classes/listpage_embed.php');
|
89 |
+
require_once('classes/listpage_dashboard.php');
|
90 |
+
require_once('classes/map_dashboard.php');
|
91 |
+
}
|
92 |
+
|
93 |
+
$xt = new Xtempl( $mode != LIST_SIMPLE ); //#9607 1. Temporary fix
|
94 |
+
|
95 |
+
$options["pageName"] = postvalue("page");
|
96 |
+
$options["pageType"] = PAGE_LIST;
|
97 |
+
$options["id"] = postvalue_number("id") ? postvalue_number("id") : 1;
|
98 |
+
$options["flyId"] = (int)postvalue("recordId");
|
99 |
+
$options["mode"] = $mode;
|
100 |
+
$options["xt"] = &$xt;
|
101 |
+
$options["firstTime"] = postvalue("firstTime");
|
102 |
+
$options["sortBy"] = postvalue("sortby");
|
103 |
+
$options["requestGoto"] = postvalue_number("goto");
|
104 |
+
|
105 |
+
|
106 |
+
$options["masterPageType"] = postvalue("masterpagetype");
|
107 |
+
$options["masterPage"] = postvalue("masterpage");
|
108 |
+
$options["masterId"] = postvalue("masterid");
|
109 |
+
|
110 |
+
$options["masterTable"] = postvalue("mastertable");
|
111 |
+
if( $options["masterTable"] )
|
112 |
+
$options["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
113 |
+
|
114 |
+
|
115 |
+
if( $mode == LIST_DASHBOARD && postvalue("nodata") && strlen($options["masterTable"]) )
|
116 |
+
$options["showNoData"] = true;
|
117 |
+
|
118 |
+
if( $mode != LIST_LOOKUP )
|
119 |
+
{
|
120 |
+
$options["dashElementName"] = postvalue("dashelement");
|
121 |
+
$options["dashTName"] = postvalue("table");
|
122 |
+
$options["dashPage"] = postvalue("dashPage");
|
123 |
+
}
|
124 |
+
|
125 |
+
if( postvalue("mapRefresh") )
|
126 |
+
{
|
127 |
+
$options["mapRefresh"] = true;
|
128 |
+
$options["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
129 |
+
}
|
130 |
+
|
131 |
+
if( postvalue("firstTime") )
|
132 |
+
$options["firstTime"] = true;
|
133 |
+
|
134 |
+
// Create $pageObject
|
135 |
+
$pageObject = ListPage::createListPage($strTableName, $options);
|
136 |
+
|
137 |
+
if( $pageObject->processSaveSearch() )
|
138 |
+
exit();
|
139 |
+
|
140 |
+
if( $pageObject->updateRowOrder() )
|
141 |
+
exit();
|
142 |
+
|
143 |
+
if ( $pageObject->processFieldFilter() )
|
144 |
+
exit();
|
145 |
+
|
146 |
+
if( $pageObject->processTotals() )
|
147 |
+
exit();
|
148 |
+
|
149 |
+
if( $mode != LIST_DETAILS && $mode != MAP_DASHBOARD && $mode != LIST_DASHBOARD )
|
150 |
+
{
|
151 |
+
//maps
|
152 |
+
}
|
153 |
+
|
154 |
+
unset($_SESSION["message_add"]);
|
155 |
+
unset($_SESSION["message_edit"]);
|
156 |
+
|
157 |
+
// prepare code for build page
|
158 |
+
$pageObject->prepareForBuildPage();
|
159 |
+
|
160 |
+
// show page depends of mode
|
161 |
+
$pageObject->showPage();
|
162 |
+
|
163 |
+
?>
|
php/chat_agent_print.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
require_once("classes/searchclause.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/printpage.php');
|
9 |
+
require_once('classes/printpage_details.php');
|
10 |
+
require_once('classes/reportpage.php');
|
11 |
+
require_once('classes/reportprintpage.php');
|
12 |
+
|
13 |
+
add_nocache_headers();
|
14 |
+
|
15 |
+
require_once("include/chat_agent_variables.php");
|
16 |
+
|
17 |
+
if( Security::hasLogin() ) {
|
18 |
+
if( !Security::processPageSecurity( $strtablename, 'P' ) )
|
19 |
+
return;
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
$xt = new Xtempl();
|
24 |
+
|
25 |
+
//array of params for classes
|
26 |
+
$params = array();
|
27 |
+
$params["id"] = postvalue_number("id");
|
28 |
+
$params["xt"] = &$xt;
|
29 |
+
$params["pageType"] = PAGE_PRINT;
|
30 |
+
$params["pageName"] = postvalue("page");
|
31 |
+
$params["tName"] = $strTableName;
|
32 |
+
$params["selection"] = postvalue("selection"); //PrintPage::readSelectedRecordsFromRequest( "chat_agent" );
|
33 |
+
$params["allPagesMode"] = postvalue("all");
|
34 |
+
$params["detailTables"] = postvalue("details");
|
35 |
+
$params["splitByRecords"] = postvalue("records");
|
36 |
+
$params["mode"] = postvalue( "pdfjson" ) ? PRINT_PDFJSON : PRINT_SIMPLE;
|
37 |
+
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage");
|
38 |
+
|
39 |
+
$params["masterTable"] = postvalue("mastertable");
|
40 |
+
if( $params["masterTable"] )
|
41 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
42 |
+
|
43 |
+
$pageObject = new PrintPage($params);
|
44 |
+
$pageObject->init();
|
45 |
+
$pageObject->process();
|
46 |
+
?>
|
php/chat_agent_search.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
add_nocache_headers();
|
7 |
+
|
8 |
+
require_once("classes/searchclause.php");
|
9 |
+
require_once("include/chat_agent_variables.php");
|
10 |
+
require_once("classes/searchcontrol.php");
|
11 |
+
require_once("classes/advancedsearchcontrol.php");
|
12 |
+
require_once("classes/panelsearchcontrol.php");
|
13 |
+
|
14 |
+
|
15 |
+
Security::processLogoutRequest();
|
16 |
+
|
17 |
+
if( !isLogged() )
|
18 |
+
{
|
19 |
+
Security::saveRedirectURL();
|
20 |
+
redirectToLogin();
|
21 |
+
}
|
22 |
+
|
23 |
+
$accessGranted = CheckTablePermissions($strTableName, "S");
|
24 |
+
if(!$accessGranted)
|
25 |
+
{
|
26 |
+
HeaderRedirect("menu");
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
require_once('include/xtempl.php');
|
31 |
+
require_once('classes/searchpage.php');
|
32 |
+
require_once('classes/searchpage_dash.php');
|
33 |
+
|
34 |
+
$xt = new Xtempl();
|
35 |
+
$pageMode = SearchPage::readSearchModeFromRequest();
|
36 |
+
|
37 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
38 |
+
$layoutVersion = postvalue("layoutVersion");
|
39 |
+
|
40 |
+
|
41 |
+
$params = array();
|
42 |
+
$params['xt'] = &$xt;
|
43 |
+
$params['id'] = postvalue_number("id");
|
44 |
+
$params['mode'] = $pageMode;
|
45 |
+
$params['tName'] = $strTableName;
|
46 |
+
$params["pageName"] = postvalue("page");
|
47 |
+
$params['pageType'] = PAGE_SEARCH;
|
48 |
+
$params['chartName'] = $cname;
|
49 |
+
$params['reportName'] = $rname;
|
50 |
+
$params['templatefile'] = $templatefile;
|
51 |
+
$params['shortTableName'] = 'chat_agent';
|
52 |
+
$params['layoutVersion'] = $layoutVersion;
|
53 |
+
|
54 |
+
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
|
55 |
+
$params['ctrlField'] = postvalue('ctrlField');
|
56 |
+
|
57 |
+
$params['needSettings'] = postvalue('isNeedSettings');
|
58 |
+
|
59 |
+
if( $pageMode == SEARCH_DASHBOARD )
|
60 |
+
{
|
61 |
+
$params["dashTName"] = postvalue("table");
|
62 |
+
$params["dashElementName"] = postvalue("dashelement");
|
63 |
+
$params["dashPage"] = postvalue("dashPage");
|
64 |
+
}
|
65 |
+
|
66 |
+
// e.g. crosstable params
|
67 |
+
$params["extraPageParams"] = SearchPage::getExtraPageParams();
|
68 |
+
|
69 |
+
$params["masterTable"] = postvalue("mastertable");
|
70 |
+
if( $params["masterTable"] )
|
71 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
72 |
+
|
73 |
+
|
74 |
+
$pageObject = new SearchPage($params);
|
75 |
+
|
76 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
77 |
+
{
|
78 |
+
$pageObject->displaySearchControl();
|
79 |
+
return;
|
80 |
+
}
|
81 |
+
|
82 |
+
$pageObject->init();
|
83 |
+
$pageObject->process();
|
84 |
+
?>
|
php/chat_agent_view.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
require_once("include/chat_agent_variables.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/viewpage.php');
|
9 |
+
require_once("classes/searchclause.php");
|
10 |
+
|
11 |
+
add_nocache_headers();
|
12 |
+
|
13 |
+
if( Security::hasLogin() ) {
|
14 |
+
if( !ViewPage::processEditPageSecurity( $strTableName ) )
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
|
18 |
+
$pageMode = ViewPage::readViewModeFromRequest();
|
19 |
+
|
20 |
+
$xt = new Xtempl();
|
21 |
+
|
22 |
+
// $keys could not be set properly if editid params were no passed
|
23 |
+
$keys = array();
|
24 |
+
$keys["id"] = postvalue("editid1");
|
25 |
+
|
26 |
+
//array of params for classes
|
27 |
+
$params = array();
|
28 |
+
$params["id"] = postvalue_number("id");
|
29 |
+
$params["xt"] = &$xt;
|
30 |
+
$params["keys"] = $keys;
|
31 |
+
$params["mode"] = $pageMode;
|
32 |
+
$params["pageType"] = PAGE_VIEW;
|
33 |
+
$params["pageName"] = postvalue("page");
|
34 |
+
$params["tName"] = $strTableName;
|
35 |
+
|
36 |
+
$params["pdfMode"] = postvalue("pdf") !== "";
|
37 |
+
|
38 |
+
$params["masterTable"] = postvalue("mastertable");
|
39 |
+
if( $params["masterTable"] )
|
40 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
41 |
+
|
42 |
+
if( $pageMode == VIEW_DASHBOARD )
|
43 |
+
{
|
44 |
+
$params["dashElementName"] = postvalue("dashelement");
|
45 |
+
$params["dashTName"] = postvalue("table");
|
46 |
+
$params["dashPage"] = postvalue("dashPage");
|
47 |
+
if( postvalue("mapRefresh") )
|
48 |
+
{
|
49 |
+
$params["mapRefresh"] = true;
|
50 |
+
$params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
51 |
+
}
|
52 |
+
}
|
53 |
+
if( $pageMode == VIEW_POPUP )
|
54 |
+
{
|
55 |
+
$params["dashElementName"] = postvalue("dashelement");
|
56 |
+
$params["dashTName"] = postvalue("dashTName");
|
57 |
+
$params["dashPage"] = postvalue("dashPage");
|
58 |
+
}
|
59 |
+
|
60 |
+
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage");
|
61 |
+
|
62 |
+
$pageObject = new ViewPage($params);
|
63 |
+
$pageObject->init();
|
64 |
+
|
65 |
+
$pageObject->process();
|
66 |
+
|
67 |
+
?>
|
php/chat_external_add.php
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
require_once("classes/searchclause.php");
|
6 |
+
require_once("include/chat_external_variables.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/addpage.php');
|
9 |
+
require_once('include/lookuplinks.php');
|
10 |
+
|
11 |
+
add_nocache_headers();
|
12 |
+
|
13 |
+
InitLookupLinks();
|
14 |
+
|
15 |
+
if( Security::hasLogin() ) {
|
16 |
+
if( !AddPage::processAddPageSecurity( $strTableName ) )
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
AddPage::handleBrokenRequest();
|
21 |
+
|
22 |
+
|
23 |
+
$pageMode = AddPage::readAddModeFromRequest();
|
24 |
+
|
25 |
+
$xt = new Xtempl();
|
26 |
+
|
27 |
+
$id = postvalue_number("id");
|
28 |
+
$id = $id ? $id : 1;
|
29 |
+
|
30 |
+
//an array of AddPage constructor's params
|
31 |
+
$params = array();
|
32 |
+
$params["id"] = $id;
|
33 |
+
$params["xt"] = &$xt;
|
34 |
+
$params["mode"] = $pageMode;
|
35 |
+
$params["pageType"] = PAGE_ADD;
|
36 |
+
$params["tName"] = $strTableName;
|
37 |
+
$params["pageName"] = postvalue("page");
|
38 |
+
$params["action"] = postvalue("a");
|
39 |
+
$params["needSearchClauseObj"] = false;
|
40 |
+
$params["afterAdd_id"] = postvalue("afteradd");
|
41 |
+
|
42 |
+
$params["hostPageName"] = postvalue("hostPageName");
|
43 |
+
$params["listPage"] = postvalue("listPage");
|
44 |
+
|
45 |
+
$params["newRowId"] = postvalue("newRowId");
|
46 |
+
|
47 |
+
$params["masterTable"] = postvalue("mastertable");
|
48 |
+
if( $params["masterTable"] )
|
49 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
;
|
54 |
+
$params["captchaName"] = "captcha_1209xre";
|
55 |
+
$params["captchaValue"] = postvalue("value_captcha_1209xre_" . $id);
|
56 |
+
$params["dashElementName"] = postvalue("dashelement");
|
57 |
+
$params["fromDashboard"] = postvalue("fromDashboard");
|
58 |
+
$params["dashTName"] = $params["fromDashboard"] ? $params["fromDashboard"] : postvalue("dashTName");
|
59 |
+
$params["dashPage"] = postvalue("dashPage");
|
60 |
+
|
61 |
+
$params["forSpreadsheetGrid"] = postvalue("spreadsheetGrid");
|
62 |
+
|
63 |
+
if ( $pageMode == ADD_POPUP ) {
|
64 |
+
$params["forListPageLookup"] = postvalue('forLookup');
|
65 |
+
}
|
66 |
+
|
67 |
+
if( $pageMode == ADD_DASHBOARD )
|
68 |
+
{
|
69 |
+
$params["dashElementName"] = postvalue("dashelement");
|
70 |
+
$params["dashTName"] = postvalue("table");
|
71 |
+
$params["dashPage"] = postvalue("dashPage");
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
if( $pageMode == ADD_INLINE )
|
76 |
+
{
|
77 |
+
// Inline add in a 'List page with search' lookup
|
78 |
+
$params["forListPageLookup"] = postvalue('forLookup');
|
79 |
+
|
80 |
+
$params["screenWidth"] = postvalue("screenWidth");
|
81 |
+
$params["screenHeight"] = postvalue("screenHeight");
|
82 |
+
$params["orientation"] = postvalue("orientation");
|
83 |
+
|
84 |
+
$params["masterPageType"] = postvalue("masterpagetype");
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
if( $pageMode == ADD_ONTHEFLY || ( $pageMode == ADD_INLINE || $pageMode == ADD_POPUP ) && postvalue('forLookup') )
|
89 |
+
{
|
90 |
+
//table where lookup is set
|
91 |
+
$params["lookupTable"] = postvalue("table");
|
92 |
+
//field with lookup is set
|
93 |
+
$params["lookupField"] = postvalue("field");
|
94 |
+
//the ptype od the page where lookup is set
|
95 |
+
$params["lookupPageType"] = postvalue("pageType");
|
96 |
+
|
97 |
+
if( postvalue('parentsExist') )
|
98 |
+
{
|
99 |
+
//the parent controls values data
|
100 |
+
$params["parentCtrlsData"] = my_json_decode( postvalue("parentCtrlsData") );
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
$pageObject = new AddPage($params);
|
105 |
+
$pageObject->init();
|
106 |
+
|
107 |
+
$pageObject->process();
|
108 |
+
?>
|
php/chat_external_edit.php
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
@ini_set("display_errors","1");
|
4 |
+
@ini_set("display_startup_errors","1");
|
5 |
+
|
6 |
+
require_once("include/dbcommon.php");
|
7 |
+
require_once("classes/searchclause.php");
|
8 |
+
require_once("include/chat_external_variables.php");
|
9 |
+
require_once('include/xtempl.php');
|
10 |
+
require_once('classes/editpage.php');
|
11 |
+
|
12 |
+
add_nocache_headers();
|
13 |
+
|
14 |
+
if( Security::hasLogin() ) {
|
15 |
+
if( !EditPage::processEditPageSecurity( $strTableName ) )
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
|
19 |
+
EditPage::handleBrokenRequest();
|
20 |
+
|
21 |
+
// render all necessary layouts
|
22 |
+
|
23 |
+
|
24 |
+
// parse control parameters
|
25 |
+
$pageMode = EditPage::readEditModeFromRequest();
|
26 |
+
|
27 |
+
$xt = new Xtempl();
|
28 |
+
|
29 |
+
$id = postvalue_number("id");
|
30 |
+
$id = intval($id) == 0 ? 1 : $id;
|
31 |
+
|
32 |
+
|
33 |
+
// $keys could not be set properly if editid params were no passed
|
34 |
+
$keys = array();
|
35 |
+
$keys["id"] = postvalue("editid1");
|
36 |
+
|
37 |
+
//array of params for classes
|
38 |
+
$params = array();
|
39 |
+
$params["id"] = $id;
|
40 |
+
$params["xt"] = &$xt;
|
41 |
+
$params["keys"] = $keys;
|
42 |
+
$params["mode"] = $pageMode;
|
43 |
+
$params["pageType"] = PAGE_EDIT;
|
44 |
+
$params["pageName"] = postvalue("page");
|
45 |
+
$params["tName"] = $strTableName;
|
46 |
+
$params["action"] = postvalue("a");
|
47 |
+
$params["selectedFields"] = postvalue("fields");
|
48 |
+
|
49 |
+
;
|
50 |
+
$params["captchaName"] = "captcha_1209xre";
|
51 |
+
$params["captchaValue"] = postvalue("value_captcha_1209xre_" . $id);
|
52 |
+
$params["selection"] = postvalue("selection");
|
53 |
+
$params["rowIds"] = my_json_decode( postvalue("rowIds") );
|
54 |
+
|
55 |
+
$params["masterTable"] = postvalue("mastertable");
|
56 |
+
if( $params["masterTable"] )
|
57 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
58 |
+
|
59 |
+
// locking parameters
|
60 |
+
$params["lockingAction"] = postvalue("action");
|
61 |
+
$params["lockingSid"] = postvalue("sid");
|
62 |
+
$params["lockingKeys"] = postvalue("keys");
|
63 |
+
$params["lockingStart"] = postvalue("startEdit");
|
64 |
+
|
65 |
+
if( $pageMode == EDIT_INLINE )
|
66 |
+
{
|
67 |
+
$params["screenWidth"] = postvalue("screenWidth");
|
68 |
+
$params["screenHeight"] = postvalue("screenHeight");
|
69 |
+
$params["orientation"] = postvalue("orientation");
|
70 |
+
}
|
71 |
+
|
72 |
+
if( $pageMode == EDIT_DASHBOARD )
|
73 |
+
{
|
74 |
+
$params["dashElementName"] = postvalue("dashelement");
|
75 |
+
$params["dashTName"] = postvalue("table");
|
76 |
+
$params["dashPage"] = postvalue("dashPage");
|
77 |
+
|
78 |
+
if( postvalue("mapRefresh") )
|
79 |
+
{
|
80 |
+
$params["mapRefresh"] = true;
|
81 |
+
$params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
+
if(( $pageMode == EDIT_POPUP || $pageMode == EDIT_INLINE ) && postvalue("dashTName"))
|
86 |
+
{
|
87 |
+
$params["dashTName"] = postvalue("dashTName");
|
88 |
+
$params["dashElementName"] = postvalue("dashelement");
|
89 |
+
$params["dashPage"] = postvalue("dashPage");
|
90 |
+
}
|
91 |
+
|
92 |
+
$params["forSpreadsheetGrid"] = postvalue("spreadsheetGrid");
|
93 |
+
$params["hostPageName"] = postvalue("hostPageName");
|
94 |
+
$params["listPage"] = postvalue("listPage");
|
95 |
+
|
96 |
+
$pageObject = EditPage::EditPageFactory($params);
|
97 |
+
|
98 |
+
if( $pageObject->isLockingRequest() )
|
99 |
+
{
|
100 |
+
$pageObject->doLockingAction();
|
101 |
+
exit();
|
102 |
+
}
|
103 |
+
|
104 |
+
$pageObject->init();
|
105 |
+
|
106 |
+
$pageObject->process();
|
107 |
+
?>
|
php/chat_external_export.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
|
6 |
+
|
7 |
+
require_once("classes/searchclause.php");
|
8 |
+
require_once("classes/sql.php");
|
9 |
+
|
10 |
+
require_once("include/chat_external_variables.php");
|
11 |
+
|
12 |
+
if( Security::hasLogin() ) {
|
13 |
+
if( !Security::processPageSecurity( $strtablename, 'P' ) )
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
require_once("include/export_functions.php");
|
19 |
+
require_once("classes/exportpage.php");
|
20 |
+
require_once("include/xtempl.php");
|
21 |
+
|
22 |
+
$xt = new Xtempl();
|
23 |
+
|
24 |
+
//array of params for classes
|
25 |
+
$params = array();
|
26 |
+
$params["id"] = postvalue_number("id");
|
27 |
+
$params["xt"] = &$xt;
|
28 |
+
$params["tName"] = $strTableName;
|
29 |
+
$params["pageType"] = PAGE_EXPORT;
|
30 |
+
$params["pageName"] = postvalue("page");
|
31 |
+
|
32 |
+
$params["selectedFields"] = postvalue("exportFields");
|
33 |
+
$params["exportType"] = postvalue("type");
|
34 |
+
|
35 |
+
$params["allPagesMode"] = postvalue("records") == "all";
|
36 |
+
$params["currentPageMode"] = postvalue("records") == "page";
|
37 |
+
$params["selection"] = postvalue("selection");
|
38 |
+
$params["csvDelimiter"] = postvalue("delimiter");
|
39 |
+
|
40 |
+
if( postvalue("txtformatting") == "raw" )
|
41 |
+
$params["useRawValues"] = true;
|
42 |
+
|
43 |
+
$params["mode"] = ExportPage::readModeFromRequest();
|
44 |
+
|
45 |
+
$params["masterTable"] = postvalue("mastertable");
|
46 |
+
if( $params["masterTable"] )
|
47 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
48 |
+
|
49 |
+
$pageObject = new ExportPage( $params );
|
50 |
+
$pageObject->init();
|
51 |
+
|
52 |
+
$pageObject->process();
|
53 |
+
?>
|
php/chat_external_import.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
require_once("include/dbcommon.php");
|
5 |
+
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
|
6 |
+
|
7 |
+
set_time_limit(600);
|
8 |
+
|
9 |
+
require_once("include/chat_external_variables.php");
|
10 |
+
require_once("include/import_functions.php");
|
11 |
+
require_once('classes/importpage.php');
|
12 |
+
|
13 |
+
if( Security::hasLogin() ) {
|
14 |
+
if( !Security::processPageSecurity( $strtablename, 'I' ) )
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
require_once('include/xtempl.php');
|
20 |
+
$xt = new Xtempl();
|
21 |
+
|
22 |
+
//an array of params for ImportPage constructor
|
23 |
+
$params = array();
|
24 |
+
$params["id"] = postvalue_number("id");
|
25 |
+
$params["xt"] = &$xt;
|
26 |
+
$params["tName"] = $strTableName;
|
27 |
+
$params["action"] = postvalue("a");
|
28 |
+
$params["pageType"] = PAGE_IMPORT;
|
29 |
+
$params["pageName"] = postvalue("page");
|
30 |
+
$params["needSearchClauseObj"] = false;
|
31 |
+
$params["strOriginalTableName"] = $strOriginalTableName;
|
32 |
+
|
33 |
+
if( $params["action"] == "importPreview" )
|
34 |
+
{
|
35 |
+
$params["importType"] = postvalue("importType");
|
36 |
+
$params["importText"] = postvalue("importText");
|
37 |
+
$params["useXHR"] = postvalue("useXHR");
|
38 |
+
}
|
39 |
+
elseif( $params["action"] == "importData" )
|
40 |
+
{
|
41 |
+
$params["importData"] = my_json_decode( postvalue("importData") );
|
42 |
+
}
|
43 |
+
|
44 |
+
$params["masterTable"] = postvalue("mastertable");
|
45 |
+
if( $params["masterTable"] )
|
46 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
47 |
+
|
48 |
+
$pageObject = new ImportPage($params);
|
49 |
+
$pageObject->init();
|
50 |
+
|
51 |
+
$pageObject->process();
|
52 |
+
|
53 |
+
?>
|
php/chat_external_list.php
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
$requestTable = "chat_external";
|
6 |
+
$requestPage = "list";
|
7 |
+
|
8 |
+
require_once("include/dbcommon.php");
|
9 |
+
add_nocache_headers();
|
10 |
+
|
11 |
+
require_once('include/xtempl.php');
|
12 |
+
|
13 |
+
require_once("classes/searchcontrol.php");
|
14 |
+
require_once("classes/searchclause.php");
|
15 |
+
require_once("classes/panelsearchcontrol.php");
|
16 |
+
require_once("include/chat_external_variables.php");
|
17 |
+
require_once('classes/listpage.php');
|
18 |
+
require_once('include/lookuplinks.php');
|
19 |
+
|
20 |
+
// Check whether the page was called as a part of Lookup wizard - List page with search.
|
21 |
+
// Verify the eligibility of such a call.
|
22 |
+
|
23 |
+
InitLookupLinks();
|
24 |
+
if( Security::hasLogin() ) {
|
25 |
+
if( !ListPage::processListPageSecurity( $strTableName ) )
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
|
29 |
+
if( ListPage::processSaveParams( $strTableName ) )
|
30 |
+
return;
|
31 |
+
|
32 |
+
$options = array();
|
33 |
+
//array of params for classes
|
34 |
+
|
35 |
+
// Include necessary files in accordance with the page displaying mode
|
36 |
+
$mode = ListPage::readListModeFromRequest();
|
37 |
+
if( $mode == LIST_SIMPLE )
|
38 |
+
{
|
39 |
+
require_once('classes/listpage_simple.php');
|
40 |
+
require_once("classes/searchpanelsimple.php");
|
41 |
+
}
|
42 |
+
elseif( $mode == LIST_AJAX )
|
43 |
+
{
|
44 |
+
require_once('classes/listpage_simple.php');
|
45 |
+
require_once('classes/listpage_ajax.php');
|
46 |
+
require_once("classes/searchpanelsimple.php");
|
47 |
+
}
|
48 |
+
elseif( $mode == LIST_LOOKUP )
|
49 |
+
{
|
50 |
+
require_once('classes/listpage_embed.php');
|
51 |
+
require_once('classes/listpage_lookup.php');
|
52 |
+
|
53 |
+
$options["mainTable"] = postvalue("table");
|
54 |
+
$options["mainField"] = postvalue("field");
|
55 |
+
$options["mainPageType"] = postvalue("pageType");
|
56 |
+
|
57 |
+
$options["mainRecordData"] = my_json_decode( postvalue('data') );
|
58 |
+
$options["mainRecordMasterTable"] = postvalue('mainRecordMasterTable');
|
59 |
+
|
60 |
+
if( postvalue("parentsExist") )
|
61 |
+
$options["parentCtrlsData"] = my_json_decode( postvalue("parentCtrlsData") );
|
62 |
+
}
|
63 |
+
elseif( $mode == LIST_POPUPDETAILS )
|
64 |
+
{
|
65 |
+
require_once('classes/listpage_embed.php');
|
66 |
+
require_once('classes/listpage_dpinline.php');
|
67 |
+
require_once('classes/listpage_dppopup.php');
|
68 |
+
}
|
69 |
+
elseif( $mode == LIST_DETAILS )
|
70 |
+
{
|
71 |
+
require_once('classes/listpage_embed.php');
|
72 |
+
require_once('classes/listpage_dpinline.php');
|
73 |
+
require_once('classes/listpage_dplist.php');
|
74 |
+
}
|
75 |
+
elseif( $mode == LIST_DASHDETAILS )
|
76 |
+
{
|
77 |
+
require_once('classes/listpage_embed.php');
|
78 |
+
require_once('classes/listpage_dashboard.php');
|
79 |
+
require_once('classes/listpage_dpdash.php');
|
80 |
+
}
|
81 |
+
elseif( $mode == LIST_DASHBOARD )
|
82 |
+
{
|
83 |
+
require_once('classes/listpage_embed.php');
|
84 |
+
require_once('classes/listpage_dashboard.php');
|
85 |
+
}
|
86 |
+
elseif( $mode == MAP_DASHBOARD )
|
87 |
+
{
|
88 |
+
require_once('classes/listpage_embed.php');
|
89 |
+
require_once('classes/listpage_dashboard.php');
|
90 |
+
require_once('classes/map_dashboard.php');
|
91 |
+
}
|
92 |
+
|
93 |
+
$xt = new Xtempl( $mode != LIST_SIMPLE ); //#9607 1. Temporary fix
|
94 |
+
|
95 |
+
$options["pageName"] = postvalue("page");
|
96 |
+
$options["pageType"] = PAGE_LIST;
|
97 |
+
$options["id"] = postvalue_number("id") ? postvalue_number("id") : 1;
|
98 |
+
$options["flyId"] = (int)postvalue("recordId");
|
99 |
+
$options["mode"] = $mode;
|
100 |
+
$options["xt"] = &$xt;
|
101 |
+
$options["firstTime"] = postvalue("firstTime");
|
102 |
+
$options["sortBy"] = postvalue("sortby");
|
103 |
+
$options["requestGoto"] = postvalue_number("goto");
|
104 |
+
|
105 |
+
|
106 |
+
$options["masterPageType"] = postvalue("masterpagetype");
|
107 |
+
$options["masterPage"] = postvalue("masterpage");
|
108 |
+
$options["masterId"] = postvalue("masterid");
|
109 |
+
|
110 |
+
$options["masterTable"] = postvalue("mastertable");
|
111 |
+
if( $options["masterTable"] )
|
112 |
+
$options["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
113 |
+
|
114 |
+
|
115 |
+
if( $mode == LIST_DASHBOARD && postvalue("nodata") && strlen($options["masterTable"]) )
|
116 |
+
$options["showNoData"] = true;
|
117 |
+
|
118 |
+
if( $mode != LIST_LOOKUP )
|
119 |
+
{
|
120 |
+
$options["dashElementName"] = postvalue("dashelement");
|
121 |
+
$options["dashTName"] = postvalue("table");
|
122 |
+
$options["dashPage"] = postvalue("dashPage");
|
123 |
+
}
|
124 |
+
|
125 |
+
if( postvalue("mapRefresh") )
|
126 |
+
{
|
127 |
+
$options["mapRefresh"] = true;
|
128 |
+
$options["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
129 |
+
}
|
130 |
+
|
131 |
+
if( postvalue("firstTime") )
|
132 |
+
$options["firstTime"] = true;
|
133 |
+
|
134 |
+
// Create $pageObject
|
135 |
+
$pageObject = ListPage::createListPage($strTableName, $options);
|
136 |
+
|
137 |
+
if( $pageObject->processSaveSearch() )
|
138 |
+
exit();
|
139 |
+
|
140 |
+
if( $pageObject->updateRowOrder() )
|
141 |
+
exit();
|
142 |
+
|
143 |
+
if ( $pageObject->processFieldFilter() )
|
144 |
+
exit();
|
145 |
+
|
146 |
+
if( $pageObject->processTotals() )
|
147 |
+
exit();
|
148 |
+
|
149 |
+
if( $mode != LIST_DETAILS && $mode != MAP_DASHBOARD && $mode != LIST_DASHBOARD )
|
150 |
+
{
|
151 |
+
//maps
|
152 |
+
}
|
153 |
+
|
154 |
+
unset($_SESSION["message_add"]);
|
155 |
+
unset($_SESSION["message_edit"]);
|
156 |
+
|
157 |
+
// prepare code for build page
|
158 |
+
$pageObject->prepareForBuildPage();
|
159 |
+
|
160 |
+
// show page depends of mode
|
161 |
+
$pageObject->showPage();
|
162 |
+
|
163 |
+
?>
|
php/chat_external_print.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
require_once("classes/searchclause.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/printpage.php');
|
9 |
+
require_once('classes/printpage_details.php');
|
10 |
+
require_once('classes/reportpage.php');
|
11 |
+
require_once('classes/reportprintpage.php');
|
12 |
+
|
13 |
+
add_nocache_headers();
|
14 |
+
|
15 |
+
require_once("include/chat_external_variables.php");
|
16 |
+
|
17 |
+
if( Security::hasLogin() ) {
|
18 |
+
if( !Security::processPageSecurity( $strtablename, 'P' ) )
|
19 |
+
return;
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
$xt = new Xtempl();
|
24 |
+
|
25 |
+
//array of params for classes
|
26 |
+
$params = array();
|
27 |
+
$params["id"] = postvalue_number("id");
|
28 |
+
$params["xt"] = &$xt;
|
29 |
+
$params["pageType"] = PAGE_PRINT;
|
30 |
+
$params["pageName"] = postvalue("page");
|
31 |
+
$params["tName"] = $strTableName;
|
32 |
+
$params["selection"] = postvalue("selection"); //PrintPage::readSelectedRecordsFromRequest( "chat_external" );
|
33 |
+
$params["allPagesMode"] = postvalue("all");
|
34 |
+
$params["detailTables"] = postvalue("details");
|
35 |
+
$params["splitByRecords"] = postvalue("records");
|
36 |
+
$params["mode"] = postvalue( "pdfjson" ) ? PRINT_PDFJSON : PRINT_SIMPLE;
|
37 |
+
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage");
|
38 |
+
|
39 |
+
$params["masterTable"] = postvalue("mastertable");
|
40 |
+
if( $params["masterTable"] )
|
41 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
42 |
+
|
43 |
+
$pageObject = new PrintPage($params);
|
44 |
+
$pageObject->init();
|
45 |
+
$pageObject->process();
|
46 |
+
?>
|
php/chat_external_search.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
add_nocache_headers();
|
7 |
+
|
8 |
+
require_once("classes/searchclause.php");
|
9 |
+
require_once("include/chat_external_variables.php");
|
10 |
+
require_once("classes/searchcontrol.php");
|
11 |
+
require_once("classes/advancedsearchcontrol.php");
|
12 |
+
require_once("classes/panelsearchcontrol.php");
|
13 |
+
|
14 |
+
|
15 |
+
Security::processLogoutRequest();
|
16 |
+
|
17 |
+
if( !isLogged() )
|
18 |
+
{
|
19 |
+
Security::saveRedirectURL();
|
20 |
+
redirectToLogin();
|
21 |
+
}
|
22 |
+
|
23 |
+
$accessGranted = CheckTablePermissions($strTableName, "S");
|
24 |
+
if(!$accessGranted)
|
25 |
+
{
|
26 |
+
HeaderRedirect("menu");
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
require_once('include/xtempl.php');
|
31 |
+
require_once('classes/searchpage.php');
|
32 |
+
require_once('classes/searchpage_dash.php');
|
33 |
+
|
34 |
+
$xt = new Xtempl();
|
35 |
+
$pageMode = SearchPage::readSearchModeFromRequest();
|
36 |
+
|
37 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
38 |
+
$layoutVersion = postvalue("layoutVersion");
|
39 |
+
|
40 |
+
|
41 |
+
$params = array();
|
42 |
+
$params['xt'] = &$xt;
|
43 |
+
$params['id'] = postvalue_number("id");
|
44 |
+
$params['mode'] = $pageMode;
|
45 |
+
$params['tName'] = $strTableName;
|
46 |
+
$params["pageName"] = postvalue("page");
|
47 |
+
$params['pageType'] = PAGE_SEARCH;
|
48 |
+
$params['chartName'] = $cname;
|
49 |
+
$params['reportName'] = $rname;
|
50 |
+
$params['templatefile'] = $templatefile;
|
51 |
+
$params['shortTableName'] = 'chat_external';
|
52 |
+
$params['layoutVersion'] = $layoutVersion;
|
53 |
+
|
54 |
+
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
|
55 |
+
$params['ctrlField'] = postvalue('ctrlField');
|
56 |
+
|
57 |
+
$params['needSettings'] = postvalue('isNeedSettings');
|
58 |
+
|
59 |
+
if( $pageMode == SEARCH_DASHBOARD )
|
60 |
+
{
|
61 |
+
$params["dashTName"] = postvalue("table");
|
62 |
+
$params["dashElementName"] = postvalue("dashelement");
|
63 |
+
$params["dashPage"] = postvalue("dashPage");
|
64 |
+
}
|
65 |
+
|
66 |
+
// e.g. crosstable params
|
67 |
+
$params["extraPageParams"] = SearchPage::getExtraPageParams();
|
68 |
+
|
69 |
+
$params["masterTable"] = postvalue("mastertable");
|
70 |
+
if( $params["masterTable"] )
|
71 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
72 |
+
|
73 |
+
|
74 |
+
$pageObject = new SearchPage($params);
|
75 |
+
|
76 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
77 |
+
{
|
78 |
+
$pageObject->displaySearchControl();
|
79 |
+
return;
|
80 |
+
}
|
81 |
+
|
82 |
+
$pageObject->init();
|
83 |
+
$pageObject->process();
|
84 |
+
?>
|
php/chat_external_view.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
require_once("include/chat_external_variables.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/viewpage.php');
|
9 |
+
require_once("classes/searchclause.php");
|
10 |
+
|
11 |
+
add_nocache_headers();
|
12 |
+
|
13 |
+
if( Security::hasLogin() ) {
|
14 |
+
if( !ViewPage::processEditPageSecurity( $strTableName ) )
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
|
18 |
+
$pageMode = ViewPage::readViewModeFromRequest();
|
19 |
+
|
20 |
+
$xt = new Xtempl();
|
21 |
+
|
22 |
+
// $keys could not be set properly if editid params were no passed
|
23 |
+
$keys = array();
|
24 |
+
$keys["id"] = postvalue("editid1");
|
25 |
+
|
26 |
+
//array of params for classes
|
27 |
+
$params = array();
|
28 |
+
$params["id"] = postvalue_number("id");
|
29 |
+
$params["xt"] = &$xt;
|
30 |
+
$params["keys"] = $keys;
|
31 |
+
$params["mode"] = $pageMode;
|
32 |
+
$params["pageType"] = PAGE_VIEW;
|
33 |
+
$params["pageName"] = postvalue("page");
|
34 |
+
$params["tName"] = $strTableName;
|
35 |
+
|
36 |
+
$params["pdfMode"] = postvalue("pdf") !== "";
|
37 |
+
|
38 |
+
$params["masterTable"] = postvalue("mastertable");
|
39 |
+
if( $params["masterTable"] )
|
40 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
41 |
+
|
42 |
+
if( $pageMode == VIEW_DASHBOARD )
|
43 |
+
{
|
44 |
+
$params["dashElementName"] = postvalue("dashelement");
|
45 |
+
$params["dashTName"] = postvalue("table");
|
46 |
+
$params["dashPage"] = postvalue("dashPage");
|
47 |
+
if( postvalue("mapRefresh") )
|
48 |
+
{
|
49 |
+
$params["mapRefresh"] = true;
|
50 |
+
$params["vpCoordinates"] = my_json_decode( postvalue("vpCoordinates") );
|
51 |
+
}
|
52 |
+
}
|
53 |
+
if( $pageMode == VIEW_POPUP )
|
54 |
+
{
|
55 |
+
$params["dashElementName"] = postvalue("dashelement");
|
56 |
+
$params["dashTName"] = postvalue("dashTName");
|
57 |
+
$params["dashPage"] = postvalue("dashPage");
|
58 |
+
}
|
59 |
+
|
60 |
+
$params["pdfBackgroundImage"] = postvalue("pdfBackgroundImage");
|
61 |
+
|
62 |
+
$pageObject = new ViewPage($params);
|
63 |
+
$pageObject->init();
|
64 |
+
|
65 |
+
$pageObject->process();
|
66 |
+
|
67 |
+
?>
|
php/classes/charts.php
CHANGED
@@ -394,6 +394,12 @@ class Chart
|
|
394 |
return true;
|
395 |
if("chat126_users1" == $this->chrt_array['tables'][0])
|
396 |
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
return false;
|
398 |
}
|
399 |
|
|
|
394 |
return true;
|
395 |
if("chat126_users1" == $this->chrt_array['tables'][0])
|
396 |
return true;
|
397 |
+
if("" == $this->chrt_array['tables'][0])
|
398 |
+
return true;
|
399 |
+
if("chat_external" == $this->chrt_array['tables'][0])
|
400 |
+
return true;
|
401 |
+
if("chat_agent" == $this->chrt_array['tables'][0])
|
402 |
+
return true;
|
403 |
return false;
|
404 |
}
|
405 |
|
php/classes/db.php
CHANGED
@@ -355,6 +355,8 @@ class DB
|
|
355 |
if( "chats_at_localhost" == $conn->connId )
|
356 |
{
|
357 |
$dalTables[$conn->connId][] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
|
|
358 |
$dalTables[$conn->connId][] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
359 |
$dalTables[$conn->connId][] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
360 |
$dalTables[$conn->connId][] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
355 |
if( "chats_at_localhost" == $conn->connId )
|
356 |
{
|
357 |
$dalTables[$conn->connId][] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
358 |
+
$dalTables[$conn->connId][] = array("name" => "chat_agent", "varname" => "chats_at_localhost__chat_agent", "altvarname" => "chat_agent", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
359 |
+
$dalTables[$conn->connId][] = array("name" => "chat_external", "varname" => "chats_at_localhost__chat_external", "altvarname" => "chat_external", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
360 |
$dalTables[$conn->connId][] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
361 |
$dalTables[$conn->connId][] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
362 |
$dalTables[$conn->connId][] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
php/classes/projectsettings.php
CHANGED
@@ -3594,6 +3594,12 @@ function fillProjectEntites()
|
|
3594 |
$projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone";
|
3595 |
$projectEntities[ "chat126_users1" ] = array( "url" => "chat126_users1", "type" => 0 );
|
3596 |
$projectEntitiesReverse[ "chat126_users1" ] = "chat126_users1";
|
|
|
|
|
|
|
|
|
|
|
|
|
3597 |
}
|
3598 |
|
3599 |
function findTable( $table ) {
|
|
|
3594 |
$projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone";
|
3595 |
$projectEntities[ "chat126_users1" ] = array( "url" => "chat126_users1", "type" => 0 );
|
3596 |
$projectEntitiesReverse[ "chat126_users1" ] = "chat126_users1";
|
3597 |
+
$projectEntities[ "Dashboard" ] = array( "url" => "dashboard", "type" => 4 );
|
3598 |
+
$projectEntitiesReverse[ "dashboard" ] = "Dashboard";
|
3599 |
+
$projectEntities[ "chat_external" ] = array( "url" => "chat_external", "type" => 0 );
|
3600 |
+
$projectEntitiesReverse[ "chat_external" ] = "chat_external";
|
3601 |
+
$projectEntities[ "chat_agent" ] = array( "url" => "chat_agent", "type" => 0 );
|
3602 |
+
$projectEntitiesReverse[ "chat_agent" ] = "chat_agent";
|
3603 |
}
|
3604 |
|
3605 |
function findTable( $table ) {
|
php/connections/ConnectionManager_base.php
CHANGED
@@ -251,6 +251,8 @@ class ConnectionManager_Base
|
|
251 |
$connectionsIds["chat_peopletype"] = "chats_at_localhost";
|
252 |
$connectionsIds["chat_timezone"] = "chats_at_localhost";
|
253 |
$connectionsIds["chat126_users1"] = "chats_at_localhost";
|
|
|
|
|
254 |
|
255 |
$this->_tablesConnectionIds = &$connectionsIds;
|
256 |
}
|
|
|
251 |
$connectionsIds["chat_peopletype"] = "chats_at_localhost";
|
252 |
$connectionsIds["chat_timezone"] = "chats_at_localhost";
|
253 |
$connectionsIds["chat126_users1"] = "chats_at_localhost";
|
254 |
+
$connectionsIds["chat_external"] = "chats_at_localhost";
|
255 |
+
$connectionsIds["chat_agent"] = "chats_at_localhost";
|
256 |
|
257 |
$this->_tablesConnectionIds = &$connectionsIds;
|
258 |
}
|
php/dashboard_dashboard.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
require_once("classes/searchclause.php");
|
7 |
+
require_once('include/xtempl.php');
|
8 |
+
require_once('classes/dashboardpage.php');
|
9 |
+
|
10 |
+
add_nocache_headers();
|
11 |
+
|
12 |
+
require_once("include/dashboard_variables.php");
|
13 |
+
|
14 |
+
if( Security::hasLogin() ) {
|
15 |
+
if( !Security::processPageSecurity( $strtablename, 'S' ) )
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
|
19 |
+
$xt = new Xtempl();
|
20 |
+
|
21 |
+
//array of params for classes
|
22 |
+
$params = array();
|
23 |
+
$params["id"] = postvalue_number("id");
|
24 |
+
$params["xt"] = &$xt;
|
25 |
+
$params["tName"] = $strTableName;
|
26 |
+
$params["mode"] = postvalue("mode");
|
27 |
+
$params["pageType"] = PAGE_DASHBOARD;
|
28 |
+
$params["pageName"] = postvalue("page");
|
29 |
+
|
30 |
+
$pageObject = new DashboardPage($params);
|
31 |
+
$pageObject->init();
|
32 |
+
|
33 |
+
$pageObject->process();
|
34 |
+
?>
|
php/dashboard_search.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
@ini_set("display_errors","1");
|
3 |
+
@ini_set("display_startup_errors","1");
|
4 |
+
|
5 |
+
require_once("include/dbcommon.php");
|
6 |
+
add_nocache_headers();
|
7 |
+
|
8 |
+
require_once("classes/searchclause.php");
|
9 |
+
require_once("include/dashboard_variables.php");
|
10 |
+
require_once("classes/searchcontrol.php");
|
11 |
+
require_once("classes/advancedsearchcontrol.php");
|
12 |
+
require_once("classes/panelsearchcontrol.php");
|
13 |
+
|
14 |
+
|
15 |
+
Security::processLogoutRequest();
|
16 |
+
|
17 |
+
if( !isLogged() )
|
18 |
+
{
|
19 |
+
Security::saveRedirectURL();
|
20 |
+
redirectToLogin();
|
21 |
+
}
|
22 |
+
|
23 |
+
$accessGranted = CheckTablePermissions($strTableName, "S");
|
24 |
+
if(!$accessGranted)
|
25 |
+
{
|
26 |
+
HeaderRedirect("menu");
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
require_once('include/xtempl.php');
|
31 |
+
require_once('classes/searchpage.php');
|
32 |
+
require_once('classes/searchpage_dash.php');
|
33 |
+
|
34 |
+
$xt = new Xtempl();
|
35 |
+
$pageMode = SearchPage::readSearchModeFromRequest();
|
36 |
+
|
37 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
38 |
+
$layoutVersion = postvalue("layoutVersion");
|
39 |
+
|
40 |
+
|
41 |
+
$params = array();
|
42 |
+
$params['xt'] = &$xt;
|
43 |
+
$params['id'] = postvalue_number("id");
|
44 |
+
$params['mode'] = $pageMode;
|
45 |
+
$params['tName'] = $strTableName;
|
46 |
+
$params["pageName"] = postvalue("page");
|
47 |
+
$params['pageType'] = PAGE_SEARCH;
|
48 |
+
$params['chartName'] = $cname;
|
49 |
+
$params['reportName'] = $rname;
|
50 |
+
$params['templatefile'] = $templatefile;
|
51 |
+
$params['shortTableName'] = 'dashboard';
|
52 |
+
$params['layoutVersion'] = $layoutVersion;
|
53 |
+
|
54 |
+
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
|
55 |
+
$params['ctrlField'] = postvalue('ctrlField');
|
56 |
+
|
57 |
+
$params['needSettings'] = postvalue('isNeedSettings');
|
58 |
+
|
59 |
+
if( $pageMode == SEARCH_DASHBOARD )
|
60 |
+
{
|
61 |
+
$params["dashTName"] = postvalue("table");
|
62 |
+
$params["dashElementName"] = postvalue("dashelement");
|
63 |
+
$params["dashPage"] = postvalue("dashPage");
|
64 |
+
}
|
65 |
+
|
66 |
+
// e.g. crosstable params
|
67 |
+
$params["extraPageParams"] = SearchPage::getExtraPageParams();
|
68 |
+
|
69 |
+
$params["masterTable"] = postvalue("mastertable");
|
70 |
+
if( $params["masterTable"] )
|
71 |
+
$params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
|
72 |
+
|
73 |
+
|
74 |
+
$pageObject = new SearchPageDash($params);
|
75 |
+
|
76 |
+
if( $pageMode == SEARCH_LOAD_CONTROL )
|
77 |
+
{
|
78 |
+
$pageObject->displaySearchControl();
|
79 |
+
return;
|
80 |
+
}
|
81 |
+
|
82 |
+
$pageObject->init();
|
83 |
+
$pageObject->process();
|
84 |
+
?>
|
php/include/appsettings.php
CHANGED
@@ -790,9 +790,9 @@ $suggestAllContent = true;
|
|
790 |
$strLastSQL = "";
|
791 |
$showCustomMarkerOnPrint = false;
|
792 |
|
793 |
-
$projectBuildKey = "
|
794 |
$wizardBuildKey = "41974";
|
795 |
-
$projectBuildNumber = "
|
796 |
|
797 |
$mlang_messages = array();
|
798 |
$mlang_charsets = array();
|
@@ -826,6 +826,9 @@ $tableCaptions["English"]["chat_groups"] = "Chat Groups";
|
|
826 |
$tableCaptions["English"]["chat_peopletype"] = "Chat Peopletype";
|
827 |
$tableCaptions["English"]["chat_timezone"] = "Chat Timezone";
|
828 |
$tableCaptions["English"]["chat126_users1"] = "Chat126 Users1";
|
|
|
|
|
|
|
829 |
|
830 |
|
831 |
$globalEvents = new class_GlobalEvents;
|
@@ -943,12 +946,6 @@ $fieldFilterDefaultValue = "";
|
|
943 |
$fieldFilterValueShrinkPostfix = "...";
|
944 |
|
945 |
|
946 |
-
// here goes EVENT_INIT_APP event
|
947 |
-
$dDebug=true;
|
948 |
-
|
949 |
-
// Place event code here.
|
950 |
-
// Use "Add Action" button to add code snippets.
|
951 |
-
;
|
952 |
|
953 |
|
954 |
// default connection link #9875
|
|
|
790 |
$strLastSQL = "";
|
791 |
$showCustomMarkerOnPrint = false;
|
792 |
|
793 |
+
$projectBuildKey = "3642_1721453069";
|
794 |
$wizardBuildKey = "41974";
|
795 |
+
$projectBuildNumber = "3642";
|
796 |
|
797 |
$mlang_messages = array();
|
798 |
$mlang_charsets = array();
|
|
|
826 |
$tableCaptions["English"]["chat_peopletype"] = "Chat Peopletype";
|
827 |
$tableCaptions["English"]["chat_timezone"] = "Chat Timezone";
|
828 |
$tableCaptions["English"]["chat126_users1"] = "Chat126 Users1";
|
829 |
+
$tableCaptions["English"]["Dashboard"] = "Dashboard";
|
830 |
+
$tableCaptions["English"]["chat_external"] = "Chat External";
|
831 |
+
$tableCaptions["English"]["chat_agent"] = "Chat Agent";
|
832 |
|
833 |
|
834 |
$globalEvents = new class_GlobalEvents;
|
|
|
946 |
$fieldFilterValueShrinkPostfix = "...";
|
947 |
|
948 |
|
|
|
|
|
|
|
|
|
|
|
|
|
949 |
|
950 |
|
951 |
// default connection link #9875
|
php/include/audit.php
CHANGED
@@ -388,6 +388,18 @@ class AuditTrailTable
|
|
388 |
{
|
389 |
return false;
|
390 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
}
|
392 |
|
393 |
protected function insert($datetime, $ip, $user, $table, $action, $description)
|
@@ -728,6 +740,18 @@ class AuditTrailFile
|
|
728 |
{
|
729 |
return false;
|
730 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
731 |
}
|
732 |
|
733 |
protected function getMaxLengthSubstr( $value )
|
|
|
388 |
{
|
389 |
return false;
|
390 |
}
|
391 |
+
if($table=="Dashboard")
|
392 |
+
{
|
393 |
+
return false;
|
394 |
+
}
|
395 |
+
if($table=="chat_external")
|
396 |
+
{
|
397 |
+
return false;
|
398 |
+
}
|
399 |
+
if($table=="chat_agent")
|
400 |
+
{
|
401 |
+
return false;
|
402 |
+
}
|
403 |
}
|
404 |
|
405 |
protected function insert($datetime, $ip, $user, $table, $action, $description)
|
|
|
740 |
{
|
741 |
return false;
|
742 |
}
|
743 |
+
if($table=="Dashboard")
|
744 |
+
{
|
745 |
+
return false;
|
746 |
+
}
|
747 |
+
if($table=="chat_external")
|
748 |
+
{
|
749 |
+
return false;
|
750 |
+
}
|
751 |
+
if($table=="chat_agent")
|
752 |
+
{
|
753 |
+
return false;
|
754 |
+
}
|
755 |
}
|
756 |
|
757 |
protected function getMaxLengthSubstr( $value )
|
php/include/chat_agent_settings.php
ADDED
@@ -0,0 +1,998 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$tdatachat_agent = array();
|
3 |
+
$tdatachat_agent[".searchableFields"] = array();
|
4 |
+
$tdatachat_agent[".ShortName"] = "chat_agent";
|
5 |
+
$tdatachat_agent[".OwnerID"] = "";
|
6 |
+
$tdatachat_agent[".OriginalTable"] = "chat_agent";
|
7 |
+
|
8 |
+
|
9 |
+
$tdatachat_agent[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
|
10 |
+
$tdatachat_agent[".originalPagesByType"] = $tdatachat_agent[".pagesByType"];
|
11 |
+
$tdatachat_agent[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
|
12 |
+
$tdatachat_agent[".originalPages"] = $tdatachat_agent[".pages"];
|
13 |
+
$tdatachat_agent[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
|
14 |
+
$tdatachat_agent[".originalDefaultPages"] = $tdatachat_agent[".defaultPages"];
|
15 |
+
|
16 |
+
// field labels
|
17 |
+
$fieldLabelschat_agent = array();
|
18 |
+
$fieldToolTipschat_agent = array();
|
19 |
+
$pageTitleschat_agent = array();
|
20 |
+
$placeHolderschat_agent = array();
|
21 |
+
|
22 |
+
if(mlang_getcurrentlang()=="English")
|
23 |
+
{
|
24 |
+
$fieldLabelschat_agent["English"] = array();
|
25 |
+
$fieldToolTipschat_agent["English"] = array();
|
26 |
+
$placeHolderschat_agent["English"] = array();
|
27 |
+
$pageTitleschat_agent["English"] = array();
|
28 |
+
$fieldLabelschat_agent["English"]["id"] = "Id";
|
29 |
+
$fieldToolTipschat_agent["English"]["id"] = "";
|
30 |
+
$placeHolderschat_agent["English"]["id"] = "";
|
31 |
+
$fieldLabelschat_agent["English"]["replay"] = "Replay";
|
32 |
+
$fieldToolTipschat_agent["English"]["replay"] = "";
|
33 |
+
$placeHolderschat_agent["English"]["replay"] = "";
|
34 |
+
$fieldLabelschat_agent["English"]["replay_fix"] = "Replay Fix";
|
35 |
+
$fieldToolTipschat_agent["English"]["replay_fix"] = "";
|
36 |
+
$placeHolderschat_agent["English"]["replay_fix"] = "";
|
37 |
+
$fieldLabelschat_agent["English"]["replay_kwick"] = "Replay Kwick";
|
38 |
+
$fieldToolTipschat_agent["English"]["replay_kwick"] = "";
|
39 |
+
$placeHolderschat_agent["English"]["replay_kwick"] = "";
|
40 |
+
if (count($fieldToolTipschat_agent["English"]))
|
41 |
+
$tdatachat_agent[".isUseToolTips"] = true;
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
$tdatachat_agent[".NCSearch"] = true;
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
$tdatachat_agent[".shortTableName"] = "chat_agent";
|
50 |
+
$tdatachat_agent[".nSecOptions"] = 0;
|
51 |
+
|
52 |
+
$tdatachat_agent[".mainTableOwnerID"] = "";
|
53 |
+
$tdatachat_agent[".entityType"] = 0;
|
54 |
+
$tdatachat_agent[".connId"] = "chats_at_localhost";
|
55 |
+
|
56 |
+
|
57 |
+
$tdatachat_agent[".strOriginalTableName"] = "chat_agent";
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
$tdatachat_agent[".showAddInPopup"] = false;
|
64 |
+
|
65 |
+
$tdatachat_agent[".showEditInPopup"] = false;
|
66 |
+
|
67 |
+
$tdatachat_agent[".showViewInPopup"] = false;
|
68 |
+
|
69 |
+
$tdatachat_agent[".listAjax"] = false;
|
70 |
+
// temporary
|
71 |
+
//$tdatachat_agent[".listAjax"] = false;
|
72 |
+
|
73 |
+
$tdatachat_agent[".audit"] = false;
|
74 |
+
|
75 |
+
$tdatachat_agent[".locking"] = false;
|
76 |
+
|
77 |
+
|
78 |
+
$pages = $tdatachat_agent[".defaultPages"];
|
79 |
+
|
80 |
+
if( $pages[PAGE_EDIT] ) {
|
81 |
+
$tdatachat_agent[".edit"] = true;
|
82 |
+
$tdatachat_agent[".afterEditAction"] = 1;
|
83 |
+
$tdatachat_agent[".closePopupAfterEdit"] = 1;
|
84 |
+
$tdatachat_agent[".afterEditActionDetTable"] = "";
|
85 |
+
}
|
86 |
+
|
87 |
+
if( $pages[PAGE_ADD] ) {
|
88 |
+
$tdatachat_agent[".add"] = true;
|
89 |
+
$tdatachat_agent[".afterAddAction"] = 1;
|
90 |
+
$tdatachat_agent[".closePopupAfterAdd"] = 1;
|
91 |
+
$tdatachat_agent[".afterAddActionDetTable"] = "";
|
92 |
+
}
|
93 |
+
|
94 |
+
if( $pages[PAGE_LIST] ) {
|
95 |
+
$tdatachat_agent[".list"] = true;
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
$tdatachat_agent[".strSortControlSettingsJSON"] = "";
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
if( $pages[PAGE_VIEW] ) {
|
106 |
+
$tdatachat_agent[".view"] = true;
|
107 |
+
}
|
108 |
+
|
109 |
+
if( $pages[PAGE_IMPORT] ) {
|
110 |
+
$tdatachat_agent[".import"] = true;
|
111 |
+
}
|
112 |
+
|
113 |
+
if( $pages[PAGE_EXPORT] ) {
|
114 |
+
$tdatachat_agent[".exportTo"] = true;
|
115 |
+
}
|
116 |
+
|
117 |
+
if( $pages[PAGE_PRINT] ) {
|
118 |
+
$tdatachat_agent[".printFriendly"] = true;
|
119 |
+
}
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
$tdatachat_agent[".showSimpleSearchOptions"] = true; // temp fix #13449
|
124 |
+
|
125 |
+
// Allow Show/Hide Fields in GRID
|
126 |
+
$tdatachat_agent[".allowShowHideFields"] = true; // temp fix #13449
|
127 |
+
//
|
128 |
+
|
129 |
+
// Allow Fields Reordering in GRID
|
130 |
+
$tdatachat_agent[".allowFieldsReordering"] = true; // temp fix #13449
|
131 |
+
//
|
132 |
+
|
133 |
+
$tdatachat_agent[".isUseAjaxSuggest"] = true;
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
$tdatachat_agent[".ajaxCodeSnippetAdded"] = false;
|
140 |
+
|
141 |
+
$tdatachat_agent[".buttonsAdded"] = false;
|
142 |
+
|
143 |
+
$tdatachat_agent[".addPageEvents"] = false;
|
144 |
+
|
145 |
+
// use timepicker for search panel
|
146 |
+
$tdatachat_agent[".isUseTimeForSearch"] = false;
|
147 |
+
|
148 |
+
|
149 |
+
$tdatachat_agent[".badgeColor"] = "778899";
|
150 |
+
|
151 |
+
|
152 |
+
$tdatachat_agent[".allSearchFields"] = array();
|
153 |
+
$tdatachat_agent[".filterFields"] = array();
|
154 |
+
$tdatachat_agent[".requiredSearchFields"] = array();
|
155 |
+
|
156 |
+
$tdatachat_agent[".googleLikeFields"] = array();
|
157 |
+
$tdatachat_agent[".googleLikeFields"][] = "id";
|
158 |
+
$tdatachat_agent[".googleLikeFields"][] = "replay";
|
159 |
+
$tdatachat_agent[".googleLikeFields"][] = "replay_fix";
|
160 |
+
$tdatachat_agent[".googleLikeFields"][] = "replay_kwick";
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
$tdatachat_agent[".tableType"] = "list";
|
165 |
+
|
166 |
+
$tdatachat_agent[".printerPageOrientation"] = 0;
|
167 |
+
$tdatachat_agent[".nPrinterPageScale"] = 100;
|
168 |
+
|
169 |
+
$tdatachat_agent[".nPrinterSplitRecords"] = 40;
|
170 |
+
|
171 |
+
$tdatachat_agent[".geocodingEnabled"] = false;
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
|
182 |
+
$tdatachat_agent[".pageSize"] = 20;
|
183 |
+
|
184 |
+
$tdatachat_agent[".warnLeavingPages"] = true;
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
+
$tstrOrderBy = "";
|
189 |
+
$tdatachat_agent[".strOrderBy"] = $tstrOrderBy;
|
190 |
+
|
191 |
+
$tdatachat_agent[".orderindexes"] = array();
|
192 |
+
|
193 |
+
|
194 |
+
$tdatachat_agent[".sqlHead"] = "SELECT id, replay, replay_fix, replay_kwick";
|
195 |
+
$tdatachat_agent[".sqlFrom"] = "FROM chat_agent";
|
196 |
+
$tdatachat_agent[".sqlWhereExpr"] = "";
|
197 |
+
$tdatachat_agent[".sqlTail"] = "";
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
//fill array of records per page for list and report without group fields
|
209 |
+
$arrRPP = array();
|
210 |
+
$arrRPP[] = 10;
|
211 |
+
$arrRPP[] = 20;
|
212 |
+
$arrRPP[] = 30;
|
213 |
+
$arrRPP[] = 50;
|
214 |
+
$arrRPP[] = 100;
|
215 |
+
$arrRPP[] = 500;
|
216 |
+
$arrRPP[] = -1;
|
217 |
+
$tdatachat_agent[".arrRecsPerPage"] = $arrRPP;
|
218 |
+
|
219 |
+
//fill array of groups per page for report with group fields
|
220 |
+
$arrGPP = array();
|
221 |
+
$arrGPP[] = 1;
|
222 |
+
$arrGPP[] = 3;
|
223 |
+
$arrGPP[] = 5;
|
224 |
+
$arrGPP[] = 10;
|
225 |
+
$arrGPP[] = 50;
|
226 |
+
$arrGPP[] = 100;
|
227 |
+
$arrGPP[] = -1;
|
228 |
+
$tdatachat_agent[".arrGroupsPerPage"] = $arrGPP;
|
229 |
+
|
230 |
+
$tdatachat_agent[".highlightSearchResults"] = true;
|
231 |
+
|
232 |
+
$tableKeyschat_agent = array();
|
233 |
+
$tableKeyschat_agent[] = "id";
|
234 |
+
$tdatachat_agent[".Keys"] = $tableKeyschat_agent;
|
235 |
+
|
236 |
+
|
237 |
+
$tdatachat_agent[".hideMobileList"] = array();
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
+
|
242 |
+
// id
|
243 |
+
// Custom field settings
|
244 |
+
$fdata = array();
|
245 |
+
$fdata["Index"] = 1;
|
246 |
+
$fdata["strName"] = "id";
|
247 |
+
$fdata["GoodName"] = "id";
|
248 |
+
$fdata["ownerTable"] = "chat_agent";
|
249 |
+
$fdata["Label"] = GetFieldLabel("chat_agent","id");
|
250 |
+
$fdata["FieldType"] = 3;
|
251 |
+
|
252 |
+
|
253 |
+
$fdata["AutoInc"] = true;
|
254 |
+
|
255 |
+
|
256 |
+
|
257 |
+
|
258 |
+
$fdata["strField"] = "id";
|
259 |
+
|
260 |
+
$fdata["sourceSingle"] = "id";
|
261 |
+
|
262 |
+
|
263 |
+
$fdata["isSQLExpression"] = true;
|
264 |
+
$fdata["FullName"] = "id";
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
+
$fdata["UploadFolder"] = "files";
|
269 |
+
|
270 |
+
// Begin View Formats
|
271 |
+
$fdata["ViewFormats"] = array();
|
272 |
+
|
273 |
+
$vdata = array("ViewFormat" => "");
|
274 |
+
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
+
|
282 |
+
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
+
|
288 |
+
|
289 |
+
$vdata["NeedEncode"] = true;
|
290 |
+
|
291 |
+
|
292 |
+
$vdata["truncateText"] = true;
|
293 |
+
$vdata["NumberOfChars"] = 80;
|
294 |
+
|
295 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
296 |
+
// End View Formats
|
297 |
+
|
298 |
+
// Begin Edit Formats
|
299 |
+
$fdata["EditFormats"] = array();
|
300 |
+
|
301 |
+
$edata = array("EditFormat" => "Text field");
|
302 |
+
|
303 |
+
|
304 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
305 |
+
$edata["weekdays"] = "[]";
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
|
313 |
+
$edata["IsRequired"] = true;
|
314 |
+
|
315 |
+
|
316 |
+
|
317 |
+
|
318 |
+
$edata["acceptFileTypesHtml"] = "";
|
319 |
+
|
320 |
+
$edata["maxNumberOfFiles"] = 1;
|
321 |
+
|
322 |
+
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
$edata["HTML5InuptType"] = "text";
|
327 |
+
|
328 |
+
$edata["EditParams"] = "";
|
329 |
+
|
330 |
+
$edata["controlWidth"] = 200;
|
331 |
+
|
332 |
+
// Begin validation
|
333 |
+
$edata["validateAs"] = array();
|
334 |
+
$edata["validateAs"]["basicValidate"] = array();
|
335 |
+
$edata["validateAs"]["customMessages"] = array();
|
336 |
+
$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
|
337 |
+
$edata["validateAs"]["basicValidate"][] = "IsRequired";
|
338 |
+
|
339 |
+
|
340 |
+
// End validation
|
341 |
+
|
342 |
+
|
343 |
+
|
344 |
+
|
345 |
+
|
346 |
+
|
347 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
348 |
+
// End Edit Formats
|
349 |
+
|
350 |
+
|
351 |
+
$fdata["isSeparate"] = false;
|
352 |
+
|
353 |
+
|
354 |
+
|
355 |
+
|
356 |
+
// the field's search options settings
|
357 |
+
$fdata["defaultSearchOption"] = "Contains";
|
358 |
+
|
359 |
+
// the default search options list
|
360 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
361 |
+
// the end of search options settings
|
362 |
+
|
363 |
+
|
364 |
+
//Filters settings
|
365 |
+
$fdata["filterTotals"] = 0;
|
366 |
+
$fdata["filterMultiSelect"] = 0;
|
367 |
+
$fdata["filterFormat"] = "Values list";
|
368 |
+
$fdata["showCollapsed"] = false;
|
369 |
+
|
370 |
+
$fdata["sortValueType"] = 0;
|
371 |
+
$fdata["numberOfVisibleItems"] = 10;
|
372 |
+
|
373 |
+
$fdata["filterBy"] = 0;
|
374 |
+
|
375 |
+
|
376 |
+
|
377 |
+
|
378 |
+
|
379 |
+
//end of Filters settings
|
380 |
+
|
381 |
+
|
382 |
+
$tdatachat_agent["id"] = $fdata;
|
383 |
+
$tdatachat_agent[".searchableFields"][] = "id";
|
384 |
+
// replay
|
385 |
+
// Custom field settings
|
386 |
+
$fdata = array();
|
387 |
+
$fdata["Index"] = 2;
|
388 |
+
$fdata["strName"] = "replay";
|
389 |
+
$fdata["GoodName"] = "replay";
|
390 |
+
$fdata["ownerTable"] = "chat_agent";
|
391 |
+
$fdata["Label"] = GetFieldLabel("chat_agent","replay");
|
392 |
+
$fdata["FieldType"] = 200;
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
|
399 |
+
$fdata["strField"] = "replay";
|
400 |
+
|
401 |
+
$fdata["sourceSingle"] = "replay";
|
402 |
+
|
403 |
+
|
404 |
+
$fdata["isSQLExpression"] = true;
|
405 |
+
$fdata["FullName"] = "replay";
|
406 |
+
|
407 |
+
|
408 |
+
|
409 |
+
$fdata["UploadFolder"] = "files";
|
410 |
+
|
411 |
+
// Begin View Formats
|
412 |
+
$fdata["ViewFormats"] = array();
|
413 |
+
|
414 |
+
$vdata = array("ViewFormat" => "");
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
|
421 |
+
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
+
|
426 |
+
|
427 |
+
|
428 |
+
|
429 |
+
|
430 |
+
$vdata["NeedEncode"] = true;
|
431 |
+
|
432 |
+
|
433 |
+
$vdata["truncateText"] = true;
|
434 |
+
$vdata["NumberOfChars"] = 80;
|
435 |
+
|
436 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
437 |
+
// End View Formats
|
438 |
+
|
439 |
+
// Begin Edit Formats
|
440 |
+
$fdata["EditFormats"] = array();
|
441 |
+
|
442 |
+
$edata = array("EditFormat" => "Text field");
|
443 |
+
|
444 |
+
|
445 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
446 |
+
$edata["weekdays"] = "[]";
|
447 |
+
|
448 |
+
|
449 |
+
|
450 |
+
|
451 |
+
|
452 |
+
|
453 |
+
|
454 |
+
|
455 |
+
|
456 |
+
|
457 |
+
|
458 |
+
$edata["acceptFileTypesHtml"] = "";
|
459 |
+
|
460 |
+
$edata["maxNumberOfFiles"] = 1;
|
461 |
+
|
462 |
+
|
463 |
+
|
464 |
+
|
465 |
+
|
466 |
+
$edata["HTML5InuptType"] = "text";
|
467 |
+
|
468 |
+
$edata["EditParams"] = "";
|
469 |
+
$edata["EditParams"].= " maxlength=50";
|
470 |
+
|
471 |
+
$edata["controlWidth"] = 200;
|
472 |
+
|
473 |
+
// Begin validation
|
474 |
+
$edata["validateAs"] = array();
|
475 |
+
$edata["validateAs"]["basicValidate"] = array();
|
476 |
+
$edata["validateAs"]["customMessages"] = array();
|
477 |
+
|
478 |
+
|
479 |
+
// End validation
|
480 |
+
|
481 |
+
|
482 |
+
|
483 |
+
|
484 |
+
|
485 |
+
|
486 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
487 |
+
// End Edit Formats
|
488 |
+
|
489 |
+
|
490 |
+
$fdata["isSeparate"] = false;
|
491 |
+
|
492 |
+
|
493 |
+
|
494 |
+
|
495 |
+
// the field's search options settings
|
496 |
+
$fdata["defaultSearchOption"] = "Contains";
|
497 |
+
|
498 |
+
// the default search options list
|
499 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
500 |
+
// the end of search options settings
|
501 |
+
|
502 |
+
|
503 |
+
//Filters settings
|
504 |
+
$fdata["filterTotals"] = 0;
|
505 |
+
$fdata["filterMultiSelect"] = 0;
|
506 |
+
$fdata["filterFormat"] = "Values list";
|
507 |
+
$fdata["showCollapsed"] = false;
|
508 |
+
|
509 |
+
$fdata["sortValueType"] = 0;
|
510 |
+
$fdata["numberOfVisibleItems"] = 10;
|
511 |
+
|
512 |
+
$fdata["filterBy"] = 0;
|
513 |
+
|
514 |
+
|
515 |
+
|
516 |
+
|
517 |
+
|
518 |
+
//end of Filters settings
|
519 |
+
|
520 |
+
|
521 |
+
$tdatachat_agent["replay"] = $fdata;
|
522 |
+
$tdatachat_agent[".searchableFields"][] = "replay";
|
523 |
+
// replay_fix
|
524 |
+
// Custom field settings
|
525 |
+
$fdata = array();
|
526 |
+
$fdata["Index"] = 3;
|
527 |
+
$fdata["strName"] = "replay_fix";
|
528 |
+
$fdata["GoodName"] = "replay_fix";
|
529 |
+
$fdata["ownerTable"] = "chat_agent";
|
530 |
+
$fdata["Label"] = GetFieldLabel("chat_agent","replay_fix");
|
531 |
+
$fdata["FieldType"] = 200;
|
532 |
+
|
533 |
+
|
534 |
+
|
535 |
+
|
536 |
+
|
537 |
+
|
538 |
+
$fdata["strField"] = "replay_fix";
|
539 |
+
|
540 |
+
$fdata["sourceSingle"] = "replay_fix";
|
541 |
+
|
542 |
+
|
543 |
+
$fdata["isSQLExpression"] = true;
|
544 |
+
$fdata["FullName"] = "replay_fix";
|
545 |
+
|
546 |
+
|
547 |
+
|
548 |
+
$fdata["UploadFolder"] = "files";
|
549 |
+
|
550 |
+
// Begin View Formats
|
551 |
+
$fdata["ViewFormats"] = array();
|
552 |
+
|
553 |
+
$vdata = array("ViewFormat" => "");
|
554 |
+
|
555 |
+
|
556 |
+
|
557 |
+
|
558 |
+
|
559 |
+
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
|
564 |
+
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
$vdata["NeedEncode"] = true;
|
570 |
+
|
571 |
+
|
572 |
+
$vdata["truncateText"] = true;
|
573 |
+
$vdata["NumberOfChars"] = 80;
|
574 |
+
|
575 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
576 |
+
// End View Formats
|
577 |
+
|
578 |
+
// Begin Edit Formats
|
579 |
+
$fdata["EditFormats"] = array();
|
580 |
+
|
581 |
+
$edata = array("EditFormat" => "Text field");
|
582 |
+
|
583 |
+
|
584 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
585 |
+
$edata["weekdays"] = "[]";
|
586 |
+
|
587 |
+
|
588 |
+
|
589 |
+
|
590 |
+
|
591 |
+
|
592 |
+
|
593 |
+
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
$edata["acceptFileTypesHtml"] = "";
|
598 |
+
|
599 |
+
$edata["maxNumberOfFiles"] = 1;
|
600 |
+
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
$edata["HTML5InuptType"] = "text";
|
606 |
+
|
607 |
+
$edata["EditParams"] = "";
|
608 |
+
$edata["EditParams"].= " maxlength=50";
|
609 |
+
|
610 |
+
$edata["controlWidth"] = 200;
|
611 |
+
|
612 |
+
// Begin validation
|
613 |
+
$edata["validateAs"] = array();
|
614 |
+
$edata["validateAs"]["basicValidate"] = array();
|
615 |
+
$edata["validateAs"]["customMessages"] = array();
|
616 |
+
|
617 |
+
|
618 |
+
// End validation
|
619 |
+
|
620 |
+
|
621 |
+
|
622 |
+
|
623 |
+
|
624 |
+
|
625 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
626 |
+
// End Edit Formats
|
627 |
+
|
628 |
+
|
629 |
+
$fdata["isSeparate"] = false;
|
630 |
+
|
631 |
+
|
632 |
+
|
633 |
+
|
634 |
+
// the field's search options settings
|
635 |
+
$fdata["defaultSearchOption"] = "Contains";
|
636 |
+
|
637 |
+
// the default search options list
|
638 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
639 |
+
// the end of search options settings
|
640 |
+
|
641 |
+
|
642 |
+
//Filters settings
|
643 |
+
$fdata["filterTotals"] = 0;
|
644 |
+
$fdata["filterMultiSelect"] = 0;
|
645 |
+
$fdata["filterFormat"] = "Values list";
|
646 |
+
$fdata["showCollapsed"] = false;
|
647 |
+
|
648 |
+
$fdata["sortValueType"] = 0;
|
649 |
+
$fdata["numberOfVisibleItems"] = 10;
|
650 |
+
|
651 |
+
$fdata["filterBy"] = 0;
|
652 |
+
|
653 |
+
|
654 |
+
|
655 |
+
|
656 |
+
|
657 |
+
//end of Filters settings
|
658 |
+
|
659 |
+
|
660 |
+
$tdatachat_agent["replay_fix"] = $fdata;
|
661 |
+
$tdatachat_agent[".searchableFields"][] = "replay_fix";
|
662 |
+
// replay_kwick
|
663 |
+
// Custom field settings
|
664 |
+
$fdata = array();
|
665 |
+
$fdata["Index"] = 4;
|
666 |
+
$fdata["strName"] = "replay_kwick";
|
667 |
+
$fdata["GoodName"] = "replay_kwick";
|
668 |
+
$fdata["ownerTable"] = "chat_agent";
|
669 |
+
$fdata["Label"] = GetFieldLabel("chat_agent","replay_kwick");
|
670 |
+
$fdata["FieldType"] = 200;
|
671 |
+
|
672 |
+
|
673 |
+
|
674 |
+
|
675 |
+
|
676 |
+
|
677 |
+
$fdata["strField"] = "replay_kwick";
|
678 |
+
|
679 |
+
$fdata["sourceSingle"] = "replay_kwick";
|
680 |
+
|
681 |
+
|
682 |
+
$fdata["isSQLExpression"] = true;
|
683 |
+
$fdata["FullName"] = "replay_kwick";
|
684 |
+
|
685 |
+
|
686 |
+
|
687 |
+
$fdata["UploadFolder"] = "files";
|
688 |
+
|
689 |
+
// Begin View Formats
|
690 |
+
$fdata["ViewFormats"] = array();
|
691 |
+
|
692 |
+
$vdata = array("ViewFormat" => "");
|
693 |
+
|
694 |
+
|
695 |
+
|
696 |
+
|
697 |
+
|
698 |
+
|
699 |
+
|
700 |
+
|
701 |
+
|
702 |
+
|
703 |
+
|
704 |
+
|
705 |
+
|
706 |
+
|
707 |
+
|
708 |
+
$vdata["NeedEncode"] = true;
|
709 |
+
|
710 |
+
|
711 |
+
$vdata["truncateText"] = true;
|
712 |
+
$vdata["NumberOfChars"] = 80;
|
713 |
+
|
714 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
715 |
+
// End View Formats
|
716 |
+
|
717 |
+
// Begin Edit Formats
|
718 |
+
$fdata["EditFormats"] = array();
|
719 |
+
|
720 |
+
$edata = array("EditFormat" => "Text field");
|
721 |
+
|
722 |
+
|
723 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
724 |
+
$edata["weekdays"] = "[]";
|
725 |
+
|
726 |
+
|
727 |
+
|
728 |
+
|
729 |
+
|
730 |
+
|
731 |
+
|
732 |
+
|
733 |
+
|
734 |
+
|
735 |
+
|
736 |
+
$edata["acceptFileTypesHtml"] = "";
|
737 |
+
|
738 |
+
$edata["maxNumberOfFiles"] = 1;
|
739 |
+
|
740 |
+
|
741 |
+
|
742 |
+
|
743 |
+
|
744 |
+
$edata["HTML5InuptType"] = "text";
|
745 |
+
|
746 |
+
$edata["EditParams"] = "";
|
747 |
+
$edata["EditParams"].= " maxlength=50";
|
748 |
+
|
749 |
+
$edata["controlWidth"] = 200;
|
750 |
+
|
751 |
+
// Begin validation
|
752 |
+
$edata["validateAs"] = array();
|
753 |
+
$edata["validateAs"]["basicValidate"] = array();
|
754 |
+
$edata["validateAs"]["customMessages"] = array();
|
755 |
+
|
756 |
+
|
757 |
+
// End validation
|
758 |
+
|
759 |
+
|
760 |
+
|
761 |
+
|
762 |
+
|
763 |
+
|
764 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
765 |
+
// End Edit Formats
|
766 |
+
|
767 |
+
|
768 |
+
$fdata["isSeparate"] = false;
|
769 |
+
|
770 |
+
|
771 |
+
|
772 |
+
|
773 |
+
// the field's search options settings
|
774 |
+
$fdata["defaultSearchOption"] = "Contains";
|
775 |
+
|
776 |
+
// the default search options list
|
777 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
778 |
+
// the end of search options settings
|
779 |
+
|
780 |
+
|
781 |
+
//Filters settings
|
782 |
+
$fdata["filterTotals"] = 0;
|
783 |
+
$fdata["filterMultiSelect"] = 0;
|
784 |
+
$fdata["filterFormat"] = "Values list";
|
785 |
+
$fdata["showCollapsed"] = false;
|
786 |
+
|
787 |
+
$fdata["sortValueType"] = 0;
|
788 |
+
$fdata["numberOfVisibleItems"] = 10;
|
789 |
+
|
790 |
+
$fdata["filterBy"] = 0;
|
791 |
+
|
792 |
+
|
793 |
+
|
794 |
+
|
795 |
+
|
796 |
+
//end of Filters settings
|
797 |
+
|
798 |
+
|
799 |
+
$tdatachat_agent["replay_kwick"] = $fdata;
|
800 |
+
$tdatachat_agent[".searchableFields"][] = "replay_kwick";
|
801 |
+
|
802 |
+
|
803 |
+
$tables_data["chat_agent"]=&$tdatachat_agent;
|
804 |
+
$field_labels["chat_agent"] = &$fieldLabelschat_agent;
|
805 |
+
$fieldToolTips["chat_agent"] = &$fieldToolTipschat_agent;
|
806 |
+
$placeHolders["chat_agent"] = &$placeHolderschat_agent;
|
807 |
+
$page_titles["chat_agent"] = &$pageTitleschat_agent;
|
808 |
+
|
809 |
+
|
810 |
+
changeTextControlsToDate( "chat_agent" );
|
811 |
+
|
812 |
+
// -----------------start prepare master-details data arrays ------------------------------//
|
813 |
+
// tables which are detail tables for current table (master)
|
814 |
+
|
815 |
+
//if !@TABLE.bReportCrossTab
|
816 |
+
|
817 |
+
$detailsTablesData["chat_agent"] = array();
|
818 |
+
//endif
|
819 |
+
|
820 |
+
// tables which are master tables for current table (detail)
|
821 |
+
$masterTablesData["chat_agent"] = array();
|
822 |
+
|
823 |
+
|
824 |
+
|
825 |
+
// -----------------end prepare master-details data arrays ------------------------------//
|
826 |
+
|
827 |
+
|
828 |
+
|
829 |
+
require_once(getabspath("classes/sql.php"));
|
830 |
+
|
831 |
+
|
832 |
+
|
833 |
+
|
834 |
+
|
835 |
+
|
836 |
+
|
837 |
+
|
838 |
+
|
839 |
+
|
840 |
+
|
841 |
+
function createSqlQuery_chat_agent()
|
842 |
+
{
|
843 |
+
$proto0=array();
|
844 |
+
$proto0["m_strHead"] = "SELECT";
|
845 |
+
$proto0["m_strFieldList"] = "id, replay, replay_fix, replay_kwick";
|
846 |
+
$proto0["m_strFrom"] = "FROM chat_agent";
|
847 |
+
$proto0["m_strWhere"] = "";
|
848 |
+
$proto0["m_strOrderBy"] = "";
|
849 |
+
|
850 |
+
;
|
851 |
+
$proto0["cipherer"] = null;
|
852 |
+
$proto2=array();
|
853 |
+
$proto2["m_sql"] = "";
|
854 |
+
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
|
855 |
+
$obj = new SQLNonParsed(array(
|
856 |
+
"m_sql" => ""
|
857 |
+
));
|
858 |
+
|
859 |
+
$proto2["m_column"]=$obj;
|
860 |
+
$proto2["m_contained"] = array();
|
861 |
+
$proto2["m_strCase"] = "";
|
862 |
+
$proto2["m_havingmode"] = false;
|
863 |
+
$proto2["m_inBrackets"] = false;
|
864 |
+
$proto2["m_useAlias"] = false;
|
865 |
+
$obj = new SQLLogicalExpr($proto2);
|
866 |
+
|
867 |
+
$proto0["m_where"] = $obj;
|
868 |
+
$proto4=array();
|
869 |
+
$proto4["m_sql"] = "";
|
870 |
+
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
|
871 |
+
$obj = new SQLNonParsed(array(
|
872 |
+
"m_sql" => ""
|
873 |
+
));
|
874 |
+
|
875 |
+
$proto4["m_column"]=$obj;
|
876 |
+
$proto4["m_contained"] = array();
|
877 |
+
$proto4["m_strCase"] = "";
|
878 |
+
$proto4["m_havingmode"] = false;
|
879 |
+
$proto4["m_inBrackets"] = false;
|
880 |
+
$proto4["m_useAlias"] = false;
|
881 |
+
$obj = new SQLLogicalExpr($proto4);
|
882 |
+
|
883 |
+
$proto0["m_having"] = $obj;
|
884 |
+
$proto0["m_fieldlist"] = array();
|
885 |
+
$proto6=array();
|
886 |
+
$obj = new SQLField(array(
|
887 |
+
"m_strName" => "id",
|
888 |
+
"m_strTable" => "chat_agent",
|
889 |
+
"m_srcTableName" => "chat_agent"
|
890 |
+
));
|
891 |
+
|
892 |
+
$proto6["m_sql"] = "id";
|
893 |
+
$proto6["m_srcTableName"] = "chat_agent";
|
894 |
+
$proto6["m_expr"]=$obj;
|
895 |
+
$proto6["m_alias"] = "";
|
896 |
+
$obj = new SQLFieldListItem($proto6);
|
897 |
+
|
898 |
+
$proto0["m_fieldlist"][]=$obj;
|
899 |
+
$proto8=array();
|
900 |
+
$obj = new SQLField(array(
|
901 |
+
"m_strName" => "replay",
|
902 |
+
"m_strTable" => "chat_agent",
|
903 |
+
"m_srcTableName" => "chat_agent"
|
904 |
+
));
|
905 |
+
|
906 |
+
$proto8["m_sql"] = "replay";
|
907 |
+
$proto8["m_srcTableName"] = "chat_agent";
|
908 |
+
$proto8["m_expr"]=$obj;
|
909 |
+
$proto8["m_alias"] = "";
|
910 |
+
$obj = new SQLFieldListItem($proto8);
|
911 |
+
|
912 |
+
$proto0["m_fieldlist"][]=$obj;
|
913 |
+
$proto10=array();
|
914 |
+
$obj = new SQLField(array(
|
915 |
+
"m_strName" => "replay_fix",
|
916 |
+
"m_strTable" => "chat_agent",
|
917 |
+
"m_srcTableName" => "chat_agent"
|
918 |
+
));
|
919 |
+
|
920 |
+
$proto10["m_sql"] = "replay_fix";
|
921 |
+
$proto10["m_srcTableName"] = "chat_agent";
|
922 |
+
$proto10["m_expr"]=$obj;
|
923 |
+
$proto10["m_alias"] = "";
|
924 |
+
$obj = new SQLFieldListItem($proto10);
|
925 |
+
|
926 |
+
$proto0["m_fieldlist"][]=$obj;
|
927 |
+
$proto12=array();
|
928 |
+
$obj = new SQLField(array(
|
929 |
+
"m_strName" => "replay_kwick",
|
930 |
+
"m_strTable" => "chat_agent",
|
931 |
+
"m_srcTableName" => "chat_agent"
|
932 |
+
));
|
933 |
+
|
934 |
+
$proto12["m_sql"] = "replay_kwick";
|
935 |
+
$proto12["m_srcTableName"] = "chat_agent";
|
936 |
+
$proto12["m_expr"]=$obj;
|
937 |
+
$proto12["m_alias"] = "";
|
938 |
+
$obj = new SQLFieldListItem($proto12);
|
939 |
+
|
940 |
+
$proto0["m_fieldlist"][]=$obj;
|
941 |
+
$proto0["m_fromlist"] = array();
|
942 |
+
$proto14=array();
|
943 |
+
$proto14["m_link"] = "SQLL_MAIN";
|
944 |
+
$proto15=array();
|
945 |
+
$proto15["m_strName"] = "chat_agent";
|
946 |
+
$proto15["m_srcTableName"] = "chat_agent";
|
947 |
+
$proto15["m_columns"] = array();
|
948 |
+
$proto15["m_columns"][] = "id";
|
949 |
+
$proto15["m_columns"][] = "replay";
|
950 |
+
$proto15["m_columns"][] = "replay_fix";
|
951 |
+
$proto15["m_columns"][] = "replay_kwick";
|
952 |
+
$obj = new SQLTable($proto15);
|
953 |
+
|
954 |
+
$proto14["m_table"] = $obj;
|
955 |
+
$proto14["m_sql"] = "chat_agent";
|
956 |
+
$proto14["m_alias"] = "";
|
957 |
+
$proto14["m_srcTableName"] = "chat_agent";
|
958 |
+
$proto16=array();
|
959 |
+
$proto16["m_sql"] = "";
|
960 |
+
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
|
961 |
+
$obj = new SQLNonParsed(array(
|
962 |
+
"m_sql" => ""
|
963 |
+
));
|
964 |
+
|
965 |
+
$proto16["m_column"]=$obj;
|
966 |
+
$proto16["m_contained"] = array();
|
967 |
+
$proto16["m_strCase"] = "";
|
968 |
+
$proto16["m_havingmode"] = false;
|
969 |
+
$proto16["m_inBrackets"] = false;
|
970 |
+
$proto16["m_useAlias"] = false;
|
971 |
+
$obj = new SQLLogicalExpr($proto16);
|
972 |
+
|
973 |
+
$proto14["m_joinon"] = $obj;
|
974 |
+
$obj = new SQLFromListItem($proto14);
|
975 |
+
|
976 |
+
$proto0["m_fromlist"][]=$obj;
|
977 |
+
$proto0["m_groupby"] = array();
|
978 |
+
$proto0["m_orderby"] = array();
|
979 |
+
$proto0["m_srcTableName"]="chat_agent";
|
980 |
+
$obj = new SQLQuery($proto0);
|
981 |
+
|
982 |
+
return $obj;
|
983 |
+
}
|
984 |
+
$queryData_chat_agent = createSqlQuery_chat_agent();
|
985 |
+
|
986 |
+
|
987 |
+
|
988 |
+
;
|
989 |
+
|
990 |
+
|
991 |
+
|
992 |
+
$tdatachat_agent[".sqlquery"] = $queryData_chat_agent;
|
993 |
+
|
994 |
+
|
995 |
+
|
996 |
+
$tdatachat_agent[".hasEvents"] = false;
|
997 |
+
|
998 |
+
?>
|
php/include/chat_agent_variables.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$strTableName="chat_agent";
|
3 |
+
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
|
4 |
+
|
5 |
+
$strOriginalTableName="chat_agent";
|
6 |
+
|
7 |
+
$gstrOrderBy="";
|
8 |
+
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
|
9 |
+
$gstrOrderBy="order by ".$gstrOrderBy;
|
10 |
+
|
11 |
+
$reportCaseSensitiveGroupFields = false;
|
12 |
+
|
13 |
+
?>
|
php/include/chat_external_settings.php
ADDED
@@ -0,0 +1,999 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$tdatachat_external = array();
|
3 |
+
$tdatachat_external[".searchableFields"] = array();
|
4 |
+
$tdatachat_external[".ShortName"] = "chat_external";
|
5 |
+
$tdatachat_external[".OwnerID"] = "";
|
6 |
+
$tdatachat_external[".OriginalTable"] = "chat_external";
|
7 |
+
|
8 |
+
|
9 |
+
$tdatachat_external[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
|
10 |
+
$tdatachat_external[".originalPagesByType"] = $tdatachat_external[".pagesByType"];
|
11 |
+
$tdatachat_external[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
|
12 |
+
$tdatachat_external[".originalPages"] = $tdatachat_external[".pages"];
|
13 |
+
$tdatachat_external[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
|
14 |
+
$tdatachat_external[".originalDefaultPages"] = $tdatachat_external[".defaultPages"];
|
15 |
+
|
16 |
+
// field labels
|
17 |
+
$fieldLabelschat_external = array();
|
18 |
+
$fieldToolTipschat_external = array();
|
19 |
+
$pageTitleschat_external = array();
|
20 |
+
$placeHolderschat_external = array();
|
21 |
+
|
22 |
+
if(mlang_getcurrentlang()=="English")
|
23 |
+
{
|
24 |
+
$fieldLabelschat_external["English"] = array();
|
25 |
+
$fieldToolTipschat_external["English"] = array();
|
26 |
+
$placeHolderschat_external["English"] = array();
|
27 |
+
$pageTitleschat_external["English"] = array();
|
28 |
+
$fieldLabelschat_external["English"]["id"] = "Id";
|
29 |
+
$fieldToolTipschat_external["English"]["id"] = "";
|
30 |
+
$placeHolderschat_external["English"]["id"] = "";
|
31 |
+
$fieldLabelschat_external["English"]["logs"] = "Logs";
|
32 |
+
$fieldToolTipschat_external["English"]["logs"] = "";
|
33 |
+
$placeHolderschat_external["English"]["logs"] = "";
|
34 |
+
$fieldLabelschat_external["English"]["users"] = "Users";
|
35 |
+
$fieldToolTipschat_external["English"]["users"] = "";
|
36 |
+
$placeHolderschat_external["English"]["users"] = "";
|
37 |
+
$fieldLabelschat_external["English"]["report_count"] = "Report Count";
|
38 |
+
$fieldToolTipschat_external["English"]["report_count"] = "";
|
39 |
+
$placeHolderschat_external["English"]["report_count"] = "";
|
40 |
+
if (count($fieldToolTipschat_external["English"]))
|
41 |
+
$tdatachat_external[".isUseToolTips"] = true;
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
$tdatachat_external[".NCSearch"] = true;
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
$tdatachat_external[".shortTableName"] = "chat_external";
|
50 |
+
$tdatachat_external[".nSecOptions"] = 0;
|
51 |
+
|
52 |
+
$tdatachat_external[".mainTableOwnerID"] = "";
|
53 |
+
$tdatachat_external[".entityType"] = 0;
|
54 |
+
$tdatachat_external[".connId"] = "chats_at_localhost";
|
55 |
+
|
56 |
+
|
57 |
+
$tdatachat_external[".strOriginalTableName"] = "chat_external";
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
$tdatachat_external[".showAddInPopup"] = false;
|
64 |
+
|
65 |
+
$tdatachat_external[".showEditInPopup"] = false;
|
66 |
+
|
67 |
+
$tdatachat_external[".showViewInPopup"] = false;
|
68 |
+
|
69 |
+
$tdatachat_external[".listAjax"] = false;
|
70 |
+
// temporary
|
71 |
+
//$tdatachat_external[".listAjax"] = false;
|
72 |
+
|
73 |
+
$tdatachat_external[".audit"] = false;
|
74 |
+
|
75 |
+
$tdatachat_external[".locking"] = false;
|
76 |
+
|
77 |
+
|
78 |
+
$pages = $tdatachat_external[".defaultPages"];
|
79 |
+
|
80 |
+
if( $pages[PAGE_EDIT] ) {
|
81 |
+
$tdatachat_external[".edit"] = true;
|
82 |
+
$tdatachat_external[".afterEditAction"] = 1;
|
83 |
+
$tdatachat_external[".closePopupAfterEdit"] = 1;
|
84 |
+
$tdatachat_external[".afterEditActionDetTable"] = "";
|
85 |
+
}
|
86 |
+
|
87 |
+
if( $pages[PAGE_ADD] ) {
|
88 |
+
$tdatachat_external[".add"] = true;
|
89 |
+
$tdatachat_external[".afterAddAction"] = 1;
|
90 |
+
$tdatachat_external[".closePopupAfterAdd"] = 1;
|
91 |
+
$tdatachat_external[".afterAddActionDetTable"] = "";
|
92 |
+
}
|
93 |
+
|
94 |
+
if( $pages[PAGE_LIST] ) {
|
95 |
+
$tdatachat_external[".list"] = true;
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
$tdatachat_external[".strSortControlSettingsJSON"] = "";
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
if( $pages[PAGE_VIEW] ) {
|
106 |
+
$tdatachat_external[".view"] = true;
|
107 |
+
}
|
108 |
+
|
109 |
+
if( $pages[PAGE_IMPORT] ) {
|
110 |
+
$tdatachat_external[".import"] = true;
|
111 |
+
}
|
112 |
+
|
113 |
+
if( $pages[PAGE_EXPORT] ) {
|
114 |
+
$tdatachat_external[".exportTo"] = true;
|
115 |
+
}
|
116 |
+
|
117 |
+
if( $pages[PAGE_PRINT] ) {
|
118 |
+
$tdatachat_external[".printFriendly"] = true;
|
119 |
+
}
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
$tdatachat_external[".showSimpleSearchOptions"] = true; // temp fix #13449
|
124 |
+
|
125 |
+
// Allow Show/Hide Fields in GRID
|
126 |
+
$tdatachat_external[".allowShowHideFields"] = true; // temp fix #13449
|
127 |
+
//
|
128 |
+
|
129 |
+
// Allow Fields Reordering in GRID
|
130 |
+
$tdatachat_external[".allowFieldsReordering"] = true; // temp fix #13449
|
131 |
+
//
|
132 |
+
|
133 |
+
$tdatachat_external[".isUseAjaxSuggest"] = true;
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
+
$tdatachat_external[".ajaxCodeSnippetAdded"] = false;
|
140 |
+
|
141 |
+
$tdatachat_external[".buttonsAdded"] = false;
|
142 |
+
|
143 |
+
$tdatachat_external[".addPageEvents"] = false;
|
144 |
+
|
145 |
+
// use timepicker for search panel
|
146 |
+
$tdatachat_external[".isUseTimeForSearch"] = false;
|
147 |
+
|
148 |
+
|
149 |
+
$tdatachat_external[".badgeColor"] = "CFAE83";
|
150 |
+
|
151 |
+
|
152 |
+
$tdatachat_external[".allSearchFields"] = array();
|
153 |
+
$tdatachat_external[".filterFields"] = array();
|
154 |
+
$tdatachat_external[".requiredSearchFields"] = array();
|
155 |
+
|
156 |
+
$tdatachat_external[".googleLikeFields"] = array();
|
157 |
+
$tdatachat_external[".googleLikeFields"][] = "id";
|
158 |
+
$tdatachat_external[".googleLikeFields"][] = "logs";
|
159 |
+
$tdatachat_external[".googleLikeFields"][] = "users";
|
160 |
+
$tdatachat_external[".googleLikeFields"][] = "report_count";
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
$tdatachat_external[".tableType"] = "list";
|
165 |
+
|
166 |
+
$tdatachat_external[".printerPageOrientation"] = 0;
|
167 |
+
$tdatachat_external[".nPrinterPageScale"] = 100;
|
168 |
+
|
169 |
+
$tdatachat_external[".nPrinterSplitRecords"] = 40;
|
170 |
+
|
171 |
+
$tdatachat_external[".geocodingEnabled"] = false;
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
|
182 |
+
$tdatachat_external[".pageSize"] = 20;
|
183 |
+
|
184 |
+
$tdatachat_external[".warnLeavingPages"] = true;
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
+
$tstrOrderBy = "";
|
189 |
+
$tdatachat_external[".strOrderBy"] = $tstrOrderBy;
|
190 |
+
|
191 |
+
$tdatachat_external[".orderindexes"] = array();
|
192 |
+
|
193 |
+
|
194 |
+
$tdatachat_external[".sqlHead"] = "SELECT id, logs, users, report_count";
|
195 |
+
$tdatachat_external[".sqlFrom"] = "FROM chat_external";
|
196 |
+
$tdatachat_external[".sqlWhereExpr"] = "";
|
197 |
+
$tdatachat_external[".sqlTail"] = "";
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
//fill array of records per page for list and report without group fields
|
209 |
+
$arrRPP = array();
|
210 |
+
$arrRPP[] = 10;
|
211 |
+
$arrRPP[] = 20;
|
212 |
+
$arrRPP[] = 30;
|
213 |
+
$arrRPP[] = 50;
|
214 |
+
$arrRPP[] = 100;
|
215 |
+
$arrRPP[] = 500;
|
216 |
+
$arrRPP[] = -1;
|
217 |
+
$tdatachat_external[".arrRecsPerPage"] = $arrRPP;
|
218 |
+
|
219 |
+
//fill array of groups per page for report with group fields
|
220 |
+
$arrGPP = array();
|
221 |
+
$arrGPP[] = 1;
|
222 |
+
$arrGPP[] = 3;
|
223 |
+
$arrGPP[] = 5;
|
224 |
+
$arrGPP[] = 10;
|
225 |
+
$arrGPP[] = 50;
|
226 |
+
$arrGPP[] = 100;
|
227 |
+
$arrGPP[] = -1;
|
228 |
+
$tdatachat_external[".arrGroupsPerPage"] = $arrGPP;
|
229 |
+
|
230 |
+
$tdatachat_external[".highlightSearchResults"] = true;
|
231 |
+
|
232 |
+
$tableKeyschat_external = array();
|
233 |
+
$tableKeyschat_external[] = "id";
|
234 |
+
$tdatachat_external[".Keys"] = $tableKeyschat_external;
|
235 |
+
|
236 |
+
|
237 |
+
$tdatachat_external[".hideMobileList"] = array();
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
+
|
242 |
+
// id
|
243 |
+
// Custom field settings
|
244 |
+
$fdata = array();
|
245 |
+
$fdata["Index"] = 1;
|
246 |
+
$fdata["strName"] = "id";
|
247 |
+
$fdata["GoodName"] = "id";
|
248 |
+
$fdata["ownerTable"] = "chat_external";
|
249 |
+
$fdata["Label"] = GetFieldLabel("chat_external","id");
|
250 |
+
$fdata["FieldType"] = 3;
|
251 |
+
|
252 |
+
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
+
|
257 |
+
$fdata["strField"] = "id";
|
258 |
+
|
259 |
+
$fdata["sourceSingle"] = "id";
|
260 |
+
|
261 |
+
|
262 |
+
$fdata["isSQLExpression"] = true;
|
263 |
+
$fdata["FullName"] = "id";
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
+
$fdata["UploadFolder"] = "files";
|
268 |
+
|
269 |
+
// Begin View Formats
|
270 |
+
$fdata["ViewFormats"] = array();
|
271 |
+
|
272 |
+
$vdata = array("ViewFormat" => "");
|
273 |
+
|
274 |
+
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
+
|
282 |
+
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
+
|
288 |
+
$vdata["NeedEncode"] = true;
|
289 |
+
|
290 |
+
|
291 |
+
$vdata["truncateText"] = true;
|
292 |
+
$vdata["NumberOfChars"] = 80;
|
293 |
+
|
294 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
295 |
+
// End View Formats
|
296 |
+
|
297 |
+
// Begin Edit Formats
|
298 |
+
$fdata["EditFormats"] = array();
|
299 |
+
|
300 |
+
$edata = array("EditFormat" => "Text field");
|
301 |
+
|
302 |
+
|
303 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
304 |
+
$edata["weekdays"] = "[]";
|
305 |
+
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
$edata["IsRequired"] = true;
|
313 |
+
|
314 |
+
|
315 |
+
|
316 |
+
|
317 |
+
$edata["acceptFileTypesHtml"] = "";
|
318 |
+
|
319 |
+
$edata["maxNumberOfFiles"] = 1;
|
320 |
+
|
321 |
+
|
322 |
+
|
323 |
+
|
324 |
+
|
325 |
+
$edata["HTML5InuptType"] = "text";
|
326 |
+
|
327 |
+
$edata["EditParams"] = "";
|
328 |
+
|
329 |
+
$edata["controlWidth"] = 200;
|
330 |
+
|
331 |
+
// Begin validation
|
332 |
+
$edata["validateAs"] = array();
|
333 |
+
$edata["validateAs"]["basicValidate"] = array();
|
334 |
+
$edata["validateAs"]["customMessages"] = array();
|
335 |
+
$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
|
336 |
+
$edata["validateAs"]["basicValidate"][] = "IsRequired";
|
337 |
+
|
338 |
+
|
339 |
+
// End validation
|
340 |
+
|
341 |
+
|
342 |
+
|
343 |
+
|
344 |
+
|
345 |
+
|
346 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
347 |
+
// End Edit Formats
|
348 |
+
|
349 |
+
|
350 |
+
$fdata["isSeparate"] = false;
|
351 |
+
|
352 |
+
|
353 |
+
|
354 |
+
|
355 |
+
// the field's search options settings
|
356 |
+
$fdata["defaultSearchOption"] = "Contains";
|
357 |
+
|
358 |
+
// the default search options list
|
359 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
360 |
+
// the end of search options settings
|
361 |
+
|
362 |
+
|
363 |
+
//Filters settings
|
364 |
+
$fdata["filterTotals"] = 0;
|
365 |
+
$fdata["filterMultiSelect"] = 0;
|
366 |
+
$fdata["filterFormat"] = "Values list";
|
367 |
+
$fdata["showCollapsed"] = false;
|
368 |
+
|
369 |
+
$fdata["sortValueType"] = 0;
|
370 |
+
$fdata["numberOfVisibleItems"] = 10;
|
371 |
+
|
372 |
+
$fdata["filterBy"] = 0;
|
373 |
+
|
374 |
+
|
375 |
+
|
376 |
+
|
377 |
+
|
378 |
+
//end of Filters settings
|
379 |
+
|
380 |
+
|
381 |
+
$tdatachat_external["id"] = $fdata;
|
382 |
+
$tdatachat_external[".searchableFields"][] = "id";
|
383 |
+
// logs
|
384 |
+
// Custom field settings
|
385 |
+
$fdata = array();
|
386 |
+
$fdata["Index"] = 2;
|
387 |
+
$fdata["strName"] = "logs";
|
388 |
+
$fdata["GoodName"] = "logs";
|
389 |
+
$fdata["ownerTable"] = "chat_external";
|
390 |
+
$fdata["Label"] = GetFieldLabel("chat_external","logs");
|
391 |
+
$fdata["FieldType"] = 201;
|
392 |
+
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
$fdata["strField"] = "logs";
|
399 |
+
|
400 |
+
$fdata["sourceSingle"] = "logs";
|
401 |
+
|
402 |
+
|
403 |
+
$fdata["isSQLExpression"] = true;
|
404 |
+
$fdata["FullName"] = "logs";
|
405 |
+
|
406 |
+
|
407 |
+
|
408 |
+
$fdata["UploadFolder"] = "files";
|
409 |
+
|
410 |
+
// Begin View Formats
|
411 |
+
$fdata["ViewFormats"] = array();
|
412 |
+
|
413 |
+
$vdata = array("ViewFormat" => "");
|
414 |
+
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
|
421 |
+
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
+
|
426 |
+
|
427 |
+
|
428 |
+
|
429 |
+
$vdata["NeedEncode"] = true;
|
430 |
+
|
431 |
+
|
432 |
+
$vdata["truncateText"] = true;
|
433 |
+
$vdata["NumberOfChars"] = 80;
|
434 |
+
|
435 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
436 |
+
// End View Formats
|
437 |
+
|
438 |
+
// Begin Edit Formats
|
439 |
+
$fdata["EditFormats"] = array();
|
440 |
+
|
441 |
+
$edata = array("EditFormat" => "Text area");
|
442 |
+
|
443 |
+
|
444 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
445 |
+
$edata["weekdays"] = "[]";
|
446 |
+
|
447 |
+
|
448 |
+
|
449 |
+
|
450 |
+
|
451 |
+
|
452 |
+
|
453 |
+
|
454 |
+
|
455 |
+
|
456 |
+
|
457 |
+
$edata["acceptFileTypesHtml"] = "";
|
458 |
+
|
459 |
+
$edata["maxNumberOfFiles"] = 0;
|
460 |
+
|
461 |
+
|
462 |
+
|
463 |
+
|
464 |
+
$edata["nRows"] = 100;
|
465 |
+
$edata["nCols"] = 200;
|
466 |
+
|
467 |
+
|
468 |
+
|
469 |
+
$edata["controlWidth"] = 200;
|
470 |
+
|
471 |
+
// Begin validation
|
472 |
+
$edata["validateAs"] = array();
|
473 |
+
$edata["validateAs"]["basicValidate"] = array();
|
474 |
+
$edata["validateAs"]["customMessages"] = array();
|
475 |
+
|
476 |
+
|
477 |
+
// End validation
|
478 |
+
|
479 |
+
$edata["CreateThumbnail"] = true;
|
480 |
+
$edata["StrThumbnail"] = "th";
|
481 |
+
$edata["ThumbnailSize"] = 600;
|
482 |
+
|
483 |
+
|
484 |
+
|
485 |
+
|
486 |
+
|
487 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
488 |
+
// End Edit Formats
|
489 |
+
|
490 |
+
|
491 |
+
$fdata["isSeparate"] = false;
|
492 |
+
|
493 |
+
|
494 |
+
|
495 |
+
|
496 |
+
// the field's search options settings
|
497 |
+
$fdata["defaultSearchOption"] = "Contains";
|
498 |
+
|
499 |
+
// the default search options list
|
500 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
501 |
+
// the end of search options settings
|
502 |
+
|
503 |
+
|
504 |
+
//Filters settings
|
505 |
+
$fdata["filterTotals"] = 0;
|
506 |
+
$fdata["filterMultiSelect"] = 0;
|
507 |
+
$fdata["filterFormat"] = "Values list";
|
508 |
+
$fdata["showCollapsed"] = false;
|
509 |
+
|
510 |
+
$fdata["sortValueType"] = 0;
|
511 |
+
$fdata["numberOfVisibleItems"] = 10;
|
512 |
+
|
513 |
+
$fdata["filterBy"] = 0;
|
514 |
+
|
515 |
+
|
516 |
+
|
517 |
+
|
518 |
+
|
519 |
+
//end of Filters settings
|
520 |
+
|
521 |
+
|
522 |
+
$tdatachat_external["logs"] = $fdata;
|
523 |
+
$tdatachat_external[".searchableFields"][] = "logs";
|
524 |
+
// users
|
525 |
+
// Custom field settings
|
526 |
+
$fdata = array();
|
527 |
+
$fdata["Index"] = 3;
|
528 |
+
$fdata["strName"] = "users";
|
529 |
+
$fdata["GoodName"] = "users";
|
530 |
+
$fdata["ownerTable"] = "chat_external";
|
531 |
+
$fdata["Label"] = GetFieldLabel("chat_external","users");
|
532 |
+
$fdata["FieldType"] = 200;
|
533 |
+
|
534 |
+
|
535 |
+
|
536 |
+
|
537 |
+
|
538 |
+
|
539 |
+
$fdata["strField"] = "users";
|
540 |
+
|
541 |
+
$fdata["sourceSingle"] = "users";
|
542 |
+
|
543 |
+
|
544 |
+
$fdata["isSQLExpression"] = true;
|
545 |
+
$fdata["FullName"] = "users";
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
$fdata["UploadFolder"] = "files";
|
550 |
+
|
551 |
+
// Begin View Formats
|
552 |
+
$fdata["ViewFormats"] = array();
|
553 |
+
|
554 |
+
$vdata = array("ViewFormat" => "");
|
555 |
+
|
556 |
+
|
557 |
+
|
558 |
+
|
559 |
+
|
560 |
+
|
561 |
+
|
562 |
+
|
563 |
+
|
564 |
+
|
565 |
+
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
$vdata["NeedEncode"] = true;
|
571 |
+
|
572 |
+
|
573 |
+
$vdata["truncateText"] = true;
|
574 |
+
$vdata["NumberOfChars"] = 80;
|
575 |
+
|
576 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
577 |
+
// End View Formats
|
578 |
+
|
579 |
+
// Begin Edit Formats
|
580 |
+
$fdata["EditFormats"] = array();
|
581 |
+
|
582 |
+
$edata = array("EditFormat" => "Text field");
|
583 |
+
|
584 |
+
|
585 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
586 |
+
$edata["weekdays"] = "[]";
|
587 |
+
|
588 |
+
|
589 |
+
|
590 |
+
|
591 |
+
|
592 |
+
|
593 |
+
|
594 |
+
|
595 |
+
|
596 |
+
|
597 |
+
|
598 |
+
$edata["acceptFileTypesHtml"] = "";
|
599 |
+
|
600 |
+
$edata["maxNumberOfFiles"] = 1;
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
|
605 |
+
|
606 |
+
$edata["HTML5InuptType"] = "text";
|
607 |
+
|
608 |
+
$edata["EditParams"] = "";
|
609 |
+
$edata["EditParams"].= " maxlength=50";
|
610 |
+
|
611 |
+
$edata["controlWidth"] = 200;
|
612 |
+
|
613 |
+
// Begin validation
|
614 |
+
$edata["validateAs"] = array();
|
615 |
+
$edata["validateAs"]["basicValidate"] = array();
|
616 |
+
$edata["validateAs"]["customMessages"] = array();
|
617 |
+
|
618 |
+
|
619 |
+
// End validation
|
620 |
+
|
621 |
+
|
622 |
+
|
623 |
+
|
624 |
+
|
625 |
+
|
626 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
627 |
+
// End Edit Formats
|
628 |
+
|
629 |
+
|
630 |
+
$fdata["isSeparate"] = false;
|
631 |
+
|
632 |
+
|
633 |
+
|
634 |
+
|
635 |
+
// the field's search options settings
|
636 |
+
$fdata["defaultSearchOption"] = "Contains";
|
637 |
+
|
638 |
+
// the default search options list
|
639 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
640 |
+
// the end of search options settings
|
641 |
+
|
642 |
+
|
643 |
+
//Filters settings
|
644 |
+
$fdata["filterTotals"] = 0;
|
645 |
+
$fdata["filterMultiSelect"] = 0;
|
646 |
+
$fdata["filterFormat"] = "Values list";
|
647 |
+
$fdata["showCollapsed"] = false;
|
648 |
+
|
649 |
+
$fdata["sortValueType"] = 0;
|
650 |
+
$fdata["numberOfVisibleItems"] = 10;
|
651 |
+
|
652 |
+
$fdata["filterBy"] = 0;
|
653 |
+
|
654 |
+
|
655 |
+
|
656 |
+
|
657 |
+
|
658 |
+
//end of Filters settings
|
659 |
+
|
660 |
+
|
661 |
+
$tdatachat_external["users"] = $fdata;
|
662 |
+
$tdatachat_external[".searchableFields"][] = "users";
|
663 |
+
// report_count
|
664 |
+
// Custom field settings
|
665 |
+
$fdata = array();
|
666 |
+
$fdata["Index"] = 4;
|
667 |
+
$fdata["strName"] = "report_count";
|
668 |
+
$fdata["GoodName"] = "report_count";
|
669 |
+
$fdata["ownerTable"] = "chat_external";
|
670 |
+
$fdata["Label"] = GetFieldLabel("chat_external","report_count");
|
671 |
+
$fdata["FieldType"] = 200;
|
672 |
+
|
673 |
+
|
674 |
+
|
675 |
+
|
676 |
+
|
677 |
+
|
678 |
+
$fdata["strField"] = "report_count";
|
679 |
+
|
680 |
+
$fdata["sourceSingle"] = "report_count";
|
681 |
+
|
682 |
+
|
683 |
+
$fdata["isSQLExpression"] = true;
|
684 |
+
$fdata["FullName"] = "report_count";
|
685 |
+
|
686 |
+
|
687 |
+
|
688 |
+
$fdata["UploadFolder"] = "files";
|
689 |
+
|
690 |
+
// Begin View Formats
|
691 |
+
$fdata["ViewFormats"] = array();
|
692 |
+
|
693 |
+
$vdata = array("ViewFormat" => "");
|
694 |
+
|
695 |
+
|
696 |
+
|
697 |
+
|
698 |
+
|
699 |
+
|
700 |
+
|
701 |
+
|
702 |
+
|
703 |
+
|
704 |
+
|
705 |
+
|
706 |
+
|
707 |
+
|
708 |
+
|
709 |
+
$vdata["NeedEncode"] = true;
|
710 |
+
|
711 |
+
|
712 |
+
$vdata["truncateText"] = true;
|
713 |
+
$vdata["NumberOfChars"] = 80;
|
714 |
+
|
715 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
716 |
+
// End View Formats
|
717 |
+
|
718 |
+
// Begin Edit Formats
|
719 |
+
$fdata["EditFormats"] = array();
|
720 |
+
|
721 |
+
$edata = array("EditFormat" => "Text field");
|
722 |
+
|
723 |
+
|
724 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
725 |
+
$edata["weekdays"] = "[]";
|
726 |
+
|
727 |
+
|
728 |
+
|
729 |
+
|
730 |
+
|
731 |
+
|
732 |
+
|
733 |
+
|
734 |
+
|
735 |
+
|
736 |
+
|
737 |
+
$edata["acceptFileTypesHtml"] = "";
|
738 |
+
|
739 |
+
$edata["maxNumberOfFiles"] = 1;
|
740 |
+
|
741 |
+
|
742 |
+
|
743 |
+
|
744 |
+
|
745 |
+
$edata["HTML5InuptType"] = "text";
|
746 |
+
|
747 |
+
$edata["EditParams"] = "";
|
748 |
+
$edata["EditParams"].= " maxlength=50";
|
749 |
+
|
750 |
+
$edata["controlWidth"] = 200;
|
751 |
+
|
752 |
+
// Begin validation
|
753 |
+
$edata["validateAs"] = array();
|
754 |
+
$edata["validateAs"]["basicValidate"] = array();
|
755 |
+
$edata["validateAs"]["customMessages"] = array();
|
756 |
+
|
757 |
+
|
758 |
+
// End validation
|
759 |
+
|
760 |
+
|
761 |
+
|
762 |
+
|
763 |
+
|
764 |
+
|
765 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
766 |
+
// End Edit Formats
|
767 |
+
|
768 |
+
|
769 |
+
$fdata["isSeparate"] = false;
|
770 |
+
|
771 |
+
|
772 |
+
|
773 |
+
|
774 |
+
// the field's search options settings
|
775 |
+
$fdata["defaultSearchOption"] = "Contains";
|
776 |
+
|
777 |
+
// the default search options list
|
778 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
779 |
+
// the end of search options settings
|
780 |
+
|
781 |
+
|
782 |
+
//Filters settings
|
783 |
+
$fdata["filterTotals"] = 0;
|
784 |
+
$fdata["filterMultiSelect"] = 0;
|
785 |
+
$fdata["filterFormat"] = "Values list";
|
786 |
+
$fdata["showCollapsed"] = false;
|
787 |
+
|
788 |
+
$fdata["sortValueType"] = 0;
|
789 |
+
$fdata["numberOfVisibleItems"] = 10;
|
790 |
+
|
791 |
+
$fdata["filterBy"] = 0;
|
792 |
+
|
793 |
+
|
794 |
+
|
795 |
+
|
796 |
+
|
797 |
+
//end of Filters settings
|
798 |
+
|
799 |
+
|
800 |
+
$tdatachat_external["report_count"] = $fdata;
|
801 |
+
$tdatachat_external[".searchableFields"][] = "report_count";
|
802 |
+
|
803 |
+
|
804 |
+
$tables_data["chat_external"]=&$tdatachat_external;
|
805 |
+
$field_labels["chat_external"] = &$fieldLabelschat_external;
|
806 |
+
$fieldToolTips["chat_external"] = &$fieldToolTipschat_external;
|
807 |
+
$placeHolders["chat_external"] = &$placeHolderschat_external;
|
808 |
+
$page_titles["chat_external"] = &$pageTitleschat_external;
|
809 |
+
|
810 |
+
|
811 |
+
changeTextControlsToDate( "chat_external" );
|
812 |
+
|
813 |
+
// -----------------start prepare master-details data arrays ------------------------------//
|
814 |
+
// tables which are detail tables for current table (master)
|
815 |
+
|
816 |
+
//if !@TABLE.bReportCrossTab
|
817 |
+
|
818 |
+
$detailsTablesData["chat_external"] = array();
|
819 |
+
//endif
|
820 |
+
|
821 |
+
// tables which are master tables for current table (detail)
|
822 |
+
$masterTablesData["chat_external"] = array();
|
823 |
+
|
824 |
+
|
825 |
+
|
826 |
+
// -----------------end prepare master-details data arrays ------------------------------//
|
827 |
+
|
828 |
+
|
829 |
+
|
830 |
+
require_once(getabspath("classes/sql.php"));
|
831 |
+
|
832 |
+
|
833 |
+
|
834 |
+
|
835 |
+
|
836 |
+
|
837 |
+
|
838 |
+
|
839 |
+
|
840 |
+
|
841 |
+
|
842 |
+
function createSqlQuery_chat_external()
|
843 |
+
{
|
844 |
+
$proto0=array();
|
845 |
+
$proto0["m_strHead"] = "SELECT";
|
846 |
+
$proto0["m_strFieldList"] = "id, logs, users, report_count";
|
847 |
+
$proto0["m_strFrom"] = "FROM chat_external";
|
848 |
+
$proto0["m_strWhere"] = "";
|
849 |
+
$proto0["m_strOrderBy"] = "";
|
850 |
+
|
851 |
+
;
|
852 |
+
$proto0["cipherer"] = null;
|
853 |
+
$proto2=array();
|
854 |
+
$proto2["m_sql"] = "";
|
855 |
+
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
|
856 |
+
$obj = new SQLNonParsed(array(
|
857 |
+
"m_sql" => ""
|
858 |
+
));
|
859 |
+
|
860 |
+
$proto2["m_column"]=$obj;
|
861 |
+
$proto2["m_contained"] = array();
|
862 |
+
$proto2["m_strCase"] = "";
|
863 |
+
$proto2["m_havingmode"] = false;
|
864 |
+
$proto2["m_inBrackets"] = false;
|
865 |
+
$proto2["m_useAlias"] = false;
|
866 |
+
$obj = new SQLLogicalExpr($proto2);
|
867 |
+
|
868 |
+
$proto0["m_where"] = $obj;
|
869 |
+
$proto4=array();
|
870 |
+
$proto4["m_sql"] = "";
|
871 |
+
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
|
872 |
+
$obj = new SQLNonParsed(array(
|
873 |
+
"m_sql" => ""
|
874 |
+
));
|
875 |
+
|
876 |
+
$proto4["m_column"]=$obj;
|
877 |
+
$proto4["m_contained"] = array();
|
878 |
+
$proto4["m_strCase"] = "";
|
879 |
+
$proto4["m_havingmode"] = false;
|
880 |
+
$proto4["m_inBrackets"] = false;
|
881 |
+
$proto4["m_useAlias"] = false;
|
882 |
+
$obj = new SQLLogicalExpr($proto4);
|
883 |
+
|
884 |
+
$proto0["m_having"] = $obj;
|
885 |
+
$proto0["m_fieldlist"] = array();
|
886 |
+
$proto6=array();
|
887 |
+
$obj = new SQLField(array(
|
888 |
+
"m_strName" => "id",
|
889 |
+
"m_strTable" => "chat_external",
|
890 |
+
"m_srcTableName" => "chat_external"
|
891 |
+
));
|
892 |
+
|
893 |
+
$proto6["m_sql"] = "id";
|
894 |
+
$proto6["m_srcTableName"] = "chat_external";
|
895 |
+
$proto6["m_expr"]=$obj;
|
896 |
+
$proto6["m_alias"] = "";
|
897 |
+
$obj = new SQLFieldListItem($proto6);
|
898 |
+
|
899 |
+
$proto0["m_fieldlist"][]=$obj;
|
900 |
+
$proto8=array();
|
901 |
+
$obj = new SQLField(array(
|
902 |
+
"m_strName" => "logs",
|
903 |
+
"m_strTable" => "chat_external",
|
904 |
+
"m_srcTableName" => "chat_external"
|
905 |
+
));
|
906 |
+
|
907 |
+
$proto8["m_sql"] = "logs";
|
908 |
+
$proto8["m_srcTableName"] = "chat_external";
|
909 |
+
$proto8["m_expr"]=$obj;
|
910 |
+
$proto8["m_alias"] = "";
|
911 |
+
$obj = new SQLFieldListItem($proto8);
|
912 |
+
|
913 |
+
$proto0["m_fieldlist"][]=$obj;
|
914 |
+
$proto10=array();
|
915 |
+
$obj = new SQLField(array(
|
916 |
+
"m_strName" => "users",
|
917 |
+
"m_strTable" => "chat_external",
|
918 |
+
"m_srcTableName" => "chat_external"
|
919 |
+
));
|
920 |
+
|
921 |
+
$proto10["m_sql"] = "users";
|
922 |
+
$proto10["m_srcTableName"] = "chat_external";
|
923 |
+
$proto10["m_expr"]=$obj;
|
924 |
+
$proto10["m_alias"] = "";
|
925 |
+
$obj = new SQLFieldListItem($proto10);
|
926 |
+
|
927 |
+
$proto0["m_fieldlist"][]=$obj;
|
928 |
+
$proto12=array();
|
929 |
+
$obj = new SQLField(array(
|
930 |
+
"m_strName" => "report_count",
|
931 |
+
"m_strTable" => "chat_external",
|
932 |
+
"m_srcTableName" => "chat_external"
|
933 |
+
));
|
934 |
+
|
935 |
+
$proto12["m_sql"] = "report_count";
|
936 |
+
$proto12["m_srcTableName"] = "chat_external";
|
937 |
+
$proto12["m_expr"]=$obj;
|
938 |
+
$proto12["m_alias"] = "";
|
939 |
+
$obj = new SQLFieldListItem($proto12);
|
940 |
+
|
941 |
+
$proto0["m_fieldlist"][]=$obj;
|
942 |
+
$proto0["m_fromlist"] = array();
|
943 |
+
$proto14=array();
|
944 |
+
$proto14["m_link"] = "SQLL_MAIN";
|
945 |
+
$proto15=array();
|
946 |
+
$proto15["m_strName"] = "chat_external";
|
947 |
+
$proto15["m_srcTableName"] = "chat_external";
|
948 |
+
$proto15["m_columns"] = array();
|
949 |
+
$proto15["m_columns"][] = "id";
|
950 |
+
$proto15["m_columns"][] = "logs";
|
951 |
+
$proto15["m_columns"][] = "users";
|
952 |
+
$proto15["m_columns"][] = "report_count";
|
953 |
+
$obj = new SQLTable($proto15);
|
954 |
+
|
955 |
+
$proto14["m_table"] = $obj;
|
956 |
+
$proto14["m_sql"] = "chat_external";
|
957 |
+
$proto14["m_alias"] = "";
|
958 |
+
$proto14["m_srcTableName"] = "chat_external";
|
959 |
+
$proto16=array();
|
960 |
+
$proto16["m_sql"] = "";
|
961 |
+
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
|
962 |
+
$obj = new SQLNonParsed(array(
|
963 |
+
"m_sql" => ""
|
964 |
+
));
|
965 |
+
|
966 |
+
$proto16["m_column"]=$obj;
|
967 |
+
$proto16["m_contained"] = array();
|
968 |
+
$proto16["m_strCase"] = "";
|
969 |
+
$proto16["m_havingmode"] = false;
|
970 |
+
$proto16["m_inBrackets"] = false;
|
971 |
+
$proto16["m_useAlias"] = false;
|
972 |
+
$obj = new SQLLogicalExpr($proto16);
|
973 |
+
|
974 |
+
$proto14["m_joinon"] = $obj;
|
975 |
+
$obj = new SQLFromListItem($proto14);
|
976 |
+
|
977 |
+
$proto0["m_fromlist"][]=$obj;
|
978 |
+
$proto0["m_groupby"] = array();
|
979 |
+
$proto0["m_orderby"] = array();
|
980 |
+
$proto0["m_srcTableName"]="chat_external";
|
981 |
+
$obj = new SQLQuery($proto0);
|
982 |
+
|
983 |
+
return $obj;
|
984 |
+
}
|
985 |
+
$queryData_chat_external = createSqlQuery_chat_external();
|
986 |
+
|
987 |
+
|
988 |
+
|
989 |
+
;
|
990 |
+
|
991 |
+
|
992 |
+
|
993 |
+
$tdatachat_external[".sqlquery"] = $queryData_chat_external;
|
994 |
+
|
995 |
+
|
996 |
+
|
997 |
+
$tdatachat_external[".hasEvents"] = false;
|
998 |
+
|
999 |
+
?>
|
php/include/chat_external_variables.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$strTableName="chat_external";
|
3 |
+
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
|
4 |
+
|
5 |
+
$strOriginalTableName="chat_external";
|
6 |
+
|
7 |
+
$gstrOrderBy="";
|
8 |
+
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
|
9 |
+
$gstrOrderBy="order by ".$gstrOrderBy;
|
10 |
+
|
11 |
+
$reportCaseSensitiveGroupFields = false;
|
12 |
+
|
13 |
+
?>
|
php/include/commonfunctions.php
CHANGED
@@ -219,6 +219,12 @@ function checkTableName($shortTName )
|
|
219 |
return true;
|
220 |
if ("chat126_users1" == $shortTName )
|
221 |
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
return false;
|
223 |
}
|
224 |
|
@@ -341,6 +347,33 @@ function GetTablesList($pdfMode = false)
|
|
341 |
if( $tableAvailable ) {
|
342 |
$arr[]="chat126_users1";
|
343 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
return $arr;
|
345 |
}
|
346 |
|
@@ -358,6 +391,9 @@ function GetTablesListWithoutSecurity()
|
|
358 |
$arr[]="chat_peopletype";
|
359 |
$arr[]="chat_timezone";
|
360 |
$arr[]="chat126_users1";
|
|
|
|
|
|
|
361 |
return $arr;
|
362 |
}
|
363 |
|
@@ -1048,6 +1084,33 @@ function GetUserPermissionsStatic( $table )
|
|
1048 |
{
|
1049 |
return "ADESPI".$extraPerm;
|
1050 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
// default permissions
|
1052 |
return "ADESPI".$extraPerm;
|
1053 |
}
|
|
|
219 |
return true;
|
220 |
if ("chat126_users1" == $shortTName )
|
221 |
return true;
|
222 |
+
if ("dashboard" == $shortTName )
|
223 |
+
return true;
|
224 |
+
if ("chat_external" == $shortTName )
|
225 |
+
return true;
|
226 |
+
if ("chat_agent" == $shortTName )
|
227 |
+
return true;
|
228 |
return false;
|
229 |
}
|
230 |
|
|
|
347 |
if( $tableAvailable ) {
|
348 |
$arr[]="chat126_users1";
|
349 |
}
|
350 |
+
$tableAvailable = true;
|
351 |
+
if( $checkPermissions ) {
|
352 |
+
$strPerm = GetUserPermissions("Dashboard");
|
353 |
+
$tableAvailable = ( strpos($strPerm, "P") !== false
|
354 |
+
|| $pdfMode && strpos($strPerm, "S") !== false );
|
355 |
+
}
|
356 |
+
if( $tableAvailable ) {
|
357 |
+
$arr[]="Dashboard";
|
358 |
+
}
|
359 |
+
$tableAvailable = true;
|
360 |
+
if( $checkPermissions ) {
|
361 |
+
$strPerm = GetUserPermissions("chat_external");
|
362 |
+
$tableAvailable = ( strpos($strPerm, "P") !== false
|
363 |
+
|| $pdfMode && strpos($strPerm, "S") !== false );
|
364 |
+
}
|
365 |
+
if( $tableAvailable ) {
|
366 |
+
$arr[]="chat_external";
|
367 |
+
}
|
368 |
+
$tableAvailable = true;
|
369 |
+
if( $checkPermissions ) {
|
370 |
+
$strPerm = GetUserPermissions("chat_agent");
|
371 |
+
$tableAvailable = ( strpos($strPerm, "P") !== false
|
372 |
+
|| $pdfMode && strpos($strPerm, "S") !== false );
|
373 |
+
}
|
374 |
+
if( $tableAvailable ) {
|
375 |
+
$arr[]="chat_agent";
|
376 |
+
}
|
377 |
return $arr;
|
378 |
}
|
379 |
|
|
|
391 |
$arr[]="chat_peopletype";
|
392 |
$arr[]="chat_timezone";
|
393 |
$arr[]="chat126_users1";
|
394 |
+
$arr[]="Dashboard";
|
395 |
+
$arr[]="chat_external";
|
396 |
+
$arr[]="chat_agent";
|
397 |
return $arr;
|
398 |
}
|
399 |
|
|
|
1084 |
{
|
1085 |
return "ADESPI".$extraPerm;
|
1086 |
}
|
1087 |
+
// default permissions
|
1088 |
+
return "ADESPI".$extraPerm;
|
1089 |
+
}
|
1090 |
+
if( $table=="Dashboard" )
|
1091 |
+
{
|
1092 |
+
if( $sUserGroup=="admin" )
|
1093 |
+
{
|
1094 |
+
return "S".$extraPerm;
|
1095 |
+
}
|
1096 |
+
// default permissions
|
1097 |
+
return "S".$extraPerm;
|
1098 |
+
}
|
1099 |
+
if( $table=="chat_external" )
|
1100 |
+
{
|
1101 |
+
if( $sUserGroup=="admin" )
|
1102 |
+
{
|
1103 |
+
return "ADESPI".$extraPerm;
|
1104 |
+
}
|
1105 |
+
// default permissions
|
1106 |
+
return "ADESPI".$extraPerm;
|
1107 |
+
}
|
1108 |
+
if( $table=="chat_agent" )
|
1109 |
+
{
|
1110 |
+
if( $sUserGroup=="admin" )
|
1111 |
+
{
|
1112 |
+
return "ADESPI".$extraPerm;
|
1113 |
+
}
|
1114 |
// default permissions
|
1115 |
return "ADESPI".$extraPerm;
|
1116 |
}
|
php/include/dal.php
CHANGED
@@ -48,6 +48,8 @@ function DBLookup($sql)
|
|
48 |
class tDAL
|
49 |
{
|
50 |
var $tblchats_at_localhost__chat126_users1;
|
|
|
|
|
51 |
var $tblchats_at_localhost__chat_files;
|
52 |
var $tblchats_at_localhost__chat_groups;
|
53 |
var $tblchats_at_localhost__chat_history;
|
@@ -63,6 +65,8 @@ class tDAL
|
|
63 |
if($this->lstTables)
|
64 |
return;
|
65 |
$this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
|
|
66 |
$this->lstTables[] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
67 |
$this->lstTables[] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
68 |
$this->lstTables[] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
48 |
class tDAL
|
49 |
{
|
50 |
var $tblchats_at_localhost__chat126_users1;
|
51 |
+
var $tblchats_at_localhost__chat_agent;
|
52 |
+
var $tblchats_at_localhost__chat_external;
|
53 |
var $tblchats_at_localhost__chat_files;
|
54 |
var $tblchats_at_localhost__chat_groups;
|
55 |
var $tblchats_at_localhost__chat_history;
|
|
|
65 |
if($this->lstTables)
|
66 |
return;
|
67 |
$this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
68 |
+
$this->lstTables[] = array("name" => "chat_agent", "varname" => "chats_at_localhost__chat_agent", "altvarname" => "chat_agent", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
69 |
+
$this->lstTables[] = array("name" => "chat_external", "varname" => "chats_at_localhost__chat_external", "altvarname" => "chat_external", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
70 |
$this->lstTables[] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
71 |
$this->lstTables[] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
72 |
$this->lstTables[] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
php/include/dal/chats_at_localhost__chat_agent.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTablechat_agent = array();
|
3 |
+
$dalTablechat_agent["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
|
4 |
+
$dalTablechat_agent["replay"] = array("type"=>200,"varname"=>"replay", "name" => "replay", "autoInc" => "0");
|
5 |
+
$dalTablechat_agent["replay_fix"] = array("type"=>200,"varname"=>"replay_fix", "name" => "replay_fix", "autoInc" => "0");
|
6 |
+
$dalTablechat_agent["replay_kwick"] = array("type"=>200,"varname"=>"replay_kwick", "name" => "replay_kwick", "autoInc" => "0");
|
7 |
+
$dalTablechat_agent["id"]["key"]=true;
|
8 |
+
|
9 |
+
$dal_info["chats_at_localhost__chat_agent"] = &$dalTablechat_agent;
|
10 |
+
?>
|
php/include/dal/chats_at_localhost__chat_external.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTablechat_external = array();
|
3 |
+
$dalTablechat_external["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "0");
|
4 |
+
$dalTablechat_external["logs"] = array("type"=>201,"varname"=>"logs", "name" => "logs", "autoInc" => "0");
|
5 |
+
$dalTablechat_external["users"] = array("type"=>200,"varname"=>"users", "name" => "users", "autoInc" => "0");
|
6 |
+
$dalTablechat_external["report_count"] = array("type"=>200,"varname"=>"report_count", "name" => "report_count", "autoInc" => "0");
|
7 |
+
$dalTablechat_external["id"]["key"]=true;
|
8 |
+
|
9 |
+
$dal_info["chats_at_localhost__chat_external"] = &$dalTablechat_external;
|
10 |
+
?>
|
php/include/dashboard_settings.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require_once(getabspath("classes/cipherer.php"));
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
$tdatadashboard = array();
|
7 |
+
$tdatadashboard[".ShortName"] = "dashboard";
|
8 |
+
|
9 |
+
$tdatadashboard[".pagesByType"] = my_json_decode( "{\"dashboard\":[\"dashboard\"]}" );
|
10 |
+
$tdatadashboard[".originalPagesByType"] = $tdatadashboard[".pagesByType"];
|
11 |
+
$tdatadashboard[".pages"] = types2pages( my_json_decode( "{\"dashboard\":[\"dashboard\"]}" ) );
|
12 |
+
$tdatadashboard[".originalPages"] = $tdatadashboard[".pages"];
|
13 |
+
$tdatadashboard[".defaultPages"] = my_json_decode( "{\"dashboard\":\"dashboard\"}" );
|
14 |
+
$tdatadashboard[".originalDefaultPages"] = $tdatadashboard[".defaultPages"];
|
15 |
+
|
16 |
+
|
17 |
+
// field labels
|
18 |
+
$fieldLabelsdashboard = array();
|
19 |
+
$pageTitlesdashboard = array();
|
20 |
+
|
21 |
+
if(mlang_getcurrentlang()=="English")
|
22 |
+
{
|
23 |
+
$fieldLabelsdashboard["English"] = array();
|
24 |
+
}
|
25 |
+
|
26 |
+
/*
|
27 |
+
// search fields
|
28 |
+
$tdatadashboard[".searchFields"] = array();
|
29 |
+
|
30 |
+
// all search fields
|
31 |
+
$tdatadashboard[".allSearchFields"] = array();
|
32 |
+
|
33 |
+
// good like search fields
|
34 |
+
$tdatadashboard[".googleLikeFields"] = array();
|
35 |
+
*/
|
36 |
+
|
37 |
+
/*
|
38 |
+
$tdatadashboard[".dashElements"] = array();
|
39 |
+
|
40 |
+
*/
|
41 |
+
$tdatadashboard[".shortTableName"] = "dashboard";
|
42 |
+
$tdatadashboard[".entityType"] = 4;
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
$tdatadashboard[".hasEvents"] = false;
|
48 |
+
|
49 |
+
|
50 |
+
$tdatadashboard[".tableType"] = "dashboard";
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
$tdatadashboard[".addPageEvents"] = false;
|
55 |
+
|
56 |
+
$tdatadashboard[".isUseAjaxSuggest"] = true;
|
57 |
+
|
58 |
+
$tables_data["Dashboard"]=&$tdatadashboard;
|
59 |
+
$field_labels["Dashboard"] = &$fieldLabelsdashboard;
|
60 |
+
$page_titles["Dashboard"] = &$pageTitlesdashboard;
|
61 |
+
|
62 |
+
?>
|
php/include/dashboard_variables.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$strTableName="Dashboard";
|
3 |
+
|
4 |
+
|
5 |
+
// alias for 'SQLQuery' object
|
6 |
+
$gSettings = new ProjectSettings("Dashboard");
|
7 |
+
|
8 |
+
?>
|
php/include/events.php
CHANGED
@@ -26,7 +26,6 @@ class class_GlobalEvents extends eventsBase
|
|
26 |
$this->events["ModifyMenuItem"]=true;
|
27 |
|
28 |
|
29 |
-
|
30 |
// onscreen events
|
31 |
$this->events["chats_history"] = true;
|
32 |
$this->events["chat_users"] = true;
|
@@ -116,36 +115,6 @@ return true;
|
|
116 |
|
117 |
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
// onscreen events
|
150 |
function event_chats_history(&$params)
|
151 |
{
|
|
|
26 |
$this->events["ModifyMenuItem"]=true;
|
27 |
|
28 |
|
|
|
29 |
// onscreen events
|
30 |
$this->events["chats_history"] = true;
|
31 |
$this->events["chat_users"] = true;
|
|
|
115 |
|
116 |
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
// onscreen events
|
119 |
function event_chats_history(&$params)
|
120 |
{
|
php/include/menunodes_main.php
CHANGED
@@ -3,6 +3,32 @@
|
|
3 |
// create menu nodes arr
|
4 |
$menuNodes = array();
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
$menuNode = array();
|
7 |
$menuNode["id"] = "1";
|
8 |
$menuNode["name"] = "Chat";
|
@@ -54,6 +80,58 @@
|
|
54 |
|
55 |
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
$menuNodes[] = $menuNode;
|
58 |
$menuNodesCache[ "main" ] = $menuNodes;
|
59 |
?>
|
|
|
3 |
// create menu nodes arr
|
4 |
$menuNodes = array();
|
5 |
|
6 |
+
$menuNode = array();
|
7 |
+
$menuNode["id"] = "3";
|
8 |
+
$menuNode["name"] = "";
|
9 |
+
$menuNode["href"] = "mypage.htm";
|
10 |
+
$menuNode["type"] = "Leaf";
|
11 |
+
$menuNode["table"] = "Dashboard";
|
12 |
+
$menuNode["style"] = "";
|
13 |
+
$menuNode["params"] = "";
|
14 |
+
$menuNode["parent"] = "0";
|
15 |
+
$menuNode["nameType"] = "Text";
|
16 |
+
$menuNode["linkType"] = "Internal";
|
17 |
+
$menuNode["pageType"] = strtolower("Dashboard");//
|
18 |
+
$menuNode["pageId"] = "";
|
19 |
+
$menuNode["openType"] = "None";
|
20 |
+
|
21 |
+
$menuNode["icon"] = "glyphicon-leaf";
|
22 |
+
$menuNode["iconType"] = "2";
|
23 |
+
$menuNode["iconShow"] = "2";
|
24 |
+
|
25 |
+
$menuNode["color"] = "";
|
26 |
+
|
27 |
+
$menuNode["title"] = "Dashboard";
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
$menuNodes[] = $menuNode;
|
32 |
$menuNode = array();
|
33 |
$menuNode["id"] = "1";
|
34 |
$menuNode["name"] = "Chat";
|
|
|
80 |
|
81 |
|
82 |
|
83 |
+
$menuNodes[] = $menuNode;
|
84 |
+
$menuNode = array();
|
85 |
+
$menuNode["id"] = "4";
|
86 |
+
$menuNode["name"] = "";
|
87 |
+
$menuNode["href"] = "mypage.htm";
|
88 |
+
$menuNode["type"] = "Leaf";
|
89 |
+
$menuNode["table"] = "chat_external";
|
90 |
+
$menuNode["style"] = "";
|
91 |
+
$menuNode["params"] = "";
|
92 |
+
$menuNode["parent"] = "0";
|
93 |
+
$menuNode["nameType"] = "Text";
|
94 |
+
$menuNode["linkType"] = "Internal";
|
95 |
+
$menuNode["pageType"] = strtolower("List");//
|
96 |
+
$menuNode["pageId"] = "";
|
97 |
+
$menuNode["openType"] = "None";
|
98 |
+
|
99 |
+
$menuNode["icon"] = "glyphicon-briefcase";
|
100 |
+
$menuNode["iconType"] = "2";
|
101 |
+
$menuNode["iconShow"] = "2";
|
102 |
+
|
103 |
+
$menuNode["color"] = "";
|
104 |
+
|
105 |
+
$menuNode["title"] = "Chat External";
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
+
$menuNodes[] = $menuNode;
|
110 |
+
$menuNode = array();
|
111 |
+
$menuNode["id"] = "5";
|
112 |
+
$menuNode["name"] = "";
|
113 |
+
$menuNode["href"] = "mypage.htm";
|
114 |
+
$menuNode["type"] = "Leaf";
|
115 |
+
$menuNode["table"] = "chat_agent";
|
116 |
+
$menuNode["style"] = "";
|
117 |
+
$menuNode["params"] = "";
|
118 |
+
$menuNode["parent"] = "0";
|
119 |
+
$menuNode["nameType"] = "Text";
|
120 |
+
$menuNode["linkType"] = "Internal";
|
121 |
+
$menuNode["pageType"] = strtolower("List");//
|
122 |
+
$menuNode["pageId"] = "";
|
123 |
+
$menuNode["openType"] = "None";
|
124 |
+
|
125 |
+
$menuNode["icon"] = "glyphicon-hand-right";
|
126 |
+
$menuNode["iconType"] = "2";
|
127 |
+
$menuNode["iconShow"] = "2";
|
128 |
+
|
129 |
+
$menuNode["color"] = "";
|
130 |
+
|
131 |
+
$menuNode["title"] = "Chat Agent";
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
$menuNodes[] = $menuNode;
|
136 |
$menuNodesCache[ "main" ] = $menuNodes;
|
137 |
?>
|
php/include/pages/_global_menu_Chat1.php
CHANGED
@@ -10,7 +10,25 @@
|
|
10 |
'linkType' => 0,
|
11 |
'items' => null,
|
12 |
'table' => 'chat_history',
|
13 |
-
'page' => 'add' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
'fields' => array( 'gridFields' => array( ),
|
15 |
'searchRequiredFields' => array( ),
|
16 |
'searchPanelFields' => array( ),
|
@@ -21,14 +39,20 @@
|
|
21 |
'list_options',
|
22 |
'loginform_login',
|
23 |
'username_button' ),
|
24 |
-
'grid' => array( 'welcome_item'
|
|
|
|
|
|
|
25 |
'formXtTags' => array( 'above-grid' => array( ) ),
|
26 |
'itemForms' => array( 'logo' => 'supertop',
|
27 |
'menu' => 'supertop',
|
28 |
'list_options' => 'supertop',
|
29 |
'loginform_login' => 'supertop',
|
30 |
'username_button' => 'supertop',
|
31 |
-
'welcome_item' => 'grid'
|
|
|
|
|
|
|
32 |
'itemLocations' => array( ),
|
33 |
'itemVisiblity' => array( 'menu' => 3,
|
34 |
'list_options' => 3,
|
@@ -36,7 +60,10 @@
|
|
36 |
'loginform_login' => 3 ) ),
|
37 |
'itemsByType' => array( 'logo' => array( 'logo' ),
|
38 |
'menu' => array( 'menu' ),
|
39 |
-
'welcome_item' => array( 'welcome_item'
|
|
|
|
|
|
|
40 |
'list_options' => array( 'list_options' ),
|
41 |
'username_button' => array( 'username_button' ),
|
42 |
'loginform_login' => array( 'loginform_login' ),
|
@@ -87,7 +114,10 @@ array( 'cell' => 'c2' ) ),
|
|
87 |
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
88 |
'section' => '' ) ),
|
89 |
'cells' => array( 'c1' => array( 'model' => 'c1',
|
90 |
-
'items' => array( 'welcome_item'
|
|
|
|
|
|
|
91 |
'deferredItems' => array( ),
|
92 |
'recsPerRow' => 1 ) ),
|
93 |
'items' => array( 'logo' => array( 'type' => 'logo' ),
|
@@ -111,7 +141,40 @@ array( 'cell' => 'c2' ) ),
|
|
111 |
'loginform_login' => array( 'type' => 'loginform_login',
|
112 |
'popup' => false ),
|
113 |
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
114 |
-
'logout_link' => array( 'type' => 'logout_link' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
'dbProps' => array( ),
|
116 |
'version' => 14,
|
117 |
'businessTemplate' => 'Chat',
|
|
|
10 |
'linkType' => 0,
|
11 |
'items' => null,
|
12 |
'table' => 'chat_history',
|
13 |
+
'page' => 'add' ),
|
14 |
+
'welcome_item1' => array( 'menutItem' => true,
|
15 |
+
'group' => false,
|
16 |
+
'linkType' => 0,
|
17 |
+
'items' => null,
|
18 |
+
'table' => 'Dashboard',
|
19 |
+
'page' => 'dashboard' ),
|
20 |
+
'welcome_item2' => array( 'menutItem' => true,
|
21 |
+
'group' => false,
|
22 |
+
'linkType' => 0,
|
23 |
+
'items' => null,
|
24 |
+
'table' => 'chat_external',
|
25 |
+
'page' => 'list' ),
|
26 |
+
'welcome_item3' => array( 'menutItem' => true,
|
27 |
+
'group' => false,
|
28 |
+
'linkType' => 0,
|
29 |
+
'items' => null,
|
30 |
+
'table' => 'chat_agent',
|
31 |
+
'page' => 'list' ) ) ),
|
32 |
'fields' => array( 'gridFields' => array( ),
|
33 |
'searchRequiredFields' => array( ),
|
34 |
'searchPanelFields' => array( ),
|
|
|
39 |
'list_options',
|
40 |
'loginform_login',
|
41 |
'username_button' ),
|
42 |
+
'grid' => array( 'welcome_item',
|
43 |
+
'welcome_item1',
|
44 |
+
'welcome_item2',
|
45 |
+
'welcome_item3' ) ),
|
46 |
'formXtTags' => array( 'above-grid' => array( ) ),
|
47 |
'itemForms' => array( 'logo' => 'supertop',
|
48 |
'menu' => 'supertop',
|
49 |
'list_options' => 'supertop',
|
50 |
'loginform_login' => 'supertop',
|
51 |
'username_button' => 'supertop',
|
52 |
+
'welcome_item' => 'grid',
|
53 |
+
'welcome_item1' => 'grid',
|
54 |
+
'welcome_item2' => 'grid',
|
55 |
+
'welcome_item3' => 'grid' ),
|
56 |
'itemLocations' => array( ),
|
57 |
'itemVisiblity' => array( 'menu' => 3,
|
58 |
'list_options' => 3,
|
|
|
60 |
'loginform_login' => 3 ) ),
|
61 |
'itemsByType' => array( 'logo' => array( 'logo' ),
|
62 |
'menu' => array( 'menu' ),
|
63 |
+
'welcome_item' => array( 'welcome_item',
|
64 |
+
'welcome_item1',
|
65 |
+
'welcome_item2',
|
66 |
+
'welcome_item3' ),
|
67 |
'list_options' => array( 'list_options' ),
|
68 |
'username_button' => array( 'username_button' ),
|
69 |
'loginform_login' => array( 'loginform_login' ),
|
|
|
114 |
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
115 |
'section' => '' ) ),
|
116 |
'cells' => array( 'c1' => array( 'model' => 'c1',
|
117 |
+
'items' => array( 'welcome_item',
|
118 |
+
'welcome_item1',
|
119 |
+
'welcome_item2',
|
120 |
+
'welcome_item3' ) ) ),
|
121 |
'deferredItems' => array( ),
|
122 |
'recsPerRow' => 1 ) ),
|
123 |
'items' => array( 'logo' => array( 'type' => 'logo' ),
|
|
|
141 |
'loginform_login' => array( 'type' => 'loginform_login',
|
142 |
'popup' => false ),
|
143 |
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
144 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
145 |
+
'welcome_item1' => array( 'type' => 'welcome_item',
|
146 |
+
'linkUrl' => '',
|
147 |
+
'linkTable' => 'Dashboard',
|
148 |
+
'linkPage' => 'dashboard',
|
149 |
+
'linkText' => array( 'table' => 'Dashboard',
|
150 |
+
'type' => 6 ),
|
151 |
+
'linkIcon' => array( 'glyph' => 'leaf' ),
|
152 |
+
'linkComments' => array( 'text' => 'Dashboard description',
|
153 |
+
'type' => 0 ),
|
154 |
+
'background' => '#DAA520',
|
155 |
+
'linkType' => 0 ),
|
156 |
+
'welcome_item2' => array( 'type' => 'welcome_item',
|
157 |
+
'linkUrl' => '',
|
158 |
+
'linkTable' => 'chat_external',
|
159 |
+
'linkPage' => 'list',
|
160 |
+
'linkText' => array( 'table' => 'chat_external',
|
161 |
+
'type' => 6 ),
|
162 |
+
'linkIcon' => array( 'glyph' => 'briefcase' ),
|
163 |
+
'linkComments' => array( 'text' => 'Chat External description',
|
164 |
+
'type' => 0 ),
|
165 |
+
'background' => '#CFAE83',
|
166 |
+
'linkType' => 0 ),
|
167 |
+
'welcome_item3' => array( 'type' => 'welcome_item',
|
168 |
+
'linkUrl' => '',
|
169 |
+
'linkTable' => 'chat_agent',
|
170 |
+
'linkPage' => 'list',
|
171 |
+
'linkText' => array( 'table' => 'chat_agent',
|
172 |
+
'type' => 6 ),
|
173 |
+
'linkIcon' => array( 'glyph' => 'hand-right' ),
|
174 |
+
'linkComments' => array( 'text' => 'Chat Agent description',
|
175 |
+
'type' => 0 ),
|
176 |
+
'background' => '#778899',
|
177 |
+
'linkType' => 0 ) ),
|
178 |
'dbProps' => array( ),
|
179 |
'version' => 14,
|
180 |
'businessTemplate' => 'Chat',
|
php/include/pages/chat_agent_add.php
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'replay',
|
4 |
+
'replay_fix',
|
5 |
+
'replay_kwick' ),
|
6 |
+
'searchRequiredFields' => array( ),
|
7 |
+
'searchPanelFields' => array( ),
|
8 |
+
'fieldItems' => array( 'replay' => array( 'integrated_edit_field' ),
|
9 |
+
'replay_fix' => array( 'integrated_edit_field1' ),
|
10 |
+
'replay_kwick' => array( 'integrated_edit_field2' ) ) ),
|
11 |
+
'pageLinks' => array( 'edit' => false,
|
12 |
+
'add' => false,
|
13 |
+
'view' => false,
|
14 |
+
'print' => false ),
|
15 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add_message' ),
|
16 |
+
'below-grid' => array( 'add_save',
|
17 |
+
'add_reset',
|
18 |
+
'add_back_list',
|
19 |
+
'add_cancel' ),
|
20 |
+
'supertop' => array( 'expand_menu_button',
|
21 |
+
'collapse_button',
|
22 |
+
'loginform_login',
|
23 |
+
'username_button' ),
|
24 |
+
'left' => array( 'logo',
|
25 |
+
'expand_button',
|
26 |
+
'menu' ),
|
27 |
+
'top' => array( 'add_header' ),
|
28 |
+
'grid' => array( 'integrated_edit_field',
|
29 |
+
'integrated_edit_field1',
|
30 |
+
'integrated_edit_field2' ) ),
|
31 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
32 |
+
'itemForms' => array( 'add_message' => 'above-grid',
|
33 |
+
'add_save' => 'below-grid',
|
34 |
+
'add_reset' => 'below-grid',
|
35 |
+
'add_back_list' => 'below-grid',
|
36 |
+
'add_cancel' => 'below-grid',
|
37 |
+
'expand_menu_button' => 'supertop',
|
38 |
+
'collapse_button' => 'supertop',
|
39 |
+
'loginform_login' => 'supertop',
|
40 |
+
'username_button' => 'supertop',
|
41 |
+
'logo' => 'left',
|
42 |
+
'expand_button' => 'left',
|
43 |
+
'menu' => 'left',
|
44 |
+
'add_header' => 'top',
|
45 |
+
'integrated_edit_field' => 'grid',
|
46 |
+
'integrated_edit_field1' => 'grid',
|
47 |
+
'integrated_edit_field2' => 'grid' ),
|
48 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
49 |
+
'cellId' => 'c3' ),
|
50 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
51 |
+
'cellId' => 'c3' ),
|
52 |
+
'integrated_edit_field2' => array( 'location' => 'grid',
|
53 |
+
'cellId' => 'c3' ) ),
|
54 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
55 |
+
'expand_button' => 5 ) ),
|
56 |
+
'itemsByType' => array( 'add_header' => array( 'add_header' ),
|
57 |
+
'add_back_list' => array( 'add_back_list' ),
|
58 |
+
'add_cancel' => array( 'add_cancel' ),
|
59 |
+
'add_message' => array( 'add_message' ),
|
60 |
+
'add_save' => array( 'add_save' ),
|
61 |
+
'add_reset' => array( 'add_reset' ),
|
62 |
+
'logo' => array( 'logo' ),
|
63 |
+
'menu' => array( 'menu' ),
|
64 |
+
'username_button' => array( 'username_button' ),
|
65 |
+
'loginform_login' => array( 'loginform_login' ),
|
66 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
67 |
+
'logout_link' => array( 'logout_link' ),
|
68 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
69 |
+
'collapse_button' => array( 'collapse_button' ),
|
70 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
71 |
+
'integrated_edit_field1',
|
72 |
+
'integrated_edit_field2' ),
|
73 |
+
'expand_button' => array( 'expand_button' ) ),
|
74 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
75 |
+
'rows' => array( 0 ),
|
76 |
+
'tags' => array( ),
|
77 |
+
'items' => array( 'integrated_edit_field',
|
78 |
+
'integrated_edit_field1',
|
79 |
+
'integrated_edit_field2' ),
|
80 |
+
'fixedAtServer' => true,
|
81 |
+
'fixedAtClient' => false ) ),
|
82 |
+
'width' => 1,
|
83 |
+
'height' => 1 ) ) ),
|
84 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
85 |
+
'page' => array( 'verticalBar' => true,
|
86 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
87 |
+
'print_pages' => array( ),
|
88 |
+
'register_activate_message' => array( ),
|
89 |
+
'details_found' => array( ) ),
|
90 |
+
'hasCustomButtons' => false,
|
91 |
+
'customButtons' => array( ),
|
92 |
+
'hasNotifications' => false,
|
93 |
+
'menus' => array( array( 'id' => 'main',
|
94 |
+
'horizontal' => false ) ),
|
95 |
+
'calcTotalsFor' => 1 ),
|
96 |
+
'misc' => array( 'type' => 'add',
|
97 |
+
'breadcrumb' => false ),
|
98 |
+
'events' => array( 'maps' => array( ),
|
99 |
+
'mapsData' => array( ),
|
100 |
+
'buttons' => array( ) ) );
|
101 |
+
$pageArray = array( 'id' => 'add',
|
102 |
+
'type' => 'add',
|
103 |
+
'layoutId' => 'leftbar',
|
104 |
+
'disabled' => 0,
|
105 |
+
'default' => 0,
|
106 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'add-above-grid',
|
107 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
108 |
+
'section' => '' ) ),
|
109 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
110 |
+
'items' => array( 'add_message' ) ) ),
|
111 |
+
'deferredItems' => array( ),
|
112 |
+
'recsPerRow' => 1 ),
|
113 |
+
'below-grid' => array( 'modelId' => 'add-below-grid',
|
114 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
115 |
+
'section' => '' ) ),
|
116 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
117 |
+
'items' => array( 'add_save',
|
118 |
+
'add_reset',
|
119 |
+
'add_back_list',
|
120 |
+
'add_cancel' ) ) ),
|
121 |
+
'deferredItems' => array( ),
|
122 |
+
'recsPerRow' => 1 ),
|
123 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
124 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
125 |
+
array( 'cell' => 'c2' ) ),
|
126 |
+
'section' => '' ) ),
|
127 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
128 |
+
'items' => array( 'expand_menu_button',
|
129 |
+
'collapse_button' ) ),
|
130 |
+
'c2' => array( 'model' => 'c2',
|
131 |
+
'items' => array( 'loginform_login',
|
132 |
+
'username_button' ) ) ),
|
133 |
+
'deferredItems' => array( ),
|
134 |
+
'recsPerRow' => 1 ),
|
135 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
136 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
137 |
+
'section' => '' ),
|
138 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
139 |
+
'section' => '' ) ),
|
140 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
141 |
+
'items' => array( 'logo',
|
142 |
+
'expand_button' ) ),
|
143 |
+
'c1' => array( 'model' => 'c1',
|
144 |
+
'items' => array( 'menu' ) ) ),
|
145 |
+
'deferredItems' => array( ),
|
146 |
+
'recsPerRow' => 1 ),
|
147 |
+
'top' => array( 'modelId' => 'add-header',
|
148 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
149 |
+
'section' => '' ) ),
|
150 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
151 |
+
'items' => array( 'add_header' ) ) ),
|
152 |
+
'deferredItems' => array( ),
|
153 |
+
'recsPerRow' => 1 ),
|
154 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
155 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
156 |
+
'section' => '' ) ),
|
157 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
158 |
+
'items' => array( 'integrated_edit_field',
|
159 |
+
'integrated_edit_field1',
|
160 |
+
'integrated_edit_field2' ) ) ),
|
161 |
+
'deferredItems' => array( ),
|
162 |
+
'columnCount' => 1,
|
163 |
+
'inlineLabels' => false,
|
164 |
+
'separateLabels' => false ) ),
|
165 |
+
'items' => array( 'add_header' => array( 'type' => 'add_header' ),
|
166 |
+
'add_back_list' => array( 'type' => 'add_back_list' ),
|
167 |
+
'add_cancel' => array( 'type' => 'add_cancel' ),
|
168 |
+
'add_message' => array( 'type' => 'add_message' ),
|
169 |
+
'add_save' => array( 'type' => 'add_save' ),
|
170 |
+
'add_reset' => array( 'type' => 'add_reset' ),
|
171 |
+
'logo' => array( 'type' => 'logo' ),
|
172 |
+
'menu' => array( 'type' => 'menu' ),
|
173 |
+
'username_button' => array( 'type' => 'username_button',
|
174 |
+
'items' => array( 'userinfo_link',
|
175 |
+
'logout_link' ) ),
|
176 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
177 |
+
'popup' => false ),
|
178 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
179 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
180 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
181 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
182 |
+
'integrated_edit_field' => array( 'field' => 'replay',
|
183 |
+
'type' => 'integrated_edit_field',
|
184 |
+
'orientation' => 0 ),
|
185 |
+
'integrated_edit_field1' => array( 'field' => 'replay_fix',
|
186 |
+
'type' => 'integrated_edit_field',
|
187 |
+
'orientation' => 0 ),
|
188 |
+
'integrated_edit_field2' => array( 'field' => 'replay_kwick',
|
189 |
+
'type' => 'integrated_edit_field',
|
190 |
+
'orientation' => 0 ),
|
191 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
192 |
+
'dbProps' => array( ),
|
193 |
+
'version' => 14,
|
194 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
195 |
+
'imageBgColor' => '#f2f2f2',
|
196 |
+
'controlsBgColor' => 'white',
|
197 |
+
'imagePosition' => 'right',
|
198 |
+
'listTotals' => 1 );
|
199 |
+
?>
|
php/include/pages/chat_agent_edit.php
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'replay',
|
4 |
+
'replay_fix',
|
5 |
+
'replay_kwick' ),
|
6 |
+
'searchRequiredFields' => array( ),
|
7 |
+
'searchPanelFields' => array( ),
|
8 |
+
'updateOnEditFields' => array( ),
|
9 |
+
'fieldItems' => array( 'replay' => array( 'integrated_edit_field' ),
|
10 |
+
'replay_fix' => array( 'integrated_edit_field1' ),
|
11 |
+
'replay_kwick' => array( 'integrated_edit_field2' ) ) ),
|
12 |
+
'pageLinks' => array( 'edit' => false,
|
13 |
+
'add' => false,
|
14 |
+
'view' => true,
|
15 |
+
'print' => false ),
|
16 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'edit_message' ),
|
17 |
+
'below-grid' => array( 'edit_save',
|
18 |
+
'edit_back_list',
|
19 |
+
'edit_close',
|
20 |
+
'hamburger' ),
|
21 |
+
'supertop' => array( 'expand_menu_button',
|
22 |
+
'collapse_button',
|
23 |
+
'loginform_login',
|
24 |
+
'username_button' ),
|
25 |
+
'left' => array( 'logo',
|
26 |
+
'expand_button',
|
27 |
+
'menu' ),
|
28 |
+
'top' => array( 'edit_header' ),
|
29 |
+
'grid' => array( 'integrated_edit_field',
|
30 |
+
'integrated_edit_field1',
|
31 |
+
'integrated_edit_field2' ) ),
|
32 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
33 |
+
'itemForms' => array( 'edit_message' => 'above-grid',
|
34 |
+
'edit_save' => 'below-grid',
|
35 |
+
'edit_back_list' => 'below-grid',
|
36 |
+
'edit_close' => 'below-grid',
|
37 |
+
'hamburger' => 'below-grid',
|
38 |
+
'expand_menu_button' => 'supertop',
|
39 |
+
'collapse_button' => 'supertop',
|
40 |
+
'loginform_login' => 'supertop',
|
41 |
+
'username_button' => 'supertop',
|
42 |
+
'logo' => 'left',
|
43 |
+
'expand_button' => 'left',
|
44 |
+
'menu' => 'left',
|
45 |
+
'edit_header' => 'top',
|
46 |
+
'integrated_edit_field' => 'grid',
|
47 |
+
'integrated_edit_field1' => 'grid',
|
48 |
+
'integrated_edit_field2' => 'grid' ),
|
49 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
50 |
+
'cellId' => 'c3' ),
|
51 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
52 |
+
'cellId' => 'c3' ),
|
53 |
+
'integrated_edit_field2' => array( 'location' => 'grid',
|
54 |
+
'cellId' => 'c3' ) ),
|
55 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
56 |
+
'expand_button' => 5 ) ),
|
57 |
+
'itemsByType' => array( 'edit_header' => array( 'edit_header' ),
|
58 |
+
'hamburger' => array( 'hamburger' ),
|
59 |
+
'edit_reset' => array( 'edit_reset' ),
|
60 |
+
'edit_message' => array( 'edit_message' ),
|
61 |
+
'edit_save' => array( 'edit_save' ),
|
62 |
+
'edit_back_list' => array( 'edit_back_list' ),
|
63 |
+
'edit_close' => array( 'edit_close' ),
|
64 |
+
'logo' => array( 'logo' ),
|
65 |
+
'menu' => array( 'menu' ),
|
66 |
+
'username_button' => array( 'username_button' ),
|
67 |
+
'loginform_login' => array( 'loginform_login' ),
|
68 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
69 |
+
'logout_link' => array( 'logout_link' ),
|
70 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
71 |
+
'collapse_button' => array( 'collapse_button' ),
|
72 |
+
'edit_view' => array( 'edit_view' ),
|
73 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
74 |
+
'integrated_edit_field1',
|
75 |
+
'integrated_edit_field2' ),
|
76 |
+
'expand_button' => array( 'expand_button' ) ),
|
77 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
78 |
+
'rows' => array( 0 ),
|
79 |
+
'tags' => array( ),
|
80 |
+
'items' => array( 'integrated_edit_field',
|
81 |
+
'integrated_edit_field1',
|
82 |
+
'integrated_edit_field2' ),
|
83 |
+
'fixedAtServer' => true,
|
84 |
+
'fixedAtClient' => false ) ),
|
85 |
+
'width' => 1,
|
86 |
+
'height' => 1 ) ) ),
|
87 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
88 |
+
'page' => array( 'verticalBar' => true,
|
89 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
90 |
+
'print_pages' => array( ),
|
91 |
+
'register_activate_message' => array( ),
|
92 |
+
'details_found' => array( ) ),
|
93 |
+
'hasCustomButtons' => false,
|
94 |
+
'customButtons' => array( ),
|
95 |
+
'hasNotifications' => false,
|
96 |
+
'menus' => array( array( 'id' => 'main',
|
97 |
+
'horizontal' => false ) ),
|
98 |
+
'calcTotalsFor' => 1 ),
|
99 |
+
'misc' => array( 'type' => 'edit',
|
100 |
+
'breadcrumb' => false,
|
101 |
+
'nextPrev' => false ),
|
102 |
+
'events' => array( 'maps' => array( ),
|
103 |
+
'mapsData' => array( ),
|
104 |
+
'buttons' => array( ) ),
|
105 |
+
'edit' => array( 'updateSelected' => false ) );
|
106 |
+
$pageArray = array( 'id' => 'edit',
|
107 |
+
'type' => 'edit',
|
108 |
+
'layoutId' => 'leftbar',
|
109 |
+
'disabled' => 0,
|
110 |
+
'default' => 0,
|
111 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'edit-above-grid',
|
112 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
113 |
+
'section' => '' ) ),
|
114 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
115 |
+
'items' => array( 'edit_message' ) ) ),
|
116 |
+
'deferredItems' => array( ),
|
117 |
+
'recsPerRow' => 1 ),
|
118 |
+
'below-grid' => array( 'modelId' => 'edit-below-grid',
|
119 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
120 |
+
array( 'cell' => 'c2' ) ),
|
121 |
+
'section' => '' ) ),
|
122 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
123 |
+
'items' => array( 'edit_save',
|
124 |
+
'edit_back_list',
|
125 |
+
'edit_close' ) ),
|
126 |
+
'c2' => array( 'model' => 'c2',
|
127 |
+
'items' => array( 'hamburger' ) ) ),
|
128 |
+
'deferredItems' => array( ),
|
129 |
+
'recsPerRow' => 1 ),
|
130 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
131 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
132 |
+
array( 'cell' => 'c2' ) ),
|
133 |
+
'section' => '' ) ),
|
134 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
135 |
+
'items' => array( 'expand_menu_button',
|
136 |
+
'collapse_button' ) ),
|
137 |
+
'c2' => array( 'model' => 'c2',
|
138 |
+
'items' => array( 'loginform_login',
|
139 |
+
'username_button' ) ) ),
|
140 |
+
'deferredItems' => array( ),
|
141 |
+
'recsPerRow' => 1 ),
|
142 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
143 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
144 |
+
'section' => '' ),
|
145 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
146 |
+
'section' => '' ) ),
|
147 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
148 |
+
'items' => array( 'logo',
|
149 |
+
'expand_button' ) ),
|
150 |
+
'c1' => array( 'model' => 'c1',
|
151 |
+
'items' => array( 'menu' ) ) ),
|
152 |
+
'deferredItems' => array( ),
|
153 |
+
'recsPerRow' => 1 ),
|
154 |
+
'top' => array( 'modelId' => 'edit-header',
|
155 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
156 |
+
'section' => '' ) ),
|
157 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
158 |
+
'items' => array( 'edit_header' ) ) ),
|
159 |
+
'deferredItems' => array( ),
|
160 |
+
'recsPerRow' => 1 ),
|
161 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
162 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
163 |
+
'section' => '' ) ),
|
164 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
165 |
+
'items' => array( 'integrated_edit_field',
|
166 |
+
'integrated_edit_field1',
|
167 |
+
'integrated_edit_field2' ) ) ),
|
168 |
+
'deferredItems' => array( ),
|
169 |
+
'columnCount' => 1,
|
170 |
+
'inlineLabels' => false,
|
171 |
+
'separateLabels' => false ) ),
|
172 |
+
'items' => array( 'edit_header' => array( 'type' => 'edit_header' ),
|
173 |
+
'hamburger' => array( 'type' => 'hamburger',
|
174 |
+
'items' => array( 'edit_reset',
|
175 |
+
'edit_view' ) ),
|
176 |
+
'edit_reset' => array( 'type' => 'edit_reset' ),
|
177 |
+
'edit_message' => array( 'type' => 'edit_message' ),
|
178 |
+
'edit_save' => array( 'type' => 'edit_save' ),
|
179 |
+
'edit_back_list' => array( 'type' => 'edit_back_list' ),
|
180 |
+
'edit_close' => array( 'type' => 'edit_close' ),
|
181 |
+
'logo' => array( 'type' => 'logo' ),
|
182 |
+
'menu' => array( 'type' => 'menu' ),
|
183 |
+
'username_button' => array( 'type' => 'username_button',
|
184 |
+
'items' => array( 'userinfo_link',
|
185 |
+
'logout_link' ) ),
|
186 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
187 |
+
'popup' => false ),
|
188 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
189 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
190 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
191 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
192 |
+
'edit_view' => array( 'type' => 'edit_view' ),
|
193 |
+
'integrated_edit_field' => array( 'field' => 'replay',
|
194 |
+
'type' => 'integrated_edit_field',
|
195 |
+
'orientation' => 0 ),
|
196 |
+
'integrated_edit_field1' => array( 'field' => 'replay_fix',
|
197 |
+
'type' => 'integrated_edit_field',
|
198 |
+
'orientation' => 0 ),
|
199 |
+
'integrated_edit_field2' => array( 'field' => 'replay_kwick',
|
200 |
+
'type' => 'integrated_edit_field',
|
201 |
+
'orientation' => 0 ),
|
202 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
203 |
+
'dbProps' => array( ),
|
204 |
+
'version' => 14,
|
205 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
206 |
+
'imageBgColor' => '#f2f2f2',
|
207 |
+
'controlsBgColor' => 'white',
|
208 |
+
'imagePosition' => 'right',
|
209 |
+
'listTotals' => 1 );
|
210 |
+
?>
|
php/include/pages/chat_agent_export.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'totals' => array( 'id' => array( 'totalsType' => '' ),
|
3 |
+
'replay' => array( 'totalsType' => '' ),
|
4 |
+
'replay_fix' => array( 'totalsType' => '' ),
|
5 |
+
'replay_kwick' => array( 'totalsType' => '' ) ),
|
6 |
+
'fields' => array( 'gridFields' => array( 'id',
|
7 |
+
'replay',
|
8 |
+
'replay_fix',
|
9 |
+
'replay_kwick' ),
|
10 |
+
'exportFields' => array( 'id',
|
11 |
+
'replay',
|
12 |
+
'replay_fix',
|
13 |
+
'replay_kwick' ),
|
14 |
+
'searchRequiredFields' => array( ),
|
15 |
+
'searchPanelFields' => array( ),
|
16 |
+
'fieldItems' => array( 'id' => array( 'export_field' ),
|
17 |
+
'replay' => array( 'export_field1' ),
|
18 |
+
'replay_fix' => array( 'export_field2' ),
|
19 |
+
'replay_kwick' => array( 'export_field3' ) ) ),
|
20 |
+
'pageLinks' => array( 'edit' => false,
|
21 |
+
'add' => false,
|
22 |
+
'view' => false,
|
23 |
+
'print' => false ),
|
24 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ),
|
25 |
+
'top' => array( 'export_header' ),
|
26 |
+
'grid' => array( 'export_field',
|
27 |
+
'export_field1',
|
28 |
+
'export_field2',
|
29 |
+
'export_field3' ),
|
30 |
+
'footer' => array( 'export_export',
|
31 |
+
'export_cancel' ) ),
|
32 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
33 |
+
'itemForms' => array( 'export_header' => 'top',
|
34 |
+
'export_field' => 'grid',
|
35 |
+
'export_field1' => 'grid',
|
36 |
+
'export_field2' => 'grid',
|
37 |
+
'export_field3' => 'grid',
|
38 |
+
'export_export' => 'footer',
|
39 |
+
'export_cancel' => 'footer' ),
|
40 |
+
'itemLocations' => array( ),
|
41 |
+
'itemVisiblity' => array( ) ),
|
42 |
+
'itemsByType' => array( 'export_header' => array( 'export_header' ),
|
43 |
+
'export_export' => array( 'export_export' ),
|
44 |
+
'export_cancel' => array( 'export_cancel' ),
|
45 |
+
'export_field' => array( 'export_field',
|
46 |
+
'export_field1',
|
47 |
+
'export_field2',
|
48 |
+
'export_field3' ) ),
|
49 |
+
'cellMaps' => array( ) ),
|
50 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
51 |
+
'page' => array( 'verticalBar' => false,
|
52 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
53 |
+
'print_pages' => array( ),
|
54 |
+
'register_activate_message' => array( ),
|
55 |
+
'details_found' => array( ) ),
|
56 |
+
'hasCustomButtons' => false,
|
57 |
+
'customButtons' => array( ),
|
58 |
+
'hasNotifications' => false,
|
59 |
+
'menus' => array( ),
|
60 |
+
'calcTotalsFor' => 1 ),
|
61 |
+
'events' => array( 'maps' => array( ),
|
62 |
+
'mapsData' => array( ),
|
63 |
+
'buttons' => array( ) ),
|
64 |
+
'export' => array( 'format' => 2,
|
65 |
+
'selectFields' => false,
|
66 |
+
'delimiter' => ',',
|
67 |
+
'selectDelimiter' => false,
|
68 |
+
'exportFileTypes' => array( 'excel' => true,
|
69 |
+
'word' => true,
|
70 |
+
'csv' => true,
|
71 |
+
'xml' => false ) ) );
|
72 |
+
$pageArray = array( 'id' => 'export',
|
73 |
+
'type' => 'export',
|
74 |
+
'layoutId' => 'first',
|
75 |
+
'disabled' => 0,
|
76 |
+
'default' => 0,
|
77 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
78 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
79 |
+
'section' => '' ) ),
|
80 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
81 |
+
'items' => array( ) ) ),
|
82 |
+
'deferredItems' => array( ),
|
83 |
+
'recsPerRow' => 1 ),
|
84 |
+
'top' => array( 'modelId' => 'export-header',
|
85 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
86 |
+
'section' => '' ) ),
|
87 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
88 |
+
'items' => array( 'export_header' ) ) ),
|
89 |
+
'deferredItems' => array( ),
|
90 |
+
'recsPerRow' => 1 ),
|
91 |
+
'grid' => array( 'modelId' => 'export-grid',
|
92 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
93 |
+
'section' => '' ) ),
|
94 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
95 |
+
'items' => array( 'export_field',
|
96 |
+
'export_field1',
|
97 |
+
'export_field2',
|
98 |
+
'export_field3' ) ) ),
|
99 |
+
'deferredItems' => array( ),
|
100 |
+
'recsPerRow' => 1 ),
|
101 |
+
'footer' => array( 'modelId' => 'export-footer',
|
102 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
103 |
+
array( 'cell' => 'c2' ) ),
|
104 |
+
'section' => '' ) ),
|
105 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
106 |
+
'items' => array( ) ),
|
107 |
+
'c2' => array( 'model' => 'c2',
|
108 |
+
'items' => array( 'export_export',
|
109 |
+
'export_cancel' ) ) ),
|
110 |
+
'deferredItems' => array( ),
|
111 |
+
'recsPerRow' => 1 ) ),
|
112 |
+
'items' => array( 'export_header' => array( 'type' => 'export_header' ),
|
113 |
+
'export_export' => array( 'type' => 'export_export' ),
|
114 |
+
'export_cancel' => array( 'type' => 'export_cancel' ),
|
115 |
+
'export_field' => array( 'field' => 'id',
|
116 |
+
'type' => 'export_field' ),
|
117 |
+
'export_field1' => array( 'field' => 'replay',
|
118 |
+
'type' => 'export_field' ),
|
119 |
+
'export_field2' => array( 'field' => 'replay_fix',
|
120 |
+
'type' => 'export_field' ),
|
121 |
+
'export_field3' => array( 'field' => 'replay_kwick',
|
122 |
+
'type' => 'export_field' ) ),
|
123 |
+
'dbProps' => array( ),
|
124 |
+
'version' => 14,
|
125 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
126 |
+
'imageBgColor' => '#f2f2f2',
|
127 |
+
'controlsBgColor' => 'white',
|
128 |
+
'imagePosition' => 'right',
|
129 |
+
'listTotals' => 1,
|
130 |
+
'exportFormat' => 2,
|
131 |
+
'exportDelimiter' => ',',
|
132 |
+
'exportSelectDelimiter' => false,
|
133 |
+
'exportSelectFields' => false );
|
134 |
+
?>
|
php/include/pages/chat_agent_import.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
|
3 |
+
'replay',
|
4 |
+
'replay_fix',
|
5 |
+
'replay_kwick' ),
|
6 |
+
'searchRequiredFields' => array( ),
|
7 |
+
'searchPanelFields' => array( ),
|
8 |
+
'fieldItems' => array( 'id' => array( 'import_field' ),
|
9 |
+
'replay' => array( 'import_field1' ),
|
10 |
+
'replay_fix' => array( 'import_field2' ),
|
11 |
+
'replay_kwick' => array( 'import_field3' ) ) ),
|
12 |
+
'pageLinks' => array( 'edit' => false,
|
13 |
+
'add' => false,
|
14 |
+
'view' => false,
|
15 |
+
'print' => false ),
|
16 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ),
|
17 |
+
'top' => array( 'import_header' ),
|
18 |
+
'grid' => array( 'import_field',
|
19 |
+
'import_field1',
|
20 |
+
'import_field2',
|
21 |
+
'import_field3' ) ),
|
22 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
23 |
+
'itemForms' => array( 'import_header' => 'top',
|
24 |
+
'import_field' => 'grid',
|
25 |
+
'import_field1' => 'grid',
|
26 |
+
'import_field2' => 'grid',
|
27 |
+
'import_field3' => 'grid' ),
|
28 |
+
'itemLocations' => array( ),
|
29 |
+
'itemVisiblity' => array( ) ),
|
30 |
+
'itemsByType' => array( 'import_header' => array( 'import_header' ),
|
31 |
+
'import_field' => array( 'import_field',
|
32 |
+
'import_field1',
|
33 |
+
'import_field2',
|
34 |
+
'import_field3' ) ),
|
35 |
+
'cellMaps' => array( ) ),
|
36 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
37 |
+
'page' => array( 'verticalBar' => false,
|
38 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
39 |
+
'print_pages' => array( ),
|
40 |
+
'register_activate_message' => array( ),
|
41 |
+
'details_found' => array( ) ),
|
42 |
+
'hasCustomButtons' => false,
|
43 |
+
'customButtons' => array( ),
|
44 |
+
'hasNotifications' => false,
|
45 |
+
'menus' => array( ),
|
46 |
+
'calcTotalsFor' => 1 ),
|
47 |
+
'events' => array( 'maps' => array( ),
|
48 |
+
'mapsData' => array( ),
|
49 |
+
'buttons' => array( ) ) );
|
50 |
+
$pageArray = array( 'id' => 'import',
|
51 |
+
'type' => 'import',
|
52 |
+
'layoutId' => 'first',
|
53 |
+
'disabled' => 0,
|
54 |
+
'default' => 0,
|
55 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
56 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
57 |
+
'section' => '' ) ),
|
58 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
59 |
+
'items' => array( ) ) ),
|
60 |
+
'deferredItems' => array( ),
|
61 |
+
'recsPerRow' => 1 ),
|
62 |
+
'top' => array( 'modelId' => 'import-header',
|
63 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
64 |
+
'section' => '' ) ),
|
65 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
66 |
+
'items' => array( 'import_header' ) ) ),
|
67 |
+
'deferredItems' => array( ),
|
68 |
+
'recsPerRow' => 1 ),
|
69 |
+
'grid' => array( 'modelId' => 'import-grid',
|
70 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
71 |
+
'section' => '' ) ),
|
72 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
73 |
+
'items' => array( 'import_field',
|
74 |
+
'import_field1',
|
75 |
+
'import_field2',
|
76 |
+
'import_field3' ) ) ),
|
77 |
+
'deferredItems' => array( ),
|
78 |
+
'recsPerRow' => 1 ) ),
|
79 |
+
'items' => array( 'import_header' => array( 'type' => 'import_header' ),
|
80 |
+
'import_field' => array( 'field' => 'id',
|
81 |
+
'type' => 'import_field' ),
|
82 |
+
'import_field1' => array( 'field' => 'replay',
|
83 |
+
'type' => 'import_field' ),
|
84 |
+
'import_field2' => array( 'field' => 'replay_fix',
|
85 |
+
'type' => 'import_field' ),
|
86 |
+
'import_field3' => array( 'field' => 'replay_kwick',
|
87 |
+
'type' => 'import_field' ) ),
|
88 |
+
'dbProps' => array( ),
|
89 |
+
'version' => 14,
|
90 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
91 |
+
'imageBgColor' => '#f2f2f2',
|
92 |
+
'controlsBgColor' => 'white',
|
93 |
+
'imagePosition' => 'right',
|
94 |
+
'listTotals' => 1 );
|
95 |
+
?>
|
php/include/pages/chat_agent_list.php
ADDED
@@ -0,0 +1,562 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'list' => array( 'inlineAdd' => false,
|
3 |
+
'detailsAdd' => false,
|
4 |
+
'inlineEdit' => false,
|
5 |
+
'spreadsheetMode' => false,
|
6 |
+
'addToBottom' => false,
|
7 |
+
'delete' => true,
|
8 |
+
'updateSelected' => false,
|
9 |
+
'clickSort' => true,
|
10 |
+
'sortDropdown' => false,
|
11 |
+
'showHideFields' => false,
|
12 |
+
'reorderFields' => false,
|
13 |
+
'fieldFilter' => false,
|
14 |
+
'hideNumberOfRecords' => false ),
|
15 |
+
'listSearch' => array( 'alwaysOnPanelFields' => array( ),
|
16 |
+
'searchPanel' => true,
|
17 |
+
'fixedSearchPanel' => false,
|
18 |
+
'simpleSearchOptions' => false,
|
19 |
+
'searchSaving' => false ),
|
20 |
+
'totals' => array( 'id' => array( 'totalsType' => '' ),
|
21 |
+
'replay' => array( 'totalsType' => '' ),
|
22 |
+
'replay_fix' => array( 'totalsType' => '' ),
|
23 |
+
'replay_kwick' => array( 'totalsType' => '' ) ),
|
24 |
+
'fields' => array( 'gridFields' => array( 'id',
|
25 |
+
'replay',
|
26 |
+
'replay_fix',
|
27 |
+
'replay_kwick' ),
|
28 |
+
'searchRequiredFields' => array( ),
|
29 |
+
'searchPanelFields' => array( 'id',
|
30 |
+
'replay_kwick',
|
31 |
+
'replay_fix',
|
32 |
+
'replay' ),
|
33 |
+
'filterFields' => array( ),
|
34 |
+
'inlineAddFields' => array( ),
|
35 |
+
'inlineEditFields' => array( ),
|
36 |
+
'fieldItems' => array( 'id' => array( 'simple_grid_field',
|
37 |
+
'simple_grid_field4' ),
|
38 |
+
'replay' => array( 'simple_grid_field1',
|
39 |
+
'simple_grid_field5' ),
|
40 |
+
'replay_fix' => array( 'simple_grid_field2',
|
41 |
+
'simple_grid_field6' ),
|
42 |
+
'replay_kwick' => array( 'simple_grid_field3',
|
43 |
+
'simple_grid_field7' ) ),
|
44 |
+
'hideEmptyFields' => array( ),
|
45 |
+
'fieldFilterFields' => array( ) ),
|
46 |
+
'pageLinks' => array( 'edit' => true,
|
47 |
+
'add' => true,
|
48 |
+
'view' => true,
|
49 |
+
'print' => true ),
|
50 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add',
|
51 |
+
'delete',
|
52 |
+
'details_found',
|
53 |
+
'page_size',
|
54 |
+
'print_panel' ),
|
55 |
+
'below-grid' => array( 'pagination' ),
|
56 |
+
'left' => array( 'logo',
|
57 |
+
'expand_button',
|
58 |
+
'menu',
|
59 |
+
'search_panel' ),
|
60 |
+
'supertop' => array( 'expand_menu_button',
|
61 |
+
'collapse_button',
|
62 |
+
'breadcrumb',
|
63 |
+
'simple_search',
|
64 |
+
'list_options',
|
65 |
+
'loginform_login',
|
66 |
+
'username_button' ),
|
67 |
+
'top' => array( ),
|
68 |
+
'grid' => array( 'simple_grid_field4',
|
69 |
+
'simple_grid_field',
|
70 |
+
'simple_grid_field5',
|
71 |
+
'simple_grid_field1',
|
72 |
+
'simple_grid_field6',
|
73 |
+
'simple_grid_field2',
|
74 |
+
'simple_grid_field7',
|
75 |
+
'simple_grid_field3',
|
76 |
+
'grid_checkbox_head',
|
77 |
+
'grid_checkbox',
|
78 |
+
'grid_edit',
|
79 |
+
'grid_view' ) ),
|
80 |
+
'formXtTags' => array( 'above-grid' => array( 'add_link',
|
81 |
+
'deleteselected_link',
|
82 |
+
'details_found',
|
83 |
+
'recsPerPage',
|
84 |
+
'print_friendly' ),
|
85 |
+
'below-grid' => array( 'pagination' ),
|
86 |
+
'top' => array( ) ),
|
87 |
+
'itemForms' => array( 'add' => 'above-grid',
|
88 |
+
'delete' => 'above-grid',
|
89 |
+
'details_found' => 'above-grid',
|
90 |
+
'page_size' => 'above-grid',
|
91 |
+
'print_panel' => 'above-grid',
|
92 |
+
'pagination' => 'below-grid',
|
93 |
+
'logo' => 'left',
|
94 |
+
'expand_button' => 'left',
|
95 |
+
'menu' => 'left',
|
96 |
+
'search_panel' => 'left',
|
97 |
+
'expand_menu_button' => 'supertop',
|
98 |
+
'collapse_button' => 'supertop',
|
99 |
+
'breadcrumb' => 'supertop',
|
100 |
+
'simple_search' => 'supertop',
|
101 |
+
'list_options' => 'supertop',
|
102 |
+
'loginform_login' => 'supertop',
|
103 |
+
'username_button' => 'supertop',
|
104 |
+
'simple_grid_field4' => 'grid',
|
105 |
+
'simple_grid_field' => 'grid',
|
106 |
+
'simple_grid_field5' => 'grid',
|
107 |
+
'simple_grid_field1' => 'grid',
|
108 |
+
'simple_grid_field6' => 'grid',
|
109 |
+
'simple_grid_field2' => 'grid',
|
110 |
+
'simple_grid_field7' => 'grid',
|
111 |
+
'simple_grid_field3' => 'grid',
|
112 |
+
'grid_checkbox_head' => 'grid',
|
113 |
+
'grid_checkbox' => 'grid',
|
114 |
+
'grid_edit' => 'grid',
|
115 |
+
'grid_view' => 'grid' ),
|
116 |
+
'itemLocations' => array( 'simple_grid_field4' => array( 'location' => 'grid',
|
117 |
+
'cellId' => 'headcell_field' ),
|
118 |
+
'simple_grid_field' => array( 'location' => 'grid',
|
119 |
+
'cellId' => 'cell_field' ),
|
120 |
+
'simple_grid_field5' => array( 'location' => 'grid',
|
121 |
+
'cellId' => 'headcell_field1' ),
|
122 |
+
'simple_grid_field1' => array( 'location' => 'grid',
|
123 |
+
'cellId' => 'cell_field1' ),
|
124 |
+
'simple_grid_field6' => array( 'location' => 'grid',
|
125 |
+
'cellId' => 'headcell_field2' ),
|
126 |
+
'simple_grid_field2' => array( 'location' => 'grid',
|
127 |
+
'cellId' => 'cell_field2' ),
|
128 |
+
'simple_grid_field7' => array( 'location' => 'grid',
|
129 |
+
'cellId' => 'headcell_field3' ),
|
130 |
+
'simple_grid_field3' => array( 'location' => 'grid',
|
131 |
+
'cellId' => 'cell_field3' ),
|
132 |
+
'grid_checkbox_head' => array( 'location' => 'grid',
|
133 |
+
'cellId' => 'headcell_checkbox' ),
|
134 |
+
'grid_checkbox' => array( 'location' => 'grid',
|
135 |
+
'cellId' => 'cell_checkbox' ),
|
136 |
+
'grid_edit' => array( 'location' => 'grid',
|
137 |
+
'cellId' => 'cell_icons' ),
|
138 |
+
'grid_view' => array( 'location' => 'grid',
|
139 |
+
'cellId' => 'cell_icons' ) ),
|
140 |
+
'itemVisiblity' => array( 'breadcrumb' => 5,
|
141 |
+
'expand_menu_button' => 2,
|
142 |
+
'print_panel' => 5,
|
143 |
+
'expand_button' => 5 ) ),
|
144 |
+
'itemsByType' => array( 'page_size' => array( 'page_size' ),
|
145 |
+
'breadcrumb' => array( 'breadcrumb' ),
|
146 |
+
'logo' => array( 'logo' ),
|
147 |
+
'menu' => array( 'menu' ),
|
148 |
+
'simple_search' => array( 'simple_search' ),
|
149 |
+
'pagination' => array( 'pagination' ),
|
150 |
+
'details_found' => array( 'details_found' ),
|
151 |
+
'search_panel' => array( 'search_panel' ),
|
152 |
+
'list_options' => array( 'list_options' ),
|
153 |
+
'show_search_panel' => array( 'show_search_panel' ),
|
154 |
+
'hide_search_panel' => array( 'hide_search_panel' ),
|
155 |
+
'search_panel_field' => array( 'search_panel_field',
|
156 |
+
'search_panel_field1',
|
157 |
+
'search_panel_field2',
|
158 |
+
'search_panel_field3' ),
|
159 |
+
'username_button' => array( 'username_button' ),
|
160 |
+
'loginform_login' => array( 'loginform_login' ),
|
161 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
162 |
+
'logout_link' => array( 'logout_link' ),
|
163 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
164 |
+
'collapse_button' => array( 'collapse_button' ),
|
165 |
+
'add' => array( 'add' ),
|
166 |
+
'print_panel' => array( 'print_panel' ),
|
167 |
+
'print_scope' => array( 'print_scope' ),
|
168 |
+
'print_button' => array( 'print_button' ),
|
169 |
+
'print_records' => array( 'print_records' ),
|
170 |
+
'export' => array( 'export' ),
|
171 |
+
'-' => array( '-',
|
172 |
+
'-1',
|
173 |
+
'-2',
|
174 |
+
'-3' ),
|
175 |
+
'export_selected' => array( 'export_selected' ),
|
176 |
+
'import' => array( 'import' ),
|
177 |
+
'delete' => array( 'delete' ),
|
178 |
+
'delete_selected' => array( 'delete_selected' ),
|
179 |
+
'advsearch_link' => array( 'advsearch_link' ),
|
180 |
+
'grid_field' => array( 'simple_grid_field',
|
181 |
+
'simple_grid_field1',
|
182 |
+
'simple_grid_field2',
|
183 |
+
'simple_grid_field3' ),
|
184 |
+
'grid_field_label' => array( 'simple_grid_field4',
|
185 |
+
'simple_grid_field5',
|
186 |
+
'simple_grid_field6',
|
187 |
+
'simple_grid_field7' ),
|
188 |
+
'grid_checkbox' => array( 'grid_checkbox' ),
|
189 |
+
'grid_checkbox_head' => array( 'grid_checkbox_head' ),
|
190 |
+
'grid_edit' => array( 'grid_edit' ),
|
191 |
+
'grid_view' => array( 'grid_view' ),
|
192 |
+
'expand_button' => array( 'expand_button' ) ),
|
193 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
|
194 |
+
'rows' => array( 0 ),
|
195 |
+
'tags' => array( ),
|
196 |
+
'items' => array( ),
|
197 |
+
'fixedAtServer' => false,
|
198 |
+
'fixedAtClient' => false ),
|
199 |
+
'headcell_checkbox' => array( 'cols' => array( 1 ),
|
200 |
+
'rows' => array( 0 ),
|
201 |
+
'tags' => array( 'checkbox_column' ),
|
202 |
+
'items' => array( 'grid_checkbox_head' ),
|
203 |
+
'fixedAtServer' => false,
|
204 |
+
'fixedAtClient' => false ),
|
205 |
+
'headcell_field' => array( 'cols' => array( 2 ),
|
206 |
+
'rows' => array( 0 ),
|
207 |
+
'tags' => array( 'id_fieldheadercolumn' ),
|
208 |
+
'items' => array( 'simple_grid_field4' ),
|
209 |
+
'fixedAtServer' => false,
|
210 |
+
'fixedAtClient' => false ),
|
211 |
+
'headcell_field1' => array( 'cols' => array( 3 ),
|
212 |
+
'rows' => array( 0 ),
|
213 |
+
'tags' => array( 'replay_fieldheadercolumn' ),
|
214 |
+
'items' => array( 'simple_grid_field5' ),
|
215 |
+
'fixedAtServer' => false,
|
216 |
+
'fixedAtClient' => false ),
|
217 |
+
'headcell_field2' => array( 'cols' => array( 4 ),
|
218 |
+
'rows' => array( 0 ),
|
219 |
+
'tags' => array( 'replay_fix_fieldheadercolumn' ),
|
220 |
+
'items' => array( 'simple_grid_field6' ),
|
221 |
+
'fixedAtServer' => false,
|
222 |
+
'fixedAtClient' => false ),
|
223 |
+
'headcell_field3' => array( 'cols' => array( 5 ),
|
224 |
+
'rows' => array( 0 ),
|
225 |
+
'tags' => array( 'replay_kwick_fieldheadercolumn' ),
|
226 |
+
'items' => array( 'simple_grid_field7' ),
|
227 |
+
'fixedAtServer' => false,
|
228 |
+
'fixedAtClient' => false ),
|
229 |
+
'cell_icons' => array( 'cols' => array( 0 ),
|
230 |
+
'rows' => array( 1 ),
|
231 |
+
'tags' => array( 'edit_column',
|
232 |
+
'view_column' ),
|
233 |
+
'items' => array( 'grid_edit',
|
234 |
+
'grid_view' ),
|
235 |
+
'fixedAtServer' => false,
|
236 |
+
'fixedAtClient' => false ),
|
237 |
+
'cell_checkbox' => array( 'cols' => array( 1 ),
|
238 |
+
'rows' => array( 1 ),
|
239 |
+
'tags' => array( 'checkbox_column' ),
|
240 |
+
'items' => array( 'grid_checkbox' ),
|
241 |
+
'fixedAtServer' => false,
|
242 |
+
'fixedAtClient' => false ),
|
243 |
+
'cell_field' => array( 'cols' => array( 2 ),
|
244 |
+
'rows' => array( 1 ),
|
245 |
+
'tags' => array( 'id_fieldcolumn' ),
|
246 |
+
'items' => array( 'simple_grid_field' ),
|
247 |
+
'fixedAtServer' => false,
|
248 |
+
'fixedAtClient' => false ),
|
249 |
+
'cell_field1' => array( 'cols' => array( 3 ),
|
250 |
+
'rows' => array( 1 ),
|
251 |
+
'tags' => array( 'replay_fieldcolumn' ),
|
252 |
+
'items' => array( 'simple_grid_field1' ),
|
253 |
+
'fixedAtServer' => false,
|
254 |
+
'fixedAtClient' => false ),
|
255 |
+
'cell_field2' => array( 'cols' => array( 4 ),
|
256 |
+
'rows' => array( 1 ),
|
257 |
+
'tags' => array( 'replay_fix_fieldcolumn' ),
|
258 |
+
'items' => array( 'simple_grid_field2' ),
|
259 |
+
'fixedAtServer' => false,
|
260 |
+
'fixedAtClient' => false ),
|
261 |
+
'cell_field3' => array( 'cols' => array( 5 ),
|
262 |
+
'rows' => array( 1 ),
|
263 |
+
'tags' => array( 'replay_kwick_fieldcolumn' ),
|
264 |
+
'items' => array( 'simple_grid_field3' ),
|
265 |
+
'fixedAtServer' => false,
|
266 |
+
'fixedAtClient' => false ),
|
267 |
+
'footcell_icons' => array( 'cols' => array( 0 ),
|
268 |
+
'rows' => array( 2 ),
|
269 |
+
'tags' => array( ),
|
270 |
+
'items' => array( ),
|
271 |
+
'fixedAtServer' => false,
|
272 |
+
'fixedAtClient' => false ),
|
273 |
+
'footcell_checkbox' => array( 'cols' => array( 1 ),
|
274 |
+
'rows' => array( 2 ),
|
275 |
+
'tags' => array( ),
|
276 |
+
'items' => array( ),
|
277 |
+
'fixedAtServer' => false,
|
278 |
+
'fixedAtClient' => false ),
|
279 |
+
'footcell_field' => array( 'cols' => array( 2 ),
|
280 |
+
'rows' => array( 2 ),
|
281 |
+
'tags' => array( ),
|
282 |
+
'items' => array( ),
|
283 |
+
'fixedAtServer' => false,
|
284 |
+
'fixedAtClient' => false ),
|
285 |
+
'footcell_field1' => array( 'cols' => array( 3 ),
|
286 |
+
'rows' => array( 2 ),
|
287 |
+
'tags' => array( ),
|
288 |
+
'items' => array( ),
|
289 |
+
'fixedAtServer' => false,
|
290 |
+
'fixedAtClient' => false ),
|
291 |
+
'footcell_field2' => array( 'cols' => array( 4 ),
|
292 |
+
'rows' => array( 2 ),
|
293 |
+
'tags' => array( ),
|
294 |
+
'items' => array( ),
|
295 |
+
'fixedAtServer' => false,
|
296 |
+
'fixedAtClient' => false ),
|
297 |
+
'footcell_field3' => array( 'cols' => array( 5 ),
|
298 |
+
'rows' => array( 2 ),
|
299 |
+
'tags' => array( ),
|
300 |
+
'items' => array( ),
|
301 |
+
'fixedAtServer' => false,
|
302 |
+
'fixedAtClient' => false ) ),
|
303 |
+
'width' => 6,
|
304 |
+
'height' => 3 ) ) ),
|
305 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
306 |
+
'page' => array( 'verticalBar' => true,
|
307 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
308 |
+
'print_pages' => array( ),
|
309 |
+
'register_activate_message' => array( ),
|
310 |
+
'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
|
311 |
+
'type' => 2 ) ) ),
|
312 |
+
'gridType' => 0,
|
313 |
+
'recsPerRow' => 1,
|
314 |
+
'hasCustomButtons' => false,
|
315 |
+
'customButtons' => array( ),
|
316 |
+
'hasNotifications' => false,
|
317 |
+
'menus' => array( array( 'id' => 'main',
|
318 |
+
'horizontal' => false ) ),
|
319 |
+
'calcTotalsFor' => 1 ),
|
320 |
+
'misc' => array( 'type' => 'list',
|
321 |
+
'breadcrumb' => true ),
|
322 |
+
'events' => array( 'maps' => array( ),
|
323 |
+
'mapsData' => array( ),
|
324 |
+
'buttons' => array( ) ),
|
325 |
+
'dataGrid' => array( 'groupFields' => array( ) ) );
|
326 |
+
$pageArray = array( 'id' => 'list',
|
327 |
+
'type' => 'list',
|
328 |
+
'layoutId' => 'leftbar',
|
329 |
+
'disabled' => 0,
|
330 |
+
'default' => 0,
|
331 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'list-above-grid',
|
332 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
333 |
+
array( 'cell' => 'c2' ) ),
|
334 |
+
'section' => '' ) ),
|
335 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
336 |
+
'items' => array( 'add',
|
337 |
+
'delete' ) ),
|
338 |
+
'c2' => array( 'model' => 'c2',
|
339 |
+
'items' => array( 'details_found',
|
340 |
+
'page_size',
|
341 |
+
'print_panel' ) ) ),
|
342 |
+
'deferredItems' => array( ),
|
343 |
+
'recsPerRow' => 1 ),
|
344 |
+
'below-grid' => array( 'modelId' => 'list-below-grid',
|
345 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
346 |
+
'section' => '' ) ),
|
347 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
348 |
+
'items' => array( 'pagination' ) ) ),
|
349 |
+
'deferredItems' => array( ),
|
350 |
+
'recsPerRow' => 1 ),
|
351 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
352 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
353 |
+
'section' => '' ),
|
354 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
355 |
+
'section' => '' ) ),
|
356 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
357 |
+
'items' => array( 'logo',
|
358 |
+
'expand_button' ) ),
|
359 |
+
'c1' => array( 'model' => 'c1',
|
360 |
+
'items' => array( 'menu',
|
361 |
+
'search_panel' ) ) ),
|
362 |
+
'deferredItems' => array( ),
|
363 |
+
'recsPerRow' => 1 ),
|
364 |
+
'supertop' => array( 'modelId' => 'leftbar-top',
|
365 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
366 |
+
array( 'cell' => 'c2' ) ),
|
367 |
+
'section' => '' ) ),
|
368 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
369 |
+
'items' => array( 'expand_menu_button',
|
370 |
+
'collapse_button',
|
371 |
+
'breadcrumb' ) ),
|
372 |
+
'c2' => array( 'model' => 'c2',
|
373 |
+
'items' => array( 'simple_search',
|
374 |
+
'list_options',
|
375 |
+
'loginform_login',
|
376 |
+
'username_button' ) ) ),
|
377 |
+
'deferredItems' => array( ),
|
378 |
+
'recsPerRow' => 1 ),
|
379 |
+
'top' => array( 'modelId' => 'list-sidebar-top',
|
380 |
+
'grid' => array( ),
|
381 |
+
'cells' => array( ),
|
382 |
+
'deferredItems' => array( ),
|
383 |
+
'recsPerRow' => 1 ),
|
384 |
+
'grid' => array( 'modelId' => 'horizontal-grid',
|
385 |
+
'grid' => array( array( 'section' => 'head',
|
386 |
+
'cells' => array( array( 'cell' => 'headcell_icons' ),
|
387 |
+
array( 'cell' => 'headcell_checkbox' ),
|
388 |
+
array( 'cell' => 'headcell_field' ),
|
389 |
+
array( 'cell' => 'headcell_field1' ),
|
390 |
+
array( 'cell' => 'headcell_field2' ),
|
391 |
+
array( 'cell' => 'headcell_field3' ) ) ),
|
392 |
+
array( 'section' => 'body',
|
393 |
+
'cells' => array( array( 'cell' => 'cell_icons' ),
|
394 |
+
array( 'cell' => 'cell_checkbox' ),
|
395 |
+
array( 'cell' => 'cell_field' ),
|
396 |
+
array( 'cell' => 'cell_field1' ),
|
397 |
+
array( 'cell' => 'cell_field2' ),
|
398 |
+
array( 'cell' => 'cell_field3' ) ) ),
|
399 |
+
array( 'section' => 'foot',
|
400 |
+
'cells' => array( array( 'cell' => 'footcell_icons' ),
|
401 |
+
array( 'cell' => 'footcell_checkbox' ),
|
402 |
+
array( 'cell' => 'footcell_field' ),
|
403 |
+
array( 'cell' => 'footcell_field1' ),
|
404 |
+
array( 'cell' => 'footcell_field2' ),
|
405 |
+
array( 'cell' => 'footcell_field3' ) ) ) ),
|
406 |
+
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
|
407 |
+
'items' => array( 'simple_grid_field4' ),
|
408 |
+
'field' => 'id',
|
409 |
+
'columnName' => 'field' ),
|
410 |
+
'cell_field' => array( 'model' => 'cell_field',
|
411 |
+
'items' => array( 'simple_grid_field' ),
|
412 |
+
'field' => 'id',
|
413 |
+
'columnName' => 'field' ),
|
414 |
+
'footcell_field' => array( 'model' => 'footcell_field',
|
415 |
+
'items' => array( ) ),
|
416 |
+
'headcell_field1' => array( 'model' => 'headcell_field',
|
417 |
+
'items' => array( 'simple_grid_field5' ),
|
418 |
+
'field' => 'replay',
|
419 |
+
'columnName' => 'field' ),
|
420 |
+
'cell_field1' => array( 'model' => 'cell_field',
|
421 |
+
'items' => array( 'simple_grid_field1' ),
|
422 |
+
'field' => 'replay',
|
423 |
+
'columnName' => 'field' ),
|
424 |
+
'footcell_field1' => array( 'model' => 'footcell_field',
|
425 |
+
'items' => array( ) ),
|
426 |
+
'headcell_field2' => array( 'model' => 'headcell_field',
|
427 |
+
'items' => array( 'simple_grid_field6' ),
|
428 |
+
'field' => 'replay_fix',
|
429 |
+
'columnName' => 'field' ),
|
430 |
+
'cell_field2' => array( 'model' => 'cell_field',
|
431 |
+
'items' => array( 'simple_grid_field2' ),
|
432 |
+
'field' => 'replay_fix',
|
433 |
+
'columnName' => 'field' ),
|
434 |
+
'footcell_field2' => array( 'model' => 'footcell_field',
|
435 |
+
'items' => array( ) ),
|
436 |
+
'headcell_field3' => array( 'model' => 'headcell_field',
|
437 |
+
'items' => array( 'simple_grid_field7' ),
|
438 |
+
'field' => 'replay_kwick',
|
439 |
+
'columnName' => 'field' ),
|
440 |
+
'cell_field3' => array( 'model' => 'cell_field',
|
441 |
+
'items' => array( 'simple_grid_field3' ),
|
442 |
+
'field' => 'replay_kwick',
|
443 |
+
'columnName' => 'field' ),
|
444 |
+
'footcell_field3' => array( 'model' => 'footcell_field',
|
445 |
+
'items' => array( ) ),
|
446 |
+
'headcell_checkbox' => array( 'model' => 'headcell_checkbox',
|
447 |
+
'items' => array( 'grid_checkbox_head' ) ),
|
448 |
+
'cell_checkbox' => array( 'model' => 'cell_checkbox',
|
449 |
+
'items' => array( 'grid_checkbox' ) ),
|
450 |
+
'footcell_checkbox' => array( 'model' => 'footcell_checkbox',
|
451 |
+
'items' => array( ) ),
|
452 |
+
'headcell_icons' => array( 'model' => 'headcell_icons',
|
453 |
+
'items' => array( ) ),
|
454 |
+
'cell_icons' => array( 'model' => 'cell_icons',
|
455 |
+
'items' => array( 'grid_edit',
|
456 |
+
'grid_view' ) ),
|
457 |
+
'footcell_icons' => array( 'model' => 'footcell_icons',
|
458 |
+
'items' => array( ) ) ),
|
459 |
+
'deferredItems' => array( ),
|
460 |
+
'recsPerRow' => 1 ) ),
|
461 |
+
'items' => array( 'page_size' => array( 'type' => 'page_size' ),
|
462 |
+
'breadcrumb' => array( 'type' => 'breadcrumb' ),
|
463 |
+
'logo' => array( 'type' => 'logo' ),
|
464 |
+
'menu' => array( 'type' => 'menu' ),
|
465 |
+
'simple_search' => array( 'type' => 'simple_search' ),
|
466 |
+
'pagination' => array( 'type' => 'pagination' ),
|
467 |
+
'details_found' => array( 'type' => 'details_found' ),
|
468 |
+
'search_panel' => array( 'type' => 'search_panel',
|
469 |
+
'items' => array( 'search_panel_field',
|
470 |
+
'search_panel_field3',
|
471 |
+
'search_panel_field2',
|
472 |
+
'search_panel_field1' ) ),
|
473 |
+
'list_options' => array( 'type' => 'list_options',
|
474 |
+
'items' => array( 'export_selected',
|
475 |
+
'delete_selected',
|
476 |
+
'-3',
|
477 |
+
'advsearch_link',
|
478 |
+
'show_search_panel',
|
479 |
+
'hide_search_panel',
|
480 |
+
'-1',
|
481 |
+
'export',
|
482 |
+
'-2',
|
483 |
+
'import' ) ),
|
484 |
+
'show_search_panel' => array( 'type' => 'show_search_panel' ),
|
485 |
+
'hide_search_panel' => array( 'type' => 'hide_search_panel' ),
|
486 |
+
'search_panel_field' => array( 'field' => 'id',
|
487 |
+
'type' => 'search_panel_field',
|
488 |
+
'required' => false ),
|
489 |
+
'search_panel_field1' => array( 'field' => 'replay',
|
490 |
+
'type' => 'search_panel_field',
|
491 |
+
'required' => false ),
|
492 |
+
'search_panel_field2' => array( 'field' => 'replay_fix',
|
493 |
+
'type' => 'search_panel_field',
|
494 |
+
'required' => false ),
|
495 |
+
'search_panel_field3' => array( 'field' => 'replay_kwick',
|
496 |
+
'type' => 'search_panel_field',
|
497 |
+
'required' => false ),
|
498 |
+
'username_button' => array( 'type' => 'username_button',
|
499 |
+
'items' => array( 'userinfo_link',
|
500 |
+
'logout_link' ) ),
|
501 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
502 |
+
'popup' => false ),
|
503 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
504 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
505 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
506 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
507 |
+
'add' => array( 'type' => 'add' ),
|
508 |
+
'print_panel' => array( 'type' => 'print_panel',
|
509 |
+
'items' => array( 'print_scope',
|
510 |
+
'print_records',
|
511 |
+
'print_button' ) ),
|
512 |
+
'print_scope' => array( 'type' => 'print_scope' ),
|
513 |
+
'print_button' => array( 'type' => 'print_button' ),
|
514 |
+
'print_records' => array( 'type' => 'print_records' ),
|
515 |
+
'export' => array( 'type' => 'export' ),
|
516 |
+
'-' => array( 'type' => '-' ),
|
517 |
+
'export_selected' => array( 'type' => 'export_selected' ),
|
518 |
+
'-1' => array( 'type' => '-' ),
|
519 |
+
'import' => array( 'type' => 'import' ),
|
520 |
+
'-2' => array( 'type' => '-' ),
|
521 |
+
'delete' => array( 'type' => 'delete' ),
|
522 |
+
'delete_selected' => array( 'type' => 'delete_selected' ),
|
523 |
+
'advsearch_link' => array( 'type' => 'advsearch_link' ),
|
524 |
+
'-3' => array( 'type' => '-' ),
|
525 |
+
'simple_grid_field' => array( 'field' => 'id',
|
526 |
+
'type' => 'grid_field',
|
527 |
+
'inlineAdd' => false,
|
528 |
+
'inlineEdit' => false ),
|
529 |
+
'simple_grid_field4' => array( 'type' => 'grid_field_label',
|
530 |
+
'field' => 'id' ),
|
531 |
+
'simple_grid_field1' => array( 'field' => 'replay',
|
532 |
+
'type' => 'grid_field',
|
533 |
+
'inlineAdd' => false,
|
534 |
+
'inlineEdit' => false ),
|
535 |
+
'simple_grid_field5' => array( 'type' => 'grid_field_label',
|
536 |
+
'field' => 'replay' ),
|
537 |
+
'simple_grid_field2' => array( 'field' => 'replay_fix',
|
538 |
+
'type' => 'grid_field',
|
539 |
+
'inlineAdd' => false,
|
540 |
+
'inlineEdit' => false ),
|
541 |
+
'simple_grid_field6' => array( 'type' => 'grid_field_label',
|
542 |
+
'field' => 'replay_fix' ),
|
543 |
+
'simple_grid_field3' => array( 'field' => 'replay_kwick',
|
544 |
+
'type' => 'grid_field',
|
545 |
+
'inlineAdd' => false,
|
546 |
+
'inlineEdit' => false ),
|
547 |
+
'simple_grid_field7' => array( 'type' => 'grid_field_label',
|
548 |
+
'field' => 'replay_kwick' ),
|
549 |
+
'grid_checkbox' => array( 'type' => 'grid_checkbox' ),
|
550 |
+
'grid_checkbox_head' => array( 'type' => 'grid_checkbox_head' ),
|
551 |
+
'grid_edit' => array( 'type' => 'grid_edit' ),
|
552 |
+
'grid_view' => array( 'type' => 'grid_view' ),
|
553 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
554 |
+
'dbProps' => array( ),
|
555 |
+
'spreadsheetGrid' => false,
|
556 |
+
'version' => 14,
|
557 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
558 |
+
'imageBgColor' => '#f2f2f2',
|
559 |
+
'controlsBgColor' => 'white',
|
560 |
+
'imagePosition' => 'right',
|
561 |
+
'listTotals' => 1 );
|
562 |
+
?>
|
php/include/pages/chat_agent_print.php
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'pdf' => array( 'pdfView' => false ),
|
3 |
+
'totals' => array( 'id' => array( 'totalsType' => '' ),
|
4 |
+
'replay' => array( 'totalsType' => '' ),
|
5 |
+
'replay_fix' => array( 'totalsType' => '' ),
|
6 |
+
'replay_kwick' => array( 'totalsType' => '' ) ),
|
7 |
+
'fields' => array( 'gridFields' => array( 'id',
|
8 |
+
'replay',
|
9 |
+
'replay_fix',
|
10 |
+
'replay_kwick' ),
|
11 |
+
'searchRequiredFields' => array( ),
|
12 |
+
'searchPanelFields' => array( ),
|
13 |
+
'fieldItems' => array( 'id' => array( 'simple_grid_field',
|
14 |
+
'simple_grid_field4' ),
|
15 |
+
'replay' => array( 'simple_grid_field1',
|
16 |
+
'simple_grid_field5' ),
|
17 |
+
'replay_fix' => array( 'simple_grid_field2',
|
18 |
+
'simple_grid_field6' ),
|
19 |
+
'replay_kwick' => array( 'simple_grid_field3',
|
20 |
+
'simple_grid_field7' ) ),
|
21 |
+
'hideEmptyFields' => array( ) ),
|
22 |
+
'pageLinks' => array( 'edit' => false,
|
23 |
+
'add' => false,
|
24 |
+
'view' => false,
|
25 |
+
'print' => false ),
|
26 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'print_pages' ),
|
27 |
+
'below-grid' => array( ),
|
28 |
+
'top' => array( 'print_header',
|
29 |
+
'print_subheader' ),
|
30 |
+
'grid' => array( 'simple_grid_field4',
|
31 |
+
'simple_grid_field',
|
32 |
+
'simple_grid_field5',
|
33 |
+
'simple_grid_field1',
|
34 |
+
'simple_grid_field6',
|
35 |
+
'simple_grid_field2',
|
36 |
+
'simple_grid_field7',
|
37 |
+
'simple_grid_field3' ) ),
|
38 |
+
'formXtTags' => array( 'above-grid' => array( 'print_pages' ),
|
39 |
+
'below-grid' => array( ) ),
|
40 |
+
'itemForms' => array( 'print_pages' => 'above-grid',
|
41 |
+
'print_header' => 'top',
|
42 |
+
'print_subheader' => 'top',
|
43 |
+
'simple_grid_field4' => 'grid',
|
44 |
+
'simple_grid_field' => 'grid',
|
45 |
+
'simple_grid_field5' => 'grid',
|
46 |
+
'simple_grid_field1' => 'grid',
|
47 |
+
'simple_grid_field6' => 'grid',
|
48 |
+
'simple_grid_field2' => 'grid',
|
49 |
+
'simple_grid_field7' => 'grid',
|
50 |
+
'simple_grid_field3' => 'grid' ),
|
51 |
+
'itemLocations' => array( 'simple_grid_field4' => array( 'location' => 'grid',
|
52 |
+
'cellId' => 'headcell_field' ),
|
53 |
+
'simple_grid_field' => array( 'location' => 'grid',
|
54 |
+
'cellId' => 'cell_field' ),
|
55 |
+
'simple_grid_field5' => array( 'location' => 'grid',
|
56 |
+
'cellId' => 'headcell_field1' ),
|
57 |
+
'simple_grid_field1' => array( 'location' => 'grid',
|
58 |
+
'cellId' => 'cell_field1' ),
|
59 |
+
'simple_grid_field6' => array( 'location' => 'grid',
|
60 |
+
'cellId' => 'headcell_field2' ),
|
61 |
+
'simple_grid_field2' => array( 'location' => 'grid',
|
62 |
+
'cellId' => 'cell_field2' ),
|
63 |
+
'simple_grid_field7' => array( 'location' => 'grid',
|
64 |
+
'cellId' => 'headcell_field3' ),
|
65 |
+
'simple_grid_field3' => array( 'location' => 'grid',
|
66 |
+
'cellId' => 'cell_field3' ) ),
|
67 |
+
'itemVisiblity' => array( ) ),
|
68 |
+
'itemsByType' => array( 'print_header' => array( 'print_header' ),
|
69 |
+
'print_subheader' => array( 'print_subheader' ),
|
70 |
+
'print_pages' => array( 'print_pages' ),
|
71 |
+
'grid_field' => array( 'simple_grid_field',
|
72 |
+
'simple_grid_field1',
|
73 |
+
'simple_grid_field2',
|
74 |
+
'simple_grid_field3' ),
|
75 |
+
'grid_field_label' => array( 'simple_grid_field4',
|
76 |
+
'simple_grid_field5',
|
77 |
+
'simple_grid_field6',
|
78 |
+
'simple_grid_field7' ) ),
|
79 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_field' => array( 'cols' => array( 0 ),
|
80 |
+
'rows' => array( 0 ),
|
81 |
+
'tags' => array( 'id_fieldheadercolumn' ),
|
82 |
+
'items' => array( 'simple_grid_field4' ),
|
83 |
+
'fixedAtServer' => false,
|
84 |
+
'fixedAtClient' => false ),
|
85 |
+
'headcell_field1' => array( 'cols' => array( 1 ),
|
86 |
+
'rows' => array( 0 ),
|
87 |
+
'tags' => array( 'replay_fieldheadercolumn' ),
|
88 |
+
'items' => array( 'simple_grid_field5' ),
|
89 |
+
'fixedAtServer' => false,
|
90 |
+
'fixedAtClient' => false ),
|
91 |
+
'headcell_field2' => array( 'cols' => array( 2 ),
|
92 |
+
'rows' => array( 0 ),
|
93 |
+
'tags' => array( 'replay_fix_fieldheadercolumn' ),
|
94 |
+
'items' => array( 'simple_grid_field6' ),
|
95 |
+
'fixedAtServer' => false,
|
96 |
+
'fixedAtClient' => false ),
|
97 |
+
'headcell_field3' => array( 'cols' => array( 3 ),
|
98 |
+
'rows' => array( 0 ),
|
99 |
+
'tags' => array( 'replay_kwick_fieldheadercolumn' ),
|
100 |
+
'items' => array( 'simple_grid_field7' ),
|
101 |
+
'fixedAtServer' => false,
|
102 |
+
'fixedAtClient' => false ),
|
103 |
+
'cell_field' => array( 'cols' => array( 0 ),
|
104 |
+
'rows' => array( 1 ),
|
105 |
+
'tags' => array( 'id_fieldcolumn' ),
|
106 |
+
'items' => array( 'simple_grid_field' ),
|
107 |
+
'fixedAtServer' => false,
|
108 |
+
'fixedAtClient' => false ),
|
109 |
+
'cell_field1' => array( 'cols' => array( 1 ),
|
110 |
+
'rows' => array( 1 ),
|
111 |
+
'tags' => array( 'replay_fieldcolumn' ),
|
112 |
+
'items' => array( 'simple_grid_field1' ),
|
113 |
+
'fixedAtServer' => false,
|
114 |
+
'fixedAtClient' => false ),
|
115 |
+
'cell_field2' => array( 'cols' => array( 2 ),
|
116 |
+
'rows' => array( 1 ),
|
117 |
+
'tags' => array( 'replay_fix_fieldcolumn' ),
|
118 |
+
'items' => array( 'simple_grid_field2' ),
|
119 |
+
'fixedAtServer' => false,
|
120 |
+
'fixedAtClient' => false ),
|
121 |
+
'cell_field3' => array( 'cols' => array( 3 ),
|
122 |
+
'rows' => array( 1 ),
|
123 |
+
'tags' => array( 'replay_kwick_fieldcolumn' ),
|
124 |
+
'items' => array( 'simple_grid_field3' ),
|
125 |
+
'fixedAtServer' => false,
|
126 |
+
'fixedAtClient' => false ),
|
127 |
+
'footcell_field' => array( 'cols' => array( 0 ),
|
128 |
+
'rows' => array( 2 ),
|
129 |
+
'tags' => array( ),
|
130 |
+
'items' => array( ),
|
131 |
+
'fixedAtServer' => false,
|
132 |
+
'fixedAtClient' => false ),
|
133 |
+
'footcell_field1' => array( 'cols' => array( 1 ),
|
134 |
+
'rows' => array( 2 ),
|
135 |
+
'tags' => array( ),
|
136 |
+
'items' => array( ),
|
137 |
+
'fixedAtServer' => false,
|
138 |
+
'fixedAtClient' => false ),
|
139 |
+
'footcell_field2' => array( 'cols' => array( 2 ),
|
140 |
+
'rows' => array( 2 ),
|
141 |
+
'tags' => array( ),
|
142 |
+
'items' => array( ),
|
143 |
+
'fixedAtServer' => false,
|
144 |
+
'fixedAtClient' => false ),
|
145 |
+
'footcell_field3' => array( 'cols' => array( 3 ),
|
146 |
+
'rows' => array( 2 ),
|
147 |
+
'tags' => array( ),
|
148 |
+
'items' => array( ),
|
149 |
+
'fixedAtServer' => false,
|
150 |
+
'fixedAtClient' => false ) ),
|
151 |
+
'width' => 4,
|
152 |
+
'height' => 3 ) ) ),
|
153 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
154 |
+
'page' => array( 'verticalBar' => false,
|
155 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
156 |
+
'print_pages' => array( 'print_pages' => array( 'tag' => 'PRINT_PAGES',
|
157 |
+
'type' => 2 ) ),
|
158 |
+
'register_activate_message' => array( ),
|
159 |
+
'details_found' => array( ) ),
|
160 |
+
'gridType' => 0,
|
161 |
+
'recsPerRow' => 1,
|
162 |
+
'hasCustomButtons' => false,
|
163 |
+
'customButtons' => array( ),
|
164 |
+
'hasNotifications' => false,
|
165 |
+
'menus' => array( ),
|
166 |
+
'calcTotalsFor' => 1 ),
|
167 |
+
'misc' => array( 'type' => 'print',
|
168 |
+
'breadcrumb' => false ),
|
169 |
+
'events' => array( 'maps' => array( ),
|
170 |
+
'mapsData' => array( ),
|
171 |
+
'buttons' => array( ) ),
|
172 |
+
'dataGrid' => array( 'groupFields' => array( ) ) );
|
173 |
+
$pageArray = array( 'id' => 'print',
|
174 |
+
'type' => 'print',
|
175 |
+
'layoutId' => 'basic',
|
176 |
+
'disabled' => 0,
|
177 |
+
'default' => 0,
|
178 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'print-above-grid',
|
179 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
180 |
+
'section' => '' ) ),
|
181 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
182 |
+
'items' => array( 'print_pages' ) ) ),
|
183 |
+
'deferredItems' => array( ),
|
184 |
+
'recsPerRow' => 1 ),
|
185 |
+
'below-grid' => array( 'modelId' => 'print-below-grid',
|
186 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
187 |
+
'section' => '' ) ),
|
188 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
189 |
+
'items' => array( ) ) ),
|
190 |
+
'deferredItems' => array( ),
|
191 |
+
'recsPerRow' => 1 ),
|
192 |
+
'top' => array( 'modelId' => 'print-header',
|
193 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c2' ) ),
|
194 |
+
'section' => '' ) ),
|
195 |
+
'cells' => array( 'c2' => array( 'model' => 'c2',
|
196 |
+
'items' => array( 'print_header',
|
197 |
+
'print_subheader' ) ) ),
|
198 |
+
'deferredItems' => array( ),
|
199 |
+
'recsPerRow' => 1 ),
|
200 |
+
'grid' => array( 'modelId' => 'horizontal-grid',
|
201 |
+
'grid' => array( array( 'section' => 'head',
|
202 |
+
'cells' => array( array( 'cell' => 'headcell_field' ),
|
203 |
+
array( 'cell' => 'headcell_field1' ),
|
204 |
+
array( 'cell' => 'headcell_field2' ),
|
205 |
+
array( 'cell' => 'headcell_field3' ) ) ),
|
206 |
+
array( 'section' => 'body',
|
207 |
+
'cells' => array( array( 'cell' => 'cell_field' ),
|
208 |
+
array( 'cell' => 'cell_field1' ),
|
209 |
+
array( 'cell' => 'cell_field2' ),
|
210 |
+
array( 'cell' => 'cell_field3' ) ) ),
|
211 |
+
array( 'section' => 'foot',
|
212 |
+
'cells' => array( array( 'cell' => 'footcell_field' ),
|
213 |
+
array( 'cell' => 'footcell_field1' ),
|
214 |
+
array( 'cell' => 'footcell_field2' ),
|
215 |
+
array( 'cell' => 'footcell_field3' ) ) ) ),
|
216 |
+
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
|
217 |
+
'items' => array( 'simple_grid_field4' ),
|
218 |
+
'field' => 'id',
|
219 |
+
'columnName' => 'field' ),
|
220 |
+
'cell_field' => array( 'model' => 'cell_field',
|
221 |
+
'items' => array( 'simple_grid_field' ),
|
222 |
+
'field' => 'id',
|
223 |
+
'columnName' => 'field' ),
|
224 |
+
'footcell_field' => array( 'model' => 'footcell_field',
|
225 |
+
'items' => array( ) ),
|
226 |
+
'headcell_field1' => array( 'model' => 'headcell_field',
|
227 |
+
'items' => array( 'simple_grid_field5' ),
|
228 |
+
'field' => 'replay',
|
229 |
+
'columnName' => 'field' ),
|
230 |
+
'cell_field1' => array( 'model' => 'cell_field',
|
231 |
+
'items' => array( 'simple_grid_field1' ),
|
232 |
+
'field' => 'replay',
|
233 |
+
'columnName' => 'field' ),
|
234 |
+
'footcell_field1' => array( 'model' => 'footcell_field',
|
235 |
+
'items' => array( ) ),
|
236 |
+
'headcell_field2' => array( 'model' => 'headcell_field',
|
237 |
+
'items' => array( 'simple_grid_field6' ),
|
238 |
+
'field' => 'replay_fix',
|
239 |
+
'columnName' => 'field' ),
|
240 |
+
'cell_field2' => array( 'model' => 'cell_field',
|
241 |
+
'items' => array( 'simple_grid_field2' ),
|
242 |
+
'field' => 'replay_fix',
|
243 |
+
'columnName' => 'field' ),
|
244 |
+
'footcell_field2' => array( 'model' => 'footcell_field',
|
245 |
+
'items' => array( ) ),
|
246 |
+
'headcell_field3' => array( 'model' => 'headcell_field',
|
247 |
+
'items' => array( 'simple_grid_field7' ),
|
248 |
+
'field' => 'replay_kwick',
|
249 |
+
'columnName' => 'field' ),
|
250 |
+
'cell_field3' => array( 'model' => 'cell_field',
|
251 |
+
'items' => array( 'simple_grid_field3' ),
|
252 |
+
'field' => 'replay_kwick',
|
253 |
+
'columnName' => 'field' ),
|
254 |
+
'footcell_field3' => array( 'model' => 'footcell_field',
|
255 |
+
'items' => array( ) ) ),
|
256 |
+
'deferredItems' => array( ),
|
257 |
+
'recsPerRow' => 1 ) ),
|
258 |
+
'items' => array( 'print_header' => array( 'type' => 'print_header' ),
|
259 |
+
'print_subheader' => array( 'type' => 'print_subheader' ),
|
260 |
+
'print_pages' => array( 'type' => 'print_pages' ),
|
261 |
+
'simple_grid_field' => array( 'field' => 'id',
|
262 |
+
'type' => 'grid_field' ),
|
263 |
+
'simple_grid_field4' => array( 'type' => 'grid_field_label',
|
264 |
+
'field' => 'id' ),
|
265 |
+
'simple_grid_field1' => array( 'field' => 'replay',
|
266 |
+
'type' => 'grid_field' ),
|
267 |
+
'simple_grid_field5' => array( 'type' => 'grid_field_label',
|
268 |
+
'field' => 'replay' ),
|
269 |
+
'simple_grid_field2' => array( 'field' => 'replay_fix',
|
270 |
+
'type' => 'grid_field' ),
|
271 |
+
'simple_grid_field6' => array( 'type' => 'grid_field_label',
|
272 |
+
'field' => 'replay_fix' ),
|
273 |
+
'simple_grid_field3' => array( 'field' => 'replay_kwick',
|
274 |
+
'type' => 'grid_field' ),
|
275 |
+
'simple_grid_field7' => array( 'type' => 'grid_field_label',
|
276 |
+
'field' => 'replay_kwick' ) ),
|
277 |
+
'dbProps' => array( ),
|
278 |
+
'version' => 14,
|
279 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
280 |
+
'imageBgColor' => '#f2f2f2',
|
281 |
+
'controlsBgColor' => 'white',
|
282 |
+
'imagePosition' => 'right',
|
283 |
+
'listTotals' => 1 );
|
284 |
+
?>
|
php/include/pages/chat_agent_search.php
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
|
3 |
+
'replay',
|
4 |
+
'replay_fix',
|
5 |
+
'replay_kwick' ),
|
6 |
+
'searchRequiredFields' => array( ),
|
7 |
+
'searchPanelFields' => array( ),
|
8 |
+
'fieldItems' => array( 'id' => array( 'integrated_search_field' ),
|
9 |
+
'replay' => array( 'integrated_search_field1' ),
|
10 |
+
'replay_fix' => array( 'integrated_search_field2' ),
|
11 |
+
'replay_kwick' => array( 'integrated_search_field3' ) ) ),
|
12 |
+
'pageLinks' => array( 'edit' => false,
|
13 |
+
'add' => false,
|
14 |
+
'view' => false,
|
15 |
+
'print' => false ),
|
16 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ),
|
17 |
+
'below-grid' => array( 'search_search',
|
18 |
+
'search_reset',
|
19 |
+
'search_back_list',
|
20 |
+
'search_cancel' ),
|
21 |
+
'top' => array( 'search_header' ),
|
22 |
+
'grid' => array( 'integrated_search_field',
|
23 |
+
'integrated_search_field1',
|
24 |
+
'integrated_search_field2',
|
25 |
+
'integrated_search_field3' ) ),
|
26 |
+
'formXtTags' => array( 'above-grid' => array( ) ),
|
27 |
+
'itemForms' => array( 'search_search' => 'below-grid',
|
28 |
+
'search_reset' => 'below-grid',
|
29 |
+
'search_back_list' => 'below-grid',
|
30 |
+
'search_cancel' => 'below-grid',
|
31 |
+
'search_header' => 'top',
|
32 |
+
'integrated_search_field' => 'grid',
|
33 |
+
'integrated_search_field1' => 'grid',
|
34 |
+
'integrated_search_field2' => 'grid',
|
35 |
+
'integrated_search_field3' => 'grid' ),
|
36 |
+
'itemLocations' => array( 'integrated_search_field' => array( 'location' => 'grid',
|
37 |
+
'cellId' => 'c3' ),
|
38 |
+
'integrated_search_field1' => array( 'location' => 'grid',
|
39 |
+
'cellId' => 'c3' ),
|
40 |
+
'integrated_search_field2' => array( 'location' => 'grid',
|
41 |
+
'cellId' => 'c3' ),
|
42 |
+
'integrated_search_field3' => array( 'location' => 'grid',
|
43 |
+
'cellId' => 'c3' ) ),
|
44 |
+
'itemVisiblity' => array( ) ),
|
45 |
+
'itemsByType' => array( 'search_header' => array( 'search_header' ),
|
46 |
+
'search_reset' => array( 'search_reset' ),
|
47 |
+
'search_back_list' => array( 'search_back_list' ),
|
48 |
+
'search_search' => array( 'search_search' ),
|
49 |
+
'search_cancel' => array( 'search_cancel' ),
|
50 |
+
'integrated_search_field' => array( 'integrated_search_field',
|
51 |
+
'integrated_search_field1',
|
52 |
+
'integrated_search_field2',
|
53 |
+
'integrated_search_field3' ) ),
|
54 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
55 |
+
'rows' => array( 0 ),
|
56 |
+
'tags' => array( ),
|
57 |
+
'items' => array( 'integrated_search_field',
|
58 |
+
'integrated_search_field1',
|
59 |
+
'integrated_search_field2',
|
60 |
+
'integrated_search_field3' ),
|
61 |
+
'fixedAtServer' => true,
|
62 |
+
'fixedAtClient' => false ) ),
|
63 |
+
'width' => 1,
|
64 |
+
'height' => 1 ) ) ),
|
65 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
66 |
+
'page' => array( 'verticalBar' => false,
|
67 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
68 |
+
'print_pages' => array( ),
|
69 |
+
'register_activate_message' => array( ),
|
70 |
+
'details_found' => array( ) ),
|
71 |
+
'hasCustomButtons' => false,
|
72 |
+
'customButtons' => array( ),
|
73 |
+
'hasNotifications' => false,
|
74 |
+
'menus' => array( ),
|
75 |
+
'calcTotalsFor' => 1 ),
|
76 |
+
'misc' => array( 'type' => 'search',
|
77 |
+
'breadcrumb' => false ),
|
78 |
+
'events' => array( 'maps' => array( ),
|
79 |
+
'mapsData' => array( ),
|
80 |
+
'buttons' => array( ) ) );
|
81 |
+
$pageArray = array( 'id' => 'search',
|
82 |
+
'type' => 'search',
|
83 |
+
'layoutId' => 'nomenu',
|
84 |
+
'disabled' => 0,
|
85 |
+
'default' => 0,
|
86 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'search-above-grid',
|
87 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
|
88 |
+
'colspan' => 2 ) ),
|
89 |
+
'section' => '' ) ),
|
90 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
91 |
+
'items' => array( ) ) ),
|
92 |
+
'deferredItems' => array( ),
|
93 |
+
'recsPerRow' => 1 ),
|
94 |
+
'below-grid' => array( 'modelId' => 'search-below-grid',
|
95 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
96 |
+
'section' => '' ) ),
|
97 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
98 |
+
'items' => array( 'search_search',
|
99 |
+
'search_reset',
|
100 |
+
'search_back_list',
|
101 |
+
'search_cancel' ) ) ),
|
102 |
+
'deferredItems' => array( ),
|
103 |
+
'recsPerRow' => 1 ),
|
104 |
+
'top' => array( 'modelId' => 'search-header',
|
105 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
106 |
+
'section' => '' ) ),
|
107 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
108 |
+
'items' => array( 'search_header' ) ) ),
|
109 |
+
'deferredItems' => array( ),
|
110 |
+
'recsPerRow' => 1 ),
|
111 |
+
'grid' => array( 'modelId' => 'simple-search',
|
112 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
113 |
+
'section' => '' ) ),
|
114 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
115 |
+
'items' => array( 'integrated_search_field',
|
116 |
+
'integrated_search_field1',
|
117 |
+
'integrated_search_field2',
|
118 |
+
'integrated_search_field3' ) ) ),
|
119 |
+
'deferredItems' => array( ),
|
120 |
+
'separateLabels' => false ) ),
|
121 |
+
'items' => array( 'search_header' => array( 'type' => 'search_header' ),
|
122 |
+
'search_reset' => array( 'type' => 'search_reset' ),
|
123 |
+
'search_back_list' => array( 'type' => 'search_back_list' ),
|
124 |
+
'search_search' => array( 'type' => 'search_search' ),
|
125 |
+
'search_cancel' => array( 'type' => 'search_cancel' ),
|
126 |
+
'integrated_search_field' => array( 'field' => 'id',
|
127 |
+
'type' => 'integrated_search_field',
|
128 |
+
'orientation' => 0,
|
129 |
+
'required' => false ),
|
130 |
+
'integrated_search_field1' => array( 'field' => 'replay',
|
131 |
+
'type' => 'integrated_search_field',
|
132 |
+
'orientation' => 0,
|
133 |
+
'required' => false ),
|
134 |
+
'integrated_search_field2' => array( 'field' => 'replay_fix',
|
135 |
+
'type' => 'integrated_search_field',
|
136 |
+
'orientation' => 0,
|
137 |
+
'required' => false ),
|
138 |
+
'integrated_search_field3' => array( 'field' => 'replay_kwick',
|
139 |
+
'type' => 'integrated_search_field',
|
140 |
+
'orientation' => 0,
|
141 |
+
'required' => false ) ),
|
142 |
+
'dbProps' => array( ),
|
143 |
+
'version' => 14,
|
144 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
145 |
+
'imageBgColor' => '#f2f2f2',
|
146 |
+
'controlsBgColor' => 'white',
|
147 |
+
'imagePosition' => 'right',
|
148 |
+
'listTotals' => 1 );
|
149 |
+
?>
|
php/include/pages/chat_agent_view.php
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'pdf' => array( 'pdfView' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'id',
|
4 |
+
'replay',
|
5 |
+
'replay_fix',
|
6 |
+
'replay_kwick' ),
|
7 |
+
'searchRequiredFields' => array( ),
|
8 |
+
'searchPanelFields' => array( ),
|
9 |
+
'fieldItems' => array( 'id' => array( 'integrated_edit_field' ),
|
10 |
+
'replay' => array( 'integrated_edit_field1' ),
|
11 |
+
'replay_fix' => array( 'integrated_edit_field2' ),
|
12 |
+
'replay_kwick' => array( 'integrated_edit_field3' ) ) ),
|
13 |
+
'pageLinks' => array( 'edit' => true,
|
14 |
+
'add' => false,
|
15 |
+
'view' => false,
|
16 |
+
'print' => false ),
|
17 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ),
|
18 |
+
'below-grid' => array( 'view_back_list',
|
19 |
+
'view_close',
|
20 |
+
'hamburger' ),
|
21 |
+
'supertop' => array( 'expand_menu_button',
|
22 |
+
'collapse_button',
|
23 |
+
'loginform_login',
|
24 |
+
'username_button' ),
|
25 |
+
'left' => array( 'logo',
|
26 |
+
'expand_button',
|
27 |
+
'menu' ),
|
28 |
+
'top' => array( 'view_header' ),
|
29 |
+
'grid' => array( 'integrated_edit_field',
|
30 |
+
'integrated_edit_field1',
|
31 |
+
'integrated_edit_field2',
|
32 |
+
'integrated_edit_field3' ) ),
|
33 |
+
'formXtTags' => array( 'above-grid' => array( ) ),
|
34 |
+
'itemForms' => array( 'view_back_list' => 'below-grid',
|
35 |
+
'view_close' => 'below-grid',
|
36 |
+
'hamburger' => 'below-grid',
|
37 |
+
'expand_menu_button' => 'supertop',
|
38 |
+
'collapse_button' => 'supertop',
|
39 |
+
'loginform_login' => 'supertop',
|
40 |
+
'username_button' => 'supertop',
|
41 |
+
'logo' => 'left',
|
42 |
+
'expand_button' => 'left',
|
43 |
+
'menu' => 'left',
|
44 |
+
'view_header' => 'top',
|
45 |
+
'integrated_edit_field' => 'grid',
|
46 |
+
'integrated_edit_field1' => 'grid',
|
47 |
+
'integrated_edit_field2' => 'grid',
|
48 |
+
'integrated_edit_field3' => 'grid' ),
|
49 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
50 |
+
'cellId' => 'c3' ),
|
51 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
52 |
+
'cellId' => 'c3' ),
|
53 |
+
'integrated_edit_field2' => array( 'location' => 'grid',
|
54 |
+
'cellId' => 'c3' ),
|
55 |
+
'integrated_edit_field3' => array( 'location' => 'grid',
|
56 |
+
'cellId' => 'c3' ) ),
|
57 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
58 |
+
'expand_button' => 5 ) ),
|
59 |
+
'itemsByType' => array( 'view_header' => array( 'view_header' ),
|
60 |
+
'view_back_list' => array( 'view_back_list' ),
|
61 |
+
'view_close' => array( 'view_close' ),
|
62 |
+
'logo' => array( 'logo' ),
|
63 |
+
'menu' => array( 'menu' ),
|
64 |
+
'username_button' => array( 'username_button' ),
|
65 |
+
'loginform_login' => array( 'loginform_login' ),
|
66 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
67 |
+
'logout_link' => array( 'logout_link' ),
|
68 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
69 |
+
'collapse_button' => array( 'collapse_button' ),
|
70 |
+
'hamburger' => array( 'hamburger' ),
|
71 |
+
'view_edit' => array( 'view_edit' ),
|
72 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
73 |
+
'integrated_edit_field1',
|
74 |
+
'integrated_edit_field2',
|
75 |
+
'integrated_edit_field3' ),
|
76 |
+
'expand_button' => array( 'expand_button' ) ),
|
77 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
78 |
+
'rows' => array( 0 ),
|
79 |
+
'tags' => array( ),
|
80 |
+
'items' => array( 'integrated_edit_field',
|
81 |
+
'integrated_edit_field1',
|
82 |
+
'integrated_edit_field2',
|
83 |
+
'integrated_edit_field3' ),
|
84 |
+
'fixedAtServer' => true,
|
85 |
+
'fixedAtClient' => false ) ),
|
86 |
+
'width' => 1,
|
87 |
+
'height' => 1 ) ) ),
|
88 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
89 |
+
'page' => array( 'verticalBar' => true,
|
90 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
91 |
+
'print_pages' => array( ),
|
92 |
+
'register_activate_message' => array( ),
|
93 |
+
'details_found' => array( ) ),
|
94 |
+
'hasCustomButtons' => false,
|
95 |
+
'customButtons' => array( ),
|
96 |
+
'hasNotifications' => false,
|
97 |
+
'menus' => array( array( 'id' => 'main',
|
98 |
+
'horizontal' => false ) ),
|
99 |
+
'calcTotalsFor' => 1 ),
|
100 |
+
'misc' => array( 'type' => 'view',
|
101 |
+
'breadcrumb' => false,
|
102 |
+
'nextPrev' => false ),
|
103 |
+
'events' => array( 'maps' => array( ),
|
104 |
+
'mapsData' => array( ),
|
105 |
+
'buttons' => array( ) ) );
|
106 |
+
$pageArray = array( 'id' => 'view',
|
107 |
+
'type' => 'view',
|
108 |
+
'layoutId' => 'leftbar',
|
109 |
+
'disabled' => 0,
|
110 |
+
'default' => 0,
|
111 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'view-above-grid',
|
112 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
|
113 |
+
'colspan' => 2 ) ),
|
114 |
+
'section' => '' ) ),
|
115 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
116 |
+
'items' => array( ) ) ),
|
117 |
+
'deferredItems' => array( ),
|
118 |
+
'recsPerRow' => 1 ),
|
119 |
+
'below-grid' => array( 'modelId' => 'view-below-grid',
|
120 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
121 |
+
array( 'cell' => 'c2' ) ),
|
122 |
+
'section' => '' ) ),
|
123 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
124 |
+
'items' => array( 'view_back_list',
|
125 |
+
'view_close' ) ),
|
126 |
+
'c2' => array( 'model' => 'c2',
|
127 |
+
'items' => array( 'hamburger' ) ) ),
|
128 |
+
'deferredItems' => array( ),
|
129 |
+
'recsPerRow' => 1 ),
|
130 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
131 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
132 |
+
array( 'cell' => 'c2' ) ),
|
133 |
+
'section' => '' ) ),
|
134 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
135 |
+
'items' => array( 'expand_menu_button',
|
136 |
+
'collapse_button' ) ),
|
137 |
+
'c2' => array( 'model' => 'c2',
|
138 |
+
'items' => array( 'loginform_login',
|
139 |
+
'username_button' ) ) ),
|
140 |
+
'deferredItems' => array( ),
|
141 |
+
'recsPerRow' => 1 ),
|
142 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
143 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
144 |
+
'section' => '' ),
|
145 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
146 |
+
'section' => '' ) ),
|
147 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
148 |
+
'items' => array( 'logo',
|
149 |
+
'expand_button' ) ),
|
150 |
+
'c1' => array( 'model' => 'c1',
|
151 |
+
'items' => array( 'menu' ) ) ),
|
152 |
+
'deferredItems' => array( ),
|
153 |
+
'recsPerRow' => 1 ),
|
154 |
+
'top' => array( 'modelId' => 'view-header',
|
155 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
156 |
+
'section' => '' ) ),
|
157 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
158 |
+
'items' => array( 'view_header' ) ) ),
|
159 |
+
'deferredItems' => array( ),
|
160 |
+
'recsPerRow' => 1 ),
|
161 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
162 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
163 |
+
'section' => '' ) ),
|
164 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
165 |
+
'items' => array( 'integrated_edit_field',
|
166 |
+
'integrated_edit_field1',
|
167 |
+
'integrated_edit_field2',
|
168 |
+
'integrated_edit_field3' ) ) ),
|
169 |
+
'deferredItems' => array( ),
|
170 |
+
'columnCount' => 1,
|
171 |
+
'inlineLabels' => false,
|
172 |
+
'separateLabels' => false ) ),
|
173 |
+
'items' => array( 'view_header' => array( 'type' => 'view_header' ),
|
174 |
+
'view_back_list' => array( 'type' => 'view_back_list' ),
|
175 |
+
'view_close' => array( 'type' => 'view_close' ),
|
176 |
+
'logo' => array( 'type' => 'logo' ),
|
177 |
+
'menu' => array( 'type' => 'menu' ),
|
178 |
+
'username_button' => array( 'type' => 'username_button',
|
179 |
+
'items' => array( 'userinfo_link',
|
180 |
+
'logout_link' ) ),
|
181 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
182 |
+
'popup' => false ),
|
183 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
184 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
185 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
186 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
187 |
+
'hamburger' => array( 'type' => 'hamburger',
|
188 |
+
'items' => array( 'view_edit' ) ),
|
189 |
+
'view_edit' => array( 'type' => 'view_edit' ),
|
190 |
+
'integrated_edit_field' => array( 'field' => 'id',
|
191 |
+
'type' => 'integrated_edit_field',
|
192 |
+
'orientation' => 0 ),
|
193 |
+
'integrated_edit_field1' => array( 'field' => 'replay',
|
194 |
+
'type' => 'integrated_edit_field',
|
195 |
+
'orientation' => 0 ),
|
196 |
+
'integrated_edit_field2' => array( 'field' => 'replay_fix',
|
197 |
+
'type' => 'integrated_edit_field',
|
198 |
+
'orientation' => 0 ),
|
199 |
+
'integrated_edit_field3' => array( 'field' => 'replay_kwick',
|
200 |
+
'type' => 'integrated_edit_field',
|
201 |
+
'orientation' => 0 ),
|
202 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
203 |
+
'dbProps' => array( ),
|
204 |
+
'version' => 14,
|
205 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
206 |
+
'imageBgColor' => '#f2f2f2',
|
207 |
+
'controlsBgColor' => 'white',
|
208 |
+
'imagePosition' => 'right',
|
209 |
+
'listTotals' => 1 );
|
210 |
+
?>
|
php/include/pages/chat_external_add.php
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'id',
|
4 |
+
'logs',
|
5 |
+
'users',
|
6 |
+
'report_count' ),
|
7 |
+
'searchRequiredFields' => array( ),
|
8 |
+
'searchPanelFields' => array( ),
|
9 |
+
'fieldItems' => array( 'id' => array( 'integrated_edit_field' ),
|
10 |
+
'logs' => array( 'integrated_edit_field1' ),
|
11 |
+
'users' => array( 'integrated_edit_field2' ),
|
12 |
+
'report_count' => array( 'integrated_edit_field3' ) ) ),
|
13 |
+
'pageLinks' => array( 'edit' => false,
|
14 |
+
'add' => false,
|
15 |
+
'view' => false,
|
16 |
+
'print' => false ),
|
17 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add_message' ),
|
18 |
+
'below-grid' => array( 'add_save',
|
19 |
+
'add_reset',
|
20 |
+
'add_back_list',
|
21 |
+
'add_cancel' ),
|
22 |
+
'supertop' => array( 'expand_menu_button',
|
23 |
+
'collapse_button',
|
24 |
+
'loginform_login',
|
25 |
+
'username_button' ),
|
26 |
+
'left' => array( 'logo',
|
27 |
+
'expand_button',
|
28 |
+
'menu' ),
|
29 |
+
'top' => array( 'add_header' ),
|
30 |
+
'grid' => array( 'integrated_edit_field',
|
31 |
+
'integrated_edit_field1',
|
32 |
+
'integrated_edit_field2',
|
33 |
+
'integrated_edit_field3' ) ),
|
34 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
35 |
+
'itemForms' => array( 'add_message' => 'above-grid',
|
36 |
+
'add_save' => 'below-grid',
|
37 |
+
'add_reset' => 'below-grid',
|
38 |
+
'add_back_list' => 'below-grid',
|
39 |
+
'add_cancel' => 'below-grid',
|
40 |
+
'expand_menu_button' => 'supertop',
|
41 |
+
'collapse_button' => 'supertop',
|
42 |
+
'loginform_login' => 'supertop',
|
43 |
+
'username_button' => 'supertop',
|
44 |
+
'logo' => 'left',
|
45 |
+
'expand_button' => 'left',
|
46 |
+
'menu' => 'left',
|
47 |
+
'add_header' => 'top',
|
48 |
+
'integrated_edit_field' => 'grid',
|
49 |
+
'integrated_edit_field1' => 'grid',
|
50 |
+
'integrated_edit_field2' => 'grid',
|
51 |
+
'integrated_edit_field3' => 'grid' ),
|
52 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
53 |
+
'cellId' => 'c3' ),
|
54 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
55 |
+
'cellId' => 'c3' ),
|
56 |
+
'integrated_edit_field2' => array( 'location' => 'grid',
|
57 |
+
'cellId' => 'c3' ),
|
58 |
+
'integrated_edit_field3' => array( 'location' => 'grid',
|
59 |
+
'cellId' => 'c3' ) ),
|
60 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
61 |
+
'expand_button' => 5 ) ),
|
62 |
+
'itemsByType' => array( 'add_header' => array( 'add_header' ),
|
63 |
+
'add_back_list' => array( 'add_back_list' ),
|
64 |
+
'add_cancel' => array( 'add_cancel' ),
|
65 |
+
'add_message' => array( 'add_message' ),
|
66 |
+
'add_save' => array( 'add_save' ),
|
67 |
+
'add_reset' => array( 'add_reset' ),
|
68 |
+
'logo' => array( 'logo' ),
|
69 |
+
'menu' => array( 'menu' ),
|
70 |
+
'username_button' => array( 'username_button' ),
|
71 |
+
'loginform_login' => array( 'loginform_login' ),
|
72 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
73 |
+
'logout_link' => array( 'logout_link' ),
|
74 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
75 |
+
'collapse_button' => array( 'collapse_button' ),
|
76 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
77 |
+
'integrated_edit_field1',
|
78 |
+
'integrated_edit_field2',
|
79 |
+
'integrated_edit_field3' ),
|
80 |
+
'expand_button' => array( 'expand_button' ) ),
|
81 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
82 |
+
'rows' => array( 0 ),
|
83 |
+
'tags' => array( ),
|
84 |
+
'items' => array( 'integrated_edit_field',
|
85 |
+
'integrated_edit_field1',
|
86 |
+
'integrated_edit_field2',
|
87 |
+
'integrated_edit_field3' ),
|
88 |
+
'fixedAtServer' => true,
|
89 |
+
'fixedAtClient' => false ) ),
|
90 |
+
'width' => 1,
|
91 |
+
'height' => 1 ) ) ),
|
92 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
93 |
+
'page' => array( 'verticalBar' => true,
|
94 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
95 |
+
'print_pages' => array( ),
|
96 |
+
'register_activate_message' => array( ),
|
97 |
+
'details_found' => array( ) ),
|
98 |
+
'hasCustomButtons' => false,
|
99 |
+
'customButtons' => array( ),
|
100 |
+
'hasNotifications' => false,
|
101 |
+
'menus' => array( array( 'id' => 'main',
|
102 |
+
'horizontal' => false ) ),
|
103 |
+
'calcTotalsFor' => 1 ),
|
104 |
+
'misc' => array( 'type' => 'add',
|
105 |
+
'breadcrumb' => false ),
|
106 |
+
'events' => array( 'maps' => array( ),
|
107 |
+
'mapsData' => array( ),
|
108 |
+
'buttons' => array( ) ) );
|
109 |
+
$pageArray = array( 'id' => 'add',
|
110 |
+
'type' => 'add',
|
111 |
+
'layoutId' => 'leftbar',
|
112 |
+
'disabled' => 0,
|
113 |
+
'default' => 0,
|
114 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'add-above-grid',
|
115 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
116 |
+
'section' => '' ) ),
|
117 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
118 |
+
'items' => array( 'add_message' ) ) ),
|
119 |
+
'deferredItems' => array( ),
|
120 |
+
'recsPerRow' => 1 ),
|
121 |
+
'below-grid' => array( 'modelId' => 'add-below-grid',
|
122 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
123 |
+
'section' => '' ) ),
|
124 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
125 |
+
'items' => array( 'add_save',
|
126 |
+
'add_reset',
|
127 |
+
'add_back_list',
|
128 |
+
'add_cancel' ) ) ),
|
129 |
+
'deferredItems' => array( ),
|
130 |
+
'recsPerRow' => 1 ),
|
131 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
132 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
133 |
+
array( 'cell' => 'c2' ) ),
|
134 |
+
'section' => '' ) ),
|
135 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
136 |
+
'items' => array( 'expand_menu_button',
|
137 |
+
'collapse_button' ) ),
|
138 |
+
'c2' => array( 'model' => 'c2',
|
139 |
+
'items' => array( 'loginform_login',
|
140 |
+
'username_button' ) ) ),
|
141 |
+
'deferredItems' => array( ),
|
142 |
+
'recsPerRow' => 1 ),
|
143 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
144 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
145 |
+
'section' => '' ),
|
146 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
147 |
+
'section' => '' ) ),
|
148 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
149 |
+
'items' => array( 'logo',
|
150 |
+
'expand_button' ) ),
|
151 |
+
'c1' => array( 'model' => 'c1',
|
152 |
+
'items' => array( 'menu' ) ) ),
|
153 |
+
'deferredItems' => array( ),
|
154 |
+
'recsPerRow' => 1 ),
|
155 |
+
'top' => array( 'modelId' => 'add-header',
|
156 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
157 |
+
'section' => '' ) ),
|
158 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
159 |
+
'items' => array( 'add_header' ) ) ),
|
160 |
+
'deferredItems' => array( ),
|
161 |
+
'recsPerRow' => 1 ),
|
162 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
163 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
164 |
+
'section' => '' ) ),
|
165 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
166 |
+
'items' => array( 'integrated_edit_field',
|
167 |
+
'integrated_edit_field1',
|
168 |
+
'integrated_edit_field2',
|
169 |
+
'integrated_edit_field3' ) ) ),
|
170 |
+
'deferredItems' => array( ),
|
171 |
+
'columnCount' => 1,
|
172 |
+
'inlineLabels' => false,
|
173 |
+
'separateLabels' => false ) ),
|
174 |
+
'items' => array( 'add_header' => array( 'type' => 'add_header' ),
|
175 |
+
'add_back_list' => array( 'type' => 'add_back_list' ),
|
176 |
+
'add_cancel' => array( 'type' => 'add_cancel' ),
|
177 |
+
'add_message' => array( 'type' => 'add_message' ),
|
178 |
+
'add_save' => array( 'type' => 'add_save' ),
|
179 |
+
'add_reset' => array( 'type' => 'add_reset' ),
|
180 |
+
'logo' => array( 'type' => 'logo' ),
|
181 |
+
'menu' => array( 'type' => 'menu' ),
|
182 |
+
'username_button' => array( 'type' => 'username_button',
|
183 |
+
'items' => array( 'userinfo_link',
|
184 |
+
'logout_link' ) ),
|
185 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
186 |
+
'popup' => false ),
|
187 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
188 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
189 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
190 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
191 |
+
'integrated_edit_field' => array( 'field' => 'id',
|
192 |
+
'type' => 'integrated_edit_field',
|
193 |
+
'orientation' => 0 ),
|
194 |
+
'integrated_edit_field1' => array( 'field' => 'logs',
|
195 |
+
'type' => 'integrated_edit_field',
|
196 |
+
'orientation' => 0 ),
|
197 |
+
'integrated_edit_field2' => array( 'field' => 'users',
|
198 |
+
'type' => 'integrated_edit_field',
|
199 |
+
'orientation' => 0 ),
|
200 |
+
'integrated_edit_field3' => array( 'field' => 'report_count',
|
201 |
+
'type' => 'integrated_edit_field',
|
202 |
+
'orientation' => 0 ),
|
203 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
204 |
+
'dbProps' => array( ),
|
205 |
+
'version' => 14,
|
206 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
207 |
+
'imageBgColor' => '#f2f2f2',
|
208 |
+
'controlsBgColor' => 'white',
|
209 |
+
'imagePosition' => 'right',
|
210 |
+
'listTotals' => 1 );
|
211 |
+
?>
|
php/include/pages/chat_external_edit.php
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'id',
|
4 |
+
'logs',
|
5 |
+
'users',
|
6 |
+
'report_count' ),
|
7 |
+
'searchRequiredFields' => array( ),
|
8 |
+
'searchPanelFields' => array( ),
|
9 |
+
'updateOnEditFields' => array( ),
|
10 |
+
'fieldItems' => array( 'id' => array( 'integrated_edit_field' ),
|
11 |
+
'logs' => array( 'integrated_edit_field1' ),
|
12 |
+
'users' => array( 'integrated_edit_field2' ),
|
13 |
+
'report_count' => array( 'integrated_edit_field3' ) ) ),
|
14 |
+
'pageLinks' => array( 'edit' => false,
|
15 |
+
'add' => false,
|
16 |
+
'view' => true,
|
17 |
+
'print' => false ),
|
18 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'edit_message' ),
|
19 |
+
'below-grid' => array( 'edit_save',
|
20 |
+
'edit_back_list',
|
21 |
+
'edit_close',
|
22 |
+
'hamburger' ),
|
23 |
+
'supertop' => array( 'expand_menu_button',
|
24 |
+
'collapse_button',
|
25 |
+
'loginform_login',
|
26 |
+
'username_button' ),
|
27 |
+
'left' => array( 'logo',
|
28 |
+
'expand_button',
|
29 |
+
'menu' ),
|
30 |
+
'top' => array( 'edit_header' ),
|
31 |
+
'grid' => array( 'integrated_edit_field',
|
32 |
+
'integrated_edit_field1',
|
33 |
+
'integrated_edit_field2',
|
34 |
+
'integrated_edit_field3' ) ),
|
35 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
36 |
+
'itemForms' => array( 'edit_message' => 'above-grid',
|
37 |
+
'edit_save' => 'below-grid',
|
38 |
+
'edit_back_list' => 'below-grid',
|
39 |
+
'edit_close' => 'below-grid',
|
40 |
+
'hamburger' => 'below-grid',
|
41 |
+
'expand_menu_button' => 'supertop',
|
42 |
+
'collapse_button' => 'supertop',
|
43 |
+
'loginform_login' => 'supertop',
|
44 |
+
'username_button' => 'supertop',
|
45 |
+
'logo' => 'left',
|
46 |
+
'expand_button' => 'left',
|
47 |
+
'menu' => 'left',
|
48 |
+
'edit_header' => 'top',
|
49 |
+
'integrated_edit_field' => 'grid',
|
50 |
+
'integrated_edit_field1' => 'grid',
|
51 |
+
'integrated_edit_field2' => 'grid',
|
52 |
+
'integrated_edit_field3' => 'grid' ),
|
53 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
54 |
+
'cellId' => 'c3' ),
|
55 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
56 |
+
'cellId' => 'c3' ),
|
57 |
+
'integrated_edit_field2' => array( 'location' => 'grid',
|
58 |
+
'cellId' => 'c3' ),
|
59 |
+
'integrated_edit_field3' => array( 'location' => 'grid',
|
60 |
+
'cellId' => 'c3' ) ),
|
61 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
62 |
+
'expand_button' => 5 ) ),
|
63 |
+
'itemsByType' => array( 'edit_header' => array( 'edit_header' ),
|
64 |
+
'hamburger' => array( 'hamburger' ),
|
65 |
+
'edit_reset' => array( 'edit_reset' ),
|
66 |
+
'edit_message' => array( 'edit_message' ),
|
67 |
+
'edit_save' => array( 'edit_save' ),
|
68 |
+
'edit_back_list' => array( 'edit_back_list' ),
|
69 |
+
'edit_close' => array( 'edit_close' ),
|
70 |
+
'logo' => array( 'logo' ),
|
71 |
+
'menu' => array( 'menu' ),
|
72 |
+
'username_button' => array( 'username_button' ),
|
73 |
+
'loginform_login' => array( 'loginform_login' ),
|
74 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
75 |
+
'logout_link' => array( 'logout_link' ),
|
76 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
77 |
+
'collapse_button' => array( 'collapse_button' ),
|
78 |
+
'edit_view' => array( 'edit_view' ),
|
79 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
80 |
+
'integrated_edit_field1',
|
81 |
+
'integrated_edit_field2',
|
82 |
+
'integrated_edit_field3' ),
|
83 |
+
'expand_button' => array( 'expand_button' ) ),
|
84 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
85 |
+
'rows' => array( 0 ),
|
86 |
+
'tags' => array( ),
|
87 |
+
'items' => array( 'integrated_edit_field',
|
88 |
+
'integrated_edit_field1',
|
89 |
+
'integrated_edit_field2',
|
90 |
+
'integrated_edit_field3' ),
|
91 |
+
'fixedAtServer' => true,
|
92 |
+
'fixedAtClient' => false ) ),
|
93 |
+
'width' => 1,
|
94 |
+
'height' => 1 ) ) ),
|
95 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
96 |
+
'page' => array( 'verticalBar' => true,
|
97 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
98 |
+
'print_pages' => array( ),
|
99 |
+
'register_activate_message' => array( ),
|
100 |
+
'details_found' => array( ) ),
|
101 |
+
'hasCustomButtons' => false,
|
102 |
+
'customButtons' => array( ),
|
103 |
+
'hasNotifications' => false,
|
104 |
+
'menus' => array( array( 'id' => 'main',
|
105 |
+
'horizontal' => false ) ),
|
106 |
+
'calcTotalsFor' => 1 ),
|
107 |
+
'misc' => array( 'type' => 'edit',
|
108 |
+
'breadcrumb' => false,
|
109 |
+
'nextPrev' => false ),
|
110 |
+
'events' => array( 'maps' => array( ),
|
111 |
+
'mapsData' => array( ),
|
112 |
+
'buttons' => array( ) ),
|
113 |
+
'edit' => array( 'updateSelected' => false ) );
|
114 |
+
$pageArray = array( 'id' => 'edit',
|
115 |
+
'type' => 'edit',
|
116 |
+
'layoutId' => 'leftbar',
|
117 |
+
'disabled' => 0,
|
118 |
+
'default' => 0,
|
119 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'edit-above-grid',
|
120 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
121 |
+
'section' => '' ) ),
|
122 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
123 |
+
'items' => array( 'edit_message' ) ) ),
|
124 |
+
'deferredItems' => array( ),
|
125 |
+
'recsPerRow' => 1 ),
|
126 |
+
'below-grid' => array( 'modelId' => 'edit-below-grid',
|
127 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
128 |
+
array( 'cell' => 'c2' ) ),
|
129 |
+
'section' => '' ) ),
|
130 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
131 |
+
'items' => array( 'edit_save',
|
132 |
+
'edit_back_list',
|
133 |
+
'edit_close' ) ),
|
134 |
+
'c2' => array( 'model' => 'c2',
|
135 |
+
'items' => array( 'hamburger' ) ) ),
|
136 |
+
'deferredItems' => array( ),
|
137 |
+
'recsPerRow' => 1 ),
|
138 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
139 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
140 |
+
array( 'cell' => 'c2' ) ),
|
141 |
+
'section' => '' ) ),
|
142 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
143 |
+
'items' => array( 'expand_menu_button',
|
144 |
+
'collapse_button' ) ),
|
145 |
+
'c2' => array( 'model' => 'c2',
|
146 |
+
'items' => array( 'loginform_login',
|
147 |
+
'username_button' ) ) ),
|
148 |
+
'deferredItems' => array( ),
|
149 |
+
'recsPerRow' => 1 ),
|
150 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
151 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
152 |
+
'section' => '' ),
|
153 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
154 |
+
'section' => '' ) ),
|
155 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
156 |
+
'items' => array( 'logo',
|
157 |
+
'expand_button' ) ),
|
158 |
+
'c1' => array( 'model' => 'c1',
|
159 |
+
'items' => array( 'menu' ) ) ),
|
160 |
+
'deferredItems' => array( ),
|
161 |
+
'recsPerRow' => 1 ),
|
162 |
+
'top' => array( 'modelId' => 'edit-header',
|
163 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
164 |
+
'section' => '' ) ),
|
165 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
166 |
+
'items' => array( 'edit_header' ) ) ),
|
167 |
+
'deferredItems' => array( ),
|
168 |
+
'recsPerRow' => 1 ),
|
169 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
170 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
171 |
+
'section' => '' ) ),
|
172 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
173 |
+
'items' => array( 'integrated_edit_field',
|
174 |
+
'integrated_edit_field1',
|
175 |
+
'integrated_edit_field2',
|
176 |
+
'integrated_edit_field3' ) ) ),
|
177 |
+
'deferredItems' => array( ),
|
178 |
+
'columnCount' => 1,
|
179 |
+
'inlineLabels' => false,
|
180 |
+
'separateLabels' => false ) ),
|
181 |
+
'items' => array( 'edit_header' => array( 'type' => 'edit_header' ),
|
182 |
+
'hamburger' => array( 'type' => 'hamburger',
|
183 |
+
'items' => array( 'edit_reset',
|
184 |
+
'edit_view' ) ),
|
185 |
+
'edit_reset' => array( 'type' => 'edit_reset' ),
|
186 |
+
'edit_message' => array( 'type' => 'edit_message' ),
|
187 |
+
'edit_save' => array( 'type' => 'edit_save' ),
|
188 |
+
'edit_back_list' => array( 'type' => 'edit_back_list' ),
|
189 |
+
'edit_close' => array( 'type' => 'edit_close' ),
|
190 |
+
'logo' => array( 'type' => 'logo' ),
|
191 |
+
'menu' => array( 'type' => 'menu' ),
|
192 |
+
'username_button' => array( 'type' => 'username_button',
|
193 |
+
'items' => array( 'userinfo_link',
|
194 |
+
'logout_link' ) ),
|
195 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
196 |
+
'popup' => false ),
|
197 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
198 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
199 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
200 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
201 |
+
'edit_view' => array( 'type' => 'edit_view' ),
|
202 |
+
'integrated_edit_field' => array( 'field' => 'id',
|
203 |
+
'type' => 'integrated_edit_field',
|
204 |
+
'orientation' => 0 ),
|
205 |
+
'integrated_edit_field1' => array( 'field' => 'logs',
|
206 |
+
'type' => 'integrated_edit_field',
|
207 |
+
'orientation' => 0 ),
|
208 |
+
'integrated_edit_field2' => array( 'field' => 'users',
|
209 |
+
'type' => 'integrated_edit_field',
|
210 |
+
'orientation' => 0 ),
|
211 |
+
'integrated_edit_field3' => array( 'field' => 'report_count',
|
212 |
+
'type' => 'integrated_edit_field',
|
213 |
+
'orientation' => 0 ),
|
214 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
215 |
+
'dbProps' => array( ),
|
216 |
+
'version' => 14,
|
217 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
218 |
+
'imageBgColor' => '#f2f2f2',
|
219 |
+
'controlsBgColor' => 'white',
|
220 |
+
'imagePosition' => 'right',
|
221 |
+
'listTotals' => 1 );
|
222 |
+
?>
|
php/include/pages/chat_external_export.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'totals' => array( 'id' => array( 'totalsType' => '' ),
|
3 |
+
'logs' => array( 'totalsType' => '' ),
|
4 |
+
'users' => array( 'totalsType' => '' ),
|
5 |
+
'report_count' => array( 'totalsType' => '' ) ),
|
6 |
+
'fields' => array( 'gridFields' => array( 'id',
|
7 |
+
'logs',
|
8 |
+
'users',
|
9 |
+
'report_count' ),
|
10 |
+
'exportFields' => array( 'id',
|
11 |
+
'logs',
|
12 |
+
'users',
|
13 |
+
'report_count' ),
|
14 |
+
'searchRequiredFields' => array( ),
|
15 |
+
'searchPanelFields' => array( ),
|
16 |
+
'fieldItems' => array( 'id' => array( 'export_field' ),
|
17 |
+
'logs' => array( 'export_field1' ),
|
18 |
+
'users' => array( 'export_field2' ),
|
19 |
+
'report_count' => array( 'export_field3' ) ) ),
|
20 |
+
'pageLinks' => array( 'edit' => false,
|
21 |
+
'add' => false,
|
22 |
+
'view' => false,
|
23 |
+
'print' => false ),
|
24 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ),
|
25 |
+
'top' => array( 'export_header' ),
|
26 |
+
'grid' => array( 'export_field',
|
27 |
+
'export_field1',
|
28 |
+
'export_field2',
|
29 |
+
'export_field3' ),
|
30 |
+
'footer' => array( 'export_export',
|
31 |
+
'export_cancel' ) ),
|
32 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
33 |
+
'itemForms' => array( 'export_header' => 'top',
|
34 |
+
'export_field' => 'grid',
|
35 |
+
'export_field1' => 'grid',
|
36 |
+
'export_field2' => 'grid',
|
37 |
+
'export_field3' => 'grid',
|
38 |
+
'export_export' => 'footer',
|
39 |
+
'export_cancel' => 'footer' ),
|
40 |
+
'itemLocations' => array( ),
|
41 |
+
'itemVisiblity' => array( ) ),
|
42 |
+
'itemsByType' => array( 'export_header' => array( 'export_header' ),
|
43 |
+
'export_export' => array( 'export_export' ),
|
44 |
+
'export_cancel' => array( 'export_cancel' ),
|
45 |
+
'export_field' => array( 'export_field',
|
46 |
+
'export_field1',
|
47 |
+
'export_field2',
|
48 |
+
'export_field3' ) ),
|
49 |
+
'cellMaps' => array( ) ),
|
50 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
51 |
+
'page' => array( 'verticalBar' => false,
|
52 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
53 |
+
'print_pages' => array( ),
|
54 |
+
'register_activate_message' => array( ),
|
55 |
+
'details_found' => array( ) ),
|
56 |
+
'hasCustomButtons' => false,
|
57 |
+
'customButtons' => array( ),
|
58 |
+
'hasNotifications' => false,
|
59 |
+
'menus' => array( ),
|
60 |
+
'calcTotalsFor' => 1 ),
|
61 |
+
'events' => array( 'maps' => array( ),
|
62 |
+
'mapsData' => array( ),
|
63 |
+
'buttons' => array( ) ),
|
64 |
+
'export' => array( 'format' => 2,
|
65 |
+
'selectFields' => false,
|
66 |
+
'delimiter' => ',',
|
67 |
+
'selectDelimiter' => false,
|
68 |
+
'exportFileTypes' => array( 'excel' => true,
|
69 |
+
'word' => true,
|
70 |
+
'csv' => true,
|
71 |
+
'xml' => false ) ) );
|
72 |
+
$pageArray = array( 'id' => 'export',
|
73 |
+
'type' => 'export',
|
74 |
+
'layoutId' => 'first',
|
75 |
+
'disabled' => 0,
|
76 |
+
'default' => 0,
|
77 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
78 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
79 |
+
'section' => '' ) ),
|
80 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
81 |
+
'items' => array( ) ) ),
|
82 |
+
'deferredItems' => array( ),
|
83 |
+
'recsPerRow' => 1 ),
|
84 |
+
'top' => array( 'modelId' => 'export-header',
|
85 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
86 |
+
'section' => '' ) ),
|
87 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
88 |
+
'items' => array( 'export_header' ) ) ),
|
89 |
+
'deferredItems' => array( ),
|
90 |
+
'recsPerRow' => 1 ),
|
91 |
+
'grid' => array( 'modelId' => 'export-grid',
|
92 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
93 |
+
'section' => '' ) ),
|
94 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
95 |
+
'items' => array( 'export_field',
|
96 |
+
'export_field1',
|
97 |
+
'export_field2',
|
98 |
+
'export_field3' ) ) ),
|
99 |
+
'deferredItems' => array( ),
|
100 |
+
'recsPerRow' => 1 ),
|
101 |
+
'footer' => array( 'modelId' => 'export-footer',
|
102 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
103 |
+
array( 'cell' => 'c2' ) ),
|
104 |
+
'section' => '' ) ),
|
105 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
106 |
+
'items' => array( ) ),
|
107 |
+
'c2' => array( 'model' => 'c2',
|
108 |
+
'items' => array( 'export_export',
|
109 |
+
'export_cancel' ) ) ),
|
110 |
+
'deferredItems' => array( ),
|
111 |
+
'recsPerRow' => 1 ) ),
|
112 |
+
'items' => array( 'export_header' => array( 'type' => 'export_header' ),
|
113 |
+
'export_export' => array( 'type' => 'export_export' ),
|
114 |
+
'export_cancel' => array( 'type' => 'export_cancel' ),
|
115 |
+
'export_field' => array( 'field' => 'id',
|
116 |
+
'type' => 'export_field' ),
|
117 |
+
'export_field1' => array( 'field' => 'logs',
|
118 |
+
'type' => 'export_field' ),
|
119 |
+
'export_field2' => array( 'field' => 'users',
|
120 |
+
'type' => 'export_field' ),
|
121 |
+
'export_field3' => array( 'field' => 'report_count',
|
122 |
+
'type' => 'export_field' ) ),
|
123 |
+
'dbProps' => array( ),
|
124 |
+
'version' => 14,
|
125 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
126 |
+
'imageBgColor' => '#f2f2f2',
|
127 |
+
'controlsBgColor' => 'white',
|
128 |
+
'imagePosition' => 'right',
|
129 |
+
'listTotals' => 1,
|
130 |
+
'exportFormat' => 2,
|
131 |
+
'exportDelimiter' => ',',
|
132 |
+
'exportSelectDelimiter' => false,
|
133 |
+
'exportSelectFields' => false );
|
134 |
+
?>
|
php/include/pages/chat_external_import.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
|
3 |
+
'logs',
|
4 |
+
'users',
|
5 |
+
'report_count' ),
|
6 |
+
'searchRequiredFields' => array( ),
|
7 |
+
'searchPanelFields' => array( ),
|
8 |
+
'fieldItems' => array( 'id' => array( 'import_field' ),
|
9 |
+
'logs' => array( 'import_field1' ),
|
10 |
+
'users' => array( 'import_field2' ),
|
11 |
+
'report_count' => array( 'import_field3' ) ) ),
|
12 |
+
'pageLinks' => array( 'edit' => false,
|
13 |
+
'add' => false,
|
14 |
+
'view' => false,
|
15 |
+
'print' => false ),
|
16 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ),
|
17 |
+
'top' => array( 'import_header' ),
|
18 |
+
'grid' => array( 'import_field',
|
19 |
+
'import_field1',
|
20 |
+
'import_field2',
|
21 |
+
'import_field3' ) ),
|
22 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
23 |
+
'itemForms' => array( 'import_header' => 'top',
|
24 |
+
'import_field' => 'grid',
|
25 |
+
'import_field1' => 'grid',
|
26 |
+
'import_field2' => 'grid',
|
27 |
+
'import_field3' => 'grid' ),
|
28 |
+
'itemLocations' => array( ),
|
29 |
+
'itemVisiblity' => array( ) ),
|
30 |
+
'itemsByType' => array( 'import_header' => array( 'import_header' ),
|
31 |
+
'import_field' => array( 'import_field',
|
32 |
+
'import_field1',
|
33 |
+
'import_field2',
|
34 |
+
'import_field3' ) ),
|
35 |
+
'cellMaps' => array( ) ),
|
36 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
37 |
+
'page' => array( 'verticalBar' => false,
|
38 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
39 |
+
'print_pages' => array( ),
|
40 |
+
'register_activate_message' => array( ),
|
41 |
+
'details_found' => array( ) ),
|
42 |
+
'hasCustomButtons' => false,
|
43 |
+
'customButtons' => array( ),
|
44 |
+
'hasNotifications' => false,
|
45 |
+
'menus' => array( ),
|
46 |
+
'calcTotalsFor' => 1 ),
|
47 |
+
'events' => array( 'maps' => array( ),
|
48 |
+
'mapsData' => array( ),
|
49 |
+
'buttons' => array( ) ) );
|
50 |
+
$pageArray = array( 'id' => 'import',
|
51 |
+
'type' => 'import',
|
52 |
+
'layoutId' => 'first',
|
53 |
+
'disabled' => 0,
|
54 |
+
'default' => 0,
|
55 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
56 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
57 |
+
'section' => '' ) ),
|
58 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
59 |
+
'items' => array( ) ) ),
|
60 |
+
'deferredItems' => array( ),
|
61 |
+
'recsPerRow' => 1 ),
|
62 |
+
'top' => array( 'modelId' => 'import-header',
|
63 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
64 |
+
'section' => '' ) ),
|
65 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
66 |
+
'items' => array( 'import_header' ) ) ),
|
67 |
+
'deferredItems' => array( ),
|
68 |
+
'recsPerRow' => 1 ),
|
69 |
+
'grid' => array( 'modelId' => 'import-grid',
|
70 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
71 |
+
'section' => '' ) ),
|
72 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
73 |
+
'items' => array( 'import_field',
|
74 |
+
'import_field1',
|
75 |
+
'import_field2',
|
76 |
+
'import_field3' ) ) ),
|
77 |
+
'deferredItems' => array( ),
|
78 |
+
'recsPerRow' => 1 ) ),
|
79 |
+
'items' => array( 'import_header' => array( 'type' => 'import_header' ),
|
80 |
+
'import_field' => array( 'field' => 'id',
|
81 |
+
'type' => 'import_field' ),
|
82 |
+
'import_field1' => array( 'field' => 'logs',
|
83 |
+
'type' => 'import_field' ),
|
84 |
+
'import_field2' => array( 'field' => 'users',
|
85 |
+
'type' => 'import_field' ),
|
86 |
+
'import_field3' => array( 'field' => 'report_count',
|
87 |
+
'type' => 'import_field' ) ),
|
88 |
+
'dbProps' => array( ),
|
89 |
+
'version' => 14,
|
90 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
91 |
+
'imageBgColor' => '#f2f2f2',
|
92 |
+
'controlsBgColor' => 'white',
|
93 |
+
'imagePosition' => 'right',
|
94 |
+
'listTotals' => 1 );
|
95 |
+
?>
|
php/include/pages/chat_external_list.php
ADDED
@@ -0,0 +1,562 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'list' => array( 'inlineAdd' => false,
|
3 |
+
'detailsAdd' => false,
|
4 |
+
'inlineEdit' => false,
|
5 |
+
'spreadsheetMode' => false,
|
6 |
+
'addToBottom' => false,
|
7 |
+
'delete' => true,
|
8 |
+
'updateSelected' => false,
|
9 |
+
'clickSort' => true,
|
10 |
+
'sortDropdown' => false,
|
11 |
+
'showHideFields' => false,
|
12 |
+
'reorderFields' => false,
|
13 |
+
'fieldFilter' => false,
|
14 |
+
'hideNumberOfRecords' => false ),
|
15 |
+
'listSearch' => array( 'alwaysOnPanelFields' => array( ),
|
16 |
+
'searchPanel' => true,
|
17 |
+
'fixedSearchPanel' => false,
|
18 |
+
'simpleSearchOptions' => false,
|
19 |
+
'searchSaving' => false ),
|
20 |
+
'totals' => array( 'id' => array( 'totalsType' => '' ),
|
21 |
+
'logs' => array( 'totalsType' => '' ),
|
22 |
+
'users' => array( 'totalsType' => '' ),
|
23 |
+
'report_count' => array( 'totalsType' => '' ) ),
|
24 |
+
'fields' => array( 'gridFields' => array( 'id',
|
25 |
+
'logs',
|
26 |
+
'users',
|
27 |
+
'report_count' ),
|
28 |
+
'searchRequiredFields' => array( ),
|
29 |
+
'searchPanelFields' => array( 'id',
|
30 |
+
'users',
|
31 |
+
'report_count',
|
32 |
+
'logs' ),
|
33 |
+
'filterFields' => array( ),
|
34 |
+
'inlineAddFields' => array( ),
|
35 |
+
'inlineEditFields' => array( ),
|
36 |
+
'fieldItems' => array( 'id' => array( 'simple_grid_field',
|
37 |
+
'simple_grid_field4' ),
|
38 |
+
'logs' => array( 'simple_grid_field1',
|
39 |
+
'simple_grid_field5' ),
|
40 |
+
'users' => array( 'simple_grid_field2',
|
41 |
+
'simple_grid_field6' ),
|
42 |
+
'report_count' => array( 'simple_grid_field3',
|
43 |
+
'simple_grid_field7' ) ),
|
44 |
+
'hideEmptyFields' => array( ),
|
45 |
+
'fieldFilterFields' => array( ) ),
|
46 |
+
'pageLinks' => array( 'edit' => true,
|
47 |
+
'add' => true,
|
48 |
+
'view' => true,
|
49 |
+
'print' => true ),
|
50 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add',
|
51 |
+
'delete',
|
52 |
+
'details_found',
|
53 |
+
'page_size',
|
54 |
+
'print_panel' ),
|
55 |
+
'below-grid' => array( 'pagination' ),
|
56 |
+
'left' => array( 'logo',
|
57 |
+
'expand_button',
|
58 |
+
'menu',
|
59 |
+
'search_panel' ),
|
60 |
+
'supertop' => array( 'expand_menu_button',
|
61 |
+
'collapse_button',
|
62 |
+
'breadcrumb',
|
63 |
+
'simple_search',
|
64 |
+
'list_options',
|
65 |
+
'loginform_login',
|
66 |
+
'username_button' ),
|
67 |
+
'top' => array( ),
|
68 |
+
'grid' => array( 'simple_grid_field4',
|
69 |
+
'simple_grid_field',
|
70 |
+
'simple_grid_field5',
|
71 |
+
'simple_grid_field1',
|
72 |
+
'simple_grid_field6',
|
73 |
+
'simple_grid_field2',
|
74 |
+
'simple_grid_field7',
|
75 |
+
'simple_grid_field3',
|
76 |
+
'grid_checkbox_head',
|
77 |
+
'grid_checkbox',
|
78 |
+
'grid_edit',
|
79 |
+
'grid_view' ) ),
|
80 |
+
'formXtTags' => array( 'above-grid' => array( 'add_link',
|
81 |
+
'deleteselected_link',
|
82 |
+
'details_found',
|
83 |
+
'recsPerPage',
|
84 |
+
'print_friendly' ),
|
85 |
+
'below-grid' => array( 'pagination' ),
|
86 |
+
'top' => array( ) ),
|
87 |
+
'itemForms' => array( 'add' => 'above-grid',
|
88 |
+
'delete' => 'above-grid',
|
89 |
+
'details_found' => 'above-grid',
|
90 |
+
'page_size' => 'above-grid',
|
91 |
+
'print_panel' => 'above-grid',
|
92 |
+
'pagination' => 'below-grid',
|
93 |
+
'logo' => 'left',
|
94 |
+
'expand_button' => 'left',
|
95 |
+
'menu' => 'left',
|
96 |
+
'search_panel' => 'left',
|
97 |
+
'expand_menu_button' => 'supertop',
|
98 |
+
'collapse_button' => 'supertop',
|
99 |
+
'breadcrumb' => 'supertop',
|
100 |
+
'simple_search' => 'supertop',
|
101 |
+
'list_options' => 'supertop',
|
102 |
+
'loginform_login' => 'supertop',
|
103 |
+
'username_button' => 'supertop',
|
104 |
+
'simple_grid_field4' => 'grid',
|
105 |
+
'simple_grid_field' => 'grid',
|
106 |
+
'simple_grid_field5' => 'grid',
|
107 |
+
'simple_grid_field1' => 'grid',
|
108 |
+
'simple_grid_field6' => 'grid',
|
109 |
+
'simple_grid_field2' => 'grid',
|
110 |
+
'simple_grid_field7' => 'grid',
|
111 |
+
'simple_grid_field3' => 'grid',
|
112 |
+
'grid_checkbox_head' => 'grid',
|
113 |
+
'grid_checkbox' => 'grid',
|
114 |
+
'grid_edit' => 'grid',
|
115 |
+
'grid_view' => 'grid' ),
|
116 |
+
'itemLocations' => array( 'simple_grid_field4' => array( 'location' => 'grid',
|
117 |
+
'cellId' => 'headcell_field' ),
|
118 |
+
'simple_grid_field' => array( 'location' => 'grid',
|
119 |
+
'cellId' => 'cell_field' ),
|
120 |
+
'simple_grid_field5' => array( 'location' => 'grid',
|
121 |
+
'cellId' => 'headcell_field1' ),
|
122 |
+
'simple_grid_field1' => array( 'location' => 'grid',
|
123 |
+
'cellId' => 'cell_field1' ),
|
124 |
+
'simple_grid_field6' => array( 'location' => 'grid',
|
125 |
+
'cellId' => 'headcell_field2' ),
|
126 |
+
'simple_grid_field2' => array( 'location' => 'grid',
|
127 |
+
'cellId' => 'cell_field2' ),
|
128 |
+
'simple_grid_field7' => array( 'location' => 'grid',
|
129 |
+
'cellId' => 'headcell_field3' ),
|
130 |
+
'simple_grid_field3' => array( 'location' => 'grid',
|
131 |
+
'cellId' => 'cell_field3' ),
|
132 |
+
'grid_checkbox_head' => array( 'location' => 'grid',
|
133 |
+
'cellId' => 'headcell_checkbox' ),
|
134 |
+
'grid_checkbox' => array( 'location' => 'grid',
|
135 |
+
'cellId' => 'cell_checkbox' ),
|
136 |
+
'grid_edit' => array( 'location' => 'grid',
|
137 |
+
'cellId' => 'cell_icons' ),
|
138 |
+
'grid_view' => array( 'location' => 'grid',
|
139 |
+
'cellId' => 'cell_icons' ) ),
|
140 |
+
'itemVisiblity' => array( 'breadcrumb' => 5,
|
141 |
+
'expand_menu_button' => 2,
|
142 |
+
'print_panel' => 5,
|
143 |
+
'expand_button' => 5 ) ),
|
144 |
+
'itemsByType' => array( 'page_size' => array( 'page_size' ),
|
145 |
+
'breadcrumb' => array( 'breadcrumb' ),
|
146 |
+
'logo' => array( 'logo' ),
|
147 |
+
'menu' => array( 'menu' ),
|
148 |
+
'simple_search' => array( 'simple_search' ),
|
149 |
+
'pagination' => array( 'pagination' ),
|
150 |
+
'details_found' => array( 'details_found' ),
|
151 |
+
'search_panel' => array( 'search_panel' ),
|
152 |
+
'list_options' => array( 'list_options' ),
|
153 |
+
'show_search_panel' => array( 'show_search_panel' ),
|
154 |
+
'hide_search_panel' => array( 'hide_search_panel' ),
|
155 |
+
'search_panel_field' => array( 'search_panel_field',
|
156 |
+
'search_panel_field1',
|
157 |
+
'search_panel_field2',
|
158 |
+
'search_panel_field3' ),
|
159 |
+
'username_button' => array( 'username_button' ),
|
160 |
+
'loginform_login' => array( 'loginform_login' ),
|
161 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
162 |
+
'logout_link' => array( 'logout_link' ),
|
163 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
164 |
+
'collapse_button' => array( 'collapse_button' ),
|
165 |
+
'add' => array( 'add' ),
|
166 |
+
'print_panel' => array( 'print_panel' ),
|
167 |
+
'print_scope' => array( 'print_scope' ),
|
168 |
+
'print_button' => array( 'print_button' ),
|
169 |
+
'print_records' => array( 'print_records' ),
|
170 |
+
'export' => array( 'export' ),
|
171 |
+
'-' => array( '-',
|
172 |
+
'-1',
|
173 |
+
'-2',
|
174 |
+
'-3' ),
|
175 |
+
'export_selected' => array( 'export_selected' ),
|
176 |
+
'import' => array( 'import' ),
|
177 |
+
'delete' => array( 'delete' ),
|
178 |
+
'delete_selected' => array( 'delete_selected' ),
|
179 |
+
'advsearch_link' => array( 'advsearch_link' ),
|
180 |
+
'grid_field' => array( 'simple_grid_field',
|
181 |
+
'simple_grid_field1',
|
182 |
+
'simple_grid_field2',
|
183 |
+
'simple_grid_field3' ),
|
184 |
+
'grid_field_label' => array( 'simple_grid_field4',
|
185 |
+
'simple_grid_field5',
|
186 |
+
'simple_grid_field6',
|
187 |
+
'simple_grid_field7' ),
|
188 |
+
'grid_checkbox' => array( 'grid_checkbox' ),
|
189 |
+
'grid_checkbox_head' => array( 'grid_checkbox_head' ),
|
190 |
+
'grid_edit' => array( 'grid_edit' ),
|
191 |
+
'grid_view' => array( 'grid_view' ),
|
192 |
+
'expand_button' => array( 'expand_button' ) ),
|
193 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
|
194 |
+
'rows' => array( 0 ),
|
195 |
+
'tags' => array( ),
|
196 |
+
'items' => array( ),
|
197 |
+
'fixedAtServer' => false,
|
198 |
+
'fixedAtClient' => false ),
|
199 |
+
'headcell_checkbox' => array( 'cols' => array( 1 ),
|
200 |
+
'rows' => array( 0 ),
|
201 |
+
'tags' => array( 'checkbox_column' ),
|
202 |
+
'items' => array( 'grid_checkbox_head' ),
|
203 |
+
'fixedAtServer' => false,
|
204 |
+
'fixedAtClient' => false ),
|
205 |
+
'headcell_field' => array( 'cols' => array( 2 ),
|
206 |
+
'rows' => array( 0 ),
|
207 |
+
'tags' => array( 'id_fieldheadercolumn' ),
|
208 |
+
'items' => array( 'simple_grid_field4' ),
|
209 |
+
'fixedAtServer' => false,
|
210 |
+
'fixedAtClient' => false ),
|
211 |
+
'headcell_field1' => array( 'cols' => array( 3 ),
|
212 |
+
'rows' => array( 0 ),
|
213 |
+
'tags' => array( 'logs_fieldheadercolumn' ),
|
214 |
+
'items' => array( 'simple_grid_field5' ),
|
215 |
+
'fixedAtServer' => false,
|
216 |
+
'fixedAtClient' => false ),
|
217 |
+
'headcell_field2' => array( 'cols' => array( 4 ),
|
218 |
+
'rows' => array( 0 ),
|
219 |
+
'tags' => array( 'users_fieldheadercolumn' ),
|
220 |
+
'items' => array( 'simple_grid_field6' ),
|
221 |
+
'fixedAtServer' => false,
|
222 |
+
'fixedAtClient' => false ),
|
223 |
+
'headcell_field3' => array( 'cols' => array( 5 ),
|
224 |
+
'rows' => array( 0 ),
|
225 |
+
'tags' => array( 'report_count_fieldheadercolumn' ),
|
226 |
+
'items' => array( 'simple_grid_field7' ),
|
227 |
+
'fixedAtServer' => false,
|
228 |
+
'fixedAtClient' => false ),
|
229 |
+
'cell_icons' => array( 'cols' => array( 0 ),
|
230 |
+
'rows' => array( 1 ),
|
231 |
+
'tags' => array( 'edit_column',
|
232 |
+
'view_column' ),
|
233 |
+
'items' => array( 'grid_edit',
|
234 |
+
'grid_view' ),
|
235 |
+
'fixedAtServer' => false,
|
236 |
+
'fixedAtClient' => false ),
|
237 |
+
'cell_checkbox' => array( 'cols' => array( 1 ),
|
238 |
+
'rows' => array( 1 ),
|
239 |
+
'tags' => array( 'checkbox_column' ),
|
240 |
+
'items' => array( 'grid_checkbox' ),
|
241 |
+
'fixedAtServer' => false,
|
242 |
+
'fixedAtClient' => false ),
|
243 |
+
'cell_field' => array( 'cols' => array( 2 ),
|
244 |
+
'rows' => array( 1 ),
|
245 |
+
'tags' => array( 'id_fieldcolumn' ),
|
246 |
+
'items' => array( 'simple_grid_field' ),
|
247 |
+
'fixedAtServer' => false,
|
248 |
+
'fixedAtClient' => false ),
|
249 |
+
'cell_field1' => array( 'cols' => array( 3 ),
|
250 |
+
'rows' => array( 1 ),
|
251 |
+
'tags' => array( 'logs_fieldcolumn' ),
|
252 |
+
'items' => array( 'simple_grid_field1' ),
|
253 |
+
'fixedAtServer' => false,
|
254 |
+
'fixedAtClient' => false ),
|
255 |
+
'cell_field2' => array( 'cols' => array( 4 ),
|
256 |
+
'rows' => array( 1 ),
|
257 |
+
'tags' => array( 'users_fieldcolumn' ),
|
258 |
+
'items' => array( 'simple_grid_field2' ),
|
259 |
+
'fixedAtServer' => false,
|
260 |
+
'fixedAtClient' => false ),
|
261 |
+
'cell_field3' => array( 'cols' => array( 5 ),
|
262 |
+
'rows' => array( 1 ),
|
263 |
+
'tags' => array( 'report_count_fieldcolumn' ),
|
264 |
+
'items' => array( 'simple_grid_field3' ),
|
265 |
+
'fixedAtServer' => false,
|
266 |
+
'fixedAtClient' => false ),
|
267 |
+
'footcell_icons' => array( 'cols' => array( 0 ),
|
268 |
+
'rows' => array( 2 ),
|
269 |
+
'tags' => array( ),
|
270 |
+
'items' => array( ),
|
271 |
+
'fixedAtServer' => false,
|
272 |
+
'fixedAtClient' => false ),
|
273 |
+
'footcell_checkbox' => array( 'cols' => array( 1 ),
|
274 |
+
'rows' => array( 2 ),
|
275 |
+
'tags' => array( ),
|
276 |
+
'items' => array( ),
|
277 |
+
'fixedAtServer' => false,
|
278 |
+
'fixedAtClient' => false ),
|
279 |
+
'footcell_field' => array( 'cols' => array( 2 ),
|
280 |
+
'rows' => array( 2 ),
|
281 |
+
'tags' => array( ),
|
282 |
+
'items' => array( ),
|
283 |
+
'fixedAtServer' => false,
|
284 |
+
'fixedAtClient' => false ),
|
285 |
+
'footcell_field1' => array( 'cols' => array( 3 ),
|
286 |
+
'rows' => array( 2 ),
|
287 |
+
'tags' => array( ),
|
288 |
+
'items' => array( ),
|
289 |
+
'fixedAtServer' => false,
|
290 |
+
'fixedAtClient' => false ),
|
291 |
+
'footcell_field2' => array( 'cols' => array( 4 ),
|
292 |
+
'rows' => array( 2 ),
|
293 |
+
'tags' => array( ),
|
294 |
+
'items' => array( ),
|
295 |
+
'fixedAtServer' => false,
|
296 |
+
'fixedAtClient' => false ),
|
297 |
+
'footcell_field3' => array( 'cols' => array( 5 ),
|
298 |
+
'rows' => array( 2 ),
|
299 |
+
'tags' => array( ),
|
300 |
+
'items' => array( ),
|
301 |
+
'fixedAtServer' => false,
|
302 |
+
'fixedAtClient' => false ) ),
|
303 |
+
'width' => 6,
|
304 |
+
'height' => 3 ) ) ),
|
305 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
306 |
+
'page' => array( 'verticalBar' => true,
|
307 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
308 |
+
'print_pages' => array( ),
|
309 |
+
'register_activate_message' => array( ),
|
310 |
+
'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
|
311 |
+
'type' => 2 ) ) ),
|
312 |
+
'gridType' => 0,
|
313 |
+
'recsPerRow' => 1,
|
314 |
+
'hasCustomButtons' => false,
|
315 |
+
'customButtons' => array( ),
|
316 |
+
'hasNotifications' => false,
|
317 |
+
'menus' => array( array( 'id' => 'main',
|
318 |
+
'horizontal' => false ) ),
|
319 |
+
'calcTotalsFor' => 1 ),
|
320 |
+
'misc' => array( 'type' => 'list',
|
321 |
+
'breadcrumb' => true ),
|
322 |
+
'events' => array( 'maps' => array( ),
|
323 |
+
'mapsData' => array( ),
|
324 |
+
'buttons' => array( ) ),
|
325 |
+
'dataGrid' => array( 'groupFields' => array( ) ) );
|
326 |
+
$pageArray = array( 'id' => 'list',
|
327 |
+
'type' => 'list',
|
328 |
+
'layoutId' => 'leftbar',
|
329 |
+
'disabled' => 0,
|
330 |
+
'default' => 0,
|
331 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'list-above-grid',
|
332 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
333 |
+
array( 'cell' => 'c2' ) ),
|
334 |
+
'section' => '' ) ),
|
335 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
336 |
+
'items' => array( 'add',
|
337 |
+
'delete' ) ),
|
338 |
+
'c2' => array( 'model' => 'c2',
|
339 |
+
'items' => array( 'details_found',
|
340 |
+
'page_size',
|
341 |
+
'print_panel' ) ) ),
|
342 |
+
'deferredItems' => array( ),
|
343 |
+
'recsPerRow' => 1 ),
|
344 |
+
'below-grid' => array( 'modelId' => 'list-below-grid',
|
345 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
346 |
+
'section' => '' ) ),
|
347 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
348 |
+
'items' => array( 'pagination' ) ) ),
|
349 |
+
'deferredItems' => array( ),
|
350 |
+
'recsPerRow' => 1 ),
|
351 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
352 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
353 |
+
'section' => '' ),
|
354 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
355 |
+
'section' => '' ) ),
|
356 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
357 |
+
'items' => array( 'logo',
|
358 |
+
'expand_button' ) ),
|
359 |
+
'c1' => array( 'model' => 'c1',
|
360 |
+
'items' => array( 'menu',
|
361 |
+
'search_panel' ) ) ),
|
362 |
+
'deferredItems' => array( ),
|
363 |
+
'recsPerRow' => 1 ),
|
364 |
+
'supertop' => array( 'modelId' => 'leftbar-top',
|
365 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
366 |
+
array( 'cell' => 'c2' ) ),
|
367 |
+
'section' => '' ) ),
|
368 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
369 |
+
'items' => array( 'expand_menu_button',
|
370 |
+
'collapse_button',
|
371 |
+
'breadcrumb' ) ),
|
372 |
+
'c2' => array( 'model' => 'c2',
|
373 |
+
'items' => array( 'simple_search',
|
374 |
+
'list_options',
|
375 |
+
'loginform_login',
|
376 |
+
'username_button' ) ) ),
|
377 |
+
'deferredItems' => array( ),
|
378 |
+
'recsPerRow' => 1 ),
|
379 |
+
'top' => array( 'modelId' => 'list-sidebar-top',
|
380 |
+
'grid' => array( ),
|
381 |
+
'cells' => array( ),
|
382 |
+
'deferredItems' => array( ),
|
383 |
+
'recsPerRow' => 1 ),
|
384 |
+
'grid' => array( 'modelId' => 'horizontal-grid',
|
385 |
+
'grid' => array( array( 'section' => 'head',
|
386 |
+
'cells' => array( array( 'cell' => 'headcell_icons' ),
|
387 |
+
array( 'cell' => 'headcell_checkbox' ),
|
388 |
+
array( 'cell' => 'headcell_field' ),
|
389 |
+
array( 'cell' => 'headcell_field1' ),
|
390 |
+
array( 'cell' => 'headcell_field2' ),
|
391 |
+
array( 'cell' => 'headcell_field3' ) ) ),
|
392 |
+
array( 'section' => 'body',
|
393 |
+
'cells' => array( array( 'cell' => 'cell_icons' ),
|
394 |
+
array( 'cell' => 'cell_checkbox' ),
|
395 |
+
array( 'cell' => 'cell_field' ),
|
396 |
+
array( 'cell' => 'cell_field1' ),
|
397 |
+
array( 'cell' => 'cell_field2' ),
|
398 |
+
array( 'cell' => 'cell_field3' ) ) ),
|
399 |
+
array( 'section' => 'foot',
|
400 |
+
'cells' => array( array( 'cell' => 'footcell_icons' ),
|
401 |
+
array( 'cell' => 'footcell_checkbox' ),
|
402 |
+
array( 'cell' => 'footcell_field' ),
|
403 |
+
array( 'cell' => 'footcell_field1' ),
|
404 |
+
array( 'cell' => 'footcell_field2' ),
|
405 |
+
array( 'cell' => 'footcell_field3' ) ) ) ),
|
406 |
+
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
|
407 |
+
'items' => array( 'simple_grid_field4' ),
|
408 |
+
'field' => 'id',
|
409 |
+
'columnName' => 'field' ),
|
410 |
+
'cell_field' => array( 'model' => 'cell_field',
|
411 |
+
'items' => array( 'simple_grid_field' ),
|
412 |
+
'field' => 'id',
|
413 |
+
'columnName' => 'field' ),
|
414 |
+
'footcell_field' => array( 'model' => 'footcell_field',
|
415 |
+
'items' => array( ) ),
|
416 |
+
'headcell_field1' => array( 'model' => 'headcell_field',
|
417 |
+
'items' => array( 'simple_grid_field5' ),
|
418 |
+
'field' => 'logs',
|
419 |
+
'columnName' => 'field' ),
|
420 |
+
'cell_field1' => array( 'model' => 'cell_field',
|
421 |
+
'items' => array( 'simple_grid_field1' ),
|
422 |
+
'field' => 'logs',
|
423 |
+
'columnName' => 'field' ),
|
424 |
+
'footcell_field1' => array( 'model' => 'footcell_field',
|
425 |
+
'items' => array( ) ),
|
426 |
+
'headcell_field2' => array( 'model' => 'headcell_field',
|
427 |
+
'items' => array( 'simple_grid_field6' ),
|
428 |
+
'field' => 'users',
|
429 |
+
'columnName' => 'field' ),
|
430 |
+
'cell_field2' => array( 'model' => 'cell_field',
|
431 |
+
'items' => array( 'simple_grid_field2' ),
|
432 |
+
'field' => 'users',
|
433 |
+
'columnName' => 'field' ),
|
434 |
+
'footcell_field2' => array( 'model' => 'footcell_field',
|
435 |
+
'items' => array( ) ),
|
436 |
+
'headcell_field3' => array( 'model' => 'headcell_field',
|
437 |
+
'items' => array( 'simple_grid_field7' ),
|
438 |
+
'field' => 'report_count',
|
439 |
+
'columnName' => 'field' ),
|
440 |
+
'cell_field3' => array( 'model' => 'cell_field',
|
441 |
+
'items' => array( 'simple_grid_field3' ),
|
442 |
+
'field' => 'report_count',
|
443 |
+
'columnName' => 'field' ),
|
444 |
+
'footcell_field3' => array( 'model' => 'footcell_field',
|
445 |
+
'items' => array( ) ),
|
446 |
+
'headcell_checkbox' => array( 'model' => 'headcell_checkbox',
|
447 |
+
'items' => array( 'grid_checkbox_head' ) ),
|
448 |
+
'cell_checkbox' => array( 'model' => 'cell_checkbox',
|
449 |
+
'items' => array( 'grid_checkbox' ) ),
|
450 |
+
'footcell_checkbox' => array( 'model' => 'footcell_checkbox',
|
451 |
+
'items' => array( ) ),
|
452 |
+
'headcell_icons' => array( 'model' => 'headcell_icons',
|
453 |
+
'items' => array( ) ),
|
454 |
+
'cell_icons' => array( 'model' => 'cell_icons',
|
455 |
+
'items' => array( 'grid_edit',
|
456 |
+
'grid_view' ) ),
|
457 |
+
'footcell_icons' => array( 'model' => 'footcell_icons',
|
458 |
+
'items' => array( ) ) ),
|
459 |
+
'deferredItems' => array( ),
|
460 |
+
'recsPerRow' => 1 ) ),
|
461 |
+
'items' => array( 'page_size' => array( 'type' => 'page_size' ),
|
462 |
+
'breadcrumb' => array( 'type' => 'breadcrumb' ),
|
463 |
+
'logo' => array( 'type' => 'logo' ),
|
464 |
+
'menu' => array( 'type' => 'menu' ),
|
465 |
+
'simple_search' => array( 'type' => 'simple_search' ),
|
466 |
+
'pagination' => array( 'type' => 'pagination' ),
|
467 |
+
'details_found' => array( 'type' => 'details_found' ),
|
468 |
+
'search_panel' => array( 'type' => 'search_panel',
|
469 |
+
'items' => array( 'search_panel_field',
|
470 |
+
'search_panel_field3',
|
471 |
+
'search_panel_field2',
|
472 |
+
'search_panel_field1' ) ),
|
473 |
+
'list_options' => array( 'type' => 'list_options',
|
474 |
+
'items' => array( 'export_selected',
|
475 |
+
'delete_selected',
|
476 |
+
'-3',
|
477 |
+
'advsearch_link',
|
478 |
+
'show_search_panel',
|
479 |
+
'hide_search_panel',
|
480 |
+
'-1',
|
481 |
+
'export',
|
482 |
+
'-2',
|
483 |
+
'import' ) ),
|
484 |
+
'show_search_panel' => array( 'type' => 'show_search_panel' ),
|
485 |
+
'hide_search_panel' => array( 'type' => 'hide_search_panel' ),
|
486 |
+
'search_panel_field' => array( 'field' => 'id',
|
487 |
+
'type' => 'search_panel_field',
|
488 |
+
'required' => false ),
|
489 |
+
'search_panel_field1' => array( 'field' => 'logs',
|
490 |
+
'type' => 'search_panel_field',
|
491 |
+
'required' => false ),
|
492 |
+
'search_panel_field2' => array( 'field' => 'report_count',
|
493 |
+
'type' => 'search_panel_field',
|
494 |
+
'required' => false ),
|
495 |
+
'search_panel_field3' => array( 'field' => 'users',
|
496 |
+
'type' => 'search_panel_field',
|
497 |
+
'required' => false ),
|
498 |
+
'username_button' => array( 'type' => 'username_button',
|
499 |
+
'items' => array( 'userinfo_link',
|
500 |
+
'logout_link' ) ),
|
501 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
502 |
+
'popup' => false ),
|
503 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
504 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
505 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
506 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
507 |
+
'add' => array( 'type' => 'add' ),
|
508 |
+
'print_panel' => array( 'type' => 'print_panel',
|
509 |
+
'items' => array( 'print_scope',
|
510 |
+
'print_records',
|
511 |
+
'print_button' ) ),
|
512 |
+
'print_scope' => array( 'type' => 'print_scope' ),
|
513 |
+
'print_button' => array( 'type' => 'print_button' ),
|
514 |
+
'print_records' => array( 'type' => 'print_records' ),
|
515 |
+
'export' => array( 'type' => 'export' ),
|
516 |
+
'-' => array( 'type' => '-' ),
|
517 |
+
'export_selected' => array( 'type' => 'export_selected' ),
|
518 |
+
'-1' => array( 'type' => '-' ),
|
519 |
+
'import' => array( 'type' => 'import' ),
|
520 |
+
'-2' => array( 'type' => '-' ),
|
521 |
+
'delete' => array( 'type' => 'delete' ),
|
522 |
+
'delete_selected' => array( 'type' => 'delete_selected' ),
|
523 |
+
'advsearch_link' => array( 'type' => 'advsearch_link' ),
|
524 |
+
'-3' => array( 'type' => '-' ),
|
525 |
+
'simple_grid_field' => array( 'field' => 'id',
|
526 |
+
'type' => 'grid_field',
|
527 |
+
'inlineAdd' => false,
|
528 |
+
'inlineEdit' => false ),
|
529 |
+
'simple_grid_field4' => array( 'type' => 'grid_field_label',
|
530 |
+
'field' => 'id' ),
|
531 |
+
'simple_grid_field1' => array( 'field' => 'logs',
|
532 |
+
'type' => 'grid_field',
|
533 |
+
'inlineAdd' => false,
|
534 |
+
'inlineEdit' => false ),
|
535 |
+
'simple_grid_field5' => array( 'type' => 'grid_field_label',
|
536 |
+
'field' => 'logs' ),
|
537 |
+
'simple_grid_field2' => array( 'field' => 'users',
|
538 |
+
'type' => 'grid_field',
|
539 |
+
'inlineAdd' => false,
|
540 |
+
'inlineEdit' => false ),
|
541 |
+
'simple_grid_field6' => array( 'type' => 'grid_field_label',
|
542 |
+
'field' => 'users' ),
|
543 |
+
'simple_grid_field3' => array( 'field' => 'report_count',
|
544 |
+
'type' => 'grid_field',
|
545 |
+
'inlineAdd' => false,
|
546 |
+
'inlineEdit' => false ),
|
547 |
+
'simple_grid_field7' => array( 'type' => 'grid_field_label',
|
548 |
+
'field' => 'report_count' ),
|
549 |
+
'grid_checkbox' => array( 'type' => 'grid_checkbox' ),
|
550 |
+
'grid_checkbox_head' => array( 'type' => 'grid_checkbox_head' ),
|
551 |
+
'grid_edit' => array( 'type' => 'grid_edit' ),
|
552 |
+
'grid_view' => array( 'type' => 'grid_view' ),
|
553 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
554 |
+
'dbProps' => array( ),
|
555 |
+
'spreadsheetGrid' => false,
|
556 |
+
'version' => 14,
|
557 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
558 |
+
'imageBgColor' => '#f2f2f2',
|
559 |
+
'controlsBgColor' => 'white',
|
560 |
+
'imagePosition' => 'right',
|
561 |
+
'listTotals' => 1 );
|
562 |
+
?>
|