eva ai
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- php/classes/charts.php +1 -5
- php/classes/db.php +1 -2
- php/classes/projectsettings.php +2 -6
- php/connections/ConnectionManager_base.php +1 -2
- php/eoc_add.php +108 -0
- php/eoc_edit.php +107 -0
- php/eoc_export.php +53 -0
- php/eoc_import.php +53 -0
- php/eoc_list.php +163 -0
- php/eoc_print.php +46 -0
- php/eoc_search.php +84 -0
- php/eoc_view.php +67 -0
- php/include/appsettings.php +3 -5
- php/include/audit.php +2 -18
- php/include/chat_files_settings.php +2 -2
- php/include/chat_groups_settings.php +2 -2
- php/include/chat_history_settings.php +2 -2
- php/include/chat_peopletype_settings.php +2 -2
- php/include/chat_settings_settings.php +2 -2
- php/include/chat_timezone_settings.php +2 -2
- php/include/chat_users_settings.php +2 -2
- php/include/commonfunctions.php +5 -47
- php/include/dal.php +2 -4
- php/include/dal/chats_at_localhost__Eoc.php +8 -0
- php/include/eoc_settings.php +682 -0
- php/include/eoc_variables.php +13 -0
- php/include/header.php +139 -0
- php/include/menunodes_main.php +4 -56
- php/include/pages/_global_menu_Chat1.php +10 -52
- php/include/pages/eoc_add.php +175 -0
- php/include/pages/eoc_edit.php +186 -0
- php/include/pages/eoc_export.php +114 -0
- php/include/pages/eoc_import.php +79 -0
- php/include/pages/eoc_list.php +448 -0
- php/include/pages/eoc_print.php +186 -0
- php/include/pages/eoc_search.php +123 -0
- php/include/pages/eoc_view.php +186 -0
- php/include/pages/pages.json +1 -1
- php/pdf/eoc_print.json +444 -0
- php/pdf/eoc_view.json +267 -0
- php/styles/pages/_global_menu_Chat1.css +1 -7
- php/styles/pages/eoc_add.css +5 -0
- php/styles/pages/eoc_edit.css +5 -0
- php/styles/pages/eoc_export.css +11 -0
- php/styles/pages/eoc_import.css +5 -0
- php/styles/pages/eoc_list.css +20 -0
- php/styles/pages/eoc_print.css +11 -0
- php/styles/pages/eoc_search.css +5 -0
- php/styles/pages/eoc_view.css +5 -0
- php/templates/_global_menu_Chat1.htm +4 -30
php/classes/charts.php
CHANGED
@@ -394,11 +394,7 @@ class Chart
|
|
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 |
}
|
|
|
394 |
return true;
|
395 |
if("chat126_users1" == $this->chrt_array['tables'][0])
|
396 |
return true;
|
397 |
+
if("Eoc" == $this->chrt_array['tables'][0])
|
|
|
|
|
|
|
|
|
398 |
return true;
|
399 |
return false;
|
400 |
}
|
php/classes/db.php
CHANGED
@@ -355,8 +355,6 @@ 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_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");
|
@@ -364,6 +362,7 @@ class DB
|
|
364 |
$dalTables[$conn->connId][] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
365 |
$dalTables[$conn->connId][] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
366 |
$dalTables[$conn->connId][] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
367 |
}
|
368 |
}
|
369 |
|
|
|
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");
|
|
|
362 |
$dalTables[$conn->connId][] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
363 |
$dalTables[$conn->connId][] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
364 |
$dalTables[$conn->connId][] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
365 |
+
$dalTables[$conn->connId][] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
366 |
}
|
367 |
}
|
368 |
|
php/classes/projectsettings.php
CHANGED
@@ -3594,12 +3594,8 @@ 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 |
-
$projectEntities[ "
|
3598 |
-
$projectEntitiesReverse[ "
|
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 ) {
|
|
|
3594 |
$projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone";
|
3595 |
$projectEntities[ "chat126_users1" ] = array( "url" => "chat126_users1", "type" => 0 );
|
3596 |
$projectEntitiesReverse[ "chat126_users1" ] = "chat126_users1";
|
3597 |
+
$projectEntities[ "Eoc" ] = array( "url" => "eoc", "type" => 0 );
|
3598 |
+
$projectEntitiesReverse[ "eoc" ] = "Eoc";
|
|
|
|
|
|
|
|
|
3599 |
}
|
3600 |
|
3601 |
function findTable( $table ) {
|
php/connections/ConnectionManager_base.php
CHANGED
@@ -251,8 +251,7 @@ 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 |
-
$connectionsIds["
|
255 |
-
$connectionsIds["chat_agent"] = "chats_at_localhost";
|
256 |
|
257 |
$this->_tablesConnectionIds = &$connectionsIds;
|
258 |
}
|
|
|
251 |
$connectionsIds["chat_peopletype"] = "chats_at_localhost";
|
252 |
$connectionsIds["chat_timezone"] = "chats_at_localhost";
|
253 |
$connectionsIds["chat126_users1"] = "chats_at_localhost";
|
254 |
+
$connectionsIds["Eoc"] = "chats_at_localhost";
|
|
|
255 |
|
256 |
$this->_tablesConnectionIds = &$connectionsIds;
|
257 |
}
|
php/eoc_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/eoc_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/eoc_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/eoc_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/eoc_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/eoc_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/eoc_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/eoc_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/eoc_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 = "Eoc";
|
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/eoc_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/eoc_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/eoc_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( "Eoc" );
|
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/eoc_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/eoc_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'] = 'eoc';
|
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/eoc_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/eoc_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/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,9 +826,7 @@ $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 |
-
$tableCaptions["English"]["
|
830 |
-
$tableCaptions["English"]["chat_external"] = "Chat External";
|
831 |
-
$tableCaptions["English"]["chat_agent"] = "Chat Agent";
|
832 |
|
833 |
|
834 |
$globalEvents = new class_GlobalEvents;
|
|
|
790 |
$strLastSQL = "";
|
791 |
$showCustomMarkerOnPrint = false;
|
792 |
|
793 |
+
$projectBuildKey = "3641_1721285067";
|
794 |
$wizardBuildKey = "41974";
|
795 |
+
$projectBuildNumber = "3641";
|
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"]["Eoc"] = "Eoc";
|
|
|
|
|
830 |
|
831 |
|
832 |
$globalEvents = new class_GlobalEvents;
|
php/include/audit.php
CHANGED
@@ -388,15 +388,7 @@ class AuditTrailTable
|
|
388 |
{
|
389 |
return false;
|
390 |
}
|
391 |
-
if($table=="
|
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 |
}
|
@@ -740,15 +732,7 @@ class AuditTrailFile
|
|
740 |
{
|
741 |
return false;
|
742 |
}
|
743 |
-
if($table=="
|
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 |
}
|
|
|
388 |
{
|
389 |
return false;
|
390 |
}
|
391 |
+
if($table=="Eoc")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
{
|
393 |
return false;
|
394 |
}
|
|
|
732 |
{
|
733 |
return false;
|
734 |
}
|
735 |
+
if($table=="Eoc")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
{
|
737 |
return false;
|
738 |
}
|
php/include/chat_files_settings.php
CHANGED
@@ -187,7 +187,7 @@ $tdatachat_files[".strOrderBy"] = $tstrOrderBy;
|
|
187 |
$tdatachat_files[".orderindexes"] = array();
|
188 |
|
189 |
|
190 |
-
$tdatachat_files[".sqlHead"] = "SELECT id,
|
191 |
$tdatachat_files[".sqlFrom"] = "FROM chat_files";
|
192 |
$tdatachat_files[".sqlWhereExpr"] = "";
|
193 |
$tdatachat_files[".sqlTail"] = "";
|
@@ -696,7 +696,7 @@ function createSqlQuery_chat_files()
|
|
696 |
{
|
697 |
$proto0=array();
|
698 |
$proto0["m_strHead"] = "SELECT";
|
699 |
-
$proto0["m_strFieldList"] = "id,
|
700 |
$proto0["m_strFrom"] = "FROM chat_files";
|
701 |
$proto0["m_strWhere"] = "";
|
702 |
$proto0["m_strOrderBy"] = "";
|
|
|
187 |
$tdatachat_files[".orderindexes"] = array();
|
188 |
|
189 |
|
190 |
+
$tdatachat_files[".sqlHead"] = "SELECT id, messageid, files";
|
191 |
$tdatachat_files[".sqlFrom"] = "FROM chat_files";
|
192 |
$tdatachat_files[".sqlWhereExpr"] = "";
|
193 |
$tdatachat_files[".sqlTail"] = "";
|
|
|
696 |
{
|
697 |
$proto0=array();
|
698 |
$proto0["m_strHead"] = "SELECT";
|
699 |
+
$proto0["m_strFieldList"] = "id, messageid, files";
|
700 |
$proto0["m_strFrom"] = "FROM chat_files";
|
701 |
$proto0["m_strWhere"] = "";
|
702 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_groups_settings.php
CHANGED
@@ -195,7 +195,7 @@ $tdatachat_groups[".strOrderBy"] = $tstrOrderBy;
|
|
195 |
$tdatachat_groups[".orderindexes"] = array();
|
196 |
|
197 |
|
198 |
-
$tdatachat_groups[".sqlHead"] = "SELECT id,
|
199 |
$tdatachat_groups[".sqlFrom"] = "FROM chat_groups";
|
200 |
$tdatachat_groups[".sqlWhereExpr"] = "";
|
201 |
$tdatachat_groups[".sqlTail"] = "";
|
@@ -1024,7 +1024,7 @@ function createSqlQuery_chat_groups()
|
|
1024 |
{
|
1025 |
$proto0=array();
|
1026 |
$proto0["m_strHead"] = "SELECT";
|
1027 |
-
$proto0["m_strFieldList"] = "id,
|
1028 |
$proto0["m_strFrom"] = "FROM chat_groups";
|
1029 |
$proto0["m_strWhere"] = "";
|
1030 |
$proto0["m_strOrderBy"] = "";
|
|
|
195 |
$tdatachat_groups[".orderindexes"] = array();
|
196 |
|
197 |
|
198 |
+
$tdatachat_groups[".sqlHead"] = "SELECT id, groupname, targetid, grouptype, ownerid";
|
199 |
$tdatachat_groups[".sqlFrom"] = "FROM chat_groups";
|
200 |
$tdatachat_groups[".sqlWhereExpr"] = "";
|
201 |
$tdatachat_groups[".sqlTail"] = "";
|
|
|
1024 |
{
|
1025 |
$proto0=array();
|
1026 |
$proto0["m_strHead"] = "SELECT";
|
1027 |
+
$proto0["m_strFieldList"] = "id, groupname, targetid, grouptype, ownerid";
|
1028 |
$proto0["m_strFrom"] = "FROM chat_groups";
|
1029 |
$proto0["m_strWhere"] = "";
|
1030 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_history_settings.php
CHANGED
@@ -219,7 +219,7 @@ $tdatachat_history[".strOrderBy"] = $tstrOrderBy;
|
|
219 |
$tdatachat_history[".orderindexes"] = array();
|
220 |
|
221 |
|
222 |
-
$tdatachat_history[".sqlHead"] = "SELECT id,
|
223 |
$tdatachat_history[".sqlFrom"] = "FROM chat_history";
|
224 |
$tdatachat_history[".sqlWhereExpr"] = "";
|
225 |
$tdatachat_history[".sqlTail"] = "";
|
@@ -1853,7 +1853,7 @@ function createSqlQuery_chat_history()
|
|
1853 |
{
|
1854 |
$proto0=array();
|
1855 |
$proto0["m_strHead"] = "SELECT";
|
1856 |
-
$proto0["m_strFieldList"] = "id,
|
1857 |
$proto0["m_strFrom"] = "FROM chat_history";
|
1858 |
$proto0["m_strWhere"] = "";
|
1859 |
$proto0["m_strOrderBy"] = "";
|
|
|
219 |
$tdatachat_history[".orderindexes"] = array();
|
220 |
|
221 |
|
222 |
+
$tdatachat_history[".sqlHead"] = "SELECT id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo";
|
223 |
$tdatachat_history[".sqlFrom"] = "FROM chat_history";
|
224 |
$tdatachat_history[".sqlWhereExpr"] = "";
|
225 |
$tdatachat_history[".sqlTail"] = "";
|
|
|
1853 |
{
|
1854 |
$proto0=array();
|
1855 |
$proto0["m_strHead"] = "SELECT";
|
1856 |
+
$proto0["m_strFieldList"] = "id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo";
|
1857 |
$proto0["m_strFrom"] = "FROM chat_history";
|
1858 |
$proto0["m_strWhere"] = "";
|
1859 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_peopletype_settings.php
CHANGED
@@ -183,7 +183,7 @@ $tdatachat_peopletype[".strOrderBy"] = $tstrOrderBy;
|
|
183 |
$tdatachat_peopletype[".orderindexes"] = array();
|
184 |
|
185 |
|
186 |
-
$tdatachat_peopletype[".sqlHead"] = "SELECT id,
|
187 |
$tdatachat_peopletype[".sqlFrom"] = "FROM chat_peopletype";
|
188 |
$tdatachat_peopletype[".sqlWhereExpr"] = "";
|
189 |
$tdatachat_peopletype[".sqlTail"] = "";
|
@@ -556,7 +556,7 @@ function createSqlQuery_chat_peopletype()
|
|
556 |
{
|
557 |
$proto0=array();
|
558 |
$proto0["m_strHead"] = "SELECT";
|
559 |
-
$proto0["m_strFieldList"] = "id,
|
560 |
$proto0["m_strFrom"] = "FROM chat_peopletype";
|
561 |
$proto0["m_strWhere"] = "";
|
562 |
$proto0["m_strOrderBy"] = "";
|
|
|
183 |
$tdatachat_peopletype[".orderindexes"] = array();
|
184 |
|
185 |
|
186 |
+
$tdatachat_peopletype[".sqlHead"] = "SELECT id, name";
|
187 |
$tdatachat_peopletype[".sqlFrom"] = "FROM chat_peopletype";
|
188 |
$tdatachat_peopletype[".sqlWhereExpr"] = "";
|
189 |
$tdatachat_peopletype[".sqlTail"] = "";
|
|
|
556 |
{
|
557 |
$proto0=array();
|
558 |
$proto0["m_strHead"] = "SELECT";
|
559 |
+
$proto0["m_strFieldList"] = "id, name";
|
560 |
$proto0["m_strFrom"] = "FROM chat_peopletype";
|
561 |
$proto0["m_strWhere"] = "";
|
562 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_settings_settings.php
CHANGED
@@ -278,7 +278,7 @@ $tdatachat_settings[".strOrderBy"] = $tstrOrderBy;
|
|
278 |
$tdatachat_settings[".orderindexes"] = array();
|
279 |
|
280 |
|
281 |
-
$tdatachat_settings[".sqlHead"] = "SELECT id,
|
282 |
$tdatachat_settings[".sqlFrom"] = "FROM chat_settings";
|
283 |
$tdatachat_settings[".sqlWhereExpr"] = "";
|
284 |
$tdatachat_settings[".sqlTail"] = "";
|
@@ -3878,7 +3878,7 @@ function createSqlQuery_chat_settings()
|
|
3878 |
{
|
3879 |
$proto0=array();
|
3880 |
$proto0["m_strHead"] = "SELECT";
|
3881 |
-
$proto0["m_strFieldList"] = "id,
|
3882 |
$proto0["m_strFrom"] = "FROM chat_settings";
|
3883 |
$proto0["m_strWhere"] = "";
|
3884 |
$proto0["m_strOrderBy"] = "";
|
|
|
278 |
$tdatachat_settings[".orderindexes"] = array();
|
279 |
|
280 |
|
281 |
+
$tdatachat_settings[".sqlHead"] = "SELECT id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
|
282 |
$tdatachat_settings[".sqlFrom"] = "FROM chat_settings";
|
283 |
$tdatachat_settings[".sqlWhereExpr"] = "";
|
284 |
$tdatachat_settings[".sqlTail"] = "";
|
|
|
3878 |
{
|
3879 |
$proto0=array();
|
3880 |
$proto0["m_strHead"] = "SELECT";
|
3881 |
+
$proto0["m_strFieldList"] = "id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
|
3882 |
$proto0["m_strFrom"] = "FROM chat_settings";
|
3883 |
$proto0["m_strWhere"] = "";
|
3884 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_timezone_settings.php
CHANGED
@@ -199,7 +199,7 @@ $tdatachat_timezone[".strOrderBy"] = $tstrOrderBy;
|
|
199 |
$tdatachat_timezone[".orderindexes"] = array();
|
200 |
|
201 |
|
202 |
-
$tdatachat_timezone[".sqlHead"] = "SELECT id,
|
203 |
$tdatachat_timezone[".sqlFrom"] = "FROM chat_timezone";
|
204 |
$tdatachat_timezone[".sqlWhereExpr"] = "";
|
205 |
$tdatachat_timezone[".sqlTail"] = "";
|
@@ -1128,7 +1128,7 @@ function createSqlQuery_chat_timezone()
|
|
1128 |
{
|
1129 |
$proto0=array();
|
1130 |
$proto0["m_strHead"] = "SELECT";
|
1131 |
-
$proto0["m_strFieldList"] = "id,
|
1132 |
$proto0["m_strFrom"] = "FROM chat_timezone";
|
1133 |
$proto0["m_strWhere"] = "";
|
1134 |
$proto0["m_strOrderBy"] = "";
|
|
|
199 |
$tdatachat_timezone[".orderindexes"] = array();
|
200 |
|
201 |
|
202 |
+
$tdatachat_timezone[".sqlHead"] = "SELECT id, zoom, name, rc, `order`, dotnet";
|
203 |
$tdatachat_timezone[".sqlFrom"] = "FROM chat_timezone";
|
204 |
$tdatachat_timezone[".sqlWhereExpr"] = "";
|
205 |
$tdatachat_timezone[".sqlTail"] = "";
|
|
|
1128 |
{
|
1129 |
$proto0=array();
|
1130 |
$proto0["m_strHead"] = "SELECT";
|
1131 |
+
$proto0["m_strFieldList"] = "id, zoom, name, rc, `order`, dotnet";
|
1132 |
$proto0["m_strFrom"] = "FROM chat_timezone";
|
1133 |
$proto0["m_strWhere"] = "";
|
1134 |
$proto0["m_strOrderBy"] = "";
|
php/include/chat_users_settings.php
CHANGED
@@ -194,7 +194,7 @@ $tdatachat_users[".strOrderBy"] = $tstrOrderBy;
|
|
194 |
$tdatachat_users[".orderindexes"] = array();
|
195 |
|
196 |
|
197 |
-
$tdatachat_users[".sqlHead"] = "SELECT id,
|
198 |
$tdatachat_users[".sqlFrom"] = "FROM chat_users";
|
199 |
$tdatachat_users[".sqlWhereExpr"] = "";
|
200 |
$tdatachat_users[".sqlTail"] = "";
|
@@ -992,7 +992,7 @@ function createSqlQuery_chat_users()
|
|
992 |
{
|
993 |
$proto0=array();
|
994 |
$proto0["m_strHead"] = "SELECT";
|
995 |
-
$proto0["m_strFieldList"] = "id,
|
996 |
$proto0["m_strFrom"] = "FROM chat_users";
|
997 |
$proto0["m_strWhere"] = "";
|
998 |
$proto0["m_strOrderBy"] = "";
|
|
|
194 |
$tdatachat_users[".orderindexes"] = array();
|
195 |
|
196 |
|
197 |
+
$tdatachat_users[".sqlHead"] = "SELECT id, userid, lastaccess, isTyping, userpic";
|
198 |
$tdatachat_users[".sqlFrom"] = "FROM chat_users";
|
199 |
$tdatachat_users[".sqlWhereExpr"] = "";
|
200 |
$tdatachat_users[".sqlTail"] = "";
|
|
|
992 |
{
|
993 |
$proto0=array();
|
994 |
$proto0["m_strHead"] = "SELECT";
|
995 |
+
$proto0["m_strFieldList"] = "id, userid, lastaccess, isTyping, userpic";
|
996 |
$proto0["m_strFrom"] = "FROM chat_users";
|
997 |
$proto0["m_strWhere"] = "";
|
998 |
$proto0["m_strOrderBy"] = "";
|
php/include/commonfunctions.php
CHANGED
@@ -219,11 +219,7 @@ function checkTableName($shortTName )
|
|
219 |
return true;
|
220 |
if ("chat126_users1" == $shortTName )
|
221 |
return true;
|
222 |
-
if ("
|
223 |
-
return true;
|
224 |
-
if ("chat_external" == $shortTName )
|
225 |
-
return true;
|
226 |
-
if ("chat_agent" == $shortTName )
|
227 |
return true;
|
228 |
return false;
|
229 |
}
|
@@ -349,30 +345,12 @@ function GetTablesList($pdfMode = false)
|
|
349 |
}
|
350 |
$tableAvailable = true;
|
351 |
if( $checkPermissions ) {
|
352 |
-
$strPerm = GetUserPermissions("
|
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[]="
|
376 |
}
|
377 |
return $arr;
|
378 |
}
|
@@ -391,9 +369,7 @@ function GetTablesListWithoutSecurity()
|
|
391 |
$arr[]="chat_peopletype";
|
392 |
$arr[]="chat_timezone";
|
393 |
$arr[]="chat126_users1";
|
394 |
-
$arr[]="
|
395 |
-
$arr[]="chat_external";
|
396 |
-
$arr[]="chat_agent";
|
397 |
return $arr;
|
398 |
}
|
399 |
|
@@ -1087,25 +1063,7 @@ function GetUserPermissionsStatic( $table )
|
|
1087 |
// default permissions
|
1088 |
return "ADESPI".$extraPerm;
|
1089 |
}
|
1090 |
-
if( $table=="
|
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 |
{
|
|
|
219 |
return true;
|
220 |
if ("chat126_users1" == $shortTName )
|
221 |
return true;
|
222 |
+
if ("eoc" == $shortTName )
|
|
|
|
|
|
|
|
|
223 |
return true;
|
224 |
return false;
|
225 |
}
|
|
|
345 |
}
|
346 |
$tableAvailable = true;
|
347 |
if( $checkPermissions ) {
|
348 |
+
$strPerm = GetUserPermissions("Eoc");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
$tableAvailable = ( strpos($strPerm, "P") !== false
|
350 |
|| $pdfMode && strpos($strPerm, "S") !== false );
|
351 |
}
|
352 |
if( $tableAvailable ) {
|
353 |
+
$arr[]="Eoc";
|
354 |
}
|
355 |
return $arr;
|
356 |
}
|
|
|
369 |
$arr[]="chat_peopletype";
|
370 |
$arr[]="chat_timezone";
|
371 |
$arr[]="chat126_users1";
|
372 |
+
$arr[]="Eoc";
|
|
|
|
|
373 |
return $arr;
|
374 |
}
|
375 |
|
|
|
1063 |
// default permissions
|
1064 |
return "ADESPI".$extraPerm;
|
1065 |
}
|
1066 |
+
if( $table=="Eoc" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1067 |
{
|
1068 |
if( $sUserGroup=="admin" )
|
1069 |
{
|
php/include/dal.php
CHANGED
@@ -48,8 +48,6 @@ function DBLookup($sql)
|
|
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;
|
@@ -57,6 +55,7 @@ class tDAL
|
|
57 |
var $tblchats_at_localhost__chat_settings;
|
58 |
var $tblchats_at_localhost__chat_timezone;
|
59 |
var $tblchats_at_localhost__chat_users;
|
|
|
60 |
var $lstTables;
|
61 |
var $Table = array();
|
62 |
|
@@ -65,8 +64,6 @@ class tDAL
|
|
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");
|
@@ -74,6 +71,7 @@ class tDAL
|
|
74 |
$this->lstTables[] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
75 |
$this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
76 |
$this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
77 |
}
|
78 |
|
79 |
/**
|
|
|
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;
|
|
|
55 |
var $tblchats_at_localhost__chat_settings;
|
56 |
var $tblchats_at_localhost__chat_timezone;
|
57 |
var $tblchats_at_localhost__chat_users;
|
58 |
+
var $tblchats_at_localhost__Eoc;
|
59 |
var $lstTables;
|
60 |
var $Table = array();
|
61 |
|
|
|
64 |
if($this->lstTables)
|
65 |
return;
|
66 |
$this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
|
|
67 |
$this->lstTables[] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
68 |
$this->lstTables[] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
69 |
$this->lstTables[] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
71 |
$this->lstTables[] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
72 |
$this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
73 |
$this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
74 |
+
$this->lstTables[] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
75 |
}
|
76 |
|
77 |
/**
|
php/include/dal/chats_at_localhost__Eoc.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTableEoc = array();
|
3 |
+
$dalTableEoc["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
|
4 |
+
$dalTableEoc["name"] = array("type"=>200,"varname"=>"name", "name" => "name", "autoInc" => "0");
|
5 |
+
$dalTableEoc["id"]["key"]=true;
|
6 |
+
|
7 |
+
$dal_info["chats_at_localhost__Eoc"] = &$dalTableEoc;
|
8 |
+
?>
|
php/include/eoc_settings.php
ADDED
@@ -0,0 +1,682 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$tdataeoc = array();
|
3 |
+
$tdataeoc[".searchableFields"] = array();
|
4 |
+
$tdataeoc[".ShortName"] = "eoc";
|
5 |
+
$tdataeoc[".OwnerID"] = "";
|
6 |
+
$tdataeoc[".OriginalTable"] = "Eoc";
|
7 |
+
|
8 |
+
|
9 |
+
$tdataeoc[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
|
10 |
+
$tdataeoc[".originalPagesByType"] = $tdataeoc[".pagesByType"];
|
11 |
+
$tdataeoc[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
|
12 |
+
$tdataeoc[".originalPages"] = $tdataeoc[".pages"];
|
13 |
+
$tdataeoc[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
|
14 |
+
$tdataeoc[".originalDefaultPages"] = $tdataeoc[".defaultPages"];
|
15 |
+
|
16 |
+
// field labels
|
17 |
+
$fieldLabelseoc = array();
|
18 |
+
$fieldToolTipseoc = array();
|
19 |
+
$pageTitleseoc = array();
|
20 |
+
$placeHolderseoc = array();
|
21 |
+
|
22 |
+
if(mlang_getcurrentlang()=="English")
|
23 |
+
{
|
24 |
+
$fieldLabelseoc["English"] = array();
|
25 |
+
$fieldToolTipseoc["English"] = array();
|
26 |
+
$placeHolderseoc["English"] = array();
|
27 |
+
$pageTitleseoc["English"] = array();
|
28 |
+
$fieldLabelseoc["English"]["id"] = "Id";
|
29 |
+
$fieldToolTipseoc["English"]["id"] = "";
|
30 |
+
$placeHolderseoc["English"]["id"] = "";
|
31 |
+
$fieldLabelseoc["English"]["name"] = "Name";
|
32 |
+
$fieldToolTipseoc["English"]["name"] = "";
|
33 |
+
$placeHolderseoc["English"]["name"] = "";
|
34 |
+
if (count($fieldToolTipseoc["English"]))
|
35 |
+
$tdataeoc[".isUseToolTips"] = true;
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
$tdataeoc[".NCSearch"] = true;
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
$tdataeoc[".shortTableName"] = "eoc";
|
44 |
+
$tdataeoc[".nSecOptions"] = 0;
|
45 |
+
|
46 |
+
$tdataeoc[".mainTableOwnerID"] = "";
|
47 |
+
$tdataeoc[".entityType"] = 0;
|
48 |
+
$tdataeoc[".connId"] = "chats_at_localhost";
|
49 |
+
|
50 |
+
|
51 |
+
$tdataeoc[".strOriginalTableName"] = "Eoc";
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
$tdataeoc[".showAddInPopup"] = false;
|
58 |
+
|
59 |
+
$tdataeoc[".showEditInPopup"] = false;
|
60 |
+
|
61 |
+
$tdataeoc[".showViewInPopup"] = false;
|
62 |
+
|
63 |
+
$tdataeoc[".listAjax"] = false;
|
64 |
+
// temporary
|
65 |
+
//$tdataeoc[".listAjax"] = false;
|
66 |
+
|
67 |
+
$tdataeoc[".audit"] = false;
|
68 |
+
|
69 |
+
$tdataeoc[".locking"] = false;
|
70 |
+
|
71 |
+
|
72 |
+
$pages = $tdataeoc[".defaultPages"];
|
73 |
+
|
74 |
+
if( $pages[PAGE_EDIT] ) {
|
75 |
+
$tdataeoc[".edit"] = true;
|
76 |
+
$tdataeoc[".afterEditAction"] = 1;
|
77 |
+
$tdataeoc[".closePopupAfterEdit"] = 1;
|
78 |
+
$tdataeoc[".afterEditActionDetTable"] = "";
|
79 |
+
}
|
80 |
+
|
81 |
+
if( $pages[PAGE_ADD] ) {
|
82 |
+
$tdataeoc[".add"] = true;
|
83 |
+
$tdataeoc[".afterAddAction"] = 1;
|
84 |
+
$tdataeoc[".closePopupAfterAdd"] = 1;
|
85 |
+
$tdataeoc[".afterAddActionDetTable"] = "";
|
86 |
+
}
|
87 |
+
|
88 |
+
if( $pages[PAGE_LIST] ) {
|
89 |
+
$tdataeoc[".list"] = true;
|
90 |
+
}
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
$tdataeoc[".strSortControlSettingsJSON"] = "";
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
if( $pages[PAGE_VIEW] ) {
|
100 |
+
$tdataeoc[".view"] = true;
|
101 |
+
}
|
102 |
+
|
103 |
+
if( $pages[PAGE_IMPORT] ) {
|
104 |
+
$tdataeoc[".import"] = true;
|
105 |
+
}
|
106 |
+
|
107 |
+
if( $pages[PAGE_EXPORT] ) {
|
108 |
+
$tdataeoc[".exportTo"] = true;
|
109 |
+
}
|
110 |
+
|
111 |
+
if( $pages[PAGE_PRINT] ) {
|
112 |
+
$tdataeoc[".printFriendly"] = true;
|
113 |
+
}
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
$tdataeoc[".showSimpleSearchOptions"] = true; // temp fix #13449
|
118 |
+
|
119 |
+
// Allow Show/Hide Fields in GRID
|
120 |
+
$tdataeoc[".allowShowHideFields"] = true; // temp fix #13449
|
121 |
+
//
|
122 |
+
|
123 |
+
// Allow Fields Reordering in GRID
|
124 |
+
$tdataeoc[".allowFieldsReordering"] = true; // temp fix #13449
|
125 |
+
//
|
126 |
+
|
127 |
+
$tdataeoc[".isUseAjaxSuggest"] = true;
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
|
132 |
+
|
133 |
+
$tdataeoc[".ajaxCodeSnippetAdded"] = false;
|
134 |
+
|
135 |
+
$tdataeoc[".buttonsAdded"] = false;
|
136 |
+
|
137 |
+
$tdataeoc[".addPageEvents"] = false;
|
138 |
+
|
139 |
+
// use timepicker for search panel
|
140 |
+
$tdataeoc[".isUseTimeForSearch"] = false;
|
141 |
+
|
142 |
+
|
143 |
+
$tdataeoc[".badgeColor"] = "008B8B";
|
144 |
+
|
145 |
+
|
146 |
+
$tdataeoc[".allSearchFields"] = array();
|
147 |
+
$tdataeoc[".filterFields"] = array();
|
148 |
+
$tdataeoc[".requiredSearchFields"] = array();
|
149 |
+
|
150 |
+
$tdataeoc[".googleLikeFields"] = array();
|
151 |
+
$tdataeoc[".googleLikeFields"][] = "id";
|
152 |
+
$tdataeoc[".googleLikeFields"][] = "name";
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
$tdataeoc[".tableType"] = "list";
|
157 |
+
|
158 |
+
$tdataeoc[".printerPageOrientation"] = 0;
|
159 |
+
$tdataeoc[".nPrinterPageScale"] = 100;
|
160 |
+
|
161 |
+
$tdataeoc[".nPrinterSplitRecords"] = 40;
|
162 |
+
|
163 |
+
$tdataeoc[".geocodingEnabled"] = false;
|
164 |
+
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
$tdataeoc[".pageSize"] = 20;
|
175 |
+
|
176 |
+
$tdataeoc[".warnLeavingPages"] = true;
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
$tstrOrderBy = "";
|
181 |
+
$tdataeoc[".strOrderBy"] = $tstrOrderBy;
|
182 |
+
|
183 |
+
$tdataeoc[".orderindexes"] = array();
|
184 |
+
|
185 |
+
|
186 |
+
$tdataeoc[".sqlHead"] = "SELECT id, name";
|
187 |
+
$tdataeoc[".sqlFrom"] = "FROM Eoc";
|
188 |
+
$tdataeoc[".sqlWhereExpr"] = "";
|
189 |
+
$tdataeoc[".sqlTail"] = "";
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
//fill array of records per page for list and report without group fields
|
201 |
+
$arrRPP = array();
|
202 |
+
$arrRPP[] = 10;
|
203 |
+
$arrRPP[] = 20;
|
204 |
+
$arrRPP[] = 30;
|
205 |
+
$arrRPP[] = 50;
|
206 |
+
$arrRPP[] = 100;
|
207 |
+
$arrRPP[] = 500;
|
208 |
+
$arrRPP[] = -1;
|
209 |
+
$tdataeoc[".arrRecsPerPage"] = $arrRPP;
|
210 |
+
|
211 |
+
//fill array of groups per page for report with group fields
|
212 |
+
$arrGPP = array();
|
213 |
+
$arrGPP[] = 1;
|
214 |
+
$arrGPP[] = 3;
|
215 |
+
$arrGPP[] = 5;
|
216 |
+
$arrGPP[] = 10;
|
217 |
+
$arrGPP[] = 50;
|
218 |
+
$arrGPP[] = 100;
|
219 |
+
$arrGPP[] = -1;
|
220 |
+
$tdataeoc[".arrGroupsPerPage"] = $arrGPP;
|
221 |
+
|
222 |
+
$tdataeoc[".highlightSearchResults"] = true;
|
223 |
+
|
224 |
+
$tableKeyseoc = array();
|
225 |
+
$tableKeyseoc[] = "id";
|
226 |
+
$tdataeoc[".Keys"] = $tableKeyseoc;
|
227 |
+
|
228 |
+
|
229 |
+
$tdataeoc[".hideMobileList"] = array();
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
+
|
234 |
+
// id
|
235 |
+
// Custom field settings
|
236 |
+
$fdata = array();
|
237 |
+
$fdata["Index"] = 1;
|
238 |
+
$fdata["strName"] = "id";
|
239 |
+
$fdata["GoodName"] = "id";
|
240 |
+
$fdata["ownerTable"] = "Eoc";
|
241 |
+
$fdata["Label"] = GetFieldLabel("Eoc","id");
|
242 |
+
$fdata["FieldType"] = 3;
|
243 |
+
|
244 |
+
|
245 |
+
$fdata["AutoInc"] = true;
|
246 |
+
|
247 |
+
|
248 |
+
|
249 |
+
|
250 |
+
$fdata["strField"] = "id";
|
251 |
+
|
252 |
+
$fdata["sourceSingle"] = "id";
|
253 |
+
|
254 |
+
|
255 |
+
$fdata["isSQLExpression"] = true;
|
256 |
+
$fdata["FullName"] = "id";
|
257 |
+
|
258 |
+
|
259 |
+
|
260 |
+
$fdata["UploadFolder"] = "files";
|
261 |
+
|
262 |
+
// Begin View Formats
|
263 |
+
$fdata["ViewFormats"] = array();
|
264 |
+
|
265 |
+
$vdata = array("ViewFormat" => "");
|
266 |
+
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
+
|
272 |
+
|
273 |
+
|
274 |
+
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
+
$vdata["NeedEncode"] = true;
|
282 |
+
|
283 |
+
|
284 |
+
$vdata["truncateText"] = true;
|
285 |
+
$vdata["NumberOfChars"] = 80;
|
286 |
+
|
287 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
288 |
+
// End View Formats
|
289 |
+
|
290 |
+
// Begin Edit Formats
|
291 |
+
$fdata["EditFormats"] = array();
|
292 |
+
|
293 |
+
$edata = array("EditFormat" => "Text field");
|
294 |
+
|
295 |
+
|
296 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
297 |
+
$edata["weekdays"] = "[]";
|
298 |
+
|
299 |
+
|
300 |
+
|
301 |
+
|
302 |
+
|
303 |
+
|
304 |
+
|
305 |
+
$edata["IsRequired"] = true;
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
$edata["acceptFileTypesHtml"] = "";
|
311 |
+
|
312 |
+
$edata["maxNumberOfFiles"] = 1;
|
313 |
+
|
314 |
+
|
315 |
+
|
316 |
+
|
317 |
+
|
318 |
+
$edata["HTML5InuptType"] = "text";
|
319 |
+
|
320 |
+
$edata["EditParams"] = "";
|
321 |
+
|
322 |
+
$edata["controlWidth"] = 200;
|
323 |
+
|
324 |
+
// Begin validation
|
325 |
+
$edata["validateAs"] = array();
|
326 |
+
$edata["validateAs"]["basicValidate"] = array();
|
327 |
+
$edata["validateAs"]["customMessages"] = array();
|
328 |
+
$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
|
329 |
+
$edata["validateAs"]["basicValidate"][] = "IsRequired";
|
330 |
+
|
331 |
+
|
332 |
+
// End validation
|
333 |
+
|
334 |
+
|
335 |
+
|
336 |
+
|
337 |
+
|
338 |
+
|
339 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
340 |
+
// End Edit Formats
|
341 |
+
|
342 |
+
|
343 |
+
$fdata["isSeparate"] = false;
|
344 |
+
|
345 |
+
|
346 |
+
|
347 |
+
|
348 |
+
// the field's search options settings
|
349 |
+
$fdata["defaultSearchOption"] = "Contains";
|
350 |
+
|
351 |
+
// the default search options list
|
352 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
353 |
+
// the end of search options settings
|
354 |
+
|
355 |
+
|
356 |
+
//Filters settings
|
357 |
+
$fdata["filterTotals"] = 0;
|
358 |
+
$fdata["filterMultiSelect"] = 0;
|
359 |
+
$fdata["filterFormat"] = "Values list";
|
360 |
+
$fdata["showCollapsed"] = false;
|
361 |
+
|
362 |
+
$fdata["sortValueType"] = 0;
|
363 |
+
$fdata["numberOfVisibleItems"] = 10;
|
364 |
+
|
365 |
+
$fdata["filterBy"] = 0;
|
366 |
+
|
367 |
+
|
368 |
+
|
369 |
+
|
370 |
+
|
371 |
+
//end of Filters settings
|
372 |
+
|
373 |
+
|
374 |
+
$tdataeoc["id"] = $fdata;
|
375 |
+
$tdataeoc[".searchableFields"][] = "id";
|
376 |
+
// name
|
377 |
+
// Custom field settings
|
378 |
+
$fdata = array();
|
379 |
+
$fdata["Index"] = 2;
|
380 |
+
$fdata["strName"] = "name";
|
381 |
+
$fdata["GoodName"] = "name";
|
382 |
+
$fdata["ownerTable"] = "Eoc";
|
383 |
+
$fdata["Label"] = GetFieldLabel("Eoc","name");
|
384 |
+
$fdata["FieldType"] = 200;
|
385 |
+
|
386 |
+
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
|
391 |
+
$fdata["strField"] = "name";
|
392 |
+
|
393 |
+
$fdata["sourceSingle"] = "name";
|
394 |
+
|
395 |
+
|
396 |
+
$fdata["isSQLExpression"] = true;
|
397 |
+
$fdata["FullName"] = "name";
|
398 |
+
|
399 |
+
|
400 |
+
|
401 |
+
$fdata["UploadFolder"] = "files";
|
402 |
+
|
403 |
+
// Begin View Formats
|
404 |
+
$fdata["ViewFormats"] = array();
|
405 |
+
|
406 |
+
$vdata = array("ViewFormat" => "");
|
407 |
+
|
408 |
+
|
409 |
+
|
410 |
+
|
411 |
+
|
412 |
+
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
|
421 |
+
|
422 |
+
$vdata["NeedEncode"] = true;
|
423 |
+
|
424 |
+
|
425 |
+
$vdata["truncateText"] = true;
|
426 |
+
$vdata["NumberOfChars"] = 80;
|
427 |
+
|
428 |
+
$fdata["ViewFormats"]["view"] = $vdata;
|
429 |
+
// End View Formats
|
430 |
+
|
431 |
+
// Begin Edit Formats
|
432 |
+
$fdata["EditFormats"] = array();
|
433 |
+
|
434 |
+
$edata = array("EditFormat" => "Text field");
|
435 |
+
|
436 |
+
|
437 |
+
$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
|
438 |
+
$edata["weekdays"] = "[]";
|
439 |
+
|
440 |
+
|
441 |
+
|
442 |
+
|
443 |
+
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
|
448 |
+
|
449 |
+
|
450 |
+
$edata["acceptFileTypesHtml"] = "";
|
451 |
+
|
452 |
+
$edata["maxNumberOfFiles"] = 1;
|
453 |
+
|
454 |
+
|
455 |
+
|
456 |
+
|
457 |
+
|
458 |
+
$edata["HTML5InuptType"] = "text";
|
459 |
+
|
460 |
+
$edata["EditParams"] = "";
|
461 |
+
$edata["EditParams"].= " maxlength=50";
|
462 |
+
|
463 |
+
$edata["controlWidth"] = 200;
|
464 |
+
|
465 |
+
// Begin validation
|
466 |
+
$edata["validateAs"] = array();
|
467 |
+
$edata["validateAs"]["basicValidate"] = array();
|
468 |
+
$edata["validateAs"]["customMessages"] = array();
|
469 |
+
|
470 |
+
|
471 |
+
// End validation
|
472 |
+
|
473 |
+
|
474 |
+
|
475 |
+
|
476 |
+
|
477 |
+
|
478 |
+
$fdata["EditFormats"]["edit"] = $edata;
|
479 |
+
// End Edit Formats
|
480 |
+
|
481 |
+
|
482 |
+
$fdata["isSeparate"] = false;
|
483 |
+
|
484 |
+
|
485 |
+
|
486 |
+
|
487 |
+
// the field's search options settings
|
488 |
+
$fdata["defaultSearchOption"] = "Contains";
|
489 |
+
|
490 |
+
// the default search options list
|
491 |
+
$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
|
492 |
+
// the end of search options settings
|
493 |
+
|
494 |
+
|
495 |
+
//Filters settings
|
496 |
+
$fdata["filterTotals"] = 0;
|
497 |
+
$fdata["filterMultiSelect"] = 0;
|
498 |
+
$fdata["filterFormat"] = "Values list";
|
499 |
+
$fdata["showCollapsed"] = false;
|
500 |
+
|
501 |
+
$fdata["sortValueType"] = 0;
|
502 |
+
$fdata["numberOfVisibleItems"] = 10;
|
503 |
+
|
504 |
+
$fdata["filterBy"] = 0;
|
505 |
+
|
506 |
+
|
507 |
+
|
508 |
+
|
509 |
+
|
510 |
+
//end of Filters settings
|
511 |
+
|
512 |
+
|
513 |
+
$tdataeoc["name"] = $fdata;
|
514 |
+
$tdataeoc[".searchableFields"][] = "name";
|
515 |
+
|
516 |
+
|
517 |
+
$tables_data["Eoc"]=&$tdataeoc;
|
518 |
+
$field_labels["Eoc"] = &$fieldLabelseoc;
|
519 |
+
$fieldToolTips["Eoc"] = &$fieldToolTipseoc;
|
520 |
+
$placeHolders["Eoc"] = &$placeHolderseoc;
|
521 |
+
$page_titles["Eoc"] = &$pageTitleseoc;
|
522 |
+
|
523 |
+
|
524 |
+
changeTextControlsToDate( "Eoc" );
|
525 |
+
|
526 |
+
// -----------------start prepare master-details data arrays ------------------------------//
|
527 |
+
// tables which are detail tables for current table (master)
|
528 |
+
|
529 |
+
//if !@TABLE.bReportCrossTab
|
530 |
+
|
531 |
+
$detailsTablesData["Eoc"] = array();
|
532 |
+
//endif
|
533 |
+
|
534 |
+
// tables which are master tables for current table (detail)
|
535 |
+
$masterTablesData["Eoc"] = array();
|
536 |
+
|
537 |
+
|
538 |
+
|
539 |
+
// -----------------end prepare master-details data arrays ------------------------------//
|
540 |
+
|
541 |
+
|
542 |
+
|
543 |
+
require_once(getabspath("classes/sql.php"));
|
544 |
+
|
545 |
+
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
|
550 |
+
|
551 |
+
|
552 |
+
|
553 |
+
|
554 |
+
|
555 |
+
function createSqlQuery_eoc()
|
556 |
+
{
|
557 |
+
$proto0=array();
|
558 |
+
$proto0["m_strHead"] = "SELECT";
|
559 |
+
$proto0["m_strFieldList"] = "id, name";
|
560 |
+
$proto0["m_strFrom"] = "FROM Eoc";
|
561 |
+
$proto0["m_strWhere"] = "";
|
562 |
+
$proto0["m_strOrderBy"] = "";
|
563 |
+
|
564 |
+
;
|
565 |
+
$proto0["cipherer"] = null;
|
566 |
+
$proto2=array();
|
567 |
+
$proto2["m_sql"] = "";
|
568 |
+
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
|
569 |
+
$obj = new SQLNonParsed(array(
|
570 |
+
"m_sql" => ""
|
571 |
+
));
|
572 |
+
|
573 |
+
$proto2["m_column"]=$obj;
|
574 |
+
$proto2["m_contained"] = array();
|
575 |
+
$proto2["m_strCase"] = "";
|
576 |
+
$proto2["m_havingmode"] = false;
|
577 |
+
$proto2["m_inBrackets"] = false;
|
578 |
+
$proto2["m_useAlias"] = false;
|
579 |
+
$obj = new SQLLogicalExpr($proto2);
|
580 |
+
|
581 |
+
$proto0["m_where"] = $obj;
|
582 |
+
$proto4=array();
|
583 |
+
$proto4["m_sql"] = "";
|
584 |
+
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
|
585 |
+
$obj = new SQLNonParsed(array(
|
586 |
+
"m_sql" => ""
|
587 |
+
));
|
588 |
+
|
589 |
+
$proto4["m_column"]=$obj;
|
590 |
+
$proto4["m_contained"] = array();
|
591 |
+
$proto4["m_strCase"] = "";
|
592 |
+
$proto4["m_havingmode"] = false;
|
593 |
+
$proto4["m_inBrackets"] = false;
|
594 |
+
$proto4["m_useAlias"] = false;
|
595 |
+
$obj = new SQLLogicalExpr($proto4);
|
596 |
+
|
597 |
+
$proto0["m_having"] = $obj;
|
598 |
+
$proto0["m_fieldlist"] = array();
|
599 |
+
$proto6=array();
|
600 |
+
$obj = new SQLField(array(
|
601 |
+
"m_strName" => "id",
|
602 |
+
"m_strTable" => "Eoc",
|
603 |
+
"m_srcTableName" => "Eoc"
|
604 |
+
));
|
605 |
+
|
606 |
+
$proto6["m_sql"] = "id";
|
607 |
+
$proto6["m_srcTableName"] = "Eoc";
|
608 |
+
$proto6["m_expr"]=$obj;
|
609 |
+
$proto6["m_alias"] = "";
|
610 |
+
$obj = new SQLFieldListItem($proto6);
|
611 |
+
|
612 |
+
$proto0["m_fieldlist"][]=$obj;
|
613 |
+
$proto8=array();
|
614 |
+
$obj = new SQLField(array(
|
615 |
+
"m_strName" => "name",
|
616 |
+
"m_strTable" => "Eoc",
|
617 |
+
"m_srcTableName" => "Eoc"
|
618 |
+
));
|
619 |
+
|
620 |
+
$proto8["m_sql"] = "name";
|
621 |
+
$proto8["m_srcTableName"] = "Eoc";
|
622 |
+
$proto8["m_expr"]=$obj;
|
623 |
+
$proto8["m_alias"] = "";
|
624 |
+
$obj = new SQLFieldListItem($proto8);
|
625 |
+
|
626 |
+
$proto0["m_fieldlist"][]=$obj;
|
627 |
+
$proto0["m_fromlist"] = array();
|
628 |
+
$proto10=array();
|
629 |
+
$proto10["m_link"] = "SQLL_MAIN";
|
630 |
+
$proto11=array();
|
631 |
+
$proto11["m_strName"] = "Eoc";
|
632 |
+
$proto11["m_srcTableName"] = "Eoc";
|
633 |
+
$proto11["m_columns"] = array();
|
634 |
+
$proto11["m_columns"][] = "id";
|
635 |
+
$proto11["m_columns"][] = "name";
|
636 |
+
$obj = new SQLTable($proto11);
|
637 |
+
|
638 |
+
$proto10["m_table"] = $obj;
|
639 |
+
$proto10["m_sql"] = "Eoc";
|
640 |
+
$proto10["m_alias"] = "";
|
641 |
+
$proto10["m_srcTableName"] = "Eoc";
|
642 |
+
$proto12=array();
|
643 |
+
$proto12["m_sql"] = "";
|
644 |
+
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
|
645 |
+
$obj = new SQLNonParsed(array(
|
646 |
+
"m_sql" => ""
|
647 |
+
));
|
648 |
+
|
649 |
+
$proto12["m_column"]=$obj;
|
650 |
+
$proto12["m_contained"] = array();
|
651 |
+
$proto12["m_strCase"] = "";
|
652 |
+
$proto12["m_havingmode"] = false;
|
653 |
+
$proto12["m_inBrackets"] = false;
|
654 |
+
$proto12["m_useAlias"] = false;
|
655 |
+
$obj = new SQLLogicalExpr($proto12);
|
656 |
+
|
657 |
+
$proto10["m_joinon"] = $obj;
|
658 |
+
$obj = new SQLFromListItem($proto10);
|
659 |
+
|
660 |
+
$proto0["m_fromlist"][]=$obj;
|
661 |
+
$proto0["m_groupby"] = array();
|
662 |
+
$proto0["m_orderby"] = array();
|
663 |
+
$proto0["m_srcTableName"]="Eoc";
|
664 |
+
$obj = new SQLQuery($proto0);
|
665 |
+
|
666 |
+
return $obj;
|
667 |
+
}
|
668 |
+
$queryData_eoc = createSqlQuery_eoc();
|
669 |
+
|
670 |
+
|
671 |
+
|
672 |
+
;
|
673 |
+
|
674 |
+
|
675 |
+
|
676 |
+
$tdataeoc[".sqlquery"] = $queryData_eoc;
|
677 |
+
|
678 |
+
|
679 |
+
|
680 |
+
$tdataeoc[".hasEvents"] = false;
|
681 |
+
|
682 |
+
?>
|
php/include/eoc_variables.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$strTableName="Eoc";
|
3 |
+
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
|
4 |
+
|
5 |
+
$strOriginalTableName="Eoc";
|
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/header.php
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script>
|
2 |
+
// CSSとアイコンのリンクを追加する関数
|
3 |
+
function addStylesheet(href) {
|
4 |
+
let link = document.createElement('link');
|
5 |
+
link.href = href;
|
6 |
+
link.rel = 'stylesheet';
|
7 |
+
document.head.appendChild(link);
|
8 |
+
}
|
9 |
+
|
10 |
+
// トグルボタンを作成し、追加する関数
|
11 |
+
function createToggleButton() {
|
12 |
+
const toggleBtn = document.createElement('div');
|
13 |
+
toggleBtn.id = 'chatbot-toggle_button';
|
14 |
+
const anchor = document.createElement('a');
|
15 |
+
anchor.id = 'chat-button';
|
16 |
+
anchor.href = '#';
|
17 |
+
anchor.addEventListener('click', event => {
|
18 |
+
event.preventDefault();
|
19 |
+
toggleChatbox();
|
20 |
+
});
|
21 |
+
const img = document.createElement('img');
|
22 |
+
img.src = 'https://firebasestorage.googleapis.com/v0/b/mabo-f1cc7.appspot.com/o/chaticon.png?alt=media&token=1777070f-a83c-403d-8c83-f387f68ecd52';
|
23 |
+
img.width = '100';
|
24 |
+
img.height = '100';
|
25 |
+
anchor.appendChild(img);
|
26 |
+
toggleBtn.appendChild(anchor);
|
27 |
+
document.body.appendChild(toggleBtn);
|
28 |
+
}
|
29 |
+
|
30 |
+
// チャットボックスのヘッダーを作成する関数
|
31 |
+
function createChatboxHeader() {
|
32 |
+
const header = document.createElement('div');
|
33 |
+
header.id = 'chatbot-header';
|
34 |
+
header.style.background = '#4169e1';
|
35 |
+
const logo = document.createElement('div');
|
36 |
+
logo.id = 'chatbot-logo';
|
37 |
+
logo.innerText = 'リファスタ';
|
38 |
+
const closeIcon = document.createElement('i');
|
39 |
+
closeIcon.id = 'chatbot-close-icon';
|
40 |
+
closeIcon.className = 'material-icons material-symbols-outlined waves-light';
|
41 |
+
closeIcon.innerText = 'close';
|
42 |
+
closeIcon.addEventListener('click', event => {
|
43 |
+
event.preventDefault();
|
44 |
+
toggleChatbox();
|
45 |
+
});
|
46 |
+
header.appendChild(logo);
|
47 |
+
header.appendChild(closeIcon);
|
48 |
+
return header;
|
49 |
+
}
|
50 |
+
|
51 |
+
// チャットボックスを作成し、追加する関数
|
52 |
+
function createChatbox() {
|
53 |
+
const chatbox = document.createElement('div');
|
54 |
+
chatbox.id = 'chatbot';
|
55 |
+
chatbox.style.display = 'none';
|
56 |
+
|
57 |
+
const header = createChatboxHeader();
|
58 |
+
const body = document.createElement('div');
|
59 |
+
body.id = 'chatbot-body';
|
60 |
+
const iframe = document.createElement('iframe');
|
61 |
+
iframe.id = 'inline-frame';
|
62 |
+
iframe.width = '100%';
|
63 |
+
iframe.height = '100%';
|
64 |
+
iframe.dataSrc = 'https://miibo.jp/chat/3cfb2749-a1fa-4a5b-a2c8-eb17aee77808190cb500dd1357?name=%E3%83%AA%E3%83%95%E3%82%A1%E3%82%B9%E3%82%BF';
|
65 |
+
iframe.scrolling = 'no';
|
66 |
+
iframe.frameBorder = 'no';
|
67 |
+
body.appendChild(iframe);
|
68 |
+
chatbox.appendChild(header);
|
69 |
+
chatbox.appendChild(body);
|
70 |
+
document.body.appendChild(chatbox);
|
71 |
+
}
|
72 |
+
|
73 |
+
// チャットボックスの表示/非表示を切り替える関数
|
74 |
+
function toggleChatbox(utterance, ...states) {
|
75 |
+
var chatbox = document.getElementById('chatbot');
|
76 |
+
var iframe = document.getElementById('inline-frame');
|
77 |
+
|
78 |
+
// ここでイベントオブジェクトではなく、文字列または未定義の値が渡されることを確認します。
|
79 |
+
if (typeof utterance !== 'string') {
|
80 |
+
utterance = null;
|
81 |
+
}
|
82 |
+
|
83 |
+
if (chatbox.style.display === 'none' || utterance) {
|
84 |
+
chatbox.style.display = 'block';
|
85 |
+
var src = 'https://miibo.jp/chat/3cfb2749-a1fa-4a5b-a2c8-eb17aee77808190cb500dd1357?name=%E3%83%AA%E3%83%95%E3%82%A1%E3%82%B9%E3%82%BF';
|
86 |
+
// 可変引数からクエリパラメータを生成
|
87 |
+
states.forEach(state => {
|
88 |
+
if (state.key && state.value) {
|
89 |
+
src += src.includes('?') ? '&' : '?';
|
90 |
+
src += `${encodeURIComponent(state.key)}=${encodeURIComponent(state.value)}`;
|
91 |
+
}
|
92 |
+
});
|
93 |
+
|
94 |
+
// 以下の条件を追加して、再読み込みの必要性をチェック
|
95 |
+
if (!iframeLoaded || (utterance && lastUtterance !== utterance)) {
|
96 |
+
if (utterance) {
|
97 |
+
src += src.includes('?') ? '&' : '?';
|
98 |
+
src += "utterance=" + encodeURIComponent(utterance);
|
99 |
+
}
|
100 |
+
iframe.src = src;
|
101 |
+
iframeLoaded = true;
|
102 |
+
lastUtterance = utterance;
|
103 |
+
}
|
104 |
+
} else {
|
105 |
+
chatbox.style.display = 'none';
|
106 |
+
}
|
107 |
+
}
|
108 |
+
// イベントリスナーを設定する関数
|
109 |
+
function setupEventListeners() {
|
110 |
+
document.querySelectorAll('.chatButton').forEach(button => {
|
111 |
+
button.addEventListener('click', event => {
|
112 |
+
event.preventDefault();
|
113 |
+
const utterance = button.getAttribute('data-utterance');
|
114 |
+
const statesData = button.getAttribute('data-states');
|
115 |
+
let states = [];
|
116 |
+
try {
|
117 |
+
// JSON 形式の文字列をオブジェクトに変換
|
118 |
+
const statesObj = JSON.parse(statesData);
|
119 |
+
// オブジェクトから key-value ペアの配列を生成
|
120 |
+
states = Object.keys(statesObj).map(key => ({ key, value: statesObj[key] }));
|
121 |
+
} catch (e) {
|
122 |
+
console.error("Error parsing states data", e);
|
123 |
+
}
|
124 |
+
|
125 |
+
toggleChatbox(utterance, ...states);
|
126 |
+
});
|
127 |
+
});
|
128 |
+
}
|
129 |
+
|
130 |
+
// メイン実行部
|
131 |
+
addStylesheet('https://fonts.googleapis.com/icon?family=Material+Icons');
|
132 |
+
addStylesheet('https://miibo.jp/chat3.css');
|
133 |
+
createToggleButton();
|
134 |
+
createChatbox();
|
135 |
+
setupEventListeners();
|
136 |
+
|
137 |
+
var iframeLoaded = false; // iframeがロードされたかどうかを追跡するフラグ
|
138 |
+
var lastUtterance = ""; // 最後に発話した内容を追跡するフラグ
|
139 |
+
</script>
|
php/include/menunodes_main.php
CHANGED
@@ -3,32 +3,6 @@
|
|
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";
|
@@ -82,37 +56,11 @@
|
|
82 |
|
83 |
$menuNodes[] = $menuNode;
|
84 |
$menuNode = array();
|
85 |
-
$menuNode["id"] = "
|
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"] = "
|
116 |
$menuNode["style"] = "";
|
117 |
$menuNode["params"] = "";
|
118 |
$menuNode["parent"] = "0";
|
@@ -122,13 +70,13 @@
|
|
122 |
$menuNode["pageId"] = "";
|
123 |
$menuNode["openType"] = "None";
|
124 |
|
125 |
-
$menuNode["icon"] = "glyphicon-
|
126 |
$menuNode["iconType"] = "2";
|
127 |
$menuNode["iconShow"] = "2";
|
128 |
|
129 |
$menuNode["color"] = "";
|
130 |
|
131 |
-
$menuNode["title"] = "
|
132 |
|
133 |
|
134 |
|
|
|
3 |
// create menu nodes arr
|
4 |
$menuNodes = array();
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
$menuNode = array();
|
7 |
$menuNode["id"] = "1";
|
8 |
$menuNode["name"] = "Chat";
|
|
|
56 |
|
57 |
$menuNodes[] = $menuNode;
|
58 |
$menuNode = array();
|
59 |
+
$menuNode["id"] = "3";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
$menuNode["name"] = "";
|
61 |
$menuNode["href"] = "mypage.htm";
|
62 |
$menuNode["type"] = "Leaf";
|
63 |
+
$menuNode["table"] = "Eoc";
|
64 |
$menuNode["style"] = "";
|
65 |
$menuNode["params"] = "";
|
66 |
$menuNode["parent"] = "0";
|
|
|
70 |
$menuNode["pageId"] = "";
|
71 |
$menuNode["openType"] = "None";
|
72 |
|
73 |
+
$menuNode["icon"] = "glyphicon-calendar";
|
74 |
$menuNode["iconType"] = "2";
|
75 |
$menuNode["iconShow"] = "2";
|
76 |
|
77 |
$menuNode["color"] = "";
|
78 |
|
79 |
+
$menuNode["title"] = "Eoc";
|
80 |
|
81 |
|
82 |
|
php/include/pages/_global_menu_Chat1.php
CHANGED
@@ -15,19 +15,7 @@
|
|
15 |
'group' => false,
|
16 |
'linkType' => 0,
|
17 |
'items' => null,
|
18 |
-
'table' => '
|
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( ),
|
@@ -40,9 +28,7 @@
|
|
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',
|
@@ -50,9 +36,7 @@
|
|
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,
|
@@ -61,9 +45,7 @@
|
|
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' ),
|
@@ -115,9 +97,7 @@ array( 'cell' => 'c2' ) ),
|
|
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' ),
|
@@ -144,36 +124,14 @@ array( 'cell' => 'c2' ) ),
|
|
144 |
'logout_link' => array( 'type' => 'logout_link' ),
|
145 |
'welcome_item1' => array( 'type' => 'welcome_item',
|
146 |
'linkUrl' => '',
|
147 |
-
'linkTable' => '
|
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' => '
|
172 |
'type' => 6 ),
|
173 |
-
'linkIcon' => array( 'glyph' => '
|
174 |
-
'linkComments' => array( 'text' => '
|
175 |
'type' => 0 ),
|
176 |
-
'background' => '#
|
177 |
'linkType' => 0 ) ),
|
178 |
'dbProps' => array( ),
|
179 |
'version' => 14,
|
|
|
15 |
'group' => false,
|
16 |
'linkType' => 0,
|
17 |
'items' => null,
|
18 |
+
'table' => 'Eoc',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
'page' => 'list' ) ) ),
|
20 |
'fields' => array( 'gridFields' => array( ),
|
21 |
'searchRequiredFields' => array( ),
|
|
|
28 |
'loginform_login',
|
29 |
'username_button' ),
|
30 |
'grid' => array( 'welcome_item',
|
31 |
+
'welcome_item1' ) ),
|
|
|
|
|
32 |
'formXtTags' => array( 'above-grid' => array( ) ),
|
33 |
'itemForms' => array( 'logo' => 'supertop',
|
34 |
'menu' => 'supertop',
|
|
|
36 |
'loginform_login' => 'supertop',
|
37 |
'username_button' => 'supertop',
|
38 |
'welcome_item' => 'grid',
|
39 |
+
'welcome_item1' => 'grid' ),
|
|
|
|
|
40 |
'itemLocations' => array( ),
|
41 |
'itemVisiblity' => array( 'menu' => 3,
|
42 |
'list_options' => 3,
|
|
|
45 |
'itemsByType' => array( 'logo' => array( 'logo' ),
|
46 |
'menu' => array( 'menu' ),
|
47 |
'welcome_item' => array( 'welcome_item',
|
48 |
+
'welcome_item1' ),
|
|
|
|
|
49 |
'list_options' => array( 'list_options' ),
|
50 |
'username_button' => array( 'username_button' ),
|
51 |
'loginform_login' => array( 'loginform_login' ),
|
|
|
97 |
'section' => '' ) ),
|
98 |
'cells' => array( 'c1' => array( 'model' => 'c1',
|
99 |
'items' => array( 'welcome_item',
|
100 |
+
'welcome_item1' ) ) ),
|
|
|
|
|
101 |
'deferredItems' => array( ),
|
102 |
'recsPerRow' => 1 ) ),
|
103 |
'items' => array( 'logo' => array( 'type' => 'logo' ),
|
|
|
124 |
'logout_link' => array( 'type' => 'logout_link' ),
|
125 |
'welcome_item1' => array( 'type' => 'welcome_item',
|
126 |
'linkUrl' => '',
|
127 |
+
'linkTable' => 'Eoc',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
'linkPage' => 'list',
|
129 |
+
'linkText' => array( 'table' => 'Eoc',
|
130 |
'type' => 6 ),
|
131 |
+
'linkIcon' => array( 'glyph' => 'calendar' ),
|
132 |
+
'linkComments' => array( 'text' => 'Eoc description',
|
133 |
'type' => 0 ),
|
134 |
+
'background' => '#008B8B',
|
135 |
'linkType' => 0 ) ),
|
136 |
'dbProps' => array( ),
|
137 |
'version' => 14,
|
php/include/pages/eoc_add.php
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'name' ),
|
4 |
+
'searchRequiredFields' => array( ),
|
5 |
+
'searchPanelFields' => array( ),
|
6 |
+
'fieldItems' => array( 'name' => array( 'integrated_edit_field' ) ) ),
|
7 |
+
'pageLinks' => array( 'edit' => false,
|
8 |
+
'add' => false,
|
9 |
+
'view' => false,
|
10 |
+
'print' => false ),
|
11 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add_message' ),
|
12 |
+
'below-grid' => array( 'add_save',
|
13 |
+
'add_reset',
|
14 |
+
'add_back_list',
|
15 |
+
'add_cancel' ),
|
16 |
+
'supertop' => array( 'expand_menu_button',
|
17 |
+
'collapse_button',
|
18 |
+
'loginform_login',
|
19 |
+
'username_button' ),
|
20 |
+
'left' => array( 'logo',
|
21 |
+
'expand_button',
|
22 |
+
'menu' ),
|
23 |
+
'top' => array( 'add_header' ),
|
24 |
+
'grid' => array( 'integrated_edit_field' ) ),
|
25 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
26 |
+
'itemForms' => array( 'add_message' => 'above-grid',
|
27 |
+
'add_save' => 'below-grid',
|
28 |
+
'add_reset' => 'below-grid',
|
29 |
+
'add_back_list' => 'below-grid',
|
30 |
+
'add_cancel' => 'below-grid',
|
31 |
+
'expand_menu_button' => 'supertop',
|
32 |
+
'collapse_button' => 'supertop',
|
33 |
+
'loginform_login' => 'supertop',
|
34 |
+
'username_button' => 'supertop',
|
35 |
+
'logo' => 'left',
|
36 |
+
'expand_button' => 'left',
|
37 |
+
'menu' => 'left',
|
38 |
+
'add_header' => 'top',
|
39 |
+
'integrated_edit_field' => 'grid' ),
|
40 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
41 |
+
'cellId' => 'c3' ) ),
|
42 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
43 |
+
'expand_button' => 5 ) ),
|
44 |
+
'itemsByType' => array( 'add_header' => array( 'add_header' ),
|
45 |
+
'add_back_list' => array( 'add_back_list' ),
|
46 |
+
'add_cancel' => array( 'add_cancel' ),
|
47 |
+
'add_message' => array( 'add_message' ),
|
48 |
+
'add_save' => array( 'add_save' ),
|
49 |
+
'add_reset' => array( 'add_reset' ),
|
50 |
+
'logo' => array( 'logo' ),
|
51 |
+
'menu' => array( 'menu' ),
|
52 |
+
'username_button' => array( 'username_button' ),
|
53 |
+
'loginform_login' => array( 'loginform_login' ),
|
54 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
55 |
+
'logout_link' => array( 'logout_link' ),
|
56 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
57 |
+
'collapse_button' => array( 'collapse_button' ),
|
58 |
+
'integrated_edit_field' => array( 'integrated_edit_field' ),
|
59 |
+
'expand_button' => array( 'expand_button' ) ),
|
60 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
61 |
+
'rows' => array( 0 ),
|
62 |
+
'tags' => array( ),
|
63 |
+
'items' => array( 'integrated_edit_field' ),
|
64 |
+
'fixedAtServer' => true,
|
65 |
+
'fixedAtClient' => false ) ),
|
66 |
+
'width' => 1,
|
67 |
+
'height' => 1 ) ) ),
|
68 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
69 |
+
'page' => array( 'verticalBar' => true,
|
70 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
71 |
+
'print_pages' => array( ),
|
72 |
+
'register_activate_message' => array( ),
|
73 |
+
'details_found' => array( ) ),
|
74 |
+
'hasCustomButtons' => false,
|
75 |
+
'customButtons' => array( ),
|
76 |
+
'hasNotifications' => false,
|
77 |
+
'menus' => array( array( 'id' => 'main',
|
78 |
+
'horizontal' => false ) ),
|
79 |
+
'calcTotalsFor' => 1 ),
|
80 |
+
'misc' => array( 'type' => 'add',
|
81 |
+
'breadcrumb' => false ),
|
82 |
+
'events' => array( 'maps' => array( ),
|
83 |
+
'mapsData' => array( ),
|
84 |
+
'buttons' => array( ) ) );
|
85 |
+
$pageArray = array( 'id' => 'add',
|
86 |
+
'type' => 'add',
|
87 |
+
'layoutId' => 'leftbar',
|
88 |
+
'disabled' => 0,
|
89 |
+
'default' => 0,
|
90 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'add-above-grid',
|
91 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
92 |
+
'section' => '' ) ),
|
93 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
94 |
+
'items' => array( 'add_message' ) ) ),
|
95 |
+
'deferredItems' => array( ),
|
96 |
+
'recsPerRow' => 1 ),
|
97 |
+
'below-grid' => array( 'modelId' => 'add-below-grid',
|
98 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
99 |
+
'section' => '' ) ),
|
100 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
101 |
+
'items' => array( 'add_save',
|
102 |
+
'add_reset',
|
103 |
+
'add_back_list',
|
104 |
+
'add_cancel' ) ) ),
|
105 |
+
'deferredItems' => array( ),
|
106 |
+
'recsPerRow' => 1 ),
|
107 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
108 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
109 |
+
array( 'cell' => 'c2' ) ),
|
110 |
+
'section' => '' ) ),
|
111 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
112 |
+
'items' => array( 'expand_menu_button',
|
113 |
+
'collapse_button' ) ),
|
114 |
+
'c2' => array( 'model' => 'c2',
|
115 |
+
'items' => array( 'loginform_login',
|
116 |
+
'username_button' ) ) ),
|
117 |
+
'deferredItems' => array( ),
|
118 |
+
'recsPerRow' => 1 ),
|
119 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
120 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
121 |
+
'section' => '' ),
|
122 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
123 |
+
'section' => '' ) ),
|
124 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
125 |
+
'items' => array( 'logo',
|
126 |
+
'expand_button' ) ),
|
127 |
+
'c1' => array( 'model' => 'c1',
|
128 |
+
'items' => array( 'menu' ) ) ),
|
129 |
+
'deferredItems' => array( ),
|
130 |
+
'recsPerRow' => 1 ),
|
131 |
+
'top' => array( 'modelId' => 'add-header',
|
132 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
133 |
+
'section' => '' ) ),
|
134 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
135 |
+
'items' => array( 'add_header' ) ) ),
|
136 |
+
'deferredItems' => array( ),
|
137 |
+
'recsPerRow' => 1 ),
|
138 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
139 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
140 |
+
'section' => '' ) ),
|
141 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
142 |
+
'items' => array( 'integrated_edit_field' ) ) ),
|
143 |
+
'deferredItems' => array( ),
|
144 |
+
'columnCount' => 1,
|
145 |
+
'inlineLabels' => false,
|
146 |
+
'separateLabels' => false ) ),
|
147 |
+
'items' => array( 'add_header' => array( 'type' => 'add_header' ),
|
148 |
+
'add_back_list' => array( 'type' => 'add_back_list' ),
|
149 |
+
'add_cancel' => array( 'type' => 'add_cancel' ),
|
150 |
+
'add_message' => array( 'type' => 'add_message' ),
|
151 |
+
'add_save' => array( 'type' => 'add_save' ),
|
152 |
+
'add_reset' => array( 'type' => 'add_reset' ),
|
153 |
+
'logo' => array( 'type' => 'logo' ),
|
154 |
+
'menu' => array( 'type' => 'menu' ),
|
155 |
+
'username_button' => array( 'type' => 'username_button',
|
156 |
+
'items' => array( 'userinfo_link',
|
157 |
+
'logout_link' ) ),
|
158 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
159 |
+
'popup' => false ),
|
160 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
161 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
162 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
163 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
164 |
+
'integrated_edit_field' => array( 'field' => 'name',
|
165 |
+
'type' => 'integrated_edit_field',
|
166 |
+
'orientation' => 0 ),
|
167 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
168 |
+
'dbProps' => array( ),
|
169 |
+
'version' => 14,
|
170 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
171 |
+
'imageBgColor' => '#f2f2f2',
|
172 |
+
'controlsBgColor' => 'white',
|
173 |
+
'imagePosition' => 'right',
|
174 |
+
'listTotals' => 1 );
|
175 |
+
?>
|
php/include/pages/eoc_edit.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'captcha' => array( 'captcha' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'name' ),
|
4 |
+
'searchRequiredFields' => array( ),
|
5 |
+
'searchPanelFields' => array( ),
|
6 |
+
'updateOnEditFields' => array( ),
|
7 |
+
'fieldItems' => array( 'name' => array( 'integrated_edit_field' ) ) ),
|
8 |
+
'pageLinks' => array( 'edit' => false,
|
9 |
+
'add' => false,
|
10 |
+
'view' => true,
|
11 |
+
'print' => false ),
|
12 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'edit_message' ),
|
13 |
+
'below-grid' => array( 'edit_save',
|
14 |
+
'edit_back_list',
|
15 |
+
'edit_close',
|
16 |
+
'hamburger' ),
|
17 |
+
'supertop' => array( 'expand_menu_button',
|
18 |
+
'collapse_button',
|
19 |
+
'loginform_login',
|
20 |
+
'username_button' ),
|
21 |
+
'left' => array( 'logo',
|
22 |
+
'expand_button',
|
23 |
+
'menu' ),
|
24 |
+
'top' => array( 'edit_header' ),
|
25 |
+
'grid' => array( 'integrated_edit_field' ) ),
|
26 |
+
'formXtTags' => array( 'above-grid' => array( 'message_block' ) ),
|
27 |
+
'itemForms' => array( 'edit_message' => 'above-grid',
|
28 |
+
'edit_save' => 'below-grid',
|
29 |
+
'edit_back_list' => 'below-grid',
|
30 |
+
'edit_close' => 'below-grid',
|
31 |
+
'hamburger' => 'below-grid',
|
32 |
+
'expand_menu_button' => 'supertop',
|
33 |
+
'collapse_button' => 'supertop',
|
34 |
+
'loginform_login' => 'supertop',
|
35 |
+
'username_button' => 'supertop',
|
36 |
+
'logo' => 'left',
|
37 |
+
'expand_button' => 'left',
|
38 |
+
'menu' => 'left',
|
39 |
+
'edit_header' => 'top',
|
40 |
+
'integrated_edit_field' => 'grid' ),
|
41 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
42 |
+
'cellId' => 'c3' ) ),
|
43 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
44 |
+
'expand_button' => 5 ) ),
|
45 |
+
'itemsByType' => array( 'edit_header' => array( 'edit_header' ),
|
46 |
+
'hamburger' => array( 'hamburger' ),
|
47 |
+
'edit_reset' => array( 'edit_reset' ),
|
48 |
+
'edit_message' => array( 'edit_message' ),
|
49 |
+
'edit_save' => array( 'edit_save' ),
|
50 |
+
'edit_back_list' => array( 'edit_back_list' ),
|
51 |
+
'edit_close' => array( 'edit_close' ),
|
52 |
+
'logo' => array( 'logo' ),
|
53 |
+
'menu' => array( 'menu' ),
|
54 |
+
'username_button' => array( 'username_button' ),
|
55 |
+
'loginform_login' => array( 'loginform_login' ),
|
56 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
57 |
+
'logout_link' => array( 'logout_link' ),
|
58 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
59 |
+
'collapse_button' => array( 'collapse_button' ),
|
60 |
+
'edit_view' => array( 'edit_view' ),
|
61 |
+
'integrated_edit_field' => array( 'integrated_edit_field' ),
|
62 |
+
'expand_button' => array( 'expand_button' ) ),
|
63 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
64 |
+
'rows' => array( 0 ),
|
65 |
+
'tags' => array( ),
|
66 |
+
'items' => array( 'integrated_edit_field' ),
|
67 |
+
'fixedAtServer' => true,
|
68 |
+
'fixedAtClient' => false ) ),
|
69 |
+
'width' => 1,
|
70 |
+
'height' => 1 ) ) ),
|
71 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
72 |
+
'page' => array( 'verticalBar' => true,
|
73 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
74 |
+
'print_pages' => array( ),
|
75 |
+
'register_activate_message' => array( ),
|
76 |
+
'details_found' => array( ) ),
|
77 |
+
'hasCustomButtons' => false,
|
78 |
+
'customButtons' => array( ),
|
79 |
+
'hasNotifications' => false,
|
80 |
+
'menus' => array( array( 'id' => 'main',
|
81 |
+
'horizontal' => false ) ),
|
82 |
+
'calcTotalsFor' => 1 ),
|
83 |
+
'misc' => array( 'type' => 'edit',
|
84 |
+
'breadcrumb' => false,
|
85 |
+
'nextPrev' => false ),
|
86 |
+
'events' => array( 'maps' => array( ),
|
87 |
+
'mapsData' => array( ),
|
88 |
+
'buttons' => array( ) ),
|
89 |
+
'edit' => array( 'updateSelected' => false ) );
|
90 |
+
$pageArray = array( 'id' => 'edit',
|
91 |
+
'type' => 'edit',
|
92 |
+
'layoutId' => 'leftbar',
|
93 |
+
'disabled' => 0,
|
94 |
+
'default' => 0,
|
95 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'edit-above-grid',
|
96 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
97 |
+
'section' => '' ) ),
|
98 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
99 |
+
'items' => array( 'edit_message' ) ) ),
|
100 |
+
'deferredItems' => array( ),
|
101 |
+
'recsPerRow' => 1 ),
|
102 |
+
'below-grid' => array( 'modelId' => 'edit-below-grid',
|
103 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
104 |
+
array( 'cell' => 'c2' ) ),
|
105 |
+
'section' => '' ) ),
|
106 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
107 |
+
'items' => array( 'edit_save',
|
108 |
+
'edit_back_list',
|
109 |
+
'edit_close' ) ),
|
110 |
+
'c2' => array( 'model' => 'c2',
|
111 |
+
'items' => array( 'hamburger' ) ) ),
|
112 |
+
'deferredItems' => array( ),
|
113 |
+
'recsPerRow' => 1 ),
|
114 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
115 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
116 |
+
array( 'cell' => 'c2' ) ),
|
117 |
+
'section' => '' ) ),
|
118 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
119 |
+
'items' => array( 'expand_menu_button',
|
120 |
+
'collapse_button' ) ),
|
121 |
+
'c2' => array( 'model' => 'c2',
|
122 |
+
'items' => array( 'loginform_login',
|
123 |
+
'username_button' ) ) ),
|
124 |
+
'deferredItems' => array( ),
|
125 |
+
'recsPerRow' => 1 ),
|
126 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
127 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
128 |
+
'section' => '' ),
|
129 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
130 |
+
'section' => '' ) ),
|
131 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
132 |
+
'items' => array( 'logo',
|
133 |
+
'expand_button' ) ),
|
134 |
+
'c1' => array( 'model' => 'c1',
|
135 |
+
'items' => array( 'menu' ) ) ),
|
136 |
+
'deferredItems' => array( ),
|
137 |
+
'recsPerRow' => 1 ),
|
138 |
+
'top' => array( 'modelId' => 'edit-header',
|
139 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
140 |
+
'section' => '' ) ),
|
141 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
142 |
+
'items' => array( 'edit_header' ) ) ),
|
143 |
+
'deferredItems' => array( ),
|
144 |
+
'recsPerRow' => 1 ),
|
145 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
146 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
147 |
+
'section' => '' ) ),
|
148 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
149 |
+
'items' => array( 'integrated_edit_field' ) ) ),
|
150 |
+
'deferredItems' => array( ),
|
151 |
+
'columnCount' => 1,
|
152 |
+
'inlineLabels' => false,
|
153 |
+
'separateLabels' => false ) ),
|
154 |
+
'items' => array( 'edit_header' => array( 'type' => 'edit_header' ),
|
155 |
+
'hamburger' => array( 'type' => 'hamburger',
|
156 |
+
'items' => array( 'edit_reset',
|
157 |
+
'edit_view' ) ),
|
158 |
+
'edit_reset' => array( 'type' => 'edit_reset' ),
|
159 |
+
'edit_message' => array( 'type' => 'edit_message' ),
|
160 |
+
'edit_save' => array( 'type' => 'edit_save' ),
|
161 |
+
'edit_back_list' => array( 'type' => 'edit_back_list' ),
|
162 |
+
'edit_close' => array( 'type' => 'edit_close' ),
|
163 |
+
'logo' => array( 'type' => 'logo' ),
|
164 |
+
'menu' => array( 'type' => 'menu' ),
|
165 |
+
'username_button' => array( 'type' => 'username_button',
|
166 |
+
'items' => array( 'userinfo_link',
|
167 |
+
'logout_link' ) ),
|
168 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
169 |
+
'popup' => false ),
|
170 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
171 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
172 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
173 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
174 |
+
'edit_view' => array( 'type' => 'edit_view' ),
|
175 |
+
'integrated_edit_field' => array( 'field' => 'name',
|
176 |
+
'type' => 'integrated_edit_field',
|
177 |
+
'orientation' => 0 ),
|
178 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
179 |
+
'dbProps' => array( ),
|
180 |
+
'version' => 14,
|
181 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
182 |
+
'imageBgColor' => '#f2f2f2',
|
183 |
+
'controlsBgColor' => 'white',
|
184 |
+
'imagePosition' => 'right',
|
185 |
+
'listTotals' => 1 );
|
186 |
+
?>
|
php/include/pages/eoc_export.php
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'totals' => array( 'id' => array( 'totalsType' => '' ),
|
3 |
+
'name' => array( 'totalsType' => '' ) ),
|
4 |
+
'fields' => array( 'gridFields' => array( 'id',
|
5 |
+
'name' ),
|
6 |
+
'exportFields' => array( 'id',
|
7 |
+
'name' ),
|
8 |
+
'searchRequiredFields' => array( ),
|
9 |
+
'searchPanelFields' => array( ),
|
10 |
+
'fieldItems' => array( 'id' => array( 'export_field' ),
|
11 |
+
'name' => array( 'export_field1' ) ) ),
|
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( 'export_header' ),
|
18 |
+
'grid' => array( 'export_field',
|
19 |
+
'export_field1' ),
|
20 |
+
'footer' => array( 'export_export',
|
21 |
+
'export_cancel' ) ),
|
22 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
23 |
+
'itemForms' => array( 'export_header' => 'top',
|
24 |
+
'export_field' => 'grid',
|
25 |
+
'export_field1' => 'grid',
|
26 |
+
'export_export' => 'footer',
|
27 |
+
'export_cancel' => 'footer' ),
|
28 |
+
'itemLocations' => array( ),
|
29 |
+
'itemVisiblity' => array( ) ),
|
30 |
+
'itemsByType' => array( 'export_header' => array( 'export_header' ),
|
31 |
+
'export_export' => array( 'export_export' ),
|
32 |
+
'export_cancel' => array( 'export_cancel' ),
|
33 |
+
'export_field' => array( 'export_field',
|
34 |
+
'export_field1' ) ),
|
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 |
+
'export' => array( 'format' => 2,
|
51 |
+
'selectFields' => false,
|
52 |
+
'delimiter' => ',',
|
53 |
+
'selectDelimiter' => false,
|
54 |
+
'exportFileTypes' => array( 'excel' => true,
|
55 |
+
'word' => true,
|
56 |
+
'csv' => true,
|
57 |
+
'xml' => false ) ) );
|
58 |
+
$pageArray = array( 'id' => 'export',
|
59 |
+
'type' => 'export',
|
60 |
+
'layoutId' => 'first',
|
61 |
+
'disabled' => 0,
|
62 |
+
'default' => 0,
|
63 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
64 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
65 |
+
'section' => '' ) ),
|
66 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
67 |
+
'items' => array( ) ) ),
|
68 |
+
'deferredItems' => array( ),
|
69 |
+
'recsPerRow' => 1 ),
|
70 |
+
'top' => array( 'modelId' => 'export-header',
|
71 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
72 |
+
'section' => '' ) ),
|
73 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
74 |
+
'items' => array( 'export_header' ) ) ),
|
75 |
+
'deferredItems' => array( ),
|
76 |
+
'recsPerRow' => 1 ),
|
77 |
+
'grid' => array( 'modelId' => 'export-grid',
|
78 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
79 |
+
'section' => '' ) ),
|
80 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
81 |
+
'items' => array( 'export_field',
|
82 |
+
'export_field1' ) ) ),
|
83 |
+
'deferredItems' => array( ),
|
84 |
+
'recsPerRow' => 1 ),
|
85 |
+
'footer' => array( 'modelId' => 'export-footer',
|
86 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
87 |
+
array( 'cell' => 'c2' ) ),
|
88 |
+
'section' => '' ) ),
|
89 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
90 |
+
'items' => array( ) ),
|
91 |
+
'c2' => array( 'model' => 'c2',
|
92 |
+
'items' => array( 'export_export',
|
93 |
+
'export_cancel' ) ) ),
|
94 |
+
'deferredItems' => array( ),
|
95 |
+
'recsPerRow' => 1 ) ),
|
96 |
+
'items' => array( 'export_header' => array( 'type' => 'export_header' ),
|
97 |
+
'export_export' => array( 'type' => 'export_export' ),
|
98 |
+
'export_cancel' => array( 'type' => 'export_cancel' ),
|
99 |
+
'export_field' => array( 'field' => 'id',
|
100 |
+
'type' => 'export_field' ),
|
101 |
+
'export_field1' => array( 'field' => 'name',
|
102 |
+
'type' => 'export_field' ) ),
|
103 |
+
'dbProps' => array( ),
|
104 |
+
'version' => 14,
|
105 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
106 |
+
'imageBgColor' => '#f2f2f2',
|
107 |
+
'controlsBgColor' => 'white',
|
108 |
+
'imagePosition' => 'right',
|
109 |
+
'listTotals' => 1,
|
110 |
+
'exportFormat' => 2,
|
111 |
+
'exportDelimiter' => ',',
|
112 |
+
'exportSelectDelimiter' => false,
|
113 |
+
'exportSelectFields' => false );
|
114 |
+
?>
|
php/include/pages/eoc_import.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
|
3 |
+
'name' ),
|
4 |
+
'searchRequiredFields' => array( ),
|
5 |
+
'searchPanelFields' => array( ),
|
6 |
+
'fieldItems' => array( 'id' => array( 'import_field' ),
|
7 |
+
'name' => array( 'import_field1' ) ) ),
|
8 |
+
'pageLinks' => array( 'edit' => false,
|
9 |
+
'add' => false,
|
10 |
+
'view' => false,
|
11 |
+
'print' => false ),
|
12 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ),
|
13 |
+
'top' => array( 'import_header' ),
|
14 |
+
'grid' => array( 'import_field',
|
15 |
+
'import_field1' ) ),
|
16 |
+
'formXtTags' => array( 'supertop' => array( ) ),
|
17 |
+
'itemForms' => array( 'import_header' => 'top',
|
18 |
+
'import_field' => 'grid',
|
19 |
+
'import_field1' => 'grid' ),
|
20 |
+
'itemLocations' => array( ),
|
21 |
+
'itemVisiblity' => array( ) ),
|
22 |
+
'itemsByType' => array( 'import_header' => array( 'import_header' ),
|
23 |
+
'import_field' => array( 'import_field',
|
24 |
+
'import_field1' ) ),
|
25 |
+
'cellMaps' => array( ) ),
|
26 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
27 |
+
'page' => array( 'verticalBar' => false,
|
28 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
29 |
+
'print_pages' => array( ),
|
30 |
+
'register_activate_message' => array( ),
|
31 |
+
'details_found' => array( ) ),
|
32 |
+
'hasCustomButtons' => false,
|
33 |
+
'customButtons' => array( ),
|
34 |
+
'hasNotifications' => false,
|
35 |
+
'menus' => array( ),
|
36 |
+
'calcTotalsFor' => 1 ),
|
37 |
+
'events' => array( 'maps' => array( ),
|
38 |
+
'mapsData' => array( ),
|
39 |
+
'buttons' => array( ) ) );
|
40 |
+
$pageArray = array( 'id' => 'import',
|
41 |
+
'type' => 'import',
|
42 |
+
'layoutId' => 'first',
|
43 |
+
'disabled' => 0,
|
44 |
+
'default' => 0,
|
45 |
+
'forms' => array( 'supertop' => array( 'modelId' => 'panel-top',
|
46 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
47 |
+
'section' => '' ) ),
|
48 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
49 |
+
'items' => array( ) ) ),
|
50 |
+
'deferredItems' => array( ),
|
51 |
+
'recsPerRow' => 1 ),
|
52 |
+
'top' => array( 'modelId' => 'import-header',
|
53 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
54 |
+
'section' => '' ) ),
|
55 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
56 |
+
'items' => array( 'import_header' ) ) ),
|
57 |
+
'deferredItems' => array( ),
|
58 |
+
'recsPerRow' => 1 ),
|
59 |
+
'grid' => array( 'modelId' => 'import-grid',
|
60 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
61 |
+
'section' => '' ) ),
|
62 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
63 |
+
'items' => array( 'import_field',
|
64 |
+
'import_field1' ) ) ),
|
65 |
+
'deferredItems' => array( ),
|
66 |
+
'recsPerRow' => 1 ) ),
|
67 |
+
'items' => array( 'import_header' => array( 'type' => 'import_header' ),
|
68 |
+
'import_field' => array( 'field' => 'id',
|
69 |
+
'type' => 'import_field' ),
|
70 |
+
'import_field1' => array( 'field' => 'name',
|
71 |
+
'type' => 'import_field' ) ),
|
72 |
+
'dbProps' => array( ),
|
73 |
+
'version' => 14,
|
74 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
75 |
+
'imageBgColor' => '#f2f2f2',
|
76 |
+
'controlsBgColor' => 'white',
|
77 |
+
'imagePosition' => 'right',
|
78 |
+
'listTotals' => 1 );
|
79 |
+
?>
|
php/include/pages/eoc_list.php
ADDED
@@ -0,0 +1,448 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
'name' => array( 'totalsType' => '' ) ),
|
22 |
+
'fields' => array( 'gridFields' => array( 'id',
|
23 |
+
'name' ),
|
24 |
+
'searchRequiredFields' => array( ),
|
25 |
+
'searchPanelFields' => array( 'id',
|
26 |
+
'name' ),
|
27 |
+
'filterFields' => array( ),
|
28 |
+
'inlineAddFields' => array( ),
|
29 |
+
'inlineEditFields' => array( ),
|
30 |
+
'fieldItems' => array( 'id' => array( 'simple_grid_field',
|
31 |
+
'simple_grid_field2' ),
|
32 |
+
'name' => array( 'simple_grid_field1',
|
33 |
+
'simple_grid_field3' ) ),
|
34 |
+
'hideEmptyFields' => array( ),
|
35 |
+
'fieldFilterFields' => array( ) ),
|
36 |
+
'pageLinks' => array( 'edit' => true,
|
37 |
+
'add' => true,
|
38 |
+
'view' => true,
|
39 |
+
'print' => true ),
|
40 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'add',
|
41 |
+
'delete',
|
42 |
+
'details_found',
|
43 |
+
'page_size',
|
44 |
+
'print_panel' ),
|
45 |
+
'below-grid' => array( 'pagination' ),
|
46 |
+
'left' => array( 'logo',
|
47 |
+
'expand_button',
|
48 |
+
'menu',
|
49 |
+
'search_panel' ),
|
50 |
+
'supertop' => array( 'expand_menu_button',
|
51 |
+
'collapse_button',
|
52 |
+
'breadcrumb',
|
53 |
+
'simple_search',
|
54 |
+
'list_options',
|
55 |
+
'loginform_login',
|
56 |
+
'username_button' ),
|
57 |
+
'top' => array( ),
|
58 |
+
'grid' => array( 'simple_grid_field2',
|
59 |
+
'simple_grid_field',
|
60 |
+
'simple_grid_field3',
|
61 |
+
'simple_grid_field1',
|
62 |
+
'grid_checkbox_head',
|
63 |
+
'grid_checkbox',
|
64 |
+
'grid_edit',
|
65 |
+
'grid_view' ) ),
|
66 |
+
'formXtTags' => array( 'above-grid' => array( 'add_link',
|
67 |
+
'deleteselected_link',
|
68 |
+
'details_found',
|
69 |
+
'recsPerPage',
|
70 |
+
'print_friendly' ),
|
71 |
+
'below-grid' => array( 'pagination' ),
|
72 |
+
'top' => array( ) ),
|
73 |
+
'itemForms' => array( 'add' => 'above-grid',
|
74 |
+
'delete' => 'above-grid',
|
75 |
+
'details_found' => 'above-grid',
|
76 |
+
'page_size' => 'above-grid',
|
77 |
+
'print_panel' => 'above-grid',
|
78 |
+
'pagination' => 'below-grid',
|
79 |
+
'logo' => 'left',
|
80 |
+
'expand_button' => 'left',
|
81 |
+
'menu' => 'left',
|
82 |
+
'search_panel' => 'left',
|
83 |
+
'expand_menu_button' => 'supertop',
|
84 |
+
'collapse_button' => 'supertop',
|
85 |
+
'breadcrumb' => 'supertop',
|
86 |
+
'simple_search' => 'supertop',
|
87 |
+
'list_options' => 'supertop',
|
88 |
+
'loginform_login' => 'supertop',
|
89 |
+
'username_button' => 'supertop',
|
90 |
+
'simple_grid_field2' => 'grid',
|
91 |
+
'simple_grid_field' => 'grid',
|
92 |
+
'simple_grid_field3' => 'grid',
|
93 |
+
'simple_grid_field1' => 'grid',
|
94 |
+
'grid_checkbox_head' => 'grid',
|
95 |
+
'grid_checkbox' => 'grid',
|
96 |
+
'grid_edit' => 'grid',
|
97 |
+
'grid_view' => 'grid' ),
|
98 |
+
'itemLocations' => array( 'simple_grid_field2' => array( 'location' => 'grid',
|
99 |
+
'cellId' => 'headcell_field' ),
|
100 |
+
'simple_grid_field' => array( 'location' => 'grid',
|
101 |
+
'cellId' => 'cell_field' ),
|
102 |
+
'simple_grid_field3' => array( 'location' => 'grid',
|
103 |
+
'cellId' => 'headcell_field1' ),
|
104 |
+
'simple_grid_field1' => array( 'location' => 'grid',
|
105 |
+
'cellId' => 'cell_field1' ),
|
106 |
+
'grid_checkbox_head' => array( 'location' => 'grid',
|
107 |
+
'cellId' => 'headcell_checkbox' ),
|
108 |
+
'grid_checkbox' => array( 'location' => 'grid',
|
109 |
+
'cellId' => 'cell_checkbox' ),
|
110 |
+
'grid_edit' => array( 'location' => 'grid',
|
111 |
+
'cellId' => 'cell_icons' ),
|
112 |
+
'grid_view' => array( 'location' => 'grid',
|
113 |
+
'cellId' => 'cell_icons' ) ),
|
114 |
+
'itemVisiblity' => array( 'breadcrumb' => 5,
|
115 |
+
'expand_menu_button' => 2,
|
116 |
+
'print_panel' => 5,
|
117 |
+
'expand_button' => 5 ) ),
|
118 |
+
'itemsByType' => array( 'page_size' => array( 'page_size' ),
|
119 |
+
'breadcrumb' => array( 'breadcrumb' ),
|
120 |
+
'logo' => array( 'logo' ),
|
121 |
+
'menu' => array( 'menu' ),
|
122 |
+
'simple_search' => array( 'simple_search' ),
|
123 |
+
'pagination' => array( 'pagination' ),
|
124 |
+
'details_found' => array( 'details_found' ),
|
125 |
+
'search_panel' => array( 'search_panel' ),
|
126 |
+
'list_options' => array( 'list_options' ),
|
127 |
+
'show_search_panel' => array( 'show_search_panel' ),
|
128 |
+
'hide_search_panel' => array( 'hide_search_panel' ),
|
129 |
+
'search_panel_field' => array( 'search_panel_field',
|
130 |
+
'search_panel_field1' ),
|
131 |
+
'username_button' => array( 'username_button' ),
|
132 |
+
'loginform_login' => array( 'loginform_login' ),
|
133 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
134 |
+
'logout_link' => array( 'logout_link' ),
|
135 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
136 |
+
'collapse_button' => array( 'collapse_button' ),
|
137 |
+
'add' => array( 'add' ),
|
138 |
+
'print_panel' => array( 'print_panel' ),
|
139 |
+
'print_scope' => array( 'print_scope' ),
|
140 |
+
'print_button' => array( 'print_button' ),
|
141 |
+
'print_records' => array( 'print_records' ),
|
142 |
+
'export' => array( 'export' ),
|
143 |
+
'-' => array( '-',
|
144 |
+
'-1',
|
145 |
+
'-2',
|
146 |
+
'-3' ),
|
147 |
+
'export_selected' => array( 'export_selected' ),
|
148 |
+
'import' => array( 'import' ),
|
149 |
+
'delete' => array( 'delete' ),
|
150 |
+
'delete_selected' => array( 'delete_selected' ),
|
151 |
+
'advsearch_link' => array( 'advsearch_link' ),
|
152 |
+
'grid_field' => array( 'simple_grid_field',
|
153 |
+
'simple_grid_field1' ),
|
154 |
+
'grid_field_label' => array( 'simple_grid_field2',
|
155 |
+
'simple_grid_field3' ),
|
156 |
+
'grid_checkbox' => array( 'grid_checkbox' ),
|
157 |
+
'grid_checkbox_head' => array( 'grid_checkbox_head' ),
|
158 |
+
'grid_edit' => array( 'grid_edit' ),
|
159 |
+
'grid_view' => array( 'grid_view' ),
|
160 |
+
'expand_button' => array( 'expand_button' ) ),
|
161 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
|
162 |
+
'rows' => array( 0 ),
|
163 |
+
'tags' => array( ),
|
164 |
+
'items' => array( ),
|
165 |
+
'fixedAtServer' => false,
|
166 |
+
'fixedAtClient' => false ),
|
167 |
+
'headcell_checkbox' => array( 'cols' => array( 1 ),
|
168 |
+
'rows' => array( 0 ),
|
169 |
+
'tags' => array( 'checkbox_column' ),
|
170 |
+
'items' => array( 'grid_checkbox_head' ),
|
171 |
+
'fixedAtServer' => false,
|
172 |
+
'fixedAtClient' => false ),
|
173 |
+
'headcell_field' => array( 'cols' => array( 2 ),
|
174 |
+
'rows' => array( 0 ),
|
175 |
+
'tags' => array( 'id_fieldheadercolumn' ),
|
176 |
+
'items' => array( 'simple_grid_field2' ),
|
177 |
+
'fixedAtServer' => false,
|
178 |
+
'fixedAtClient' => false ),
|
179 |
+
'headcell_field1' => array( 'cols' => array( 3 ),
|
180 |
+
'rows' => array( 0 ),
|
181 |
+
'tags' => array( 'name_fieldheadercolumn' ),
|
182 |
+
'items' => array( 'simple_grid_field3' ),
|
183 |
+
'fixedAtServer' => false,
|
184 |
+
'fixedAtClient' => false ),
|
185 |
+
'cell_icons' => array( 'cols' => array( 0 ),
|
186 |
+
'rows' => array( 1 ),
|
187 |
+
'tags' => array( 'edit_column',
|
188 |
+
'view_column' ),
|
189 |
+
'items' => array( 'grid_edit',
|
190 |
+
'grid_view' ),
|
191 |
+
'fixedAtServer' => false,
|
192 |
+
'fixedAtClient' => false ),
|
193 |
+
'cell_checkbox' => array( 'cols' => array( 1 ),
|
194 |
+
'rows' => array( 1 ),
|
195 |
+
'tags' => array( 'checkbox_column' ),
|
196 |
+
'items' => array( 'grid_checkbox' ),
|
197 |
+
'fixedAtServer' => false,
|
198 |
+
'fixedAtClient' => false ),
|
199 |
+
'cell_field' => array( 'cols' => array( 2 ),
|
200 |
+
'rows' => array( 1 ),
|
201 |
+
'tags' => array( 'id_fieldcolumn' ),
|
202 |
+
'items' => array( 'simple_grid_field' ),
|
203 |
+
'fixedAtServer' => false,
|
204 |
+
'fixedAtClient' => false ),
|
205 |
+
'cell_field1' => array( 'cols' => array( 3 ),
|
206 |
+
'rows' => array( 1 ),
|
207 |
+
'tags' => array( 'name_fieldcolumn' ),
|
208 |
+
'items' => array( 'simple_grid_field1' ),
|
209 |
+
'fixedAtServer' => false,
|
210 |
+
'fixedAtClient' => false ),
|
211 |
+
'footcell_icons' => array( 'cols' => array( 0 ),
|
212 |
+
'rows' => array( 2 ),
|
213 |
+
'tags' => array( ),
|
214 |
+
'items' => array( ),
|
215 |
+
'fixedAtServer' => false,
|
216 |
+
'fixedAtClient' => false ),
|
217 |
+
'footcell_checkbox' => array( 'cols' => array( 1 ),
|
218 |
+
'rows' => array( 2 ),
|
219 |
+
'tags' => array( ),
|
220 |
+
'items' => array( ),
|
221 |
+
'fixedAtServer' => false,
|
222 |
+
'fixedAtClient' => false ),
|
223 |
+
'footcell_field' => array( 'cols' => array( 2 ),
|
224 |
+
'rows' => array( 2 ),
|
225 |
+
'tags' => array( ),
|
226 |
+
'items' => array( ),
|
227 |
+
'fixedAtServer' => false,
|
228 |
+
'fixedAtClient' => false ),
|
229 |
+
'footcell_field1' => array( 'cols' => array( 3 ),
|
230 |
+
'rows' => array( 2 ),
|
231 |
+
'tags' => array( ),
|
232 |
+
'items' => array( ),
|
233 |
+
'fixedAtServer' => false,
|
234 |
+
'fixedAtClient' => false ) ),
|
235 |
+
'width' => 4,
|
236 |
+
'height' => 3 ) ) ),
|
237 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
238 |
+
'page' => array( 'verticalBar' => true,
|
239 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
240 |
+
'print_pages' => array( ),
|
241 |
+
'register_activate_message' => array( ),
|
242 |
+
'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
|
243 |
+
'type' => 2 ) ) ),
|
244 |
+
'gridType' => 0,
|
245 |
+
'recsPerRow' => 1,
|
246 |
+
'hasCustomButtons' => false,
|
247 |
+
'customButtons' => array( ),
|
248 |
+
'hasNotifications' => false,
|
249 |
+
'menus' => array( array( 'id' => 'main',
|
250 |
+
'horizontal' => false ) ),
|
251 |
+
'calcTotalsFor' => 1 ),
|
252 |
+
'misc' => array( 'type' => 'list',
|
253 |
+
'breadcrumb' => true ),
|
254 |
+
'events' => array( 'maps' => array( ),
|
255 |
+
'mapsData' => array( ),
|
256 |
+
'buttons' => array( ) ),
|
257 |
+
'dataGrid' => array( 'groupFields' => array( ) ) );
|
258 |
+
$pageArray = array( 'id' => 'list',
|
259 |
+
'type' => 'list',
|
260 |
+
'layoutId' => 'leftbar',
|
261 |
+
'disabled' => 0,
|
262 |
+
'default' => 0,
|
263 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'list-above-grid',
|
264 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
265 |
+
array( 'cell' => 'c2' ) ),
|
266 |
+
'section' => '' ) ),
|
267 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
268 |
+
'items' => array( 'add',
|
269 |
+
'delete' ) ),
|
270 |
+
'c2' => array( 'model' => 'c2',
|
271 |
+
'items' => array( 'details_found',
|
272 |
+
'page_size',
|
273 |
+
'print_panel' ) ) ),
|
274 |
+
'deferredItems' => array( ),
|
275 |
+
'recsPerRow' => 1 ),
|
276 |
+
'below-grid' => array( 'modelId' => 'list-below-grid',
|
277 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
278 |
+
'section' => '' ) ),
|
279 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
280 |
+
'items' => array( 'pagination' ) ) ),
|
281 |
+
'deferredItems' => array( ),
|
282 |
+
'recsPerRow' => 1 ),
|
283 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
284 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
285 |
+
'section' => '' ),
|
286 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
287 |
+
'section' => '' ) ),
|
288 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
289 |
+
'items' => array( 'logo',
|
290 |
+
'expand_button' ) ),
|
291 |
+
'c1' => array( 'model' => 'c1',
|
292 |
+
'items' => array( 'menu',
|
293 |
+
'search_panel' ) ) ),
|
294 |
+
'deferredItems' => array( ),
|
295 |
+
'recsPerRow' => 1 ),
|
296 |
+
'supertop' => array( 'modelId' => 'leftbar-top',
|
297 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
298 |
+
array( 'cell' => 'c2' ) ),
|
299 |
+
'section' => '' ) ),
|
300 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
301 |
+
'items' => array( 'expand_menu_button',
|
302 |
+
'collapse_button',
|
303 |
+
'breadcrumb' ) ),
|
304 |
+
'c2' => array( 'model' => 'c2',
|
305 |
+
'items' => array( 'simple_search',
|
306 |
+
'list_options',
|
307 |
+
'loginform_login',
|
308 |
+
'username_button' ) ) ),
|
309 |
+
'deferredItems' => array( ),
|
310 |
+
'recsPerRow' => 1 ),
|
311 |
+
'top' => array( 'modelId' => 'list-sidebar-top',
|
312 |
+
'grid' => array( ),
|
313 |
+
'cells' => array( ),
|
314 |
+
'deferredItems' => array( ),
|
315 |
+
'recsPerRow' => 1 ),
|
316 |
+
'grid' => array( 'modelId' => 'horizontal-grid',
|
317 |
+
'grid' => array( array( 'section' => 'head',
|
318 |
+
'cells' => array( array( 'cell' => 'headcell_icons' ),
|
319 |
+
array( 'cell' => 'headcell_checkbox' ),
|
320 |
+
array( 'cell' => 'headcell_field' ),
|
321 |
+
array( 'cell' => 'headcell_field1' ) ) ),
|
322 |
+
array( 'section' => 'body',
|
323 |
+
'cells' => array( array( 'cell' => 'cell_icons' ),
|
324 |
+
array( 'cell' => 'cell_checkbox' ),
|
325 |
+
array( 'cell' => 'cell_field' ),
|
326 |
+
array( 'cell' => 'cell_field1' ) ) ),
|
327 |
+
array( 'section' => 'foot',
|
328 |
+
'cells' => array( array( 'cell' => 'footcell_icons' ),
|
329 |
+
array( 'cell' => 'footcell_checkbox' ),
|
330 |
+
array( 'cell' => 'footcell_field' ),
|
331 |
+
array( 'cell' => 'footcell_field1' ) ) ) ),
|
332 |
+
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
|
333 |
+
'items' => array( 'simple_grid_field2' ),
|
334 |
+
'field' => 'id',
|
335 |
+
'columnName' => 'field' ),
|
336 |
+
'cell_field' => array( 'model' => 'cell_field',
|
337 |
+
'items' => array( 'simple_grid_field' ),
|
338 |
+
'field' => 'id',
|
339 |
+
'columnName' => 'field' ),
|
340 |
+
'footcell_field' => array( 'model' => 'footcell_field',
|
341 |
+
'items' => array( ) ),
|
342 |
+
'headcell_field1' => array( 'model' => 'headcell_field',
|
343 |
+
'items' => array( 'simple_grid_field3' ),
|
344 |
+
'field' => 'name',
|
345 |
+
'columnName' => 'field' ),
|
346 |
+
'cell_field1' => array( 'model' => 'cell_field',
|
347 |
+
'items' => array( 'simple_grid_field1' ),
|
348 |
+
'field' => 'name',
|
349 |
+
'columnName' => 'field' ),
|
350 |
+
'footcell_field1' => array( 'model' => 'footcell_field',
|
351 |
+
'items' => array( ) ),
|
352 |
+
'headcell_checkbox' => array( 'model' => 'headcell_checkbox',
|
353 |
+
'items' => array( 'grid_checkbox_head' ) ),
|
354 |
+
'cell_checkbox' => array( 'model' => 'cell_checkbox',
|
355 |
+
'items' => array( 'grid_checkbox' ) ),
|
356 |
+
'footcell_checkbox' => array( 'model' => 'footcell_checkbox',
|
357 |
+
'items' => array( ) ),
|
358 |
+
'headcell_icons' => array( 'model' => 'headcell_icons',
|
359 |
+
'items' => array( ) ),
|
360 |
+
'cell_icons' => array( 'model' => 'cell_icons',
|
361 |
+
'items' => array( 'grid_edit',
|
362 |
+
'grid_view' ) ),
|
363 |
+
'footcell_icons' => array( 'model' => 'footcell_icons',
|
364 |
+
'items' => array( ) ) ),
|
365 |
+
'deferredItems' => array( ),
|
366 |
+
'recsPerRow' => 1 ) ),
|
367 |
+
'items' => array( 'page_size' => array( 'type' => 'page_size' ),
|
368 |
+
'breadcrumb' => array( 'type' => 'breadcrumb' ),
|
369 |
+
'logo' => array( 'type' => 'logo' ),
|
370 |
+
'menu' => array( 'type' => 'menu' ),
|
371 |
+
'simple_search' => array( 'type' => 'simple_search' ),
|
372 |
+
'pagination' => array( 'type' => 'pagination' ),
|
373 |
+
'details_found' => array( 'type' => 'details_found' ),
|
374 |
+
'search_panel' => array( 'type' => 'search_panel',
|
375 |
+
'items' => array( 'search_panel_field',
|
376 |
+
'search_panel_field1' ) ),
|
377 |
+
'list_options' => array( 'type' => 'list_options',
|
378 |
+
'items' => array( 'export_selected',
|
379 |
+
'delete_selected',
|
380 |
+
'-3',
|
381 |
+
'advsearch_link',
|
382 |
+
'show_search_panel',
|
383 |
+
'hide_search_panel',
|
384 |
+
'-1',
|
385 |
+
'export',
|
386 |
+
'-2',
|
387 |
+
'import' ) ),
|
388 |
+
'show_search_panel' => array( 'type' => 'show_search_panel' ),
|
389 |
+
'hide_search_panel' => array( 'type' => 'hide_search_panel' ),
|
390 |
+
'search_panel_field' => array( 'field' => 'id',
|
391 |
+
'type' => 'search_panel_field',
|
392 |
+
'required' => false ),
|
393 |
+
'search_panel_field1' => array( 'field' => 'name',
|
394 |
+
'type' => 'search_panel_field',
|
395 |
+
'required' => false ),
|
396 |
+
'username_button' => array( 'type' => 'username_button',
|
397 |
+
'items' => array( 'userinfo_link',
|
398 |
+
'logout_link' ) ),
|
399 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
400 |
+
'popup' => false ),
|
401 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
402 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
403 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
404 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
405 |
+
'add' => array( 'type' => 'add' ),
|
406 |
+
'print_panel' => array( 'type' => 'print_panel',
|
407 |
+
'items' => array( 'print_scope',
|
408 |
+
'print_records',
|
409 |
+
'print_button' ) ),
|
410 |
+
'print_scope' => array( 'type' => 'print_scope' ),
|
411 |
+
'print_button' => array( 'type' => 'print_button' ),
|
412 |
+
'print_records' => array( 'type' => 'print_records' ),
|
413 |
+
'export' => array( 'type' => 'export' ),
|
414 |
+
'-' => array( 'type' => '-' ),
|
415 |
+
'export_selected' => array( 'type' => 'export_selected' ),
|
416 |
+
'-1' => array( 'type' => '-' ),
|
417 |
+
'import' => array( 'type' => 'import' ),
|
418 |
+
'-2' => array( 'type' => '-' ),
|
419 |
+
'delete' => array( 'type' => 'delete' ),
|
420 |
+
'delete_selected' => array( 'type' => 'delete_selected' ),
|
421 |
+
'advsearch_link' => array( 'type' => 'advsearch_link' ),
|
422 |
+
'-3' => array( 'type' => '-' ),
|
423 |
+
'simple_grid_field' => array( 'field' => 'id',
|
424 |
+
'type' => 'grid_field',
|
425 |
+
'inlineAdd' => false,
|
426 |
+
'inlineEdit' => false ),
|
427 |
+
'simple_grid_field2' => array( 'type' => 'grid_field_label',
|
428 |
+
'field' => 'id' ),
|
429 |
+
'simple_grid_field1' => array( 'field' => 'name',
|
430 |
+
'type' => 'grid_field',
|
431 |
+
'inlineAdd' => false,
|
432 |
+
'inlineEdit' => false ),
|
433 |
+
'simple_grid_field3' => array( 'type' => 'grid_field_label',
|
434 |
+
'field' => 'name' ),
|
435 |
+
'grid_checkbox' => array( 'type' => 'grid_checkbox' ),
|
436 |
+
'grid_checkbox_head' => array( 'type' => 'grid_checkbox_head' ),
|
437 |
+
'grid_edit' => array( 'type' => 'grid_edit' ),
|
438 |
+
'grid_view' => array( 'type' => 'grid_view' ),
|
439 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
440 |
+
'dbProps' => array( ),
|
441 |
+
'spreadsheetGrid' => false,
|
442 |
+
'version' => 14,
|
443 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
444 |
+
'imageBgColor' => '#f2f2f2',
|
445 |
+
'controlsBgColor' => 'white',
|
446 |
+
'imagePosition' => 'right',
|
447 |
+
'listTotals' => 1 );
|
448 |
+
?>
|
php/include/pages/eoc_print.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'pdf' => array( 'pdfView' => false ),
|
3 |
+
'totals' => array( 'id' => array( 'totalsType' => '' ),
|
4 |
+
'name' => array( 'totalsType' => '' ) ),
|
5 |
+
'fields' => array( 'gridFields' => array( 'id',
|
6 |
+
'name' ),
|
7 |
+
'searchRequiredFields' => array( ),
|
8 |
+
'searchPanelFields' => array( ),
|
9 |
+
'fieldItems' => array( 'id' => array( 'simple_grid_field',
|
10 |
+
'simple_grid_field2' ),
|
11 |
+
'name' => array( 'simple_grid_field1',
|
12 |
+
'simple_grid_field3' ) ),
|
13 |
+
'hideEmptyFields' => array( ) ),
|
14 |
+
'pageLinks' => array( 'edit' => false,
|
15 |
+
'add' => false,
|
16 |
+
'view' => false,
|
17 |
+
'print' => false ),
|
18 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'print_pages' ),
|
19 |
+
'below-grid' => array( ),
|
20 |
+
'top' => array( 'print_header',
|
21 |
+
'print_subheader' ),
|
22 |
+
'grid' => array( 'simple_grid_field2',
|
23 |
+
'simple_grid_field',
|
24 |
+
'simple_grid_field3',
|
25 |
+
'simple_grid_field1' ) ),
|
26 |
+
'formXtTags' => array( 'above-grid' => array( 'print_pages' ),
|
27 |
+
'below-grid' => array( ) ),
|
28 |
+
'itemForms' => array( 'print_pages' => 'above-grid',
|
29 |
+
'print_header' => 'top',
|
30 |
+
'print_subheader' => 'top',
|
31 |
+
'simple_grid_field2' => 'grid',
|
32 |
+
'simple_grid_field' => 'grid',
|
33 |
+
'simple_grid_field3' => 'grid',
|
34 |
+
'simple_grid_field1' => 'grid' ),
|
35 |
+
'itemLocations' => array( 'simple_grid_field2' => array( 'location' => 'grid',
|
36 |
+
'cellId' => 'headcell_field' ),
|
37 |
+
'simple_grid_field' => array( 'location' => 'grid',
|
38 |
+
'cellId' => 'cell_field' ),
|
39 |
+
'simple_grid_field3' => array( 'location' => 'grid',
|
40 |
+
'cellId' => 'headcell_field1' ),
|
41 |
+
'simple_grid_field1' => array( 'location' => 'grid',
|
42 |
+
'cellId' => 'cell_field1' ) ),
|
43 |
+
'itemVisiblity' => array( ) ),
|
44 |
+
'itemsByType' => array( 'print_header' => array( 'print_header' ),
|
45 |
+
'print_subheader' => array( 'print_subheader' ),
|
46 |
+
'print_pages' => array( 'print_pages' ),
|
47 |
+
'grid_field' => array( 'simple_grid_field',
|
48 |
+
'simple_grid_field1' ),
|
49 |
+
'grid_field_label' => array( 'simple_grid_field2',
|
50 |
+
'simple_grid_field3' ) ),
|
51 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_field' => array( 'cols' => array( 0 ),
|
52 |
+
'rows' => array( 0 ),
|
53 |
+
'tags' => array( 'id_fieldheadercolumn' ),
|
54 |
+
'items' => array( 'simple_grid_field2' ),
|
55 |
+
'fixedAtServer' => false,
|
56 |
+
'fixedAtClient' => false ),
|
57 |
+
'headcell_field1' => array( 'cols' => array( 1 ),
|
58 |
+
'rows' => array( 0 ),
|
59 |
+
'tags' => array( 'name_fieldheadercolumn' ),
|
60 |
+
'items' => array( 'simple_grid_field3' ),
|
61 |
+
'fixedAtServer' => false,
|
62 |
+
'fixedAtClient' => false ),
|
63 |
+
'cell_field' => array( 'cols' => array( 0 ),
|
64 |
+
'rows' => array( 1 ),
|
65 |
+
'tags' => array( 'id_fieldcolumn' ),
|
66 |
+
'items' => array( 'simple_grid_field' ),
|
67 |
+
'fixedAtServer' => false,
|
68 |
+
'fixedAtClient' => false ),
|
69 |
+
'cell_field1' => array( 'cols' => array( 1 ),
|
70 |
+
'rows' => array( 1 ),
|
71 |
+
'tags' => array( 'name_fieldcolumn' ),
|
72 |
+
'items' => array( 'simple_grid_field1' ),
|
73 |
+
'fixedAtServer' => false,
|
74 |
+
'fixedAtClient' => false ),
|
75 |
+
'footcell_field' => array( 'cols' => array( 0 ),
|
76 |
+
'rows' => array( 2 ),
|
77 |
+
'tags' => array( ),
|
78 |
+
'items' => array( ),
|
79 |
+
'fixedAtServer' => false,
|
80 |
+
'fixedAtClient' => false ),
|
81 |
+
'footcell_field1' => array( 'cols' => array( 1 ),
|
82 |
+
'rows' => array( 2 ),
|
83 |
+
'tags' => array( ),
|
84 |
+
'items' => array( ),
|
85 |
+
'fixedAtServer' => false,
|
86 |
+
'fixedAtClient' => false ) ),
|
87 |
+
'width' => 2,
|
88 |
+
'height' => 3 ) ) ),
|
89 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
90 |
+
'page' => array( 'verticalBar' => false,
|
91 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
92 |
+
'print_pages' => array( 'print_pages' => array( 'tag' => 'PRINT_PAGES',
|
93 |
+
'type' => 2 ) ),
|
94 |
+
'register_activate_message' => array( ),
|
95 |
+
'details_found' => array( ) ),
|
96 |
+
'gridType' => 0,
|
97 |
+
'recsPerRow' => 1,
|
98 |
+
'hasCustomButtons' => false,
|
99 |
+
'customButtons' => array( ),
|
100 |
+
'hasNotifications' => false,
|
101 |
+
'menus' => array( ),
|
102 |
+
'calcTotalsFor' => 1 ),
|
103 |
+
'misc' => array( 'type' => 'print',
|
104 |
+
'breadcrumb' => false ),
|
105 |
+
'events' => array( 'maps' => array( ),
|
106 |
+
'mapsData' => array( ),
|
107 |
+
'buttons' => array( ) ),
|
108 |
+
'dataGrid' => array( 'groupFields' => array( ) ) );
|
109 |
+
$pageArray = array( 'id' => 'print',
|
110 |
+
'type' => 'print',
|
111 |
+
'layoutId' => 'basic',
|
112 |
+
'disabled' => 0,
|
113 |
+
'default' => 0,
|
114 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'print-above-grid',
|
115 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
116 |
+
'section' => '' ) ),
|
117 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
118 |
+
'items' => array( 'print_pages' ) ) ),
|
119 |
+
'deferredItems' => array( ),
|
120 |
+
'recsPerRow' => 1 ),
|
121 |
+
'below-grid' => array( 'modelId' => 'print-below-grid',
|
122 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
123 |
+
'section' => '' ) ),
|
124 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
125 |
+
'items' => array( ) ) ),
|
126 |
+
'deferredItems' => array( ),
|
127 |
+
'recsPerRow' => 1 ),
|
128 |
+
'top' => array( 'modelId' => 'print-header',
|
129 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c2' ) ),
|
130 |
+
'section' => '' ) ),
|
131 |
+
'cells' => array( 'c2' => array( 'model' => 'c2',
|
132 |
+
'items' => array( 'print_header',
|
133 |
+
'print_subheader' ) ) ),
|
134 |
+
'deferredItems' => array( ),
|
135 |
+
'recsPerRow' => 1 ),
|
136 |
+
'grid' => array( 'modelId' => 'horizontal-grid',
|
137 |
+
'grid' => array( array( 'section' => 'head',
|
138 |
+
'cells' => array( array( 'cell' => 'headcell_field' ),
|
139 |
+
array( 'cell' => 'headcell_field1' ) ) ),
|
140 |
+
array( 'section' => 'body',
|
141 |
+
'cells' => array( array( 'cell' => 'cell_field' ),
|
142 |
+
array( 'cell' => 'cell_field1' ) ) ),
|
143 |
+
array( 'section' => 'foot',
|
144 |
+
'cells' => array( array( 'cell' => 'footcell_field' ),
|
145 |
+
array( 'cell' => 'footcell_field1' ) ) ) ),
|
146 |
+
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
|
147 |
+
'items' => array( 'simple_grid_field2' ),
|
148 |
+
'field' => 'id',
|
149 |
+
'columnName' => 'field' ),
|
150 |
+
'cell_field' => array( 'model' => 'cell_field',
|
151 |
+
'items' => array( 'simple_grid_field' ),
|
152 |
+
'field' => 'id',
|
153 |
+
'columnName' => 'field' ),
|
154 |
+
'footcell_field' => array( 'model' => 'footcell_field',
|
155 |
+
'items' => array( ) ),
|
156 |
+
'headcell_field1' => array( 'model' => 'headcell_field',
|
157 |
+
'items' => array( 'simple_grid_field3' ),
|
158 |
+
'field' => 'name',
|
159 |
+
'columnName' => 'field' ),
|
160 |
+
'cell_field1' => array( 'model' => 'cell_field',
|
161 |
+
'items' => array( 'simple_grid_field1' ),
|
162 |
+
'field' => 'name',
|
163 |
+
'columnName' => 'field' ),
|
164 |
+
'footcell_field1' => array( 'model' => 'footcell_field',
|
165 |
+
'items' => array( ) ) ),
|
166 |
+
'deferredItems' => array( ),
|
167 |
+
'recsPerRow' => 1 ) ),
|
168 |
+
'items' => array( 'print_header' => array( 'type' => 'print_header' ),
|
169 |
+
'print_subheader' => array( 'type' => 'print_subheader' ),
|
170 |
+
'print_pages' => array( 'type' => 'print_pages' ),
|
171 |
+
'simple_grid_field' => array( 'field' => 'id',
|
172 |
+
'type' => 'grid_field' ),
|
173 |
+
'simple_grid_field2' => array( 'type' => 'grid_field_label',
|
174 |
+
'field' => 'id' ),
|
175 |
+
'simple_grid_field1' => array( 'field' => 'name',
|
176 |
+
'type' => 'grid_field' ),
|
177 |
+
'simple_grid_field3' => array( 'type' => 'grid_field_label',
|
178 |
+
'field' => 'name' ) ),
|
179 |
+
'dbProps' => array( ),
|
180 |
+
'version' => 14,
|
181 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
182 |
+
'imageBgColor' => '#f2f2f2',
|
183 |
+
'controlsBgColor' => 'white',
|
184 |
+
'imagePosition' => 'right',
|
185 |
+
'listTotals' => 1 );
|
186 |
+
?>
|
php/include/pages/eoc_search.php
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
|
3 |
+
'name' ),
|
4 |
+
'searchRequiredFields' => array( ),
|
5 |
+
'searchPanelFields' => array( ),
|
6 |
+
'fieldItems' => array( 'id' => array( 'integrated_search_field' ),
|
7 |
+
'name' => array( 'integrated_search_field1' ) ) ),
|
8 |
+
'pageLinks' => array( 'edit' => false,
|
9 |
+
'add' => false,
|
10 |
+
'view' => false,
|
11 |
+
'print' => false ),
|
12 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ),
|
13 |
+
'below-grid' => array( 'search_search',
|
14 |
+
'search_reset',
|
15 |
+
'search_back_list',
|
16 |
+
'search_cancel' ),
|
17 |
+
'top' => array( 'search_header' ),
|
18 |
+
'grid' => array( 'integrated_search_field',
|
19 |
+
'integrated_search_field1' ) ),
|
20 |
+
'formXtTags' => array( 'above-grid' => array( ) ),
|
21 |
+
'itemForms' => array( 'search_search' => 'below-grid',
|
22 |
+
'search_reset' => 'below-grid',
|
23 |
+
'search_back_list' => 'below-grid',
|
24 |
+
'search_cancel' => 'below-grid',
|
25 |
+
'search_header' => 'top',
|
26 |
+
'integrated_search_field' => 'grid',
|
27 |
+
'integrated_search_field1' => 'grid' ),
|
28 |
+
'itemLocations' => array( 'integrated_search_field' => array( 'location' => 'grid',
|
29 |
+
'cellId' => 'c3' ),
|
30 |
+
'integrated_search_field1' => array( 'location' => 'grid',
|
31 |
+
'cellId' => 'c3' ) ),
|
32 |
+
'itemVisiblity' => array( ) ),
|
33 |
+
'itemsByType' => array( 'search_header' => array( 'search_header' ),
|
34 |
+
'search_reset' => array( 'search_reset' ),
|
35 |
+
'search_back_list' => array( 'search_back_list' ),
|
36 |
+
'search_search' => array( 'search_search' ),
|
37 |
+
'search_cancel' => array( 'search_cancel' ),
|
38 |
+
'integrated_search_field' => array( 'integrated_search_field',
|
39 |
+
'integrated_search_field1' ) ),
|
40 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
41 |
+
'rows' => array( 0 ),
|
42 |
+
'tags' => array( ),
|
43 |
+
'items' => array( 'integrated_search_field',
|
44 |
+
'integrated_search_field1' ),
|
45 |
+
'fixedAtServer' => true,
|
46 |
+
'fixedAtClient' => false ) ),
|
47 |
+
'width' => 1,
|
48 |
+
'height' => 1 ) ) ),
|
49 |
+
'loginForm' => array( 'loginForm' => 3 ),
|
50 |
+
'page' => array( 'verticalBar' => false,
|
51 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
52 |
+
'print_pages' => array( ),
|
53 |
+
'register_activate_message' => array( ),
|
54 |
+
'details_found' => array( ) ),
|
55 |
+
'hasCustomButtons' => false,
|
56 |
+
'customButtons' => array( ),
|
57 |
+
'hasNotifications' => false,
|
58 |
+
'menus' => array( ),
|
59 |
+
'calcTotalsFor' => 1 ),
|
60 |
+
'misc' => array( 'type' => 'search',
|
61 |
+
'breadcrumb' => false ),
|
62 |
+
'events' => array( 'maps' => array( ),
|
63 |
+
'mapsData' => array( ),
|
64 |
+
'buttons' => array( ) ) );
|
65 |
+
$pageArray = array( 'id' => 'search',
|
66 |
+
'type' => 'search',
|
67 |
+
'layoutId' => 'nomenu',
|
68 |
+
'disabled' => 0,
|
69 |
+
'default' => 0,
|
70 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'search-above-grid',
|
71 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
|
72 |
+
'colspan' => 2 ) ),
|
73 |
+
'section' => '' ) ),
|
74 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
75 |
+
'items' => array( ) ) ),
|
76 |
+
'deferredItems' => array( ),
|
77 |
+
'recsPerRow' => 1 ),
|
78 |
+
'below-grid' => array( 'modelId' => 'search-below-grid',
|
79 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
80 |
+
'section' => '' ) ),
|
81 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
82 |
+
'items' => array( 'search_search',
|
83 |
+
'search_reset',
|
84 |
+
'search_back_list',
|
85 |
+
'search_cancel' ) ) ),
|
86 |
+
'deferredItems' => array( ),
|
87 |
+
'recsPerRow' => 1 ),
|
88 |
+
'top' => array( 'modelId' => 'search-header',
|
89 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
90 |
+
'section' => '' ) ),
|
91 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
92 |
+
'items' => array( 'search_header' ) ) ),
|
93 |
+
'deferredItems' => array( ),
|
94 |
+
'recsPerRow' => 1 ),
|
95 |
+
'grid' => array( 'modelId' => 'simple-search',
|
96 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
97 |
+
'section' => '' ) ),
|
98 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
99 |
+
'items' => array( 'integrated_search_field',
|
100 |
+
'integrated_search_field1' ) ) ),
|
101 |
+
'deferredItems' => array( ),
|
102 |
+
'separateLabels' => false ) ),
|
103 |
+
'items' => array( 'search_header' => array( 'type' => 'search_header' ),
|
104 |
+
'search_reset' => array( 'type' => 'search_reset' ),
|
105 |
+
'search_back_list' => array( 'type' => 'search_back_list' ),
|
106 |
+
'search_search' => array( 'type' => 'search_search' ),
|
107 |
+
'search_cancel' => array( 'type' => 'search_cancel' ),
|
108 |
+
'integrated_search_field' => array( 'field' => 'id',
|
109 |
+
'type' => 'integrated_search_field',
|
110 |
+
'orientation' => 0,
|
111 |
+
'required' => false ),
|
112 |
+
'integrated_search_field1' => array( 'field' => 'name',
|
113 |
+
'type' => 'integrated_search_field',
|
114 |
+
'orientation' => 0,
|
115 |
+
'required' => false ) ),
|
116 |
+
'dbProps' => array( ),
|
117 |
+
'version' => 14,
|
118 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
119 |
+
'imageBgColor' => '#f2f2f2',
|
120 |
+
'controlsBgColor' => 'white',
|
121 |
+
'imagePosition' => 'right',
|
122 |
+
'listTotals' => 1 );
|
123 |
+
?>
|
php/include/pages/eoc_view.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$optionsArray = array( 'pdf' => array( 'pdfView' => false ),
|
3 |
+
'fields' => array( 'gridFields' => array( 'id',
|
4 |
+
'name' ),
|
5 |
+
'searchRequiredFields' => array( ),
|
6 |
+
'searchPanelFields' => array( ),
|
7 |
+
'fieldItems' => array( 'id' => array( 'integrated_edit_field' ),
|
8 |
+
'name' => array( 'integrated_edit_field1' ) ) ),
|
9 |
+
'pageLinks' => array( 'edit' => true,
|
10 |
+
'add' => false,
|
11 |
+
'view' => false,
|
12 |
+
'print' => false ),
|
13 |
+
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ),
|
14 |
+
'below-grid' => array( 'view_back_list',
|
15 |
+
'view_close',
|
16 |
+
'hamburger' ),
|
17 |
+
'supertop' => array( 'expand_menu_button',
|
18 |
+
'collapse_button',
|
19 |
+
'loginform_login',
|
20 |
+
'username_button' ),
|
21 |
+
'left' => array( 'logo',
|
22 |
+
'expand_button',
|
23 |
+
'menu' ),
|
24 |
+
'top' => array( 'view_header' ),
|
25 |
+
'grid' => array( 'integrated_edit_field',
|
26 |
+
'integrated_edit_field1' ) ),
|
27 |
+
'formXtTags' => array( 'above-grid' => array( ) ),
|
28 |
+
'itemForms' => array( 'view_back_list' => 'below-grid',
|
29 |
+
'view_close' => 'below-grid',
|
30 |
+
'hamburger' => 'below-grid',
|
31 |
+
'expand_menu_button' => 'supertop',
|
32 |
+
'collapse_button' => 'supertop',
|
33 |
+
'loginform_login' => 'supertop',
|
34 |
+
'username_button' => 'supertop',
|
35 |
+
'logo' => 'left',
|
36 |
+
'expand_button' => 'left',
|
37 |
+
'menu' => 'left',
|
38 |
+
'view_header' => 'top',
|
39 |
+
'integrated_edit_field' => 'grid',
|
40 |
+
'integrated_edit_field1' => 'grid' ),
|
41 |
+
'itemLocations' => array( 'integrated_edit_field' => array( 'location' => 'grid',
|
42 |
+
'cellId' => 'c3' ),
|
43 |
+
'integrated_edit_field1' => array( 'location' => 'grid',
|
44 |
+
'cellId' => 'c3' ) ),
|
45 |
+
'itemVisiblity' => array( 'expand_menu_button' => 2,
|
46 |
+
'expand_button' => 5 ) ),
|
47 |
+
'itemsByType' => array( 'view_header' => array( 'view_header' ),
|
48 |
+
'view_back_list' => array( 'view_back_list' ),
|
49 |
+
'view_close' => array( 'view_close' ),
|
50 |
+
'logo' => array( 'logo' ),
|
51 |
+
'menu' => array( 'menu' ),
|
52 |
+
'username_button' => array( 'username_button' ),
|
53 |
+
'loginform_login' => array( 'loginform_login' ),
|
54 |
+
'userinfo_link' => array( 'userinfo_link' ),
|
55 |
+
'logout_link' => array( 'logout_link' ),
|
56 |
+
'expand_menu_button' => array( 'expand_menu_button' ),
|
57 |
+
'collapse_button' => array( 'collapse_button' ),
|
58 |
+
'hamburger' => array( 'hamburger' ),
|
59 |
+
'view_edit' => array( 'view_edit' ),
|
60 |
+
'integrated_edit_field' => array( 'integrated_edit_field',
|
61 |
+
'integrated_edit_field1' ),
|
62 |
+
'expand_button' => array( 'expand_button' ) ),
|
63 |
+
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
|
64 |
+
'rows' => array( 0 ),
|
65 |
+
'tags' => array( ),
|
66 |
+
'items' => array( 'integrated_edit_field',
|
67 |
+
'integrated_edit_field1' ),
|
68 |
+
'fixedAtServer' => true,
|
69 |
+
'fixedAtClient' => false ) ),
|
70 |
+
'width' => 1,
|
71 |
+
'height' => 1 ) ) ),
|
72 |
+
'loginForm' => array( 'loginForm' => 0 ),
|
73 |
+
'page' => array( 'verticalBar' => true,
|
74 |
+
'labeledButtons' => array( 'update_records' => array( ),
|
75 |
+
'print_pages' => array( ),
|
76 |
+
'register_activate_message' => array( ),
|
77 |
+
'details_found' => array( ) ),
|
78 |
+
'hasCustomButtons' => false,
|
79 |
+
'customButtons' => array( ),
|
80 |
+
'hasNotifications' => false,
|
81 |
+
'menus' => array( array( 'id' => 'main',
|
82 |
+
'horizontal' => false ) ),
|
83 |
+
'calcTotalsFor' => 1 ),
|
84 |
+
'misc' => array( 'type' => 'view',
|
85 |
+
'breadcrumb' => false,
|
86 |
+
'nextPrev' => false ),
|
87 |
+
'events' => array( 'maps' => array( ),
|
88 |
+
'mapsData' => array( ),
|
89 |
+
'buttons' => array( ) ) );
|
90 |
+
$pageArray = array( 'id' => 'view',
|
91 |
+
'type' => 'view',
|
92 |
+
'layoutId' => 'leftbar',
|
93 |
+
'disabled' => 0,
|
94 |
+
'default' => 0,
|
95 |
+
'forms' => array( 'above-grid' => array( 'modelId' => 'view-above-grid',
|
96 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
|
97 |
+
'colspan' => 2 ) ),
|
98 |
+
'section' => '' ) ),
|
99 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
100 |
+
'items' => array( ) ) ),
|
101 |
+
'deferredItems' => array( ),
|
102 |
+
'recsPerRow' => 1 ),
|
103 |
+
'below-grid' => array( 'modelId' => 'view-below-grid',
|
104 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
105 |
+
array( 'cell' => 'c2' ) ),
|
106 |
+
'section' => '' ) ),
|
107 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
108 |
+
'items' => array( 'view_back_list',
|
109 |
+
'view_close' ) ),
|
110 |
+
'c2' => array( 'model' => 'c2',
|
111 |
+
'items' => array( 'hamburger' ) ) ),
|
112 |
+
'deferredItems' => array( ),
|
113 |
+
'recsPerRow' => 1 ),
|
114 |
+
'supertop' => array( 'modelId' => 'leftbar-top-edit',
|
115 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
|
116 |
+
array( 'cell' => 'c2' ) ),
|
117 |
+
'section' => '' ) ),
|
118 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
119 |
+
'items' => array( 'expand_menu_button',
|
120 |
+
'collapse_button' ) ),
|
121 |
+
'c2' => array( 'model' => 'c2',
|
122 |
+
'items' => array( 'loginform_login',
|
123 |
+
'username_button' ) ) ),
|
124 |
+
'deferredItems' => array( ),
|
125 |
+
'recsPerRow' => 1 ),
|
126 |
+
'left' => array( 'modelId' => 'leftbar-menu',
|
127 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
|
128 |
+
'section' => '' ),
|
129 |
+
array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
130 |
+
'section' => '' ) ),
|
131 |
+
'cells' => array( 'c0' => array( 'model' => 'c0',
|
132 |
+
'items' => array( 'logo',
|
133 |
+
'expand_button' ) ),
|
134 |
+
'c1' => array( 'model' => 'c1',
|
135 |
+
'items' => array( 'menu' ) ) ),
|
136 |
+
'deferredItems' => array( ),
|
137 |
+
'recsPerRow' => 1 ),
|
138 |
+
'top' => array( 'modelId' => 'view-header',
|
139 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
|
140 |
+
'section' => '' ) ),
|
141 |
+
'cells' => array( 'c1' => array( 'model' => 'c1',
|
142 |
+
'items' => array( 'view_header' ) ) ),
|
143 |
+
'deferredItems' => array( ),
|
144 |
+
'recsPerRow' => 1 ),
|
145 |
+
'grid' => array( 'modelId' => 'simple-edit',
|
146 |
+
'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
|
147 |
+
'section' => '' ) ),
|
148 |
+
'cells' => array( 'c3' => array( 'model' => 'c3',
|
149 |
+
'items' => array( 'integrated_edit_field',
|
150 |
+
'integrated_edit_field1' ) ) ),
|
151 |
+
'deferredItems' => array( ),
|
152 |
+
'columnCount' => 1,
|
153 |
+
'inlineLabels' => false,
|
154 |
+
'separateLabels' => false ) ),
|
155 |
+
'items' => array( 'view_header' => array( 'type' => 'view_header' ),
|
156 |
+
'view_back_list' => array( 'type' => 'view_back_list' ),
|
157 |
+
'view_close' => array( 'type' => 'view_close' ),
|
158 |
+
'logo' => array( 'type' => 'logo' ),
|
159 |
+
'menu' => array( 'type' => 'menu' ),
|
160 |
+
'username_button' => array( 'type' => 'username_button',
|
161 |
+
'items' => array( 'userinfo_link',
|
162 |
+
'logout_link' ) ),
|
163 |
+
'loginform_login' => array( 'type' => 'loginform_login',
|
164 |
+
'popup' => false ),
|
165 |
+
'userinfo_link' => array( 'type' => 'userinfo_link' ),
|
166 |
+
'logout_link' => array( 'type' => 'logout_link' ),
|
167 |
+
'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
|
168 |
+
'collapse_button' => array( 'type' => 'collapse_button' ),
|
169 |
+
'hamburger' => array( 'type' => 'hamburger',
|
170 |
+
'items' => array( 'view_edit' ) ),
|
171 |
+
'view_edit' => array( 'type' => 'view_edit' ),
|
172 |
+
'integrated_edit_field' => array( 'field' => 'id',
|
173 |
+
'type' => 'integrated_edit_field',
|
174 |
+
'orientation' => 0 ),
|
175 |
+
'integrated_edit_field1' => array( 'field' => 'name',
|
176 |
+
'type' => 'integrated_edit_field',
|
177 |
+
'orientation' => 0 ),
|
178 |
+
'expand_button' => array( 'type' => 'expand_button' ) ),
|
179 |
+
'dbProps' => array( ),
|
180 |
+
'version' => 14,
|
181 |
+
'imageItem' => array( 'type' => 'page_image' ),
|
182 |
+
'imageBgColor' => '#f2f2f2',
|
183 |
+
'controlsBgColor' => 'white',
|
184 |
+
'imagePosition' => 'right',
|
185 |
+
'listTotals' => 1 );
|
186 |
+
?>
|
php/include/pages/pages.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"<global>":{"changepwd":["changepwd_Chat1"],"changepwd_success":["changepwd_success_Chat1"],"login":["login_Chat1"],"menu":["menu_Chat1"],"userinfo":["userinfo_Chat1"]},"
|
|
|
1 |
+
{"<global>":{"changepwd":["changepwd_Chat1"],"changepwd_success":["changepwd_success_Chat1"],"login":["login_Chat1"],"menu":["menu_Chat1"],"userinfo":["userinfo_Chat1"]},"Eoc":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"chat126_users1":{"search":["search"]},"chat_files":{"list":["list"],"search":["search"]},"chat_groups":{"add":["add"],"edit":["edit"],"list":["list"],"search":["search"]},"chat_history":{"add":["add"],"search":["search"]},"chat_peopletype":{"search":["search"]},"chat_settings":{"edit":["edit"],"search":["search"]},"chat_users":{"search":["search"]}}
|
php/pdf/eoc_print.json
ADDED
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
pdfDocument = {
|
3 |
+
{BEGIN backgroundImage}
|
4 |
+
background: {
|
5 |
+
image: {$backgroundImage},
|
6 |
+
{BEGIN bgWidth}
|
7 |
+
imgWidth: {$bgWidth},
|
8 |
+
imgHeight: {$bgHeight},
|
9 |
+
{END bgWidth}
|
10 |
+
},
|
11 |
+
{END backgroundImage}
|
12 |
+
styles: {
|
13 |
+
bodycell: {
|
14 |
+
fontSize:12,
|
15 |
+
},
|
16 |
+
headcell: {
|
17 |
+
fontSize:12,
|
18 |
+
bold: true
|
19 |
+
},
|
20 |
+
|
21 |
+
|
22 |
+
},
|
23 |
+
defaultStyle: {
|
24 |
+
fontSize: 14,
|
25 |
+
},
|
26 |
+
"content": [
|
27 |
+
{BEGIN body}
|
28 |
+
{BEGIN embedded_grid_caption}
|
29 |
+
{
|
30 |
+
text: '{$jscaption Eoc}',
|
31 |
+
},
|
32 |
+
{END embedded_grid_caption}
|
33 |
+
{BEGIN embedded_page_title}
|
34 |
+
{
|
35 |
+
text: '{$jspagetitlelabel Eoc print}',
|
36 |
+
},
|
37 |
+
{END embedded_page_title}
|
38 |
+
{
|
39 |
+
{BEGIN standalone_page}
|
40 |
+
pageBreak: 'before',
|
41 |
+
standAlonePage: true,
|
42 |
+
{END standalone_page}
|
43 |
+
{BEGIN embedded_grid}
|
44 |
+
embeddedPage: true,
|
45 |
+
{END embedded_grid}
|
46 |
+
layout: {
|
47 |
+
hLineWidth: function(i, node) { return 0.1; },
|
48 |
+
vLineWidth: function(i, node) {
|
49 |
+
return 0.1;
|
50 |
+
},
|
51 |
+
hLineColor: function(i, node) { return 'lightgray'; },
|
52 |
+
vLineColor: function(i, node) { return 'lightgray'; },
|
53 |
+
},
|
54 |
+
table: {
|
55 |
+
{BEGIN embedded_grid}
|
56 |
+
embeddedPage: true,
|
57 |
+
{END embedded_grid}
|
58 |
+
|
59 |
+
tableForm: true,
|
60 |
+
headerRows: 1
|
61 |
+
{BEGIN row_grid_0}
|
62 |
+
+1
|
63 |
+
{END row_grid_0}
|
64 |
+
{BEGIN embedded_grid} -1 {END embedded_grid} ,
|
65 |
+
|
66 |
+
widths: [
|
67 |
+
{BEGIN col_grid_0}
|
68 |
+
"%",
|
69 |
+
{END col_grid_0}
|
70 |
+
{BEGIN col_grid_1}
|
71 |
+
"%",
|
72 |
+
{END col_grid_1}
|
73 |
+
],
|
74 |
+
heights: [ // first height for header part
|
75 |
+
"%",
|
76 |
+
{BEGIN row_grid_0}
|
77 |
+
"%",
|
78 |
+
{END row_grid_0}
|
79 |
+
{BEGIN grid_row}
|
80 |
+
{BEGIN row_grid_1}
|
81 |
+
"%",
|
82 |
+
{END row_grid_1}
|
83 |
+
{END grid_row}
|
84 |
+
{BEGIN row_grid_2}
|
85 |
+
"%",
|
86 |
+
{END row_grid_2}
|
87 |
+
],
|
88 |
+
|
89 |
+
body: [
|
90 |
+
{BEGIN standalone_page}
|
91 |
+
[
|
92 |
+
{
|
93 |
+
colSpan: {$formwidth_grid},
|
94 |
+
border:[false, false,false,false],
|
95 |
+
stack: [
|
96 |
+
|
97 |
+
|
98 |
+
{
|
99 |
+
table: {
|
100 |
+
|
101 |
+
|
102 |
+
location: 'top',
|
103 |
+
|
104 |
+
|
105 |
+
widths: [
|
106 |
+
"*",
|
107 |
+
],
|
108 |
+
|
109 |
+
|
110 |
+
body: [
|
111 |
+
|
112 |
+
[
|
113 |
+
{
|
114 |
+
cellId: 'c2',
|
115 |
+
col:0,
|
116 |
+
row:0,
|
117 |
+
|
118 |
+
|
119 |
+
// static colspan/rowspan
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
+
"stack": [
|
125 |
+
|
126 |
+
|
127 |
+
{"text":"{$jspagetitlelabel Eoc print}","hidden":"{$item_hide_print_header}","fontSize":30},
|
128 |
+
|
129 |
+
|
130 |
+
{"text":"{$printtabheader_text}","hidden":"{$item_hide_print_subheader}"},
|
131 |
+
|
132 |
+
],
|
133 |
+
"border": [ false, false, false, false ],
|
134 |
+
"alignment": 'left',
|
135 |
+
|
136 |
+
|
137 |
+
},
|
138 |
+
|
139 |
+
],
|
140 |
+
|
141 |
+
]
|
142 |
+
}
|
143 |
+
}
|
144 |
+
,
|
145 |
+
|
146 |
+
|
147 |
+
{
|
148 |
+
table: {
|
149 |
+
|
150 |
+
|
151 |
+
location: 'above-grid',
|
152 |
+
|
153 |
+
|
154 |
+
widths: [
|
155 |
+
"*",
|
156 |
+
],
|
157 |
+
|
158 |
+
|
159 |
+
body: [
|
160 |
+
|
161 |
+
[
|
162 |
+
{
|
163 |
+
cellId: 'c1',
|
164 |
+
col:0,
|
165 |
+
row:0,
|
166 |
+
|
167 |
+
|
168 |
+
// static colspan/rowspan
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
|
173 |
+
"text": [
|
174 |
+
|
175 |
+
|
176 |
+
{"text":"Page %current% of %total%","hidden":"{$item_hide_print_pages}","isHtml":true,"page_indicator":true},
|
177 |
+
|
178 |
+
],
|
179 |
+
"border": [ false, false, false, false ],
|
180 |
+
"alignment": 'left',
|
181 |
+
|
182 |
+
|
183 |
+
},
|
184 |
+
|
185 |
+
],
|
186 |
+
|
187 |
+
]
|
188 |
+
}
|
189 |
+
}
|
190 |
+
,
|
191 |
+
]
|
192 |
+
},
|
193 |
+
],
|
194 |
+
{END standalone_page}
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
{BEGIN row_grid_0}
|
200 |
+
[
|
201 |
+
{BEGIN cellblock_grid_headcell_field}
|
202 |
+
{
|
203 |
+
cellId: 'headcell_field',
|
204 |
+
col:0,
|
205 |
+
row:0,
|
206 |
+
fieldName: 'id',
|
207 |
+
style: 'headcell',
|
208 |
+
|
209 |
+
|
210 |
+
// dynamic colspan/rowspan
|
211 |
+
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
"text": [
|
218 |
+
|
219 |
+
|
220 |
+
{"text":"{$jslabel Eoc id }","hidden":"{$item_hide_simple_grid_field2}","bold":true},
|
221 |
+
|
222 |
+
],
|
223 |
+
"border": [ true, true, true, true ],
|
224 |
+
"alignment": '{$id_align}',
|
225 |
+
|
226 |
+
|
227 |
+
},
|
228 |
+
|
229 |
+
{END cellblock_grid_headcell_field}
|
230 |
+
{BEGIN cellblock_grid_headcell_field1}
|
231 |
+
{
|
232 |
+
cellId: 'headcell_field1',
|
233 |
+
col:0,
|
234 |
+
row:0,
|
235 |
+
fieldName: 'name',
|
236 |
+
style: 'headcell',
|
237 |
+
|
238 |
+
|
239 |
+
// dynamic colspan/rowspan
|
240 |
+
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
|
245 |
+
|
246 |
+
"text": [
|
247 |
+
|
248 |
+
|
249 |
+
{"text":"{$jslabel Eoc name }","hidden":"{$item_hide_simple_grid_field3}","bold":true},
|
250 |
+
|
251 |
+
],
|
252 |
+
"border": [ true, true, true, true ],
|
253 |
+
"alignment": '{$name_align}',
|
254 |
+
|
255 |
+
|
256 |
+
},
|
257 |
+
|
258 |
+
{END cellblock_grid_headcell_field1}
|
259 |
+
],
|
260 |
+
{END row_grid_0}
|
261 |
+
|
262 |
+
|
263 |
+
{BEGIN grid_row}
|
264 |
+
{BEGIN grid_record}
|
265 |
+
|
266 |
+
{BEGIN row_grid_1}
|
267 |
+
[
|
268 |
+
{BEGIN cellblock_grid_cell_field}
|
269 |
+
{
|
270 |
+
cellId: 'cell_field',
|
271 |
+
col:0,
|
272 |
+
row:0,
|
273 |
+
fieldName: 'id',
|
274 |
+
style: 'bodycell',
|
275 |
+
|
276 |
+
|
277 |
+
// dynamic colspan/rowspan
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
+
|
282 |
+
|
283 |
+
|
284 |
+
"text": [
|
285 |
+
|
286 |
+
|
287 |
+
{"text":{$id_pdfvalue},"hidden":"{$item_hide_simple_grid_field}"},
|
288 |
+
|
289 |
+
],
|
290 |
+
"border": [ true, true, true, true ],
|
291 |
+
"alignment": '{$id_align}',
|
292 |
+
|
293 |
+
|
294 |
+
},
|
295 |
+
|
296 |
+
{END cellblock_grid_cell_field}
|
297 |
+
{BEGIN cellblock_grid_cell_field1}
|
298 |
+
{
|
299 |
+
cellId: 'cell_field1',
|
300 |
+
col:0,
|
301 |
+
row:0,
|
302 |
+
fieldName: 'name',
|
303 |
+
style: 'bodycell',
|
304 |
+
|
305 |
+
|
306 |
+
// dynamic colspan/rowspan
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
|
313 |
+
"text": [
|
314 |
+
|
315 |
+
|
316 |
+
{"text":{$name_pdfvalue},"hidden":"{$item_hide_simple_grid_field1}"},
|
317 |
+
|
318 |
+
],
|
319 |
+
"border": [ true, true, true, true ],
|
320 |
+
"alignment": '{$name_align}',
|
321 |
+
|
322 |
+
|
323 |
+
},
|
324 |
+
|
325 |
+
{END cellblock_grid_cell_field1}
|
326 |
+
],
|
327 |
+
{END row_grid_1}
|
328 |
+
|
329 |
+
{END grid_record}
|
330 |
+
{END grid_row}
|
331 |
+
|
332 |
+
|
333 |
+
{BEGIN row_grid_2}
|
334 |
+
[
|
335 |
+
{BEGIN cellblock_grid_footcell_field}
|
336 |
+
{
|
337 |
+
cellId: 'footcell_field',
|
338 |
+
col:0,
|
339 |
+
row:0,
|
340 |
+
style: 'footcell',
|
341 |
+
|
342 |
+
|
343 |
+
// dynamic colspan/rowspan
|
344 |
+
|
345 |
+
|
346 |
+
|
347 |
+
|
348 |
+
|
349 |
+
|
350 |
+
"text": [
|
351 |
+
|
352 |
+
'',
|
353 |
+
],
|
354 |
+
"border": [ true, true, true, true ],
|
355 |
+
"alignment": 'left',
|
356 |
+
|
357 |
+
|
358 |
+
},
|
359 |
+
|
360 |
+
{END cellblock_grid_footcell_field}
|
361 |
+
{BEGIN cellblock_grid_footcell_field1}
|
362 |
+
{
|
363 |
+
cellId: 'footcell_field1',
|
364 |
+
col:0,
|
365 |
+
row:0,
|
366 |
+
style: 'footcell',
|
367 |
+
|
368 |
+
|
369 |
+
// dynamic colspan/rowspan
|
370 |
+
|
371 |
+
|
372 |
+
|
373 |
+
|
374 |
+
|
375 |
+
|
376 |
+
"text": [
|
377 |
+
|
378 |
+
'',
|
379 |
+
],
|
380 |
+
"border": [ true, true, true, true ],
|
381 |
+
"alignment": 'left',
|
382 |
+
|
383 |
+
|
384 |
+
},
|
385 |
+
|
386 |
+
{END cellblock_grid_footcell_field1}
|
387 |
+
],
|
388 |
+
{END row_grid_2}
|
389 |
+
|
390 |
+
|
391 |
+
]
|
392 |
+
|
393 |
+
}
|
394 |
+
},
|
395 |
+
{END body}
|
396 |
+
],
|
397 |
+
footer: [
|
398 |
+
|
399 |
+
{
|
400 |
+
table: {
|
401 |
+
|
402 |
+
|
403 |
+
location: 'below-grid',
|
404 |
+
|
405 |
+
|
406 |
+
widths: [
|
407 |
+
"*",
|
408 |
+
],
|
409 |
+
|
410 |
+
|
411 |
+
body: [
|
412 |
+
|
413 |
+
[
|
414 |
+
{
|
415 |
+
cellId: 'c1',
|
416 |
+
col:0,
|
417 |
+
row:0,
|
418 |
+
|
419 |
+
|
420 |
+
// static colspan/rowspan
|
421 |
+
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
+
"text": [
|
426 |
+
|
427 |
+
'',
|
428 |
+
],
|
429 |
+
"border": [ false, false, false, false ],
|
430 |
+
"alignment": 'left',
|
431 |
+
|
432 |
+
|
433 |
+
},
|
434 |
+
|
435 |
+
],
|
436 |
+
|
437 |
+
]
|
438 |
+
}
|
439 |
+
}
|
440 |
+
],
|
441 |
+
};
|
442 |
+
|
443 |
+
|
444 |
+
pdfFonts = {$pdfFonts};
|
php/pdf/eoc_view.json
ADDED
@@ -0,0 +1,267 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
pdfDocument = {
|
3 |
+
{BEGIN backgroundImage}
|
4 |
+
background: {
|
5 |
+
image: {$backgroundImage},
|
6 |
+
{BEGIN bgWidth}
|
7 |
+
imgWidth: {$bgWidth},
|
8 |
+
imgHeight: {$bgHeight},
|
9 |
+
{END bgWidth}
|
10 |
+
},
|
11 |
+
{END backgroundImage}
|
12 |
+
styles: {
|
13 |
+
bodycell: {
|
14 |
+
fontSize:12,
|
15 |
+
},
|
16 |
+
headcell: {
|
17 |
+
fontSize:12,
|
18 |
+
bold: true
|
19 |
+
},
|
20 |
+
|
21 |
+
|
22 |
+
},
|
23 |
+
defaultStyle: {
|
24 |
+
fontSize: 14,
|
25 |
+
},
|
26 |
+
"content": [
|
27 |
+
|
28 |
+
{
|
29 |
+
table: {
|
30 |
+
|
31 |
+
|
32 |
+
location: 'top',
|
33 |
+
|
34 |
+
|
35 |
+
widths: [
|
36 |
+
"*",
|
37 |
+
],
|
38 |
+
|
39 |
+
|
40 |
+
body: [
|
41 |
+
|
42 |
+
[
|
43 |
+
{
|
44 |
+
cellId: 'c1',
|
45 |
+
col:0,
|
46 |
+
row:0,
|
47 |
+
|
48 |
+
|
49 |
+
// static colspan/rowspan
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
"text": [
|
55 |
+
|
56 |
+
|
57 |
+
{"text":"{$jspagetitlelabel Eoc view}","hidden":"{$item_hide_view_header}","fontSize":30},
|
58 |
+
|
59 |
+
],
|
60 |
+
"border": [ false, false, false, false ],
|
61 |
+
"alignment": 'left',
|
62 |
+
|
63 |
+
|
64 |
+
},
|
65 |
+
|
66 |
+
],
|
67 |
+
|
68 |
+
]
|
69 |
+
}
|
70 |
+
}
|
71 |
+
,
|
72 |
+
|
73 |
+
|
74 |
+
{
|
75 |
+
table: {
|
76 |
+
|
77 |
+
|
78 |
+
location: 'above-grid',
|
79 |
+
|
80 |
+
|
81 |
+
widths: [
|
82 |
+
"*",
|
83 |
+
"*",
|
84 |
+
],
|
85 |
+
|
86 |
+
|
87 |
+
body: [
|
88 |
+
|
89 |
+
[
|
90 |
+
{
|
91 |
+
cellId: 'c1',
|
92 |
+
col:0,
|
93 |
+
row:0,
|
94 |
+
|
95 |
+
|
96 |
+
// static colspan/rowspan
|
97 |
+
colSpan: 2,
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
"text": [
|
103 |
+
|
104 |
+
'',
|
105 |
+
],
|
106 |
+
"border": [ false, false, false, false ],
|
107 |
+
"alignment": 'left',
|
108 |
+
|
109 |
+
|
110 |
+
},
|
111 |
+
|
112 |
+
{
|
113 |
+
cellId: 'c1',
|
114 |
+
row: 0,
|
115 |
+
col: 1,
|
116 |
+
text: '',
|
117 |
+
compensateColspan: true
|
118 |
+
},
|
119 |
+
],
|
120 |
+
|
121 |
+
]
|
122 |
+
}
|
123 |
+
}
|
124 |
+
,
|
125 |
+
|
126 |
+
|
127 |
+
{
|
128 |
+
table: {
|
129 |
+
|
130 |
+
tableForm: true,
|
131 |
+
|
132 |
+
location: 'grid',
|
133 |
+
|
134 |
+
|
135 |
+
widths: [
|
136 |
+
{BEGIN col_grid_0}
|
137 |
+
"*",
|
138 |
+
{END col_grid_0}
|
139 |
+
],
|
140 |
+
|
141 |
+
heights: [
|
142 |
+
{BEGIN row_grid_0}
|
143 |
+
|
144 |
+
"%",
|
145 |
+
{END row_grid_0}
|
146 |
+
|
147 |
+
],
|
148 |
+
|
149 |
+
body: [
|
150 |
+
|
151 |
+
{BEGIN row_grid_0}
|
152 |
+
[
|
153 |
+
{BEGIN cellblock_grid_c3}
|
154 |
+
{
|
155 |
+
cellId: 'c3',
|
156 |
+
col:0,
|
157 |
+
row:0,
|
158 |
+
|
159 |
+
|
160 |
+
// dynamic colspan/rowspan
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
|
167 |
+
"stack": [
|
168 |
+
|
169 |
+
|
170 |
+
{"hidden":"{$item_hide_integrated_edit_field}","stack":[{"text":"{$jslabel Eoc id }","bold":true},{"text":{$id_pdfvalue}}],"margin":[0,0,0,15]},
|
171 |
+
|
172 |
+
|
173 |
+
{"hidden":"{$item_hide_integrated_edit_field1}","stack":[{"text":"{$jslabel Eoc name }","bold":true},{"text":{$name_pdfvalue}}],"margin":[0,0,0,15]},
|
174 |
+
|
175 |
+
],
|
176 |
+
"border": [ false, false, false, false ],
|
177 |
+
"alignment": 'left',
|
178 |
+
|
179 |
+
|
180 |
+
},
|
181 |
+
|
182 |
+
{END cellblock_grid_c3}
|
183 |
+
],
|
184 |
+
{END row_grid_0}
|
185 |
+
|
186 |
+
]
|
187 |
+
}
|
188 |
+
}
|
189 |
+
,
|
190 |
+
|
191 |
+
|
192 |
+
{
|
193 |
+
table: {
|
194 |
+
|
195 |
+
|
196 |
+
location: 'below-grid',
|
197 |
+
|
198 |
+
|
199 |
+
widths: [
|
200 |
+
"*",
|
201 |
+
"*",
|
202 |
+
],
|
203 |
+
|
204 |
+
|
205 |
+
body: [
|
206 |
+
|
207 |
+
[
|
208 |
+
{
|
209 |
+
cellId: 'c1',
|
210 |
+
col:0,
|
211 |
+
row:0,
|
212 |
+
|
213 |
+
|
214 |
+
// static colspan/rowspan
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
"text": [
|
220 |
+
|
221 |
+
|
222 |
+
{"text":"","hidden":"{$item_hide_view_back_list}"},
|
223 |
+
|
224 |
+
|
225 |
+
{"text":"","hidden":"{$item_hide_view_close}"},
|
226 |
+
|
227 |
+
],
|
228 |
+
"border": [ false, false, false, false ],
|
229 |
+
"alignment": 'left',
|
230 |
+
|
231 |
+
|
232 |
+
},
|
233 |
+
|
234 |
+
{
|
235 |
+
cellId: 'c2',
|
236 |
+
col:0,
|
237 |
+
row:0,
|
238 |
+
|
239 |
+
|
240 |
+
// static colspan/rowspan
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
|
245 |
+
"text": [
|
246 |
+
|
247 |
+
|
248 |
+
{"text":""},
|
249 |
+
|
250 |
+
],
|
251 |
+
"border": [ false, false, false, false ],
|
252 |
+
"alignment": 'right',
|
253 |
+
|
254 |
+
|
255 |
+
},
|
256 |
+
|
257 |
+
],
|
258 |
+
|
259 |
+
]
|
260 |
+
}
|
261 |
+
}
|
262 |
+
,
|
263 |
+
]
|
264 |
+
};
|
265 |
+
|
266 |
+
pdfFonts = {$pdfFonts};
|
267 |
+
|
php/styles/pages/_global_menu_Chat1.css
CHANGED
@@ -2,13 +2,7 @@
|
|
2 |
background-color: #CFAE83;
|
3 |
}
|
4 |
[data-page="_global_menu_Chat1"][data-itemid="welcome_item1"] > .bs-welcome-header {
|
5 |
-
background-color: #
|
6 |
-
}
|
7 |
-
[data-page="_global_menu_Chat1"][data-itemid="welcome_item2"] > .bs-welcome-header {
|
8 |
-
background-color: #CFAE83;
|
9 |
-
}
|
10 |
-
[data-page="_global_menu_Chat1"][data-itemid="welcome_item3"] > .bs-welcome-header {
|
11 |
-
background-color: #778899;
|
12 |
}
|
13 |
[data-page="_global_menu_Chat1"][data-itemid="page_image_ash8f23hr"] {
|
14 |
width: 400px;
|
|
|
2 |
background-color: #CFAE83;
|
3 |
}
|
4 |
[data-page="_global_menu_Chat1"][data-itemid="welcome_item1"] > .bs-welcome-header {
|
5 |
+
background-color: #008B8B;
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
[data-page="_global_menu_Chat1"][data-itemid="page_image_ash8f23hr"] {
|
8 |
width: 400px;
|
php/styles/pages/eoc_add.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-page="eoc_add"][data-itemid="page_image_ash8f23hr"] {
|
2 |
+
width: 400px;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
php/styles/pages/eoc_edit.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-page="eoc_edit"][data-itemid="page_image_ash8f23hr"] {
|
2 |
+
width: 400px;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
php/styles/pages/eoc_export.css
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-cellid="footer_c1"][data-page="eoc_export"][data-cellid="footer_c1"][data-page="eoc_export"][data-cellid="footer_c1"][data-page="eoc_export"] {
|
2 |
+
width: 33.33333333%;
|
3 |
+
}
|
4 |
+
[data-cellid="footer_c2"][data-page="eoc_export"][data-cellid="footer_c2"][data-page="eoc_export"][data-cellid="footer_c2"][data-page="eoc_export"] {
|
5 |
+
width: 66.66666667%;
|
6 |
+
}
|
7 |
+
[data-page="eoc_export"][data-itemid="page_image_ash8f23hr"] {
|
8 |
+
width: 400px;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
php/styles/pages/eoc_import.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-page="eoc_import"][data-itemid="page_image_ash8f23hr"] {
|
2 |
+
width: 400px;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
php/styles/pages/eoc_list.css
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-cellid="grid_footcell_field"][data-page="eoc_list"][data-cellid="grid_footcell_field"][data-page="eoc_list"][data-cellid="grid_footcell_field"][data-page="eoc_list"] {
|
2 |
+
white-space: nowrap;
|
3 |
+
}
|
4 |
+
[data-cellid="grid_footcell_field1"][data-page="eoc_list"][data-cellid="grid_footcell_field1"][data-page="eoc_list"][data-cellid="grid_footcell_field1"][data-page="eoc_list"] {
|
5 |
+
white-space: nowrap;
|
6 |
+
}
|
7 |
+
[data-cellid="grid_headcell_checkbox"][data-page="eoc_list"][data-cellid="grid_headcell_checkbox"][data-page="eoc_list"][data-cellid="grid_headcell_checkbox"][data-page="eoc_list"] {
|
8 |
+
width: 30px;
|
9 |
+
}
|
10 |
+
[data-cellid="grid_headcell_icons"][data-page="eoc_list"][data-cellid="grid_headcell_icons"][data-page="eoc_list"][data-cellid="grid_headcell_icons"][data-page="eoc_list"] {
|
11 |
+
width: 30px;
|
12 |
+
}
|
13 |
+
[data-cellid="grid_cell_icons"][data-page="eoc_list"][data-cellid="grid_cell_icons"][data-page="eoc_list"][data-cellid="grid_cell_icons"][data-page="eoc_list"] {
|
14 |
+
white-space: nowrap;
|
15 |
+
}
|
16 |
+
[data-page="eoc_list"][data-itemid="page_image_ash8f23hr"] {
|
17 |
+
width: 400px;
|
18 |
+
}
|
19 |
+
|
20 |
+
|
php/styles/pages/eoc_print.css
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-cellid="grid_footcell_field"][data-page="eoc_print"][data-cellid="grid_footcell_field"][data-page="eoc_print"][data-cellid="grid_footcell_field"][data-page="eoc_print"] {
|
2 |
+
white-space: nowrap;
|
3 |
+
}
|
4 |
+
[data-cellid="grid_footcell_field1"][data-page="eoc_print"][data-cellid="grid_footcell_field1"][data-page="eoc_print"][data-cellid="grid_footcell_field1"][data-page="eoc_print"] {
|
5 |
+
white-space: nowrap;
|
6 |
+
}
|
7 |
+
[data-page="eoc_print"][data-itemid="page_image_ash8f23hr"] {
|
8 |
+
width: 400px;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
php/styles/pages/eoc_search.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-page="eoc_search"][data-itemid="page_image_ash8f23hr"] {
|
2 |
+
width: 400px;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
php/styles/pages/eoc_view.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[data-page="eoc_view"][data-itemid="page_image_ash8f23hr"] {
|
2 |
+
width: 400px;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
php/templates/_global_menu_Chat1.htm
CHANGED
@@ -299,41 +299,15 @@
|
|
299 |
|
300 |
|
301 |
|
302 |
-
<div class="bs-welcome-item" data-itemtype="welcome_item" data-itemid="welcome_item1" {$item_welcome_item1} data-pageid="{$pageid}" data-page="_global_menu_Chat1" data-comment-len="
|
303 |
<div class="bs-welcome-header">
|
304 |
-
<a id="itemlink" href="
|
305 |
-
<span class="glyphicon glyphicon-
|
306 |
</div>
|
307 |
|
308 |
|
309 |
<div class="bs-welcome-content">
|
310 |
-
|
311 |
-
</div>
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
<div class="bs-welcome-item" data-itemtype="welcome_item" data-itemid="welcome_item2" {$item_welcome_item2} data-pageid="{$pageid}" data-page="_global_menu_Chat1" data-comment-len="25">
|
316 |
-
<div class="bs-welcome-header">
|
317 |
-
<a id="itemlink" href="chat_external_list.php" >
|
318 |
-
<span class="glyphicon glyphicon-briefcase"></span>Chat External </a>
|
319 |
-
</div>
|
320 |
-
|
321 |
-
|
322 |
-
<div class="bs-welcome-content">
|
323 |
-
Chat External description </div>
|
324 |
-
</div>
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
<div class="bs-welcome-item" data-itemtype="welcome_item" data-itemid="welcome_item3" {$item_welcome_item3} data-pageid="{$pageid}" data-page="_global_menu_Chat1" data-comment-len="22">
|
329 |
-
<div class="bs-welcome-header">
|
330 |
-
<a id="itemlink" href="chat_agent_list.php" >
|
331 |
-
<span class="glyphicon glyphicon-hand-right"></span>Chat Agent </a>
|
332 |
-
</div>
|
333 |
-
|
334 |
-
|
335 |
-
<div class="bs-welcome-content">
|
336 |
-
Chat Agent description </div>
|
337 |
</div>
|
338 |
|
339 |
</div>
|
|
|
299 |
|
300 |
|
301 |
|
302 |
+
<div class="bs-welcome-item" data-itemtype="welcome_item" data-itemid="welcome_item1" {$item_welcome_item1} data-pageid="{$pageid}" data-page="_global_menu_Chat1" data-comment-len="15">
|
303 |
<div class="bs-welcome-header">
|
304 |
+
<a id="itemlink" href="eoc_list.php" >
|
305 |
+
<span class="glyphicon glyphicon-calendar"></span>Eoc </a>
|
306 |
</div>
|
307 |
|
308 |
|
309 |
<div class="bs-welcome-content">
|
310 |
+
Eoc description </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
</div>
|
312 |
|
313 |
</div>
|