kenken999 commited on
Commit
9d60254
·
1 Parent(s): 0744f46
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. php/public/admin_rights_list.php +17 -0
  2. php/public/agett_prompt_add.php +108 -0
  3. php/public/agett_prompt_edit.php +107 -0
  4. php/public/agett_prompt_export.php +53 -0
  5. php/public/agett_prompt_import.php +53 -0
  6. php/public/agett_prompt_list.php +163 -0
  7. php/public/agett_prompt_print.php +46 -0
  8. php/public/agett_prompt_search.php +95 -0
  9. php/public/agett_prompt_view.php +67 -0
  10. php/public/classes/charts.php +2 -0
  11. php/public/classes/crosstable_webreport.php +2 -0
  12. php/public/classes/db.php +1 -0
  13. php/public/classes/projectsettings.php +2 -0
  14. php/public/connections/ConnectionManager_base.php +1 -0
  15. php/public/include/agett_prompt_settings.php +684 -0
  16. php/public/include/agett_prompt_variables.php +13 -0
  17. php/public/include/appsettings.php +3 -2
  18. php/public/include/audit.php +8 -0
  19. php/public/include/commonfunctions.php +21 -0
  20. php/public/include/dal.php +2 -0
  21. php/public/include/dal/chats_at_localhost__agett_prompt.php +8 -0
  22. php/public/include/menunodes_main.php +26 -0
  23. php/public/include/pages/_global_menu_Chat1.php +24 -3
  24. php/public/include/pages/agett_prompt_add.php +178 -0
  25. php/public/include/pages/agett_prompt_edit.php +189 -0
  26. php/public/include/pages/agett_prompt_export.php +114 -0
  27. php/public/include/pages/agett_prompt_import.php +79 -0
  28. php/public/include/pages/agett_prompt_list.php +451 -0
  29. php/public/include/pages/agett_prompt_print.php +186 -0
  30. php/public/include/pages/agett_prompt_search.php +123 -0
  31. php/public/include/pages/agett_prompt_view.php +189 -0
  32. php/public/include/pages/pages.json +1 -1
  33. php/public/include/reportfunctions.php +20 -0
  34. php/public/pdf/agett_prompt_print.json +444 -0
  35. php/public/pdf/agett_prompt_view.json +267 -0
  36. php/public/styles/pages/_global_menu_Chat1.css +3 -0
  37. php/public/styles/pages/agett_prompt_add.css +5 -0
  38. php/public/styles/pages/agett_prompt_edit.css +5 -0
  39. php/public/styles/pages/agett_prompt_export.css +11 -0
  40. php/public/styles/pages/agett_prompt_import.css +5 -0
  41. php/public/styles/pages/agett_prompt_list.css +20 -0
  42. php/public/styles/pages/agett_prompt_print.css +11 -0
  43. php/public/styles/pages/agett_prompt_search.css +5 -0
  44. php/public/styles/pages/agett_prompt_view.css +5 -0
  45. php/public/templates/_global_menu_Chat1.htm +13 -0
  46. php/public/templates/agett_prompt_add.htm +462 -0
  47. php/public/templates/agett_prompt_edit.htm +484 -0
  48. php/public/templates/agett_prompt_export.htm +171 -0
  49. php/public/templates/agett_prompt_import.htm +184 -0
  50. php/public/templates/agett_prompt_list.htm +967 -0
php/public/admin_rights_list.php CHANGED
@@ -183,6 +183,23 @@ if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled
183
 
184
  $pageMask[$table] = $mask;
185
  $tables[$table] = array("chat_external", " " . "Chat External");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
  if ( pageEnabled(GLOBAL_PAGES, 'menu') )
188
  $pageMask[GLOBAL_PAGES] = "S";
 
183
 
184
  $pageMask[$table] = $mask;
185
  $tables[$table] = array("chat_external", " " . "Chat External");
186
+ $table = "agett_prompt";
187
+ $mask="";
188
+ if( pageEnabled($table, 'add') || pageEnabled($table, 'inline_add') )
189
+ $mask .= "A";
190
+ if( pageEnabled($table, 'edit') || pageEnabled($table, 'inline_edit') )
191
+ $mask .= "E";
192
+ if( pageEnabled($table, 'delete') )
193
+ $mask .= "D";
194
+ if( pageEnabled($table, 'import') )
195
+ $mask .= "I";
196
+ if( pageEnabled($table, 'view') || pageEnabled($table, 'list') || pageEnabled($table, 'chart') || pageEnabled($table, 'report') || pageEnabled($table, 'dashboard') )
197
+ $mask .= "S";
198
+ if( pageEnabled($table, 'print') || pageEnabled($table, 'rprint') || pageEnabled($table, 'export') )
199
+ $mask .= "P";
200
+
201
+ $pageMask[$table] = $mask;
202
+ $tables[$table] = array("agett_prompt", " " . "Agett Prompt");
203
 
204
  if ( pageEnabled(GLOBAL_PAGES, 'menu') )
205
  $pageMask[GLOBAL_PAGES] = "S";
php/public/agett_prompt_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/agett_prompt_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/public/agett_prompt_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/agett_prompt_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/public/agett_prompt_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/agett_prompt_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/public/agett_prompt_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/agett_prompt_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/public/agett_prompt_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 = "agett_prompt";
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/agett_prompt_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/public/agett_prompt_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/agett_prompt_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( "agett_prompt" );
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/public/agett_prompt_search.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/agett_prompt_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
+ require_once( "include/reportfunctions.php" );
24
+ $cname = postvalue("cname");
25
+ $rname = postvalue("rname");
26
+ if( $rname || $cname ) {
27
+ $rpt_array = wrGetEntityArray(
28
+ $rname ? $rname : $cname,
29
+ $rname ? WR_REPORT : WR_CHART
30
+ );
31
+ $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
+ } else {
33
+ $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
+ }
35
+ if(!$accessGranted)
36
+ {
37
+ HeaderRedirect("menu");
38
+ }
39
+
40
+
41
+ require_once('include/xtempl.php');
42
+ require_once('classes/searchpage.php');
43
+ require_once('classes/searchpage_dash.php');
44
+
45
+ $xt = new Xtempl();
46
+ $pageMode = SearchPage::readSearchModeFromRequest();
47
+
48
+ if( $pageMode == SEARCH_LOAD_CONTROL )
49
+ $layoutVersion = postvalue("layoutVersion");
50
+
51
+
52
+ $params = array();
53
+ $params['xt'] = &$xt;
54
+ $params['id'] = postvalue_number("id");
55
+ $params['mode'] = $pageMode;
56
+ $params['tName'] = $strTableName;
57
+ $params["pageName"] = postvalue("page");
58
+ $params['pageType'] = PAGE_SEARCH;
59
+ $params['chartName'] = $cname;
60
+ $params['reportName'] = $rname;
61
+ $params['templatefile'] = $templatefile;
62
+ $params['shortTableName'] = 'agett_prompt';
63
+ $params['layoutVersion'] = $layoutVersion;
64
+
65
+ $params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
66
+ $params['ctrlField'] = postvalue('ctrlField');
67
+
68
+ $params['needSettings'] = postvalue('isNeedSettings');
69
+
70
+ if( $pageMode == SEARCH_DASHBOARD )
71
+ {
72
+ $params["dashTName"] = postvalue("table");
73
+ $params["dashElementName"] = postvalue("dashelement");
74
+ $params["dashPage"] = postvalue("dashPage");
75
+ }
76
+
77
+ // e.g. crosstable params
78
+ $params["extraPageParams"] = SearchPage::getExtraPageParams();
79
+
80
+ $params["masterTable"] = postvalue("mastertable");
81
+ if( $params["masterTable"] )
82
+ $params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
83
+
84
+
85
+ $pageObject = new SearchPage($params);
86
+
87
+ if( $pageMode == SEARCH_LOAD_CONTROL )
88
+ {
89
+ $pageObject->displaySearchControl();
90
+ return;
91
+ }
92
+
93
+ $pageObject->init();
94
+ $pageObject->process();
95
+ ?>
php/public/agett_prompt_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/agett_prompt_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/public/classes/charts.php CHANGED
@@ -404,6 +404,8 @@ class Chart
404
  return true;
405
  if("chat_external" == $this->chrt_array['tables'][0])
406
  return true;
 
 
407
  return false;
408
  }
409
 
 
404
  return true;
405
  if("chat_external" == $this->chrt_array['tables'][0])
406
  return true;
407
+ if("agett_prompt" == $this->chrt_array['tables'][0])
408
+ return true;
409
  return false;
410
  }
411
 
php/public/classes/crosstable_webreport.php CHANGED
@@ -1407,6 +1407,8 @@ class CrossTableWebReport
1407
  $isDB = true;
1408
  if("chat_external" == $this->xml_array['tables'][0])
1409
  $isDB = true;
 
 
1410
  return $isDB;
1411
  }
1412
 
 
1407
  $isDB = true;
1408
  if("chat_external" == $this->xml_array['tables'][0])
1409
  $isDB = true;
1410
+ if("agett_prompt" == $this->xml_array['tables'][0])
1411
+ $isDB = true;
1412
  return $isDB;
1413
  }
1414
 
php/public/classes/db.php CHANGED
@@ -359,6 +359,7 @@ class DB
359
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_COLOR", "varname" => "chats_at_localhost___DIA_DA_COLOR", "altvarname" => "_DIA_DA_COLOR", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
360
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_CUT", "varname" => "chats_at_localhost___DIA_DA_CUT", "altvarname" => "_DIA_DA_CUT", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
361
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_FLUO", "varname" => "chats_at_localhost___DIA_DA_FLUO", "altvarname" => "_DIA_DA_FLUO", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
362
  $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");
363
  $dalTables[$conn->connId][] = array("name" => "Chat2uggroups", "varname" => "chats_at_localhost__Chat2uggroups", "altvarname" => "Chat2uggroups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
364
  $dalTables[$conn->connId][] = array("name" => "Chat2ugmembers", "varname" => "chats_at_localhost__Chat2ugmembers", "altvarname" => "Chat2ugmembers", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
359
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_COLOR", "varname" => "chats_at_localhost___DIA_DA_COLOR", "altvarname" => "_DIA_DA_COLOR", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
360
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_CUT", "varname" => "chats_at_localhost___DIA_DA_CUT", "altvarname" => "_DIA_DA_CUT", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
361
  $dalTables[$conn->connId][] = array("name" => "_DIA_DA_FLUO", "varname" => "chats_at_localhost___DIA_DA_FLUO", "altvarname" => "_DIA_DA_FLUO", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
362
+ $dalTables[$conn->connId][] = array("name" => "agett_prompt", "varname" => "chats_at_localhost__agett_prompt", "altvarname" => "agett_prompt", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
363
  $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");
364
  $dalTables[$conn->connId][] = array("name" => "Chat2uggroups", "varname" => "chats_at_localhost__Chat2uggroups", "altvarname" => "Chat2uggroups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
365
  $dalTables[$conn->connId][] = array("name" => "Chat2ugmembers", "varname" => "chats_at_localhost__Chat2ugmembers", "altvarname" => "Chat2ugmembers", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
php/public/classes/projectsettings.php CHANGED
@@ -3604,6 +3604,8 @@ function fillProjectEntites()
3604
  $projectEntitiesReverse[ "chat_agent" ] = "chat_agent";
3605
  $projectEntities[ "chat_external" ] = array( "url" => "chat_external", "type" => 0 );
3606
  $projectEntitiesReverse[ "chat_external" ] = "chat_external";
 
 
3607
  }
3608
 
3609
  function findTable( $table ) {
 
3604
  $projectEntitiesReverse[ "chat_agent" ] = "chat_agent";
3605
  $projectEntities[ "chat_external" ] = array( "url" => "chat_external", "type" => 0 );
3606
  $projectEntitiesReverse[ "chat_external" ] = "chat_external";
3607
+ $projectEntities[ "agett_prompt" ] = array( "url" => "agett_prompt", "type" => 0 );
3608
+ $projectEntitiesReverse[ "agett_prompt" ] = "agett_prompt";
3609
  }
3610
 
3611
  function findTable( $table ) {
php/public/connections/ConnectionManager_base.php CHANGED
@@ -256,6 +256,7 @@ class ConnectionManager_Base
256
  $connectionsIds["admin_users"] = "chats_at_localhost";
257
  $connectionsIds["chat_agent"] = "chats_at_localhost";
258
  $connectionsIds["chat_external"] = "chats_at_localhost";
 
259
 
260
  $this->_tablesConnectionIds = &$connectionsIds;
261
  }
 
256
  $connectionsIds["admin_users"] = "chats_at_localhost";
257
  $connectionsIds["chat_agent"] = "chats_at_localhost";
258
  $connectionsIds["chat_external"] = "chats_at_localhost";
259
+ $connectionsIds["agett_prompt"] = "chats_at_localhost";
260
 
261
  $this->_tablesConnectionIds = &$connectionsIds;
262
  }
php/public/include/agett_prompt_settings.php ADDED
@@ -0,0 +1,684 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $tdataagett_prompt = array();
3
+ $tdataagett_prompt[".searchableFields"] = array();
4
+ $tdataagett_prompt[".ShortName"] = "agett_prompt";
5
+ $tdataagett_prompt[".OwnerID"] = "";
6
+ $tdataagett_prompt[".OriginalTable"] = "agett_prompt";
7
+
8
+
9
+ $tdataagett_prompt[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
10
+ $tdataagett_prompt[".originalPagesByType"] = $tdataagett_prompt[".pagesByType"];
11
+ $tdataagett_prompt[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
12
+ $tdataagett_prompt[".originalPages"] = $tdataagett_prompt[".pages"];
13
+ $tdataagett_prompt[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
14
+ $tdataagett_prompt[".originalDefaultPages"] = $tdataagett_prompt[".defaultPages"];
15
+
16
+ // field labels
17
+ $fieldLabelsagett_prompt = array();
18
+ $fieldToolTipsagett_prompt = array();
19
+ $pageTitlesagett_prompt = array();
20
+ $placeHoldersagett_prompt = array();
21
+
22
+ if(mlang_getcurrentlang()=="English")
23
+ {
24
+ $fieldLabelsagett_prompt["English"] = array();
25
+ $fieldToolTipsagett_prompt["English"] = array();
26
+ $placeHoldersagett_prompt["English"] = array();
27
+ $pageTitlesagett_prompt["English"] = array();
28
+ $fieldLabelsagett_prompt["English"]["id"] = "Id";
29
+ $fieldToolTipsagett_prompt["English"]["id"] = "";
30
+ $placeHoldersagett_prompt["English"]["id"] = "";
31
+ $fieldLabelsagett_prompt["English"]["prompt"] = "Prompt";
32
+ $fieldToolTipsagett_prompt["English"]["prompt"] = "";
33
+ $placeHoldersagett_prompt["English"]["prompt"] = "";
34
+ if (count($fieldToolTipsagett_prompt["English"]))
35
+ $tdataagett_prompt[".isUseToolTips"] = true;
36
+ }
37
+
38
+
39
+ $tdataagett_prompt[".NCSearch"] = true;
40
+
41
+
42
+
43
+ $tdataagett_prompt[".shortTableName"] = "agett_prompt";
44
+ $tdataagett_prompt[".nSecOptions"] = 0;
45
+
46
+ $tdataagett_prompt[".mainTableOwnerID"] = "";
47
+ $tdataagett_prompt[".entityType"] = 0;
48
+ $tdataagett_prompt[".connId"] = "chats_at_localhost";
49
+
50
+
51
+ $tdataagett_prompt[".strOriginalTableName"] = "agett_prompt";
52
+
53
+
54
+
55
+
56
+
57
+ $tdataagett_prompt[".showAddInPopup"] = false;
58
+
59
+ $tdataagett_prompt[".showEditInPopup"] = false;
60
+
61
+ $tdataagett_prompt[".showViewInPopup"] = false;
62
+
63
+ $tdataagett_prompt[".listAjax"] = false;
64
+ // temporary
65
+ //$tdataagett_prompt[".listAjax"] = false;
66
+
67
+ $tdataagett_prompt[".audit"] = false;
68
+
69
+ $tdataagett_prompt[".locking"] = false;
70
+
71
+
72
+ $pages = $tdataagett_prompt[".defaultPages"];
73
+
74
+ if( $pages[PAGE_EDIT] ) {
75
+ $tdataagett_prompt[".edit"] = true;
76
+ $tdataagett_prompt[".afterEditAction"] = 1;
77
+ $tdataagett_prompt[".closePopupAfterEdit"] = 1;
78
+ $tdataagett_prompt[".afterEditActionDetTable"] = "";
79
+ }
80
+
81
+ if( $pages[PAGE_ADD] ) {
82
+ $tdataagett_prompt[".add"] = true;
83
+ $tdataagett_prompt[".afterAddAction"] = 1;
84
+ $tdataagett_prompt[".closePopupAfterAdd"] = 1;
85
+ $tdataagett_prompt[".afterAddActionDetTable"] = "";
86
+ }
87
+
88
+ if( $pages[PAGE_LIST] ) {
89
+ $tdataagett_prompt[".list"] = true;
90
+ }
91
+
92
+
93
+
94
+ $tdataagett_prompt[".strSortControlSettingsJSON"] = "";
95
+
96
+
97
+
98
+
99
+ if( $pages[PAGE_VIEW] ) {
100
+ $tdataagett_prompt[".view"] = true;
101
+ }
102
+
103
+ if( $pages[PAGE_IMPORT] ) {
104
+ $tdataagett_prompt[".import"] = true;
105
+ }
106
+
107
+ if( $pages[PAGE_EXPORT] ) {
108
+ $tdataagett_prompt[".exportTo"] = true;
109
+ }
110
+
111
+ if( $pages[PAGE_PRINT] ) {
112
+ $tdataagett_prompt[".printFriendly"] = true;
113
+ }
114
+
115
+
116
+
117
+ $tdataagett_prompt[".showSimpleSearchOptions"] = true; // temp fix #13449
118
+
119
+ // Allow Show/Hide Fields in GRID
120
+ $tdataagett_prompt[".allowShowHideFields"] = true; // temp fix #13449
121
+ //
122
+
123
+ // Allow Fields Reordering in GRID
124
+ $tdataagett_prompt[".allowFieldsReordering"] = true; // temp fix #13449
125
+ //
126
+
127
+ $tdataagett_prompt[".isUseAjaxSuggest"] = true;
128
+
129
+
130
+
131
+
132
+
133
+ $tdataagett_prompt[".ajaxCodeSnippetAdded"] = false;
134
+
135
+ $tdataagett_prompt[".buttonsAdded"] = false;
136
+
137
+ $tdataagett_prompt[".addPageEvents"] = false;
138
+
139
+ // use timepicker for search panel
140
+ $tdataagett_prompt[".isUseTimeForSearch"] = false;
141
+
142
+
143
+ $tdataagett_prompt[".badgeColor"] = "DAA520";
144
+
145
+
146
+ $tdataagett_prompt[".allSearchFields"] = array();
147
+ $tdataagett_prompt[".filterFields"] = array();
148
+ $tdataagett_prompt[".requiredSearchFields"] = array();
149
+
150
+ $tdataagett_prompt[".googleLikeFields"] = array();
151
+ $tdataagett_prompt[".googleLikeFields"][] = "id";
152
+ $tdataagett_prompt[".googleLikeFields"][] = "prompt";
153
+
154
+
155
+
156
+ $tdataagett_prompt[".tableType"] = "list";
157
+
158
+ $tdataagett_prompt[".printerPageOrientation"] = 0;
159
+ $tdataagett_prompt[".nPrinterPageScale"] = 100;
160
+
161
+ $tdataagett_prompt[".nPrinterSplitRecords"] = 40;
162
+
163
+ $tdataagett_prompt[".geocodingEnabled"] = false;
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ $tdataagett_prompt[".pageSize"] = 20;
175
+
176
+ $tdataagett_prompt[".warnLeavingPages"] = true;
177
+
178
+
179
+
180
+ $tstrOrderBy = "";
181
+ $tdataagett_prompt[".strOrderBy"] = $tstrOrderBy;
182
+
183
+ $tdataagett_prompt[".orderindexes"] = array();
184
+
185
+
186
+ $tdataagett_prompt[".sqlHead"] = "SELECT id, prompt";
187
+ $tdataagett_prompt[".sqlFrom"] = "FROM agett_prompt";
188
+ $tdataagett_prompt[".sqlWhereExpr"] = "";
189
+ $tdataagett_prompt[".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
+ $tdataagett_prompt[".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
+ $tdataagett_prompt[".arrGroupsPerPage"] = $arrGPP;
221
+
222
+ $tdataagett_prompt[".highlightSearchResults"] = true;
223
+
224
+ $tableKeysagett_prompt = array();
225
+ $tableKeysagett_prompt[] = "id";
226
+ $tdataagett_prompt[".Keys"] = $tableKeysagett_prompt;
227
+
228
+
229
+ $tdataagett_prompt[".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"] = "agett_prompt";
241
+ $fdata["Label"] = GetFieldLabel("agett_prompt","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
+ $tdataagett_prompt["id"] = $fdata;
375
+ $tdataagett_prompt[".searchableFields"][] = "id";
376
+ // prompt
377
+ // Custom field settings
378
+ $fdata = array();
379
+ $fdata["Index"] = 2;
380
+ $fdata["strName"] = "prompt";
381
+ $fdata["GoodName"] = "prompt";
382
+ $fdata["ownerTable"] = "agett_prompt";
383
+ $fdata["Label"] = GetFieldLabel("agett_prompt","prompt");
384
+ $fdata["FieldType"] = 201;
385
+
386
+
387
+
388
+
389
+
390
+
391
+ $fdata["strField"] = "prompt";
392
+
393
+ $fdata["sourceSingle"] = "prompt";
394
+
395
+
396
+ $fdata["isSQLExpression"] = true;
397
+ $fdata["FullName"] = "prompt";
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 area");
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"] = 0;
453
+
454
+
455
+
456
+
457
+ $edata["nRows"] = 100;
458
+ $edata["nCols"] = 200;
459
+
460
+
461
+
462
+ $edata["controlWidth"] = 200;
463
+
464
+ // Begin validation
465
+ $edata["validateAs"] = array();
466
+ $edata["validateAs"]["basicValidate"] = array();
467
+ $edata["validateAs"]["customMessages"] = array();
468
+
469
+
470
+ // End validation
471
+
472
+ $edata["CreateThumbnail"] = true;
473
+ $edata["StrThumbnail"] = "th";
474
+ $edata["ThumbnailSize"] = 600;
475
+
476
+
477
+
478
+
479
+
480
+ $fdata["EditFormats"]["edit"] = $edata;
481
+ // End Edit Formats
482
+
483
+
484
+ $fdata["isSeparate"] = false;
485
+
486
+
487
+
488
+
489
+ // the field's search options settings
490
+ $fdata["defaultSearchOption"] = "Contains";
491
+
492
+ // the default search options list
493
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
494
+ // the end of search options settings
495
+
496
+
497
+ //Filters settings
498
+ $fdata["filterTotals"] = 0;
499
+ $fdata["filterMultiSelect"] = 0;
500
+ $fdata["filterFormat"] = "Values list";
501
+ $fdata["showCollapsed"] = false;
502
+
503
+ $fdata["sortValueType"] = 0;
504
+ $fdata["numberOfVisibleItems"] = 10;
505
+
506
+ $fdata["filterBy"] = 0;
507
+
508
+
509
+
510
+
511
+
512
+ //end of Filters settings
513
+
514
+
515
+ $tdataagett_prompt["prompt"] = $fdata;
516
+ $tdataagett_prompt[".searchableFields"][] = "prompt";
517
+
518
+
519
+ $tables_data["agett_prompt"]=&$tdataagett_prompt;
520
+ $field_labels["agett_prompt"] = &$fieldLabelsagett_prompt;
521
+ $fieldToolTips["agett_prompt"] = &$fieldToolTipsagett_prompt;
522
+ $placeHolders["agett_prompt"] = &$placeHoldersagett_prompt;
523
+ $page_titles["agett_prompt"] = &$pageTitlesagett_prompt;
524
+
525
+
526
+ changeTextControlsToDate( "agett_prompt" );
527
+
528
+ // -----------------start prepare master-details data arrays ------------------------------//
529
+ // tables which are detail tables for current table (master)
530
+
531
+ //if !@TABLE.bReportCrossTab
532
+
533
+ $detailsTablesData["agett_prompt"] = array();
534
+ //endif
535
+
536
+ // tables which are master tables for current table (detail)
537
+ $masterTablesData["agett_prompt"] = array();
538
+
539
+
540
+
541
+ // -----------------end prepare master-details data arrays ------------------------------//
542
+
543
+
544
+
545
+ require_once(getabspath("classes/sql.php"));
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+ function createSqlQuery_agett_prompt()
558
+ {
559
+ $proto0=array();
560
+ $proto0["m_strHead"] = "SELECT";
561
+ $proto0["m_strFieldList"] = "id, prompt";
562
+ $proto0["m_strFrom"] = "FROM agett_prompt";
563
+ $proto0["m_strWhere"] = "";
564
+ $proto0["m_strOrderBy"] = "";
565
+
566
+ ;
567
+ $proto0["cipherer"] = null;
568
+ $proto2=array();
569
+ $proto2["m_sql"] = "";
570
+ $proto2["m_uniontype"] = "SQLL_UNKNOWN";
571
+ $obj = new SQLNonParsed(array(
572
+ "m_sql" => ""
573
+ ));
574
+
575
+ $proto2["m_column"]=$obj;
576
+ $proto2["m_contained"] = array();
577
+ $proto2["m_strCase"] = "";
578
+ $proto2["m_havingmode"] = false;
579
+ $proto2["m_inBrackets"] = false;
580
+ $proto2["m_useAlias"] = false;
581
+ $obj = new SQLLogicalExpr($proto2);
582
+
583
+ $proto0["m_where"] = $obj;
584
+ $proto4=array();
585
+ $proto4["m_sql"] = "";
586
+ $proto4["m_uniontype"] = "SQLL_UNKNOWN";
587
+ $obj = new SQLNonParsed(array(
588
+ "m_sql" => ""
589
+ ));
590
+
591
+ $proto4["m_column"]=$obj;
592
+ $proto4["m_contained"] = array();
593
+ $proto4["m_strCase"] = "";
594
+ $proto4["m_havingmode"] = false;
595
+ $proto4["m_inBrackets"] = false;
596
+ $proto4["m_useAlias"] = false;
597
+ $obj = new SQLLogicalExpr($proto4);
598
+
599
+ $proto0["m_having"] = $obj;
600
+ $proto0["m_fieldlist"] = array();
601
+ $proto6=array();
602
+ $obj = new SQLField(array(
603
+ "m_strName" => "id",
604
+ "m_strTable" => "agett_prompt",
605
+ "m_srcTableName" => "agett_prompt"
606
+ ));
607
+
608
+ $proto6["m_sql"] = "id";
609
+ $proto6["m_srcTableName"] = "agett_prompt";
610
+ $proto6["m_expr"]=$obj;
611
+ $proto6["m_alias"] = "";
612
+ $obj = new SQLFieldListItem($proto6);
613
+
614
+ $proto0["m_fieldlist"][]=$obj;
615
+ $proto8=array();
616
+ $obj = new SQLField(array(
617
+ "m_strName" => "prompt",
618
+ "m_strTable" => "agett_prompt",
619
+ "m_srcTableName" => "agett_prompt"
620
+ ));
621
+
622
+ $proto8["m_sql"] = "prompt";
623
+ $proto8["m_srcTableName"] = "agett_prompt";
624
+ $proto8["m_expr"]=$obj;
625
+ $proto8["m_alias"] = "";
626
+ $obj = new SQLFieldListItem($proto8);
627
+
628
+ $proto0["m_fieldlist"][]=$obj;
629
+ $proto0["m_fromlist"] = array();
630
+ $proto10=array();
631
+ $proto10["m_link"] = "SQLL_MAIN";
632
+ $proto11=array();
633
+ $proto11["m_strName"] = "agett_prompt";
634
+ $proto11["m_srcTableName"] = "agett_prompt";
635
+ $proto11["m_columns"] = array();
636
+ $proto11["m_columns"][] = "id";
637
+ $proto11["m_columns"][] = "prompt";
638
+ $obj = new SQLTable($proto11);
639
+
640
+ $proto10["m_table"] = $obj;
641
+ $proto10["m_sql"] = "agett_prompt";
642
+ $proto10["m_alias"] = "";
643
+ $proto10["m_srcTableName"] = "agett_prompt";
644
+ $proto12=array();
645
+ $proto12["m_sql"] = "";
646
+ $proto12["m_uniontype"] = "SQLL_UNKNOWN";
647
+ $obj = new SQLNonParsed(array(
648
+ "m_sql" => ""
649
+ ));
650
+
651
+ $proto12["m_column"]=$obj;
652
+ $proto12["m_contained"] = array();
653
+ $proto12["m_strCase"] = "";
654
+ $proto12["m_havingmode"] = false;
655
+ $proto12["m_inBrackets"] = false;
656
+ $proto12["m_useAlias"] = false;
657
+ $obj = new SQLLogicalExpr($proto12);
658
+
659
+ $proto10["m_joinon"] = $obj;
660
+ $obj = new SQLFromListItem($proto10);
661
+
662
+ $proto0["m_fromlist"][]=$obj;
663
+ $proto0["m_groupby"] = array();
664
+ $proto0["m_orderby"] = array();
665
+ $proto0["m_srcTableName"]="agett_prompt";
666
+ $obj = new SQLQuery($proto0);
667
+
668
+ return $obj;
669
+ }
670
+ $queryData_agett_prompt = createSqlQuery_agett_prompt();
671
+
672
+
673
+
674
+ ;
675
+
676
+
677
+
678
+ $tdataagett_prompt[".sqlquery"] = $queryData_agett_prompt;
679
+
680
+
681
+
682
+ $tdataagett_prompt[".hasEvents"] = false;
683
+
684
+ ?>
php/public/include/agett_prompt_variables.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $strTableName="agett_prompt";
3
+ $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
+
5
+ $strOriginalTableName="agett_prompt";
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/public/include/appsettings.php CHANGED
@@ -792,9 +792,9 @@ $suggestAllContent = true;
792
  $strLastSQL = "";
793
  $showCustomMarkerOnPrint = false;
794
 
795
- $projectBuildKey = "3652_1721575288";
796
  $wizardBuildKey = "41974";
797
- $projectBuildNumber = "3652";
798
 
799
  $mlang_messages = array();
800
  $mlang_charsets = array();
@@ -833,6 +833,7 @@ $tableCaptions["English"]["admin_members"] = "Admin Members";
833
  $tableCaptions["English"]["admin_users"] = "Admin Users";
834
  $tableCaptions["English"]["chat_agent"] = "Chat Agent";
835
  $tableCaptions["English"]["chat_external"] = "Chat External";
 
836
 
837
 
838
  $globalEvents = new class_GlobalEvents;
 
792
  $strLastSQL = "";
793
  $showCustomMarkerOnPrint = false;
794
 
795
+ $projectBuildKey = "3653_1721575288";
796
  $wizardBuildKey = "41974";
797
+ $projectBuildNumber = "3653";
798
 
799
  $mlang_messages = array();
800
  $mlang_charsets = array();
 
833
  $tableCaptions["English"]["admin_users"] = "Admin Users";
834
  $tableCaptions["English"]["chat_agent"] = "Chat Agent";
835
  $tableCaptions["English"]["chat_external"] = "Chat External";
836
+ $tableCaptions["English"]["agett_prompt"] = "Agett Prompt";
837
 
838
 
839
  $globalEvents = new class_GlobalEvents;
php/public/include/audit.php CHANGED
@@ -408,6 +408,10 @@ class AuditTrailTable
408
  {
409
  return false;
410
  }
 
 
 
 
411
  }
412
 
413
  protected function insert($datetime, $ip, $user, $table, $action, $description)
@@ -768,6 +772,10 @@ class AuditTrailFile
768
  {
769
  return false;
770
  }
 
 
 
 
771
  }
772
 
773
  protected function getMaxLengthSubstr( $value )
 
408
  {
409
  return false;
410
  }
411
+ if($table=="agett_prompt")
412
+ {
413
+ return false;
414
+ }
415
  }
416
 
417
  protected function insert($datetime, $ip, $user, $table, $action, $description)
 
772
  {
773
  return false;
774
  }
775
+ if($table=="agett_prompt")
776
+ {
777
+ return false;
778
+ }
779
  }
780
 
781
  protected function getMaxLengthSubstr( $value )
php/public/include/commonfunctions.php CHANGED
@@ -229,6 +229,8 @@ function checkTableName($shortTName )
229
  return true;
230
  if ("chat_external" == $shortTName )
231
  return true;
 
 
232
  return false;
233
  }
234
 
@@ -396,6 +398,15 @@ function GetTablesList($pdfMode = false)
396
  if( $tableAvailable ) {
397
  $arr[]="chat_external";
398
  }
 
 
 
 
 
 
 
 
 
399
  return $arr;
400
  }
401
 
@@ -418,6 +429,7 @@ function GetTablesListWithoutSecurity()
418
  $arr[]="admin_users";
419
  $arr[]="chat_agent";
420
  $arr[]="chat_external";
 
421
  return $arr;
422
  }
423
 
@@ -1159,6 +1171,15 @@ function GetUserPermissionsStatic( $table )
1159
  {
1160
  return "ADESPI".$extraPerm;
1161
  }
 
 
 
 
 
 
 
 
 
1162
  // default permissions
1163
  return "ADESPI".$extraPerm;
1164
  }
 
229
  return true;
230
  if ("chat_external" == $shortTName )
231
  return true;
232
+ if ("agett_prompt" == $shortTName )
233
+ return true;
234
  return false;
235
  }
236
 
 
398
  if( $tableAvailable ) {
399
  $arr[]="chat_external";
400
  }
401
+ $tableAvailable = true;
402
+ if( $checkPermissions ) {
403
+ $strPerm = GetUserPermissions("agett_prompt");
404
+ $tableAvailable = ( strpos($strPerm, "P") !== false
405
+ || $pdfMode && strpos($strPerm, "S") !== false );
406
+ }
407
+ if( $tableAvailable ) {
408
+ $arr[]="agett_prompt";
409
+ }
410
  return $arr;
411
  }
412
 
 
429
  $arr[]="admin_users";
430
  $arr[]="chat_agent";
431
  $arr[]="chat_external";
432
+ $arr[]="agett_prompt";
433
  return $arr;
434
  }
435
 
 
1171
  {
1172
  return "ADESPI".$extraPerm;
1173
  }
1174
+ // default permissions
1175
+ return "ADESPI".$extraPerm;
1176
+ }
1177
+ if( $table=="agett_prompt" )
1178
+ {
1179
+ if( $sUserGroup=="admin" )
1180
+ {
1181
+ return "ADESPI".$extraPerm;
1182
+ }
1183
  // default permissions
1184
  return "ADESPI".$extraPerm;
1185
  }
php/public/include/dal.php CHANGED
@@ -52,6 +52,7 @@ class tDAL
52
  var $tblchats_at_localhost___DIA_DA_COLOR;
53
  var $tblchats_at_localhost___DIA_DA_CUT;
54
  var $tblchats_at_localhost___DIA_DA_FLUO;
 
55
  var $tblchats_at_localhost__chat126_users1;
56
  var $tblchats_at_localhost__Chat2uggroups;
57
  var $tblchats_at_localhost__Chat2ugmembers;
@@ -88,6 +89,7 @@ class tDAL
88
  $this->lstTables[] = array("name" => "_DIA_DA_COLOR", "varname" => "chats_at_localhost___DIA_DA_COLOR", "altvarname" => "_DIA_DA_COLOR", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
89
  $this->lstTables[] = array("name" => "_DIA_DA_CUT", "varname" => "chats_at_localhost___DIA_DA_CUT", "altvarname" => "_DIA_DA_CUT", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
90
  $this->lstTables[] = array("name" => "_DIA_DA_FLUO", "varname" => "chats_at_localhost___DIA_DA_FLUO", "altvarname" => "_DIA_DA_FLUO", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
91
  $this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
92
  $this->lstTables[] = array("name" => "Chat2uggroups", "varname" => "chats_at_localhost__Chat2uggroups", "altvarname" => "Chat2uggroups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
93
  $this->lstTables[] = array("name" => "Chat2ugmembers", "varname" => "chats_at_localhost__Chat2ugmembers", "altvarname" => "Chat2ugmembers", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
52
  var $tblchats_at_localhost___DIA_DA_COLOR;
53
  var $tblchats_at_localhost___DIA_DA_CUT;
54
  var $tblchats_at_localhost___DIA_DA_FLUO;
55
+ var $tblchats_at_localhost__agett_prompt;
56
  var $tblchats_at_localhost__chat126_users1;
57
  var $tblchats_at_localhost__Chat2uggroups;
58
  var $tblchats_at_localhost__Chat2ugmembers;
 
89
  $this->lstTables[] = array("name" => "_DIA_DA_COLOR", "varname" => "chats_at_localhost___DIA_DA_COLOR", "altvarname" => "_DIA_DA_COLOR", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
90
  $this->lstTables[] = array("name" => "_DIA_DA_CUT", "varname" => "chats_at_localhost___DIA_DA_CUT", "altvarname" => "_DIA_DA_CUT", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
91
  $this->lstTables[] = array("name" => "_DIA_DA_FLUO", "varname" => "chats_at_localhost___DIA_DA_FLUO", "altvarname" => "_DIA_DA_FLUO", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
92
+ $this->lstTables[] = array("name" => "agett_prompt", "varname" => "chats_at_localhost__agett_prompt", "altvarname" => "agett_prompt", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
93
  $this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
94
  $this->lstTables[] = array("name" => "Chat2uggroups", "varname" => "chats_at_localhost__Chat2uggroups", "altvarname" => "Chat2uggroups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
95
  $this->lstTables[] = array("name" => "Chat2ugmembers", "varname" => "chats_at_localhost__Chat2ugmembers", "altvarname" => "Chat2ugmembers", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
php/public/include/dal/chats_at_localhost__agett_prompt.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $dalTableagett_prompt = array();
3
+ $dalTableagett_prompt["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
4
+ $dalTableagett_prompt["prompt"] = array("type"=>201,"varname"=>"prompt", "name" => "prompt", "autoInc" => "0");
5
+ $dalTableagett_prompt["id"]["key"]=true;
6
+
7
+ $dal_info["chats_at_localhost__agett_prompt"] = &$dalTableagett_prompt;
8
+ ?>
php/public/include/menunodes_main.php CHANGED
@@ -132,6 +132,32 @@
132
 
133
 
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  $menuNodes[] = $menuNode;
136
  $menuNodesCache[ "main" ] = $menuNodes;
137
  ?>
 
132
 
133
 
134
 
135
+ $menuNodes[] = $menuNode;
136
+ $menuNode = array();
137
+ $menuNode["id"] = "7";
138
+ $menuNode["name"] = "";
139
+ $menuNode["href"] = "mypage.htm";
140
+ $menuNode["type"] = "Leaf";
141
+ $menuNode["table"] = "agett_prompt";
142
+ $menuNode["style"] = "";
143
+ $menuNode["params"] = "";
144
+ $menuNode["parent"] = "0";
145
+ $menuNode["nameType"] = "Text";
146
+ $menuNode["linkType"] = "Internal";
147
+ $menuNode["pageType"] = strtolower("List");//
148
+ $menuNode["pageId"] = "";
149
+ $menuNode["openType"] = "None";
150
+
151
+ $menuNode["icon"] = "glyphicon-hand-right";
152
+ $menuNode["iconType"] = "2";
153
+ $menuNode["iconShow"] = "2";
154
+
155
+ $menuNode["color"] = "";
156
+
157
+ $menuNode["title"] = "Agett Prompt";
158
+
159
+
160
+
161
  $menuNodes[] = $menuNode;
162
  $menuNodesCache[ "main" ] = $menuNodes;
163
  ?>
php/public/include/pages/_global_menu_Chat1.php CHANGED
@@ -28,6 +28,12 @@
28
  'linkType' => 0,
29
  'items' => null,
30
  'table' => 'chat_external',
 
 
 
 
 
 
31
  'page' => 'list' ) ) ),
32
  'fields' => array( 'gridFields' => array( ),
33
  'searchRequiredFields' => array( ),
@@ -42,7 +48,8 @@
42
  'grid' => array( 'welcome_item',
43
  'welcome_item2',
44
  'welcome_item3',
45
- 'welcome_item4' ) ),
 
46
  'formXtTags' => array( 'above-grid' => array( ) ),
47
  'itemForms' => array( 'logo' => 'supertop',
48
  'menu' => 'supertop',
@@ -52,7 +59,8 @@
52
  'welcome_item' => 'grid',
53
  'welcome_item2' => 'grid',
54
  'welcome_item3' => 'grid',
55
- 'welcome_item4' => 'grid' ),
 
56
  'itemLocations' => array( ),
57
  'itemVisiblity' => array( 'menu' => 3,
58
  'list_options' => 3,
@@ -61,6 +69,7 @@
61
  'itemsByType' => array( 'logo' => array( 'logo' ),
62
  'menu' => array( 'menu' ),
63
  'welcome_item' => array( 'welcome_item',
 
64
  'welcome_item2',
65
  'welcome_item3',
66
  'welcome_item4' ),
@@ -118,7 +127,8 @@ array( 'cell' => 'c2' ) ),
118
  'items' => array( 'welcome_item',
119
  'welcome_item2',
120
  'welcome_item3',
121
- 'welcome_item4' ) ) ),
 
122
  'deferredItems' => array( ),
123
  'recsPerRow' => 1 ) ),
124
  'items' => array( 'logo' => array( 'type' => 'logo' ),
@@ -144,6 +154,17 @@ array( 'cell' => 'c2' ) ),
144
  'popup' => false ),
145
  'userinfo_link' => array( 'type' => 'userinfo_link' ),
146
  'logout_link' => array( 'type' => 'logout_link' ),
 
 
 
 
 
 
 
 
 
 
 
147
  'welcome_item2' => array( 'type' => 'welcome_item',
148
  'linkUrl' => '',
149
  'linkTable' => '{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}',
 
28
  'linkType' => 0,
29
  'items' => null,
30
  'table' => 'chat_external',
31
+ 'page' => 'list' ),
32
+ 'welcome_item1' => array( 'menutItem' => true,
33
+ 'group' => false,
34
+ 'linkType' => 0,
35
+ 'items' => null,
36
+ 'table' => 'agett_prompt',
37
  'page' => 'list' ) ) ),
38
  'fields' => array( 'gridFields' => array( ),
39
  'searchRequiredFields' => array( ),
 
48
  'grid' => array( 'welcome_item',
49
  'welcome_item2',
50
  'welcome_item3',
51
+ 'welcome_item4',
52
+ 'welcome_item1' ) ),
53
  'formXtTags' => array( 'above-grid' => array( ) ),
54
  'itemForms' => array( 'logo' => 'supertop',
55
  'menu' => 'supertop',
 
59
  'welcome_item' => 'grid',
60
  'welcome_item2' => 'grid',
61
  'welcome_item3' => 'grid',
62
+ 'welcome_item4' => 'grid',
63
+ 'welcome_item1' => 'grid' ),
64
  'itemLocations' => array( ),
65
  'itemVisiblity' => array( 'menu' => 3,
66
  'list_options' => 3,
 
69
  'itemsByType' => array( 'logo' => array( 'logo' ),
70
  'menu' => array( 'menu' ),
71
  'welcome_item' => array( 'welcome_item',
72
+ 'welcome_item1',
73
  'welcome_item2',
74
  'welcome_item3',
75
  'welcome_item4' ),
 
127
  'items' => array( 'welcome_item',
128
  'welcome_item2',
129
  'welcome_item3',
130
+ 'welcome_item4',
131
+ 'welcome_item1' ) ) ),
132
  'deferredItems' => array( ),
133
  'recsPerRow' => 1 ) ),
134
  'items' => array( 'logo' => array( 'type' => 'logo' ),
 
154
  'popup' => false ),
155
  'userinfo_link' => array( 'type' => 'userinfo_link' ),
156
  'logout_link' => array( 'type' => 'logout_link' ),
157
+ 'welcome_item1' => array( 'type' => 'welcome_item',
158
+ 'linkUrl' => '',
159
+ 'linkTable' => 'agett_prompt',
160
+ 'linkPage' => 'list',
161
+ 'linkText' => array( 'table' => 'agett_prompt',
162
+ 'type' => 6 ),
163
+ 'linkIcon' => array( 'glyph' => 'hand-right' ),
164
+ 'linkComments' => array( 'text' => 'Agett Prompt description',
165
+ 'type' => 0 ),
166
+ 'background' => '#DAA520',
167
+ 'linkType' => 0 ),
168
  'welcome_item2' => array( 'type' => 'welcome_item',
169
  'linkUrl' => '',
170
  'linkTable' => '{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}',
php/public/include/pages/agett_prompt_add.php ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'captcha' => array( 'captcha' => false ),
3
+ 'fields' => array( 'gridFields' => array( 'prompt' ),
4
+ 'searchRequiredFields' => array( ),
5
+ 'searchPanelFields' => array( ),
6
+ 'fieldItems' => array( 'prompt' => 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
+ 'adminarea_link' => array( 'adminarea_link' ),
57
+ 'expand_menu_button' => array( 'expand_menu_button' ),
58
+ 'collapse_button' => array( 'collapse_button' ),
59
+ 'integrated_edit_field' => array( 'integrated_edit_field' ),
60
+ 'expand_button' => array( 'expand_button' ) ),
61
+ 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
62
+ 'rows' => array( 0 ),
63
+ 'tags' => array( ),
64
+ 'items' => array( 'integrated_edit_field' ),
65
+ 'fixedAtServer' => true,
66
+ 'fixedAtClient' => false ) ),
67
+ 'width' => 1,
68
+ 'height' => 1 ) ) ),
69
+ 'loginForm' => array( 'loginForm' => 0 ),
70
+ 'page' => array( 'verticalBar' => true,
71
+ 'labeledButtons' => array( 'update_records' => array( ),
72
+ 'print_pages' => array( ),
73
+ 'register_activate_message' => array( ),
74
+ 'details_found' => array( ) ),
75
+ 'hasCustomButtons' => false,
76
+ 'customButtons' => array( ),
77
+ 'hasNotifications' => false,
78
+ 'menus' => array( array( 'id' => 'main',
79
+ 'horizontal' => false ) ),
80
+ 'calcTotalsFor' => 1 ),
81
+ 'misc' => array( 'type' => 'add',
82
+ 'breadcrumb' => false ),
83
+ 'events' => array( 'maps' => array( ),
84
+ 'mapsData' => array( ),
85
+ 'buttons' => array( ) ) );
86
+ $pageArray = array( 'id' => 'add',
87
+ 'type' => 'add',
88
+ 'layoutId' => 'leftbar',
89
+ 'disabled' => 0,
90
+ 'default' => 0,
91
+ 'forms' => array( 'above-grid' => array( 'modelId' => 'add-above-grid',
92
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
93
+ 'section' => '' ) ),
94
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
95
+ 'items' => array( 'add_message' ) ) ),
96
+ 'deferredItems' => array( ),
97
+ 'recsPerRow' => 1 ),
98
+ 'below-grid' => array( 'modelId' => 'add-below-grid',
99
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
100
+ 'section' => '' ) ),
101
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
102
+ 'items' => array( 'add_save',
103
+ 'add_reset',
104
+ 'add_back_list',
105
+ 'add_cancel' ) ) ),
106
+ 'deferredItems' => array( ),
107
+ 'recsPerRow' => 1 ),
108
+ 'supertop' => array( 'modelId' => 'leftbar-top-edit',
109
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
110
+ array( 'cell' => 'c2' ) ),
111
+ 'section' => '' ) ),
112
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
113
+ 'items' => array( 'expand_menu_button',
114
+ 'collapse_button' ) ),
115
+ 'c2' => array( 'model' => 'c2',
116
+ 'items' => array( 'loginform_login',
117
+ 'username_button' ) ) ),
118
+ 'deferredItems' => array( ),
119
+ 'recsPerRow' => 1 ),
120
+ 'left' => array( 'modelId' => 'leftbar-menu',
121
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
122
+ 'section' => '' ),
123
+ array( 'cells' => array( array( 'cell' => 'c1' ) ),
124
+ 'section' => '' ) ),
125
+ 'cells' => array( 'c0' => array( 'model' => 'c0',
126
+ 'items' => array( 'logo',
127
+ 'expand_button' ) ),
128
+ 'c1' => array( 'model' => 'c1',
129
+ 'items' => array( 'menu' ) ) ),
130
+ 'deferredItems' => array( ),
131
+ 'recsPerRow' => 1 ),
132
+ 'top' => array( 'modelId' => 'add-header',
133
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
134
+ 'section' => '' ) ),
135
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
136
+ 'items' => array( 'add_header' ) ) ),
137
+ 'deferredItems' => array( ),
138
+ 'recsPerRow' => 1 ),
139
+ 'grid' => array( 'modelId' => 'simple-edit',
140
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
141
+ 'section' => '' ) ),
142
+ 'cells' => array( 'c3' => array( 'model' => 'c3',
143
+ 'items' => array( 'integrated_edit_field' ) ) ),
144
+ 'deferredItems' => array( ),
145
+ 'columnCount' => 1,
146
+ 'inlineLabels' => false,
147
+ 'separateLabels' => false ) ),
148
+ 'items' => array( 'add_header' => array( 'type' => 'add_header' ),
149
+ 'add_back_list' => array( 'type' => 'add_back_list' ),
150
+ 'add_cancel' => array( 'type' => 'add_cancel' ),
151
+ 'add_message' => array( 'type' => 'add_message' ),
152
+ 'add_save' => array( 'type' => 'add_save' ),
153
+ 'add_reset' => array( 'type' => 'add_reset' ),
154
+ 'logo' => array( 'type' => 'logo' ),
155
+ 'menu' => array( 'type' => 'menu' ),
156
+ 'username_button' => array( 'type' => 'username_button',
157
+ 'items' => array( 'userinfo_link',
158
+ 'logout_link',
159
+ 'adminarea_link' ) ),
160
+ 'loginform_login' => array( 'type' => 'loginform_login',
161
+ 'popup' => false ),
162
+ 'userinfo_link' => array( 'type' => 'userinfo_link' ),
163
+ 'logout_link' => array( 'type' => 'logout_link' ),
164
+ 'adminarea_link' => array( 'type' => 'adminarea_link' ),
165
+ 'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
166
+ 'collapse_button' => array( 'type' => 'collapse_button' ),
167
+ 'integrated_edit_field' => array( 'field' => 'prompt',
168
+ 'type' => 'integrated_edit_field',
169
+ 'orientation' => 0 ),
170
+ 'expand_button' => array( 'type' => 'expand_button' ) ),
171
+ 'dbProps' => array( ),
172
+ 'version' => 14,
173
+ 'imageItem' => array( 'type' => 'page_image' ),
174
+ 'imageBgColor' => '#f2f2f2',
175
+ 'controlsBgColor' => 'white',
176
+ 'imagePosition' => 'right',
177
+ 'listTotals' => 1 );
178
+ ?>
php/public/include/pages/agett_prompt_edit.php ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'captcha' => array( 'captcha' => false ),
3
+ 'fields' => array( 'gridFields' => array( 'prompt' ),
4
+ 'searchRequiredFields' => array( ),
5
+ 'searchPanelFields' => array( ),
6
+ 'updateOnEditFields' => array( ),
7
+ 'fieldItems' => array( 'prompt' => 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
+ 'adminarea_link' => array( 'adminarea_link' ),
59
+ 'expand_menu_button' => array( 'expand_menu_button' ),
60
+ 'collapse_button' => array( 'collapse_button' ),
61
+ 'edit_view' => array( 'edit_view' ),
62
+ 'integrated_edit_field' => array( 'integrated_edit_field' ),
63
+ 'expand_button' => array( 'expand_button' ) ),
64
+ 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
65
+ 'rows' => array( 0 ),
66
+ 'tags' => array( ),
67
+ 'items' => array( 'integrated_edit_field' ),
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' => 'edit',
85
+ 'breadcrumb' => false,
86
+ 'nextPrev' => false ),
87
+ 'events' => array( 'maps' => array( ),
88
+ 'mapsData' => array( ),
89
+ 'buttons' => array( ) ),
90
+ 'edit' => array( 'updateSelected' => false ) );
91
+ $pageArray = array( 'id' => 'edit',
92
+ 'type' => 'edit',
93
+ 'layoutId' => 'leftbar',
94
+ 'disabled' => 0,
95
+ 'default' => 0,
96
+ 'forms' => array( 'above-grid' => array( 'modelId' => 'edit-above-grid',
97
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
98
+ 'section' => '' ) ),
99
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
100
+ 'items' => array( 'edit_message' ) ) ),
101
+ 'deferredItems' => array( ),
102
+ 'recsPerRow' => 1 ),
103
+ 'below-grid' => array( 'modelId' => 'edit-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( 'edit_save',
109
+ 'edit_back_list',
110
+ 'edit_close' ) ),
111
+ 'c2' => array( 'model' => 'c2',
112
+ 'items' => array( 'hamburger' ) ) ),
113
+ 'deferredItems' => array( ),
114
+ 'recsPerRow' => 1 ),
115
+ 'supertop' => array( 'modelId' => 'leftbar-top-edit',
116
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
117
+ array( 'cell' => 'c2' ) ),
118
+ 'section' => '' ) ),
119
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
120
+ 'items' => array( 'expand_menu_button',
121
+ 'collapse_button' ) ),
122
+ 'c2' => array( 'model' => 'c2',
123
+ 'items' => array( 'loginform_login',
124
+ 'username_button' ) ) ),
125
+ 'deferredItems' => array( ),
126
+ 'recsPerRow' => 1 ),
127
+ 'left' => array( 'modelId' => 'leftbar-menu',
128
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
129
+ 'section' => '' ),
130
+ array( 'cells' => array( array( 'cell' => 'c1' ) ),
131
+ 'section' => '' ) ),
132
+ 'cells' => array( 'c0' => array( 'model' => 'c0',
133
+ 'items' => array( 'logo',
134
+ 'expand_button' ) ),
135
+ 'c1' => array( 'model' => 'c1',
136
+ 'items' => array( 'menu' ) ) ),
137
+ 'deferredItems' => array( ),
138
+ 'recsPerRow' => 1 ),
139
+ 'top' => array( 'modelId' => 'edit-header',
140
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
141
+ 'section' => '' ) ),
142
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
143
+ 'items' => array( 'edit_header' ) ) ),
144
+ 'deferredItems' => array( ),
145
+ 'recsPerRow' => 1 ),
146
+ 'grid' => array( 'modelId' => 'simple-edit',
147
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
148
+ 'section' => '' ) ),
149
+ 'cells' => array( 'c3' => array( 'model' => 'c3',
150
+ 'items' => array( 'integrated_edit_field' ) ) ),
151
+ 'deferredItems' => array( ),
152
+ 'columnCount' => 1,
153
+ 'inlineLabels' => false,
154
+ 'separateLabels' => false ) ),
155
+ 'items' => array( 'edit_header' => array( 'type' => 'edit_header' ),
156
+ 'hamburger' => array( 'type' => 'hamburger',
157
+ 'items' => array( 'edit_reset',
158
+ 'edit_view' ) ),
159
+ 'edit_reset' => array( 'type' => 'edit_reset' ),
160
+ 'edit_message' => array( 'type' => 'edit_message' ),
161
+ 'edit_save' => array( 'type' => 'edit_save' ),
162
+ 'edit_back_list' => array( 'type' => 'edit_back_list' ),
163
+ 'edit_close' => array( 'type' => 'edit_close' ),
164
+ 'logo' => array( 'type' => 'logo' ),
165
+ 'menu' => array( 'type' => 'menu' ),
166
+ 'username_button' => array( 'type' => 'username_button',
167
+ 'items' => array( 'userinfo_link',
168
+ 'logout_link',
169
+ 'adminarea_link' ) ),
170
+ 'loginform_login' => array( 'type' => 'loginform_login',
171
+ 'popup' => false ),
172
+ 'userinfo_link' => array( 'type' => 'userinfo_link' ),
173
+ 'logout_link' => array( 'type' => 'logout_link' ),
174
+ 'adminarea_link' => array( 'type' => 'adminarea_link' ),
175
+ 'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
176
+ 'collapse_button' => array( 'type' => 'collapse_button' ),
177
+ 'edit_view' => array( 'type' => 'edit_view' ),
178
+ 'integrated_edit_field' => array( 'field' => 'prompt',
179
+ 'type' => 'integrated_edit_field',
180
+ 'orientation' => 0 ),
181
+ 'expand_button' => array( 'type' => 'expand_button' ) ),
182
+ 'dbProps' => array( ),
183
+ 'version' => 14,
184
+ 'imageItem' => array( 'type' => 'page_image' ),
185
+ 'imageBgColor' => '#f2f2f2',
186
+ 'controlsBgColor' => 'white',
187
+ 'imagePosition' => 'right',
188
+ 'listTotals' => 1 );
189
+ ?>
php/public/include/pages/agett_prompt_export.php ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'totals' => array( 'id' => array( 'totalsType' => '' ),
3
+ 'prompt' => array( 'totalsType' => '' ) ),
4
+ 'fields' => array( 'gridFields' => array( 'id',
5
+ 'prompt' ),
6
+ 'exportFields' => array( 'id',
7
+ 'prompt' ),
8
+ 'searchRequiredFields' => array( ),
9
+ 'searchPanelFields' => array( ),
10
+ 'fieldItems' => array( 'id' => array( 'export_field' ),
11
+ 'prompt' => 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' => 'prompt',
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/public/include/pages/agett_prompt_import.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
3
+ 'prompt' ),
4
+ 'searchRequiredFields' => array( ),
5
+ 'searchPanelFields' => array( ),
6
+ 'fieldItems' => array( 'id' => array( 'import_field' ),
7
+ 'prompt' => 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' => 'prompt',
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/public/include/pages/agett_prompt_list.php ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 'prompt' => array( 'totalsType' => '' ) ),
22
+ 'fields' => array( 'gridFields' => array( 'id',
23
+ 'prompt' ),
24
+ 'searchRequiredFields' => array( ),
25
+ 'searchPanelFields' => array( 'id',
26
+ 'prompt' ),
27
+ 'filterFields' => array( ),
28
+ 'inlineAddFields' => array( ),
29
+ 'inlineEditFields' => array( ),
30
+ 'fieldItems' => array( 'id' => array( 'simple_grid_field',
31
+ 'simple_grid_field2' ),
32
+ 'prompt' => 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
+ 'adminarea_link' => array( 'adminarea_link' ),
136
+ 'expand_menu_button' => array( 'expand_menu_button' ),
137
+ 'collapse_button' => array( 'collapse_button' ),
138
+ 'add' => array( 'add' ),
139
+ 'print_panel' => array( 'print_panel' ),
140
+ 'print_scope' => array( 'print_scope' ),
141
+ 'print_button' => array( 'print_button' ),
142
+ 'print_records' => array( 'print_records' ),
143
+ 'export' => array( 'export' ),
144
+ '-' => array( '-',
145
+ '-1',
146
+ '-2',
147
+ '-3' ),
148
+ 'export_selected' => array( 'export_selected' ),
149
+ 'import' => array( 'import' ),
150
+ 'delete' => array( 'delete' ),
151
+ 'delete_selected' => array( 'delete_selected' ),
152
+ 'advsearch_link' => array( 'advsearch_link' ),
153
+ 'grid_field' => array( 'simple_grid_field',
154
+ 'simple_grid_field1' ),
155
+ 'grid_field_label' => array( 'simple_grid_field2',
156
+ 'simple_grid_field3' ),
157
+ 'grid_checkbox' => array( 'grid_checkbox' ),
158
+ 'grid_checkbox_head' => array( 'grid_checkbox_head' ),
159
+ 'grid_edit' => array( 'grid_edit' ),
160
+ 'grid_view' => array( 'grid_view' ),
161
+ 'expand_button' => array( 'expand_button' ) ),
162
+ 'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
163
+ 'rows' => array( 0 ),
164
+ 'tags' => array( ),
165
+ 'items' => array( ),
166
+ 'fixedAtServer' => false,
167
+ 'fixedAtClient' => false ),
168
+ 'headcell_checkbox' => array( 'cols' => array( 1 ),
169
+ 'rows' => array( 0 ),
170
+ 'tags' => array( 'checkbox_column' ),
171
+ 'items' => array( 'grid_checkbox_head' ),
172
+ 'fixedAtServer' => false,
173
+ 'fixedAtClient' => false ),
174
+ 'headcell_field' => array( 'cols' => array( 2 ),
175
+ 'rows' => array( 0 ),
176
+ 'tags' => array( 'id_fieldheadercolumn' ),
177
+ 'items' => array( 'simple_grid_field2' ),
178
+ 'fixedAtServer' => false,
179
+ 'fixedAtClient' => false ),
180
+ 'headcell_field1' => array( 'cols' => array( 3 ),
181
+ 'rows' => array( 0 ),
182
+ 'tags' => array( 'prompt_fieldheadercolumn' ),
183
+ 'items' => array( 'simple_grid_field3' ),
184
+ 'fixedAtServer' => false,
185
+ 'fixedAtClient' => false ),
186
+ 'cell_icons' => array( 'cols' => array( 0 ),
187
+ 'rows' => array( 1 ),
188
+ 'tags' => array( 'edit_column',
189
+ 'view_column' ),
190
+ 'items' => array( 'grid_edit',
191
+ 'grid_view' ),
192
+ 'fixedAtServer' => false,
193
+ 'fixedAtClient' => false ),
194
+ 'cell_checkbox' => array( 'cols' => array( 1 ),
195
+ 'rows' => array( 1 ),
196
+ 'tags' => array( 'checkbox_column' ),
197
+ 'items' => array( 'grid_checkbox' ),
198
+ 'fixedAtServer' => false,
199
+ 'fixedAtClient' => false ),
200
+ 'cell_field' => array( 'cols' => array( 2 ),
201
+ 'rows' => array( 1 ),
202
+ 'tags' => array( 'id_fieldcolumn' ),
203
+ 'items' => array( 'simple_grid_field' ),
204
+ 'fixedAtServer' => false,
205
+ 'fixedAtClient' => false ),
206
+ 'cell_field1' => array( 'cols' => array( 3 ),
207
+ 'rows' => array( 1 ),
208
+ 'tags' => array( 'prompt_fieldcolumn' ),
209
+ 'items' => array( 'simple_grid_field1' ),
210
+ 'fixedAtServer' => false,
211
+ 'fixedAtClient' => false ),
212
+ 'footcell_icons' => array( 'cols' => array( 0 ),
213
+ 'rows' => array( 2 ),
214
+ 'tags' => array( ),
215
+ 'items' => array( ),
216
+ 'fixedAtServer' => false,
217
+ 'fixedAtClient' => false ),
218
+ 'footcell_checkbox' => array( 'cols' => array( 1 ),
219
+ 'rows' => array( 2 ),
220
+ 'tags' => array( ),
221
+ 'items' => array( ),
222
+ 'fixedAtServer' => false,
223
+ 'fixedAtClient' => false ),
224
+ 'footcell_field' => array( 'cols' => array( 2 ),
225
+ 'rows' => array( 2 ),
226
+ 'tags' => array( ),
227
+ 'items' => array( ),
228
+ 'fixedAtServer' => false,
229
+ 'fixedAtClient' => false ),
230
+ 'footcell_field1' => array( 'cols' => array( 3 ),
231
+ 'rows' => array( 2 ),
232
+ 'tags' => array( ),
233
+ 'items' => array( ),
234
+ 'fixedAtServer' => false,
235
+ 'fixedAtClient' => false ) ),
236
+ 'width' => 4,
237
+ 'height' => 3 ) ) ),
238
+ 'loginForm' => array( 'loginForm' => 0 ),
239
+ 'page' => array( 'verticalBar' => true,
240
+ 'labeledButtons' => array( 'update_records' => array( ),
241
+ 'print_pages' => array( ),
242
+ 'register_activate_message' => array( ),
243
+ 'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
244
+ 'type' => 2 ) ) ),
245
+ 'gridType' => 0,
246
+ 'recsPerRow' => 1,
247
+ 'hasCustomButtons' => false,
248
+ 'customButtons' => array( ),
249
+ 'hasNotifications' => false,
250
+ 'menus' => array( array( 'id' => 'main',
251
+ 'horizontal' => false ) ),
252
+ 'calcTotalsFor' => 1 ),
253
+ 'misc' => array( 'type' => 'list',
254
+ 'breadcrumb' => true ),
255
+ 'events' => array( 'maps' => array( ),
256
+ 'mapsData' => array( ),
257
+ 'buttons' => array( ) ),
258
+ 'dataGrid' => array( 'groupFields' => array( ) ) );
259
+ $pageArray = array( 'id' => 'list',
260
+ 'type' => 'list',
261
+ 'layoutId' => 'leftbar',
262
+ 'disabled' => 0,
263
+ 'default' => 0,
264
+ 'forms' => array( 'above-grid' => array( 'modelId' => 'list-above-grid',
265
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
266
+ array( 'cell' => 'c2' ) ),
267
+ 'section' => '' ) ),
268
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
269
+ 'items' => array( 'add',
270
+ 'delete' ) ),
271
+ 'c2' => array( 'model' => 'c2',
272
+ 'items' => array( 'details_found',
273
+ 'page_size',
274
+ 'print_panel' ) ) ),
275
+ 'deferredItems' => array( ),
276
+ 'recsPerRow' => 1 ),
277
+ 'below-grid' => array( 'modelId' => 'list-below-grid',
278
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
279
+ 'section' => '' ) ),
280
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
281
+ 'items' => array( 'pagination' ) ) ),
282
+ 'deferredItems' => array( ),
283
+ 'recsPerRow' => 1 ),
284
+ 'left' => array( 'modelId' => 'leftbar-menu',
285
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
286
+ 'section' => '' ),
287
+ array( 'cells' => array( array( 'cell' => 'c1' ) ),
288
+ 'section' => '' ) ),
289
+ 'cells' => array( 'c0' => array( 'model' => 'c0',
290
+ 'items' => array( 'logo',
291
+ 'expand_button' ) ),
292
+ 'c1' => array( 'model' => 'c1',
293
+ 'items' => array( 'menu',
294
+ 'search_panel' ) ) ),
295
+ 'deferredItems' => array( ),
296
+ 'recsPerRow' => 1 ),
297
+ 'supertop' => array( 'modelId' => 'leftbar-top',
298
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
299
+ array( 'cell' => 'c2' ) ),
300
+ 'section' => '' ) ),
301
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
302
+ 'items' => array( 'expand_menu_button',
303
+ 'collapse_button',
304
+ 'breadcrumb' ) ),
305
+ 'c2' => array( 'model' => 'c2',
306
+ 'items' => array( 'simple_search',
307
+ 'list_options',
308
+ 'loginform_login',
309
+ 'username_button' ) ) ),
310
+ 'deferredItems' => array( ),
311
+ 'recsPerRow' => 1 ),
312
+ 'top' => array( 'modelId' => 'list-sidebar-top',
313
+ 'grid' => array( ),
314
+ 'cells' => array( ),
315
+ 'deferredItems' => array( ),
316
+ 'recsPerRow' => 1 ),
317
+ 'grid' => array( 'modelId' => 'horizontal-grid',
318
+ 'grid' => array( array( 'section' => 'head',
319
+ 'cells' => array( array( 'cell' => 'headcell_icons' ),
320
+ array( 'cell' => 'headcell_checkbox' ),
321
+ array( 'cell' => 'headcell_field' ),
322
+ array( 'cell' => 'headcell_field1' ) ) ),
323
+ array( 'section' => 'body',
324
+ 'cells' => array( array( 'cell' => 'cell_icons' ),
325
+ array( 'cell' => 'cell_checkbox' ),
326
+ array( 'cell' => 'cell_field' ),
327
+ array( 'cell' => 'cell_field1' ) ) ),
328
+ array( 'section' => 'foot',
329
+ 'cells' => array( array( 'cell' => 'footcell_icons' ),
330
+ array( 'cell' => 'footcell_checkbox' ),
331
+ array( 'cell' => 'footcell_field' ),
332
+ array( 'cell' => 'footcell_field1' ) ) ) ),
333
+ 'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
334
+ 'items' => array( 'simple_grid_field2' ),
335
+ 'field' => 'id',
336
+ 'columnName' => 'field' ),
337
+ 'cell_field' => array( 'model' => 'cell_field',
338
+ 'items' => array( 'simple_grid_field' ),
339
+ 'field' => 'id',
340
+ 'columnName' => 'field' ),
341
+ 'footcell_field' => array( 'model' => 'footcell_field',
342
+ 'items' => array( ) ),
343
+ 'headcell_field1' => array( 'model' => 'headcell_field',
344
+ 'items' => array( 'simple_grid_field3' ),
345
+ 'field' => 'prompt',
346
+ 'columnName' => 'field' ),
347
+ 'cell_field1' => array( 'model' => 'cell_field',
348
+ 'items' => array( 'simple_grid_field1' ),
349
+ 'field' => 'prompt',
350
+ 'columnName' => 'field' ),
351
+ 'footcell_field1' => array( 'model' => 'footcell_field',
352
+ 'items' => array( ) ),
353
+ 'headcell_checkbox' => array( 'model' => 'headcell_checkbox',
354
+ 'items' => array( 'grid_checkbox_head' ) ),
355
+ 'cell_checkbox' => array( 'model' => 'cell_checkbox',
356
+ 'items' => array( 'grid_checkbox' ) ),
357
+ 'footcell_checkbox' => array( 'model' => 'footcell_checkbox',
358
+ 'items' => array( ) ),
359
+ 'headcell_icons' => array( 'model' => 'headcell_icons',
360
+ 'items' => array( ) ),
361
+ 'cell_icons' => array( 'model' => 'cell_icons',
362
+ 'items' => array( 'grid_edit',
363
+ 'grid_view' ) ),
364
+ 'footcell_icons' => array( 'model' => 'footcell_icons',
365
+ 'items' => array( ) ) ),
366
+ 'deferredItems' => array( ),
367
+ 'recsPerRow' => 1 ) ),
368
+ 'items' => array( 'page_size' => array( 'type' => 'page_size' ),
369
+ 'breadcrumb' => array( 'type' => 'breadcrumb' ),
370
+ 'logo' => array( 'type' => 'logo' ),
371
+ 'menu' => array( 'type' => 'menu' ),
372
+ 'simple_search' => array( 'type' => 'simple_search' ),
373
+ 'pagination' => array( 'type' => 'pagination' ),
374
+ 'details_found' => array( 'type' => 'details_found' ),
375
+ 'search_panel' => array( 'type' => 'search_panel',
376
+ 'items' => array( 'search_panel_field',
377
+ 'search_panel_field1' ) ),
378
+ 'list_options' => array( 'type' => 'list_options',
379
+ 'items' => array( 'export_selected',
380
+ 'delete_selected',
381
+ '-3',
382
+ 'advsearch_link',
383
+ 'show_search_panel',
384
+ 'hide_search_panel',
385
+ '-1',
386
+ 'export',
387
+ '-2',
388
+ 'import' ) ),
389
+ 'show_search_panel' => array( 'type' => 'show_search_panel' ),
390
+ 'hide_search_panel' => array( 'type' => 'hide_search_panel' ),
391
+ 'search_panel_field' => array( 'field' => 'id',
392
+ 'type' => 'search_panel_field',
393
+ 'required' => false ),
394
+ 'search_panel_field1' => array( 'field' => 'prompt',
395
+ 'type' => 'search_panel_field',
396
+ 'required' => false ),
397
+ 'username_button' => array( 'type' => 'username_button',
398
+ 'items' => array( 'userinfo_link',
399
+ 'logout_link',
400
+ 'adminarea_link' ) ),
401
+ 'loginform_login' => array( 'type' => 'loginform_login',
402
+ 'popup' => false ),
403
+ 'userinfo_link' => array( 'type' => 'userinfo_link' ),
404
+ 'logout_link' => array( 'type' => 'logout_link' ),
405
+ 'adminarea_link' => array( 'type' => 'adminarea_link' ),
406
+ 'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
407
+ 'collapse_button' => array( 'type' => 'collapse_button' ),
408
+ 'add' => array( 'type' => 'add' ),
409
+ 'print_panel' => array( 'type' => 'print_panel',
410
+ 'items' => array( 'print_scope',
411
+ 'print_records',
412
+ 'print_button' ) ),
413
+ 'print_scope' => array( 'type' => 'print_scope' ),
414
+ 'print_button' => array( 'type' => 'print_button' ),
415
+ 'print_records' => array( 'type' => 'print_records' ),
416
+ 'export' => array( 'type' => 'export' ),
417
+ '-' => array( 'type' => '-' ),
418
+ 'export_selected' => array( 'type' => 'export_selected' ),
419
+ '-1' => array( 'type' => '-' ),
420
+ 'import' => array( 'type' => 'import' ),
421
+ '-2' => array( 'type' => '-' ),
422
+ 'delete' => array( 'type' => 'delete' ),
423
+ 'delete_selected' => array( 'type' => 'delete_selected' ),
424
+ 'advsearch_link' => array( 'type' => 'advsearch_link' ),
425
+ '-3' => array( 'type' => '-' ),
426
+ 'simple_grid_field' => array( 'field' => 'id',
427
+ 'type' => 'grid_field',
428
+ 'inlineAdd' => false,
429
+ 'inlineEdit' => false ),
430
+ 'simple_grid_field2' => array( 'type' => 'grid_field_label',
431
+ 'field' => 'id' ),
432
+ 'simple_grid_field1' => array( 'field' => 'prompt',
433
+ 'type' => 'grid_field',
434
+ 'inlineAdd' => false,
435
+ 'inlineEdit' => false ),
436
+ 'simple_grid_field3' => array( 'type' => 'grid_field_label',
437
+ 'field' => 'prompt' ),
438
+ 'grid_checkbox' => array( 'type' => 'grid_checkbox' ),
439
+ 'grid_checkbox_head' => array( 'type' => 'grid_checkbox_head' ),
440
+ 'grid_edit' => array( 'type' => 'grid_edit' ),
441
+ 'grid_view' => array( 'type' => 'grid_view' ),
442
+ 'expand_button' => array( 'type' => 'expand_button' ) ),
443
+ 'dbProps' => array( ),
444
+ 'spreadsheetGrid' => false,
445
+ 'version' => 14,
446
+ 'imageItem' => array( 'type' => 'page_image' ),
447
+ 'imageBgColor' => '#f2f2f2',
448
+ 'controlsBgColor' => 'white',
449
+ 'imagePosition' => 'right',
450
+ 'listTotals' => 1 );
451
+ ?>
php/public/include/pages/agett_prompt_print.php ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'pdf' => array( 'pdfView' => false ),
3
+ 'totals' => array( 'id' => array( 'totalsType' => '' ),
4
+ 'prompt' => array( 'totalsType' => '' ) ),
5
+ 'fields' => array( 'gridFields' => array( 'id',
6
+ 'prompt' ),
7
+ 'searchRequiredFields' => array( ),
8
+ 'searchPanelFields' => array( ),
9
+ 'fieldItems' => array( 'id' => array( 'simple_grid_field',
10
+ 'simple_grid_field2' ),
11
+ 'prompt' => 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( 'prompt_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( 'prompt_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' => 'prompt',
159
+ 'columnName' => 'field' ),
160
+ 'cell_field1' => array( 'model' => 'cell_field',
161
+ 'items' => array( 'simple_grid_field1' ),
162
+ 'field' => 'prompt',
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' => 'prompt',
176
+ 'type' => 'grid_field' ),
177
+ 'simple_grid_field3' => array( 'type' => 'grid_field_label',
178
+ 'field' => 'prompt' ) ),
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/public/include/pages/agett_prompt_search.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'fields' => array( 'gridFields' => array( 'id',
3
+ 'prompt' ),
4
+ 'searchRequiredFields' => array( ),
5
+ 'searchPanelFields' => array( ),
6
+ 'fieldItems' => array( 'id' => array( 'integrated_search_field' ),
7
+ 'prompt' => 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' => 'prompt',
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/public/include/pages/agett_prompt_view.php ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $optionsArray = array( 'pdf' => array( 'pdfView' => false ),
3
+ 'fields' => array( 'gridFields' => array( 'id',
4
+ 'prompt' ),
5
+ 'searchRequiredFields' => array( ),
6
+ 'searchPanelFields' => array( ),
7
+ 'fieldItems' => array( 'id' => array( 'integrated_edit_field' ),
8
+ 'prompt' => 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
+ 'adminarea_link' => array( 'adminarea_link' ),
57
+ 'expand_menu_button' => array( 'expand_menu_button' ),
58
+ 'collapse_button' => array( 'collapse_button' ),
59
+ 'hamburger' => array( 'hamburger' ),
60
+ 'view_edit' => array( 'view_edit' ),
61
+ 'integrated_edit_field' => array( 'integrated_edit_field',
62
+ 'integrated_edit_field1' ),
63
+ 'expand_button' => array( 'expand_button' ) ),
64
+ 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ),
65
+ 'rows' => array( 0 ),
66
+ 'tags' => array( ),
67
+ 'items' => array( 'integrated_edit_field',
68
+ 'integrated_edit_field1' ),
69
+ 'fixedAtServer' => true,
70
+ 'fixedAtClient' => false ) ),
71
+ 'width' => 1,
72
+ 'height' => 1 ) ) ),
73
+ 'loginForm' => array( 'loginForm' => 0 ),
74
+ 'page' => array( 'verticalBar' => true,
75
+ 'labeledButtons' => array( 'update_records' => array( ),
76
+ 'print_pages' => array( ),
77
+ 'register_activate_message' => array( ),
78
+ 'details_found' => array( ) ),
79
+ 'hasCustomButtons' => false,
80
+ 'customButtons' => array( ),
81
+ 'hasNotifications' => false,
82
+ 'menus' => array( array( 'id' => 'main',
83
+ 'horizontal' => false ) ),
84
+ 'calcTotalsFor' => 1 ),
85
+ 'misc' => array( 'type' => 'view',
86
+ 'breadcrumb' => false,
87
+ 'nextPrev' => false ),
88
+ 'events' => array( 'maps' => array( ),
89
+ 'mapsData' => array( ),
90
+ 'buttons' => array( ) ) );
91
+ $pageArray = array( 'id' => 'view',
92
+ 'type' => 'view',
93
+ 'layoutId' => 'leftbar',
94
+ 'disabled' => 0,
95
+ 'default' => 0,
96
+ 'forms' => array( 'above-grid' => array( 'modelId' => 'view-above-grid',
97
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
98
+ 'colspan' => 2 ) ),
99
+ 'section' => '' ) ),
100
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
101
+ 'items' => array( ) ) ),
102
+ 'deferredItems' => array( ),
103
+ 'recsPerRow' => 1 ),
104
+ 'below-grid' => array( 'modelId' => 'view-below-grid',
105
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
106
+ array( 'cell' => 'c2' ) ),
107
+ 'section' => '' ) ),
108
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
109
+ 'items' => array( 'view_back_list',
110
+ 'view_close' ) ),
111
+ 'c2' => array( 'model' => 'c2',
112
+ 'items' => array( 'hamburger' ) ) ),
113
+ 'deferredItems' => array( ),
114
+ 'recsPerRow' => 1 ),
115
+ 'supertop' => array( 'modelId' => 'leftbar-top-edit',
116
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
117
+ array( 'cell' => 'c2' ) ),
118
+ 'section' => '' ) ),
119
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
120
+ 'items' => array( 'expand_menu_button',
121
+ 'collapse_button' ) ),
122
+ 'c2' => array( 'model' => 'c2',
123
+ 'items' => array( 'loginform_login',
124
+ 'username_button' ) ) ),
125
+ 'deferredItems' => array( ),
126
+ 'recsPerRow' => 1 ),
127
+ 'left' => array( 'modelId' => 'leftbar-menu',
128
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
129
+ 'section' => '' ),
130
+ array( 'cells' => array( array( 'cell' => 'c1' ) ),
131
+ 'section' => '' ) ),
132
+ 'cells' => array( 'c0' => array( 'model' => 'c0',
133
+ 'items' => array( 'logo',
134
+ 'expand_button' ) ),
135
+ 'c1' => array( 'model' => 'c1',
136
+ 'items' => array( 'menu' ) ) ),
137
+ 'deferredItems' => array( ),
138
+ 'recsPerRow' => 1 ),
139
+ 'top' => array( 'modelId' => 'view-header',
140
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
141
+ 'section' => '' ) ),
142
+ 'cells' => array( 'c1' => array( 'model' => 'c1',
143
+ 'items' => array( 'view_header' ) ) ),
144
+ 'deferredItems' => array( ),
145
+ 'recsPerRow' => 1 ),
146
+ 'grid' => array( 'modelId' => 'simple-edit',
147
+ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ),
148
+ 'section' => '' ) ),
149
+ 'cells' => array( 'c3' => array( 'model' => 'c3',
150
+ 'items' => array( 'integrated_edit_field',
151
+ 'integrated_edit_field1' ) ) ),
152
+ 'deferredItems' => array( ),
153
+ 'columnCount' => 1,
154
+ 'inlineLabels' => false,
155
+ 'separateLabels' => false ) ),
156
+ 'items' => array( 'view_header' => array( 'type' => 'view_header' ),
157
+ 'view_back_list' => array( 'type' => 'view_back_list' ),
158
+ 'view_close' => array( 'type' => 'view_close' ),
159
+ 'logo' => array( 'type' => 'logo' ),
160
+ 'menu' => array( 'type' => 'menu' ),
161
+ 'username_button' => array( 'type' => 'username_button',
162
+ 'items' => array( 'userinfo_link',
163
+ 'logout_link',
164
+ 'adminarea_link' ) ),
165
+ 'loginform_login' => array( 'type' => 'loginform_login',
166
+ 'popup' => false ),
167
+ 'userinfo_link' => array( 'type' => 'userinfo_link' ),
168
+ 'logout_link' => array( 'type' => 'logout_link' ),
169
+ 'adminarea_link' => array( 'type' => 'adminarea_link' ),
170
+ 'expand_menu_button' => array( 'type' => 'expand_menu_button' ),
171
+ 'collapse_button' => array( 'type' => 'collapse_button' ),
172
+ 'hamburger' => array( 'type' => 'hamburger',
173
+ 'items' => array( 'view_edit' ) ),
174
+ 'view_edit' => array( 'type' => 'view_edit' ),
175
+ 'integrated_edit_field' => array( 'field' => 'id',
176
+ 'type' => 'integrated_edit_field',
177
+ 'orientation' => 0 ),
178
+ 'integrated_edit_field1' => array( 'field' => 'prompt',
179
+ 'type' => 'integrated_edit_field',
180
+ 'orientation' => 0 ),
181
+ 'expand_button' => array( 'type' => 'expand_button' ) ),
182
+ 'dbProps' => array( ),
183
+ 'version' => 14,
184
+ 'imageItem' => array( 'type' => 'page_image' ),
185
+ 'imageBgColor' => '#f2f2f2',
186
+ 'controlsBgColor' => 'white',
187
+ 'imagePosition' => 'right',
188
+ 'listTotals' => 1 );
189
+ ?>
php/public/include/pages/pages.json CHANGED
@@ -1 +1 @@
1
- {"<global>":{"admin_members_list":["admin_members_list"],"admin_rights_list":["admin_rights_list"],"changepwd":["changepwd_Chat1"],"changepwd_success":["changepwd_success_Chat1"],"login":["login_Chat1"],"menu":["menu_Chat1"],"userinfo":["userinfo_Chat1"]},"admin_members":{"search":["search"]},"admin_users":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"chat126_users1":{"search":["search"]},"chat_agent":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"chat_external":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"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"]}}
 
1
+ {"<global>":{"admin_members_list":["admin_members_list"],"admin_rights_list":["admin_rights_list"],"changepwd":["changepwd_Chat1"],"changepwd_success":["changepwd_success_Chat1"],"login":["login_Chat1"],"menu":["menu_Chat1"],"userinfo":["userinfo_Chat1"]},"admin_members":{"search":["search"]},"admin_users":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"agett_prompt":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"chat126_users1":{"search":["search"]},"chat_agent":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"chat_external":{"add":["add"],"delete":[],"edit":["edit"],"export":["export"],"import":["import"],"list":["list"],"print":["print"],"search":["search"],"view":["view"]},"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/public/include/reportfunctions.php CHANGED
@@ -378,6 +378,10 @@ function testAdvSearch($table)
378
  {
379
  return 1;
380
  }
 
 
 
 
381
  }
382
  elseif(is_wr_db())
383
  {
@@ -683,6 +687,10 @@ function getCaptionTable($table)
683
  {
684
  return "Chat External";
685
  }
 
 
 
 
686
  return $table;
687
  }
688
 
@@ -1701,6 +1709,18 @@ function GetTablesListReport()
1701
  && $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
1702
  $arr[]="chat_external";
1703
  }
 
 
 
 
 
 
 
 
 
 
 
 
1704
  return $arr;
1705
  }
1706
 
 
378
  {
379
  return 1;
380
  }
381
+ if($table=="agett_prompt")
382
+ {
383
+ return 1;
384
+ }
385
  }
386
  elseif(is_wr_db())
387
  {
 
687
  {
688
  return "Chat External";
689
  }
690
+ if($table=="agett_prompt")
691
+ {
692
+ return "Agett Prompt";
693
+ }
694
  return $table;
695
  }
696
 
 
1709
  && $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
1710
  $arr[]="chat_external";
1711
  }
1712
+ if( Security::permissionsAvailable() ) {
1713
+ $strPerm = GetUserPermissions("agett_prompt");
1714
+ $securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
1715
+ }
1716
+ if($securityFlag)
1717
+ {
1718
+ $value="agett_prompt";
1719
+ if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
1720
+ && substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
1721
+ && $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
1722
+ $arr[]="agett_prompt";
1723
+ }
1724
  return $arr;
1725
  }
1726
 
php/public/pdf/agett_prompt_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 agett_prompt}',
31
+ },
32
+ {END embedded_grid_caption}
33
+ {BEGIN embedded_page_title}
34
+ {
35
+ text: '{$jspagetitlelabel agett_prompt 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 agett_prompt 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 agett_prompt 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: 'prompt',
236
+ style: 'headcell',
237
+
238
+
239
+ // dynamic colspan/rowspan
240
+
241
+
242
+
243
+
244
+
245
+
246
+ "text": [
247
+
248
+
249
+ {"text":"{$jslabel agett_prompt prompt }","hidden":"{$item_hide_simple_grid_field3}","bold":true},
250
+
251
+ ],
252
+ "border": [ true, true, true, true ],
253
+ "alignment": '{$prompt_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: 'prompt',
303
+ style: 'bodycell',
304
+
305
+
306
+ // dynamic colspan/rowspan
307
+
308
+
309
+
310
+
311
+
312
+
313
+ "text": [
314
+
315
+
316
+ {"text":{$prompt_pdfvalue},"hidden":"{$item_hide_simple_grid_field1}"},
317
+
318
+ ],
319
+ "border": [ true, true, true, true ],
320
+ "alignment": '{$prompt_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/public/pdf/agett_prompt_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 agett_prompt 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 agett_prompt id }","bold":true},{"text":{$id_pdfvalue}}],"margin":[0,0,0,15]},
171
+
172
+
173
+ {"hidden":"{$item_hide_integrated_edit_field1}","stack":[{"text":"{$jslabel agett_prompt prompt }","bold":true},{"text":{$prompt_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/public/styles/pages/_global_menu_Chat1.css CHANGED
@@ -1,6 +1,9 @@
1
  [data-page="_global_menu_Chat1"][data-itemid="welcome_item"] > .bs-welcome-header {
2
  background-color: #CFAE83;
3
  }
 
 
 
4
  [data-page="_global_menu_Chat1"][data-itemid="welcome_item3"] > .bs-welcome-header {
5
  background-color: #E67349;
6
  }
 
1
  [data-page="_global_menu_Chat1"][data-itemid="welcome_item"] > .bs-welcome-header {
2
  background-color: #CFAE83;
3
  }
4
+ [data-page="_global_menu_Chat1"][data-itemid="welcome_item1"] > .bs-welcome-header {
5
+ background-color: #DAA520;
6
+ }
7
  [data-page="_global_menu_Chat1"][data-itemid="welcome_item3"] > .bs-welcome-header {
8
  background-color: #E67349;
9
  }
php/public/styles/pages/agett_prompt_add.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [data-page="agett_prompt_add"][data-itemid="page_image_ash8f23hr"] {
2
+ width: 400px;
3
+ }
4
+
5
+
php/public/styles/pages/agett_prompt_edit.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [data-page="agett_prompt_edit"][data-itemid="page_image_ash8f23hr"] {
2
+ width: 400px;
3
+ }
4
+
5
+
php/public/styles/pages/agett_prompt_export.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [data-cellid="footer_c1"][data-page="agett_prompt_export"][data-cellid="footer_c1"][data-page="agett_prompt_export"][data-cellid="footer_c1"][data-page="agett_prompt_export"] {
2
+ width: 33.33333333%;
3
+ }
4
+ [data-cellid="footer_c2"][data-page="agett_prompt_export"][data-cellid="footer_c2"][data-page="agett_prompt_export"][data-cellid="footer_c2"][data-page="agett_prompt_export"] {
5
+ width: 66.66666667%;
6
+ }
7
+ [data-page="agett_prompt_export"][data-itemid="page_image_ash8f23hr"] {
8
+ width: 400px;
9
+ }
10
+
11
+
php/public/styles/pages/agett_prompt_import.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [data-page="agett_prompt_import"][data-itemid="page_image_ash8f23hr"] {
2
+ width: 400px;
3
+ }
4
+
5
+
php/public/styles/pages/agett_prompt_list.css ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [data-cellid="grid_footcell_field"][data-page="agett_prompt_list"][data-cellid="grid_footcell_field"][data-page="agett_prompt_list"][data-cellid="grid_footcell_field"][data-page="agett_prompt_list"] {
2
+ white-space: nowrap;
3
+ }
4
+ [data-cellid="grid_footcell_field1"][data-page="agett_prompt_list"][data-cellid="grid_footcell_field1"][data-page="agett_prompt_list"][data-cellid="grid_footcell_field1"][data-page="agett_prompt_list"] {
5
+ white-space: nowrap;
6
+ }
7
+ [data-cellid="grid_headcell_checkbox"][data-page="agett_prompt_list"][data-cellid="grid_headcell_checkbox"][data-page="agett_prompt_list"][data-cellid="grid_headcell_checkbox"][data-page="agett_prompt_list"] {
8
+ width: 30px;
9
+ }
10
+ [data-cellid="grid_headcell_icons"][data-page="agett_prompt_list"][data-cellid="grid_headcell_icons"][data-page="agett_prompt_list"][data-cellid="grid_headcell_icons"][data-page="agett_prompt_list"] {
11
+ width: 30px;
12
+ }
13
+ [data-cellid="grid_cell_icons"][data-page="agett_prompt_list"][data-cellid="grid_cell_icons"][data-page="agett_prompt_list"][data-cellid="grid_cell_icons"][data-page="agett_prompt_list"] {
14
+ white-space: nowrap;
15
+ }
16
+ [data-page="agett_prompt_list"][data-itemid="page_image_ash8f23hr"] {
17
+ width: 400px;
18
+ }
19
+
20
+
php/public/styles/pages/agett_prompt_print.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [data-cellid="grid_footcell_field"][data-page="agett_prompt_print"][data-cellid="grid_footcell_field"][data-page="agett_prompt_print"][data-cellid="grid_footcell_field"][data-page="agett_prompt_print"] {
2
+ white-space: nowrap;
3
+ }
4
+ [data-cellid="grid_footcell_field1"][data-page="agett_prompt_print"][data-cellid="grid_footcell_field1"][data-page="agett_prompt_print"][data-cellid="grid_footcell_field1"][data-page="agett_prompt_print"] {
5
+ white-space: nowrap;
6
+ }
7
+ [data-page="agett_prompt_print"][data-itemid="page_image_ash8f23hr"] {
8
+ width: 400px;
9
+ }
10
+
11
+
php/public/styles/pages/agett_prompt_search.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [data-page="agett_prompt_search"][data-itemid="page_image_ash8f23hr"] {
2
+ width: 400px;
3
+ }
4
+
5
+
php/public/styles/pages/agett_prompt_view.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [data-page="agett_prompt_view"][data-itemid="page_image_ash8f23hr"] {
2
+ width: 400px;
3
+ }
4
+
5
+
php/public/templates/_global_menu_Chat1.htm CHANGED
@@ -344,6 +344,19 @@
344
  Chat External description </div>
345
  </div>
346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
  </div>
348
  </td>
349
  </tr>
 
344
  Chat External description </div>
345
  </div>
346
 
347
+
348
+
349
+ <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="24">
350
+ <div class="bs-welcome-header">
351
+ <a id="itemlink" href="agett_prompt_list.php" >
352
+ <span class="glyphicon glyphicon-hand-right"></span>Agett Prompt </a>
353
+ </div>
354
+
355
+
356
+ <div class="bs-welcome-content">
357
+ Agett Prompt description </div>
358
+ </div>
359
+
360
  </div>
361
  </td>
362
  </tr>
php/public/templates/agett_prompt_add.htm ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html {$html_attrs}>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{$pagetitle}</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8
+ <base href="{$projectPath}">
9
+ <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
10
+ {BEGIN rtlCSS}
11
+ <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
12
+ {END rtlCSS}
13
+ {BEGIN styleCSSFiles}
14
+ <link REL="stylesheet" href="{$stylepath}" type="text/css">
15
+ {END styleCSSFiles}
16
+
17
+ </head>
18
+
19
+ <body class="{$stylename} function-add"
20
+ >
21
+ {BEGIN body}
22
+ <style>
23
+ {$containerCss}
24
+ </style>
25
+ <div class="r-vbar-page">
26
+ <div data-width="250px" class="r-left clearfix {$leftbar_class}" >
27
+ <div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}">
28
+ {BEGIN left_block}
29
+
30
+
31
+
32
+
33
+ <div data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell class="clearfix " data-itemid="logo" {$item_logo}>
34
+ {BEGIN logo_block}
35
+ <A data-itemtype="logo" data-itemid="logo" {$item_logo} data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
36
+ {$logo}
37
+ </A>
38
+ {END logo_block}
39
+ <button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">
40
+ <span class="sr-only">Toggle navigation</span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ </div>
44
+
45
+
46
+
47
+ <div class="clearfix " data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell data-itemid="expand_button" {$item_expand_button} data-topcell-item-type="expand_button" >
48
+ <span data-itemtype="expand_button" data-itemid="expand_button" {$item_expand_button} data-pageid="{$pageid}" data-small data-button-item>
49
+ <a type="button" title="Expand" class="btn btn-link
50
+ " href="#" >
51
+ <span class="glyphicon glyphicon-triangle-right"></span>
52
+ </a>
53
+ </span>
54
+ </div>
55
+
56
+
57
+
58
+
59
+
60
+ <div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
61
+ {BEGIN menuitems_main}
62
+ <ul data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}" class="r-menu nav menu-treelike"
63
+ data-menulevel="1"
64
+ >
65
+
66
+ {BEGIN item_children1}
67
+ <li class="
68
+ {$item_current}">
69
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline data-menu-top >
70
+ {$item_separator}
71
+ <span class="r-menu-link r-menu-expanded ">
72
+ <span class="r-menu-title">
73
+ {$item_icon} {$item_title}
74
+ </span>
75
+ {BEGIN item_haschildren2}
76
+ {BEGIN item_expand_icon}
77
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
78
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
79
+ {END item_expand_icon}
80
+ {END item_haschildren2}
81
+ </span>
82
+ <span class="r-menu-collapsed">{$item_collicon}{$item_firstcap}</span>
83
+ </a>
84
+ {BEGIN item_showchildren2}
85
+ <ul class="
86
+ nav collapse
87
+ {$submenu_class}"
88
+ id="submenu{$item_id}" data-menulevel="2">
89
+ {BEGIN item_children2}
90
+ {BEGIN item_menulink2}
91
+ <li class="
92
+ {$item_current}"
93
+ >
94
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
95
+ {$item_separator}
96
+ <span class="r-menu-link ">
97
+ <span class="r-menu-title">
98
+ {$item_icon} {$item_title}
99
+ </span>
100
+ {BEGIN item_haschildren2}
101
+ {BEGIN item_expand_icon}
102
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
103
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
104
+ {END item_expand_icon}
105
+ {END item_haschildren2}
106
+ </span>
107
+ </a>
108
+ {BEGIN item_showchildren3}
109
+ <ul class="
110
+ nav collapse
111
+ {$submenu_class}"
112
+ id="submenu{$item_id}" data-menulevel="3">
113
+ {BEGIN item_children3}
114
+ {BEGIN item_menulink3}
115
+ <li class="
116
+ {$item_current}"
117
+ >
118
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
119
+ {$item_separator}
120
+ <span class="r-menu-link ">
121
+ <span class="r-menu-title">
122
+ {$item_icon} {$item_title}
123
+ </span>
124
+ {BEGIN item_haschildren3}
125
+ {BEGIN item_expand_icon}
126
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
127
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
128
+ {END item_expand_icon}
129
+ {END item_haschildren3}
130
+ </span>
131
+ </a>
132
+ {BEGIN item_showchildren4}
133
+ <ul class="
134
+ nav collapse
135
+ {$submenu_class}"
136
+ id="submenu{$item_id}" data-menulevel="4">
137
+ {BEGIN item_children4}
138
+ {BEGIN item_menulink4}
139
+ <li class="
140
+ {$item_current}"
141
+ >
142
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
143
+ {$item_separator}
144
+ <span class="r-menu-link ">
145
+ <span class="r-menu-title">
146
+ {$item_icon} {$item_title}
147
+ </span>
148
+ {BEGIN item_haschildren4}
149
+ {BEGIN item_expand_icon}
150
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
151
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
152
+ {END item_expand_icon}
153
+ {END item_haschildren4}
154
+ </span>
155
+ </a>
156
+ {BEGIN item_showchildren5}
157
+ <ul class="
158
+ nav collapse
159
+ {$submenu_class}"
160
+ id="submenu{$item_id}" data-menulevel="5">
161
+ {BEGIN item_children5}
162
+ {BEGIN item_menulink5}
163
+ <li class="
164
+ {$item_current}"
165
+ >
166
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
167
+ {$item_separator}
168
+ <span class="r-menu-link ">
169
+ <span class="r-menu-title">
170
+ {$item_icon} {$item_title}
171
+ </span>
172
+ {BEGIN item_haschildren5}
173
+ {BEGIN item_expand_icon}
174
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
175
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
176
+ {END item_expand_icon}
177
+ {END item_haschildren5}
178
+ </span>
179
+ </a>
180
+ </li>
181
+ {END item_menulink5}
182
+ {END item_children5}
183
+ </ul>
184
+ {END item_showchildren5}
185
+ </li>
186
+ {END item_menulink4}
187
+ {END item_children4}
188
+ </ul>
189
+ {END item_showchildren4}
190
+ </li>
191
+ {END item_menulink3}
192
+ {END item_children3}
193
+ </ul>
194
+ {END item_showchildren3}
195
+ </li>
196
+ {END item_menulink2}
197
+ {END item_children2}
198
+ </ul>
199
+ {END item_showchildren2}
200
+ </li>
201
+ {END item_children1}
202
+ </ul>
203
+ {END menuitems_main}
204
+ </div>
205
+
206
+ {END left_block}
207
+ </div> </div>
208
+ <div class="r-content-col" data-resize-left="leftbar">
209
+ <div class="r-topheader" data-resize-name="topbar">
210
+ {BEGIN supertop_block}
211
+ <nav class="navbar navbar-default"
212
+ data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" >
213
+
214
+
215
+ <span class="navbar-form navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="expand_menu_button" {$item_expand_menu_button} data-topcell-item-type="expand_menu_button" >
216
+ <span data-itemtype="expand_menu_button" data-itemid="expand_menu_button" {$item_expand_menu_button} data-pageid="{$pageid}" data-small data-button-item>
217
+ <a type="button" title="Show menu" class="btn-link
218
+ glyphicon glyphicon-menu-hamburger" href="#" >
219
+
220
+ </a>
221
+ </span>
222
+ </span>
223
+
224
+ <span class="navbar-form navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
225
+ <span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button} data-pageid="{$pageid}" data-small data-button-item>
226
+ <a type="button" title="Collapse" class="btn-link
227
+ glyphicon glyphicon-triangle-left" href="#" >
228
+
229
+ </a>
230
+ </span>
231
+ </span>
232
+
233
+
234
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
235
+ {BEGIN guestloginbutton}
236
+ <span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login} data-pageid="{$pageid}" data-small data-button-item>
237
+ <a type="button" title="" class="btn btn-primary
238
+ " href="#" {$guestloginlink_attrs} >
239
+ Login </a>
240
+ </span>
241
+ {END guestloginbutton}
242
+ </span>
243
+
244
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
245
+ {BEGIN loggedas_message}
246
+ <span data-itemtype="username_button" data-itemid="username_button" {$item_username_button} data-pageid="{$pageid}" data-small data-button-item>
247
+ <span class="dropdown ">
248
+ <button type="button" title="" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
249
+ {BEGIN userbutton_icon} <span class="glyphicon glyphicon-user"></span>
250
+ {END userbutton_icon}{$userbutton_image} {$username} <span class="caret"></span>
251
+ </button>
252
+ <ul class="dropdown-menu">
253
+ {BEGIN userinfo_link}
254
+ <li data-itemtype="userinfo_link" data-itemid="userinfo_link" {$item_userinfo_link} data-pageid="{$pageid}" data-small >
255
+ <a href="userinfo.php" title="" >
256
+
257
+ User Profile
258
+ </a>
259
+ </li>
260
+ {END userinfo_link}
261
+ {BEGIN logoutbutton}
262
+ <li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link} data-pageid="{$pageid}" data-small >
263
+ <a href="#" {$logoutlink_attrs} title="" >
264
+
265
+ Log out
266
+ </a>
267
+ </li>
268
+ {END logoutbutton}
269
+ {BEGIN adminarea_link}
270
+ <li data-itemtype="adminarea_link" data-itemid="adminarea_link" {$item_adminarea_link} data-pageid="{$pageid}" data-small >
271
+ <a href="admin_rights_list.php" title="" >
272
+
273
+ Admin Area
274
+ </a>
275
+ </li>
276
+ {END adminarea_link}
277
+ </ul>
278
+ </span>
279
+ </span>
280
+ {END loggedas_message}
281
+ </span>
282
+ </nav>
283
+ {END supertop_block}
284
+ {$locking}
285
+ </div>
286
+ <div class="r-body" data-resize-top="topbar" data-body-width="standard">
287
+ {$header}
288
+ <div class="r-top">
289
+ {BEGIN top_block}
290
+ <div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" >
291
+
292
+ <div class="row">
293
+
294
+ <div
295
+ data-cellId="top_c1" data-pageid="{$pageid}" {$cell_top_c1}
296
+ class=" r-ori-vert col-md-12
297
+
298
+ ">
299
+
300
+ <h2 data-itemtype="add_header" data-itemid="add_header" {$item_add_header} data-pageid="{$pageid}" >{$pagetitlelabel agett_prompt add}</h2>
301
+ </div> </div>
302
+ </div>
303
+ {END top_block}
304
+ </div>
305
+ <div class="r-above">
306
+ {BEGIN above-grid_block}
307
+ <div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$form_above-grid} data-pageid="{$pageid}" >
308
+
309
+ <div class="row">
310
+
311
+ <div
312
+ data-cellId="above-grid_c1" data-pageid="{$pageid}" {$cell_above-grid_c1}
313
+ class=" r-ori-vert col-md-12
314
+
315
+ ">
316
+ {BEGIN firstAboveGridCell}
317
+
318
+ {BEGIN message_block}
319
+ <div data-itemtype="add_message" data-itemid="add_message" {$item_add_message} data-pageid="{$pageid}" class="alert {$message_class}" role="alert">
320
+ <h5>{$message}</h5>
321
+ <div>
322
+ {BEGIN message_back_button}
323
+
324
+ <button class="btn btn-sm btn-default" {$backbutton_attrs}>Back to list</button>
325
+ {END message_back_button}
326
+ {BEGIN view_page_button}
327
+ <button class="btn btn-sm btn-default" {$view_page_button_attrs}>View</button>
328
+ {END view_page_button}
329
+ {BEGIN edit_page_button}
330
+ <button class="btn btn-sm btn-default" {$edit_page_button_attrs}>Edit</button>
331
+ {END edit_page_button}
332
+ </div>
333
+ </div>
334
+ {END message_block} {END firstAboveGridCell}
335
+ </div> </div>
336
+ </div>
337
+ {END above-grid_block}
338
+ </div>
339
+ <div class="r-grid">
340
+ {BEGIN grid_tabs}
341
+ <ul class="nav nav-tabs bsgrid_tabs">
342
+ {$grid_tabs_content}
343
+ </ul>
344
+ {END grid_tabs}
345
+ {BEGIN grid_block}
346
+
347
+
348
+
349
+
350
+
351
+
352
+ <table
353
+ data-body-align="left"
354
+ data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}"
355
+ class="r-edit-form" cellpadding="0" cellspacing="0"
356
+ {$grid_hiddenattr}
357
+ data-form-width="1"
358
+
359
+ data-v-width="4"
360
+ >
361
+ <tbody>
362
+ <tr {$row_grid_0} >
363
+
364
+
365
+ {BEGIN cellblock_grid_c3}
366
+ <td
367
+ {$cell_grid_c3}
368
+ class=" r-ori-vert"
369
+
370
+ data-single
371
+ data-fullwidth
372
+
373
+ data-cellId="grid_c3" data-pageid="{$pageid}"
374
+ data-v-cell="4"
375
+
376
+ >
377
+ <div edit-form-cell class="clearfix">
378
+
379
+ {BEGIN prompt_fieldblock}
380
+
381
+
382
+ <div class="r-integrated-field form-group clearfix {$fielddispclass_prompt} r-vertical-field"
383
+ data-signal-error-for="prompt{$id}" {$required_attr_prompt}
384
+ data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field" {$item_integrated_edit_field} data-pageid="{$pageid}" data-field="prompt" data-fieldname="prompt" >
385
+
386
+ <label class="r-edit-label control-label" for="{$labelfor_prompt}">
387
+ {BEGIN prompt_label}{$label agett_prompt prompt }{END prompt_label}
388
+ <span class="icon-required"></span>
389
+ </label>
390
+ <div class="r-edit-field">
391
+ {$prompt_editcontrol} </div>
392
+ <div class="r-edit-tooltip" data-helpfor="prompt" {$tooltipAttr agett_prompt prompt } >
393
+ <div class="text-muted" >
394
+ {$tooltip agett_prompt prompt } </div>
395
+ </div>
396
+ </div>
397
+
398
+
399
+ {END prompt_fieldblock}
400
+
401
+ </td>
402
+ {END cellblock_grid_c3}
403
+ </tr>
404
+ </tbody></table>
405
+ {END grid_block}
406
+ </div>
407
+ <div class="r-below">
408
+ {BEGIN below-grid_block}
409
+ <div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" >
410
+
411
+ <div class="row">
412
+
413
+ <div
414
+ data-cellId="below-grid_c1" data-pageid="{$pageid}" {$cell_below-grid_c1}
415
+ class=" col-md-12
416
+
417
+ ">
418
+
419
+ <span data-itemtype="add_save" data-itemid="add_save" {$item_add_save} data-pageid="{$pageid}" data-small data-button-item>
420
+ <a type="button" title="" class="btn btn-primary
421
+ " {$savebutton_attrs} >
422
+ Save </a>
423
+ </span>
424
+
425
+ <span data-itemtype="add_reset" data-itemid="add_reset" {$item_add_reset} data-pageid="{$pageid}" data-small data-button-item>
426
+ <a type="button" title="" class="btn btn-default
427
+ " id="resetButton{$id}" >
428
+ Reset </a>
429
+ </span>
430
+
431
+ {BEGIN back_button}
432
+ <span data-itemtype="add_back_list" data-itemid="add_back_list" {$item_add_back_list} data-pageid="{$pageid}" data-small data-button-item>
433
+ <a type="button" title="" class="btn btn-default
434
+ " id="backButton{$id}" >
435
+ Back to list </a>
436
+ </span>
437
+ {END back_button}
438
+
439
+ {BEGIN cancel_button}
440
+ <span data-itemtype="add_cancel" data-itemid="add_cancel" {$item_add_cancel} data-pageid="{$pageid}" data-small data-button-item>
441
+ <a type="button" title="" class="btn btn-default
442
+ " id="cancelButton{$id}" >
443
+ Cancel </a>
444
+ </span>
445
+ {END cancel_button}
446
+ </div> </div>
447
+ </div>
448
+ {END below-grid_block}
449
+ </div>
450
+
451
+
452
+
453
+
454
+ {$footer}
455
+ </div>
456
+ </div>
457
+ <div class="r-body-shadow">
458
+ </div>
459
+ </div>
460
+ {END body}
461
+ </body>
462
+ </html>
php/public/templates/agett_prompt_edit.htm ADDED
@@ -0,0 +1,484 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html {$html_attrs}>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{$pagetitle}</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8
+ <base href="{$projectPath}">
9
+ <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
10
+ {BEGIN rtlCSS}
11
+ <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
12
+ {END rtlCSS}
13
+ {BEGIN styleCSSFiles}
14
+ <link REL="stylesheet" href="{$stylepath}" type="text/css">
15
+ {END styleCSSFiles}
16
+
17
+ </head>
18
+
19
+ <body class="{$stylename} function-edit"
20
+ >
21
+ {BEGIN body}
22
+ <style>
23
+ {$containerCss}
24
+ </style>
25
+ <div class="r-vbar-page">
26
+ <div data-width="250px" class="r-left clearfix {$leftbar_class}" >
27
+ <div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}">
28
+ {BEGIN left_block}
29
+
30
+
31
+
32
+
33
+ <div data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell class="clearfix " data-itemid="logo" {$item_logo}>
34
+ {BEGIN logo_block}
35
+ <A data-itemtype="logo" data-itemid="logo" {$item_logo} data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
36
+ {$logo}
37
+ </A>
38
+ {END logo_block}
39
+ <button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">
40
+ <span class="sr-only">Toggle navigation</span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ </div>
44
+
45
+
46
+
47
+ <div class="clearfix " data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell data-itemid="expand_button" {$item_expand_button} data-topcell-item-type="expand_button" >
48
+ <span data-itemtype="expand_button" data-itemid="expand_button" {$item_expand_button} data-pageid="{$pageid}" data-small data-button-item>
49
+ <a type="button" title="Expand" class="btn btn-link
50
+ " href="#" >
51
+ <span class="glyphicon glyphicon-triangle-right"></span>
52
+ </a>
53
+ </span>
54
+ </div>
55
+
56
+
57
+
58
+
59
+
60
+ <div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
61
+ {BEGIN menuitems_main}
62
+ <ul data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}" class="r-menu nav menu-treelike"
63
+ data-menulevel="1"
64
+ >
65
+
66
+ {BEGIN item_children1}
67
+ <li class="
68
+ {$item_current}">
69
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline data-menu-top >
70
+ {$item_separator}
71
+ <span class="r-menu-link r-menu-expanded ">
72
+ <span class="r-menu-title">
73
+ {$item_icon} {$item_title}
74
+ </span>
75
+ {BEGIN item_haschildren2}
76
+ {BEGIN item_expand_icon}
77
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
78
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
79
+ {END item_expand_icon}
80
+ {END item_haschildren2}
81
+ </span>
82
+ <span class="r-menu-collapsed">{$item_collicon}{$item_firstcap}</span>
83
+ </a>
84
+ {BEGIN item_showchildren2}
85
+ <ul class="
86
+ nav collapse
87
+ {$submenu_class}"
88
+ id="submenu{$item_id}" data-menulevel="2">
89
+ {BEGIN item_children2}
90
+ {BEGIN item_menulink2}
91
+ <li class="
92
+ {$item_current}"
93
+ >
94
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
95
+ {$item_separator}
96
+ <span class="r-menu-link ">
97
+ <span class="r-menu-title">
98
+ {$item_icon} {$item_title}
99
+ </span>
100
+ {BEGIN item_haschildren2}
101
+ {BEGIN item_expand_icon}
102
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
103
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
104
+ {END item_expand_icon}
105
+ {END item_haschildren2}
106
+ </span>
107
+ </a>
108
+ {BEGIN item_showchildren3}
109
+ <ul class="
110
+ nav collapse
111
+ {$submenu_class}"
112
+ id="submenu{$item_id}" data-menulevel="3">
113
+ {BEGIN item_children3}
114
+ {BEGIN item_menulink3}
115
+ <li class="
116
+ {$item_current}"
117
+ >
118
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
119
+ {$item_separator}
120
+ <span class="r-menu-link ">
121
+ <span class="r-menu-title">
122
+ {$item_icon} {$item_title}
123
+ </span>
124
+ {BEGIN item_haschildren3}
125
+ {BEGIN item_expand_icon}
126
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
127
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
128
+ {END item_expand_icon}
129
+ {END item_haschildren3}
130
+ </span>
131
+ </a>
132
+ {BEGIN item_showchildren4}
133
+ <ul class="
134
+ nav collapse
135
+ {$submenu_class}"
136
+ id="submenu{$item_id}" data-menulevel="4">
137
+ {BEGIN item_children4}
138
+ {BEGIN item_menulink4}
139
+ <li class="
140
+ {$item_current}"
141
+ >
142
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
143
+ {$item_separator}
144
+ <span class="r-menu-link ">
145
+ <span class="r-menu-title">
146
+ {$item_icon} {$item_title}
147
+ </span>
148
+ {BEGIN item_haschildren4}
149
+ {BEGIN item_expand_icon}
150
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
151
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
152
+ {END item_expand_icon}
153
+ {END item_haschildren4}
154
+ </span>
155
+ </a>
156
+ {BEGIN item_showchildren5}
157
+ <ul class="
158
+ nav collapse
159
+ {$submenu_class}"
160
+ id="submenu{$item_id}" data-menulevel="5">
161
+ {BEGIN item_children5}
162
+ {BEGIN item_menulink5}
163
+ <li class="
164
+ {$item_current}"
165
+ >
166
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
167
+ {$item_separator}
168
+ <span class="r-menu-link ">
169
+ <span class="r-menu-title">
170
+ {$item_icon} {$item_title}
171
+ </span>
172
+ {BEGIN item_haschildren5}
173
+ {BEGIN item_expand_icon}
174
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
175
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
176
+ {END item_expand_icon}
177
+ {END item_haschildren5}
178
+ </span>
179
+ </a>
180
+ </li>
181
+ {END item_menulink5}
182
+ {END item_children5}
183
+ </ul>
184
+ {END item_showchildren5}
185
+ </li>
186
+ {END item_menulink4}
187
+ {END item_children4}
188
+ </ul>
189
+ {END item_showchildren4}
190
+ </li>
191
+ {END item_menulink3}
192
+ {END item_children3}
193
+ </ul>
194
+ {END item_showchildren3}
195
+ </li>
196
+ {END item_menulink2}
197
+ {END item_children2}
198
+ </ul>
199
+ {END item_showchildren2}
200
+ </li>
201
+ {END item_children1}
202
+ </ul>
203
+ {END menuitems_main}
204
+ </div>
205
+
206
+ {END left_block}
207
+ </div> </div>
208
+ <div class="r-content-col" data-resize-left="leftbar">
209
+ <div class="r-topheader" data-resize-name="topbar">
210
+ {BEGIN supertop_block}
211
+ <nav class="navbar navbar-default"
212
+ data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" >
213
+
214
+
215
+ <span class="navbar-form navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="expand_menu_button" {$item_expand_menu_button} data-topcell-item-type="expand_menu_button" >
216
+ <span data-itemtype="expand_menu_button" data-itemid="expand_menu_button" {$item_expand_menu_button} data-pageid="{$pageid}" data-small data-button-item>
217
+ <a type="button" title="Show menu" class="btn-link
218
+ glyphicon glyphicon-menu-hamburger" href="#" >
219
+
220
+ </a>
221
+ </span>
222
+ </span>
223
+
224
+ <span class="navbar-form navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
225
+ <span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button} data-pageid="{$pageid}" data-small data-button-item>
226
+ <a type="button" title="Collapse" class="btn-link
227
+ glyphicon glyphicon-triangle-left" href="#" >
228
+
229
+ </a>
230
+ </span>
231
+ </span>
232
+
233
+
234
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
235
+ {BEGIN guestloginbutton}
236
+ <span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login} data-pageid="{$pageid}" data-small data-button-item>
237
+ <a type="button" title="" class="btn btn-primary
238
+ " href="#" {$guestloginlink_attrs} >
239
+ Login </a>
240
+ </span>
241
+ {END guestloginbutton}
242
+ </span>
243
+
244
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
245
+ {BEGIN loggedas_message}
246
+ <span data-itemtype="username_button" data-itemid="username_button" {$item_username_button} data-pageid="{$pageid}" data-small data-button-item>
247
+ <span class="dropdown ">
248
+ <button type="button" title="" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
249
+ {BEGIN userbutton_icon} <span class="glyphicon glyphicon-user"></span>
250
+ {END userbutton_icon}{$userbutton_image} {$username} <span class="caret"></span>
251
+ </button>
252
+ <ul class="dropdown-menu">
253
+ {BEGIN userinfo_link}
254
+ <li data-itemtype="userinfo_link" data-itemid="userinfo_link" {$item_userinfo_link} data-pageid="{$pageid}" data-small >
255
+ <a href="userinfo.php" title="" >
256
+
257
+ User Profile
258
+ </a>
259
+ </li>
260
+ {END userinfo_link}
261
+ {BEGIN logoutbutton}
262
+ <li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link} data-pageid="{$pageid}" data-small >
263
+ <a href="#" {$logoutlink_attrs} title="" >
264
+
265
+ Log out
266
+ </a>
267
+ </li>
268
+ {END logoutbutton}
269
+ {BEGIN adminarea_link}
270
+ <li data-itemtype="adminarea_link" data-itemid="adminarea_link" {$item_adminarea_link} data-pageid="{$pageid}" data-small >
271
+ <a href="admin_rights_list.php" title="" >
272
+
273
+ Admin Area
274
+ </a>
275
+ </li>
276
+ {END adminarea_link}
277
+ </ul>
278
+ </span>
279
+ </span>
280
+ {END loggedas_message}
281
+ </span>
282
+ </nav>
283
+ {END supertop_block}
284
+ {$locking}
285
+ </div>
286
+ <div class="r-body" data-resize-top="topbar" data-body-width="standard">
287
+ {$header}
288
+ <div class="r-top">
289
+ {BEGIN top_block}
290
+ <div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" >
291
+
292
+ <div class="row">
293
+
294
+ <div
295
+ data-cellId="top_c1" data-pageid="{$pageid}" {$cell_top_c1}
296
+ class=" r-ori-vert col-md-12
297
+
298
+ ">
299
+
300
+ <h2 data-itemtype="edit_header" data-itemid="edit_header" {$item_edit_header} data-pageid="{$pageid}" >{$pagetitlelabel agett_prompt edit}</h2>
301
+ </div> </div>
302
+ </div>
303
+ {END top_block}
304
+ </div>
305
+ <div class="r-above">
306
+ {BEGIN above-grid_block}
307
+ <div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$form_above-grid} data-pageid="{$pageid}" >
308
+
309
+ <div class="row">
310
+
311
+ <div
312
+ data-cellId="above-grid_c1" data-pageid="{$pageid}" {$cell_above-grid_c1}
313
+ class=" r-ori-vert col-md-12
314
+
315
+ ">
316
+ {BEGIN firstAboveGridCell}
317
+
318
+ <div data-itemtype="edit_message" data-itemid="edit_message" {$item_edit_message} data-pageid="{$pageid}" class="alert {$message_class}" role="alert">
319
+ <h5>{$message}</h5>
320
+ <div>
321
+ {BEGIN message_back_button}
322
+ <button class="btn btn-sm btn-default" {$backbutton_attrs}>Back to list</button>
323
+ {END message_back_button}
324
+ {BEGIN message_view_page_button}
325
+ <a class="btn btn-sm btn-default" href="agett_prompt_view.php?{$editlink}" {$view_page_button_attrs}>View</a>
326
+ {END message_view_page_button}
327
+ </div>
328
+ </div>
329
+ {END firstAboveGridCell}
330
+ </div> </div>
331
+ </div>
332
+ {END above-grid_block}
333
+ </div>
334
+ <div class="r-grid">
335
+ {BEGIN grid_tabs}
336
+ <ul class="nav nav-tabs bsgrid_tabs">
337
+ {$grid_tabs_content}
338
+ </ul>
339
+ {END grid_tabs}
340
+ {BEGIN grid_block}
341
+
342
+
343
+
344
+
345
+
346
+
347
+ <table
348
+ data-body-align="left"
349
+ data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}"
350
+ class="r-edit-form" cellpadding="0" cellspacing="0"
351
+ {$grid_hiddenattr}
352
+ data-form-width="1"
353
+
354
+ data-v-width="4"
355
+ >
356
+ <tbody>
357
+ <tr {$row_grid_0} >
358
+
359
+
360
+ {BEGIN cellblock_grid_c3}
361
+ <td
362
+ {$cell_grid_c3}
363
+ class=" r-ori-vert"
364
+
365
+ data-single
366
+ data-fullwidth
367
+
368
+ data-cellId="grid_c3" data-pageid="{$pageid}"
369
+ data-v-cell="4"
370
+
371
+ >
372
+ <div edit-form-cell class="clearfix">
373
+
374
+ {BEGIN prompt_fieldblock}
375
+
376
+
377
+ <div class="r-integrated-field form-group clearfix {$fielddispclass_prompt} r-vertical-field"
378
+ data-signal-error-for="prompt{$id}" {$required_attr_prompt}
379
+ data-itemtype="integrated_edit_field" data-itemid="integrated_edit_field" {$item_integrated_edit_field} data-pageid="{$pageid}" data-field="prompt" data-fieldname="prompt" >
380
+
381
+ <label class="r-edit-label control-label" for="{$labelfor_prompt}">
382
+ {BEGIN prompt_label}{$label agett_prompt prompt }{END prompt_label}
383
+ <span class="icon-required"></span>
384
+ </label>
385
+ <div class="r-edit-field">
386
+ {$prompt_editcontrol} </div>
387
+ <div class="r-edit-tooltip" data-helpfor="prompt" {$tooltipAttr agett_prompt prompt } >
388
+ <div class="text-muted" >
389
+ {$tooltip agett_prompt prompt } </div>
390
+ </div>
391
+ </div>
392
+
393
+
394
+ {END prompt_fieldblock}
395
+
396
+ </td>
397
+ {END cellblock_grid_c3}
398
+ </tr>
399
+ </tbody></table>
400
+ {END grid_block}
401
+ </div>
402
+ <div class="r-below">
403
+ {BEGIN below-grid_block}
404
+ <div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" >
405
+
406
+ <div class="row">
407
+
408
+ <div
409
+ data-cellId="below-grid_c1" data-pageid="{$pageid}" {$cell_below-grid_c1}
410
+ class=" col-md-6
411
+
412
+ ">
413
+
414
+ {BEGIN save_edit}
415
+ <span data-itemtype="edit_save" data-itemid="edit_save" {$item_edit_save} data-pageid="{$pageid}" data-small data-button-item>
416
+ <a type="button" title="" class="btn btn-primary
417
+ " {$savebutton_attrs} >
418
+ Save </a>
419
+ </span>
420
+ {END save_edit}
421
+
422
+ {BEGIN back_button}
423
+ <span data-itemtype="edit_back_list" data-itemid="edit_back_list" {$item_edit_back_list} data-pageid="{$pageid}" data-small data-button-item>
424
+ <a type="button" title="" class="btn btn-default
425
+ " {$backbutton_attrs} >
426
+ Back to list </a>
427
+ </span>
428
+ {END back_button}
429
+
430
+ {BEGIN close_button}
431
+ <span data-itemtype="edit_close" data-itemid="edit_close" {$item_edit_close} data-pageid="{$pageid}" data-small data-button-item>
432
+ <a type="button" title="" class="btn btn-default
433
+ " {$closebutton_attrs} >
434
+ Cancel </a>
435
+ </span>
436
+ {END close_button}
437
+ </div>
438
+ <div
439
+ data-cellId="below-grid_c2" data-pageid="{$pageid}" {$cell_below-grid_c2}
440
+ class="r-align-right r-ori-vert col-md-6
441
+
442
+ ">
443
+
444
+ <span data-itemtype="hamburger" data-itemid="hamburger" {$item_hamburger} data-pageid="{$pageid}" data-small data-button-item>
445
+ <span class="dropdown dropup">
446
+ <button type="button" title="" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
447
+ <span class="glyphicon glyphicon-menu-hamburger"></span>
448
+ <span class="caret"></span>
449
+ </button>
450
+ <ul class="dropdown-menu">
451
+ <li data-itemtype="edit_reset" data-itemid="edit_reset" {$item_edit_reset} data-pageid="{$pageid}" data-small >
452
+ <a {$resetbutton_attrs} title="" >
453
+
454
+ Reset
455
+ </a>
456
+ </li>
457
+ {BEGIN view_page_button}
458
+ <li data-itemtype="edit_view" data-itemid="edit_view" {$item_edit_view} data-pageid="{$pageid}" data-small >
459
+ <a href="agett_prompt_view.php?{$editlink}" {$view_page_button_attrs} title="" >
460
+
461
+ View
462
+ </a>
463
+ </li>
464
+ {END view_page_button}
465
+ </ul>
466
+ </span>
467
+ </span>
468
+ </div> </div>
469
+ </div>
470
+ {END below-grid_block}
471
+ </div>
472
+
473
+
474
+
475
+
476
+ {$footer}
477
+ </div>
478
+ </div>
479
+ <div class="r-body-shadow">
480
+ </div>
481
+ </div>
482
+ {END body}
483
+ </body>
484
+ </html>
php/public/templates/agett_prompt_export.htm ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html {$html_attrs}>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{$pagetitle}</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8
+ <base href="{$projectPath}">
9
+ <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
10
+ {BEGIN rtlCSS}
11
+ <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
12
+ {END rtlCSS}
13
+ {BEGIN styleCSSFiles}
14
+ <link REL="stylesheet" href="{$stylepath}" type="text/css">
15
+ {END styleCSSFiles}
16
+
17
+ </head>
18
+
19
+ <body class="{$stylename} function-export" >
20
+ {BEGIN body}
21
+ {$header}
22
+ <style>
23
+ {$containerCss}
24
+ </style>
25
+ <div class="r-panel-page">
26
+ {BEGIN supertop_block}
27
+ <div class="r-form" data-location="supertop" id="form_supertop_{$pageid}" data-makeup="panel" {$form_supertop} data-pageid="{$pageid}" >
28
+
29
+ <div class="row">
30
+
31
+ <div
32
+ data-cellId="supertop_c1" data-pageid="{$pageid}" {$cell_supertop_c1}
33
+ class="r-align-center r-ori-vert col-md-12
34
+
35
+ ">
36
+ </div> </div>
37
+ </div>
38
+ {END supertop_block}
39
+ <div class="bs-pagepanel panel panel-primary">
40
+ <div class="panel-heading">
41
+ {BEGIN top_block}
42
+ <div class="panel-title r-panel-top row" data-location="top" id="form_top_{$pageid}" data-makeup="panel" {$form_top} data-pageid="{$pageid}" >
43
+
44
+
45
+ <div
46
+ data-cellId="top_c1" data-pageid="{$pageid}" {$cell_top_c1}
47
+ class=" r-ori-vert col-md-12
48
+
49
+ ">
50
+
51
+ <h3 class="panel-title" data-itemtype="export_header" data-itemid="export_header" {$item_export_header} data-pageid="{$pageid}" >{$pagetitlelabel agett_prompt export}</h3>
52
+ </div> </div>
53
+ {END top_block}
54
+ </div>
55
+ <div class="panel-body">
56
+ {BEGIN grid_block}
57
+ <div class="col-sm-12 col-md-12">
58
+ {BEGIN range_block}
59
+ <div class="row">
60
+ <div class="col-md-4 col-sm-4">
61
+ <div class="radio bs-desktop-right">
62
+ Data range </div>
63
+ </div>
64
+ <div class="col-md-8 col-sm-8">
65
+ <div class="radio">
66
+ <label>
67
+ <input type="radio" name="records" value="all" checked="checked" {$allpageradio_attrs}>
68
+ All records </label>
69
+ </div>
70
+ <div class="radio">
71
+ <label>
72
+ <input type="radio" name="records" value="page" {$pageradio_attrs}>
73
+ Current page only </label>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ {END range_block}
78
+
79
+ <div class="row">
80
+ <div class="col-sm-4 col-md-4">
81
+ <div class="radio bs-desktop-right">
82
+ Data format </div>
83
+ </div>
84
+ <div class="col-sm-8 col-md-8">
85
+ <div class="radio">
86
+ <label>
87
+ <input type="radio" name="txtformatting" value="formatted" checked>
88
+ formatted values </label>
89
+ </div>
90
+ <div class="radio">
91
+ <label>
92
+ <input type="radio" name="txtformatting" value="raw">
93
+ raw values </label>
94
+ </div>
95
+ </div>
96
+ </div>
97
+
98
+ <div class="row">
99
+ <div class="col-sm-4 col-md-4">
100
+ <div class="radio bs-desktop-right">
101
+ Output format </div>
102
+ </div>
103
+ <div class="col-md-8 col-sm-8">
104
+
105
+ <div class="radio">
106
+ {BEGIN groupExcel}
107
+ <label>
108
+ <input TYPE="radio" NAME="type" VALUE="excel2007" CHECKED {$excelradio_attrs}>
109
+ <span> <img src="images/excel.gif" align="absmiddle" alt=" ">&nbsp;Excel 2007</span>
110
+ </label>
111
+ {END groupExcel}
112
+ </div>
113
+ <div class="radio">
114
+ <label>
115
+ <input TYPE="radio" NAME="type" VALUE="word" {$wordradio_attrs}>
116
+ <span> <img src="images/word.gif" align="absmiddle" alt=" ">&nbsp;Word</span>
117
+ </label>
118
+ </div>
119
+ <div class="radio">
120
+ <label>
121
+ <input TYPE="radio" NAME="type" VALUE="csv" {$csvradio_attrs}>
122
+ <span> <img src="images/csv.gif" align="absmiddle" alt=" ">&nbsp;CSV (comma separated values)</span>
123
+ </label>
124
+ </div>
125
+
126
+ </div>
127
+ </div>
128
+
129
+ </div>
130
+ {END grid_block}
131
+ {BEGIN footer_block}
132
+ <div class="r-form" data-location="footer" id="form_footer_{$pageid}" data-makeup="panel" {$form_footer} data-pageid="{$pageid}" >
133
+
134
+ <div class="row">
135
+
136
+ <div
137
+ data-cellId="footer_c1" data-pageid="{$pageid}" data-page="agett_prompt_export" {$cell_footer_c1}
138
+ class=" r-ori-vert col-md-6
139
+
140
+ ">
141
+ </div>
142
+ <div
143
+ data-cellId="footer_c2" data-pageid="{$pageid}" data-page="agett_prompt_export" {$cell_footer_c2}
144
+ class=" col-md-6
145
+
146
+ ">
147
+
148
+ <span data-itemtype="export_export" data-itemid="export_export" {$item_export_export} data-pageid="{$pageid}" data-small data-button-item>
149
+ <a type="button" title="" class="btn btn-primary
150
+ " href="#" {$exportlink_attrs} >
151
+ Export </a>
152
+ </span>
153
+
154
+ {BEGIN cancel_button}
155
+ <span data-itemtype="export_cancel" data-itemid="export_cancel" {$item_export_cancel} data-pageid="{$pageid}" data-small data-button-item>
156
+ <a type="button" title="" class="btn btn-default
157
+ " id="cancelButton{$id}" href="#" >
158
+ Cancel </a>
159
+ </span>
160
+ {END cancel_button}
161
+ </div> </div>
162
+ </div>
163
+ {END footer_block}
164
+ </div>
165
+ </div>
166
+
167
+ </div>
168
+ {$footer}
169
+ {END body}
170
+ </body>
171
+ </html>
php/public/templates/agett_prompt_import.htm ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html {$html_attrs}>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{$pagetitle}</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8
+ <base href="{$projectPath}">
9
+ <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
10
+ {BEGIN rtlCSS}
11
+ <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
12
+ {END rtlCSS}
13
+ {BEGIN styleCSSFiles}
14
+ <link REL="stylesheet" href="{$stylepath}" type="text/css">
15
+ {END styleCSSFiles}
16
+
17
+ </head>
18
+
19
+ <body class="{$stylename} function-import" >
20
+ {BEGIN body}
21
+ {$header}
22
+ <style>
23
+ {$containerCss}
24
+ </style>
25
+ <div class="r-panel-page">
26
+ {BEGIN supertop_block}
27
+ <div class="r-form" data-location="supertop" id="form_supertop_{$pageid}" data-makeup="panel" {$form_supertop} data-pageid="{$pageid}" >
28
+
29
+ <div class="row">
30
+
31
+ <div
32
+ data-cellId="supertop_c1" data-pageid="{$pageid}" {$cell_supertop_c1}
33
+ class="r-align-center r-ori-vert col-md-12
34
+
35
+ ">
36
+ </div> </div>
37
+ </div>
38
+ {END supertop_block}
39
+ <div class="bs-pagepanel panel panel-primary">
40
+ <div class="panel-heading">
41
+ {BEGIN top_block}
42
+ <div class="panel-title r-panel-top row" data-location="top" id="form_top_{$pageid}" data-makeup="panel" {$form_top} data-pageid="{$pageid}" >
43
+
44
+
45
+ <div
46
+ data-cellId="top_c1" data-pageid="{$pageid}" {$cell_top_c1}
47
+ class=" r-ori-vert col-md-12
48
+
49
+ ">
50
+
51
+ <h3 class="panel-title" data-itemtype="import_header" data-itemid="import_header" {$item_import_header} data-pageid="{$pageid}" >{$pagetitlelabel agett_prompt import}</h3>
52
+ </div> </div>
53
+ {END top_block}
54
+ </div>
55
+ <div class="panel-body">
56
+ <!-- bsimportheader_text data-brick="importheader_text" data-pageid="{$pageid}" {$importheader_text_hiddenattr}-->
57
+ <div id="importheaderText{$id}" class="form-group">
58
+ Drag and drop a comma-separated (.csv) or Excel (.xlsx) file or choose an option below. </div>
59
+
60
+ <!-- bsimportfields data-brick="importfields" data-pageid="{$pageid}" {$importfields_hiddenattr}-->
61
+ <div id="importFields{$id}" class="form-group">
62
+ <div id="importUploadFallback{$id}" style="display: none;">
63
+ <table class="fieldGrid">
64
+ <tr>
65
+ <td>
66
+ Select file with data. </td>
67
+ <td>
68
+ <input type="File" id="importFile{$id}" name="importFile{$id}">
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+
74
+ <div class="rnr-import-settings">
75
+ <button type="button" class="btn btn-default" id="uploadImportFile{$id}">Browse...</button>
76
+ </div>
77
+
78
+ <div id="importDropzone{$id}" class="rnr-dragndrop-area" style="display: none;">
79
+ <div class="rnr-dragtext"> Drag files here </div>
80
+ </div>
81
+
82
+ <div class="rnr-import-settings">
83
+ <button type="button" class="btn btn-default" id="switchToTextInsertion{$id}">Copy and paste text</button>
84
+ </div>
85
+ </div>
86
+
87
+ <!-- bsimport_rawtext_control brickname_attr data-brick="import_rawtext_control" data-pageid="{$pageid}" {$import_rawtext_control_hiddenattr}-->
88
+ <div id="copyAndPasteText{$id}" class="form-group" style="display:none;">
89
+ <div>Copy and Paste your text data here:</div>
90
+ <textarea class="rnr-import-textarea" id="importText{$id}">
91
+ </textarea>
92
+ </div>
93
+
94
+ <!-- bsimport_preview data-brick="import_preview" data-pageid="{$pageid}" {$import_preview_hiddenattr}-->
95
+ <div id="importPreview{$id}" class="form-group" style="display:none;">
96
+ <div id="importSettings{$id}" class="rnr-import-settings form-group">
97
+ <div class="rnr-is-control checkbox">
98
+ <label>
99
+ <input class="rnr-checkbox" id="headersLineOption{$id}" name="headersLineOption" type="checkbox">
100
+ Column headers in line # <input type="number" class="rnr-import-input-small" id="headersLineNumber{$id}" value="1">
101
+ </label>
102
+ </div>
103
+ <div class="rnr-is-control checkbox">
104
+ <label>
105
+ <input class="rnr-checkbox" id="skipLinesOption{$id}" name="skipLinesOption" type="checkbox">
106
+ {$messagepart IMPORT_SKIP_N_LINES 1}
107
+ <input type="number" class="rnr-import-input-small" id="skipLinesAmount{$id}" value="1">
108
+ {$messagepart IMPORT_SKIP_N_LINES 2}
109
+ </label>
110
+ </div>
111
+
112
+
113
+ <ul id="delimiterSettings{$id}" style="display:none;" class="rnr-is-control list-inline">
114
+ <li class="radio">
115
+ <label>
116
+ <input name="importDelimiter" class="importDelimiters" type="radio" value=",">
117
+ Comma </label>
118
+ </li>
119
+ <li class="radio">
120
+ <label>
121
+ <input name="importDelimiter" class="importDelimiters" type="radio" value="&#9;">
122
+ Tab </label>
123
+ </li>
124
+ <li class="radio">
125
+ <label>
126
+ <input name="importDelimiter" class="importDelimiters" type="radio" value="other">
127
+ Other </label>
128
+ <input id="customDelimiter{$id}" value=";" type="text">
129
+ </li>
130
+ </ul>
131
+
132
+ <div id="dateFormatSettings{$id}" class="rnr-is-control" style="display:none;">
133
+ <label>Date format:</label>
134
+ <input id="importDateFormat{$id}" type="text">
135
+ </div>
136
+ </div>
137
+
138
+ <div id="importGridHead{$id}" class="rnr-import-head-preview">
139
+ </div>
140
+ <div id="importGridBody{$id}" class="rnr-import-body-preview form-group">
141
+ <table id="importPreviewBodyTable{$id}"></table>
142
+ </div>
143
+ <div id="importErrorMessage{$id}" class="alert alert-danger" style="display:none;"></div>
144
+ </div>
145
+
146
+ <!-- bsimport_process data-brick="import_process" data-pageid="{$pageid}" {$import_process_hiddenattr} -->
147
+ <div id="importProgress{$id}" class="rnr-import-progress form-group" style="display:none;">
148
+ </div>
149
+
150
+ <!-- bsimport_results data-brick="import_results" data-pageid="{$pageid}" {$import_results_hiddenattr}-->
151
+ <div id="reportText{$id}" class="rnr-import-report form-group" style="display:none;">
152
+ </div>
153
+
154
+ <!-- bsimportbuttons data-brick="importbuttons" data-pageid="{$pageid}" {$importbuttons_hiddenattr}-->
155
+ <div id="importButtons{$id}">
156
+ <div class="rnr-buttons-right">
157
+ <button type="button" class="btn btn-default" id="backToList{$id}">
158
+ Back to list </button>
159
+ <button type="button" class="btn btn-default" id="newImport{$id}" style="display: none;">
160
+ New import </button>
161
+ </div>
162
+ <div class="rnr-buttons-left">
163
+ <button type="button" class="btn btn-primary disabled" id="continueTextImport{$id}" style="display: none;">
164
+ Continue </button>
165
+ <button type="button" class="btn btn-primary" id="importButton{$id}" style="display: none;">
166
+ Import Data </button>
167
+ <button type="button" class="btn btn-default" id="backTo{$id}" style="display: none;">
168
+ Back </button>
169
+ <button type="button" class="btn btn-default" id="saveReport{$id}" style="display: none;">
170
+ Save Report </button>
171
+ <button type="button" class="btn btn-default errorReportButtons{$id}" id="saveUnprocessedData{$id}" style="display: none;">
172
+ Download unprocessed data </button>
173
+ <button type="button" class="btn btn-default errorReportButtons{$id}" id="saveErrorReport{$id}" style="display: none;">
174
+ Download error log </button>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </div>
179
+
180
+ </div>
181
+ {$footer}
182
+ {END body}
183
+ </body>
184
+ </html>
php/public/templates/agett_prompt_list.htm ADDED
@@ -0,0 +1,967 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html {$html_attrs}>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{$pagetitle}</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8
+ <base href="{$projectPath}">
9
+ <link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
10
+ {BEGIN rtlCSS}
11
+ <link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
12
+ {END rtlCSS}
13
+ {BEGIN styleCSSFiles}
14
+ <link REL="stylesheet" href="{$stylepath}" type="text/css">
15
+ {END styleCSSFiles}
16
+
17
+ </head>
18
+
19
+ <body class="{$stylename} function-list"
20
+ >
21
+ {BEGIN body}
22
+ <style>
23
+ {$containerCss}
24
+ </style>
25
+ <div class="r-vbar-page">
26
+ <div data-width="250px" class="r-left clearfix {$leftbar_class}" >
27
+ <div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}">
28
+ {BEGIN left_block}
29
+
30
+
31
+
32
+
33
+ <div data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell class="clearfix " data-itemid="logo" {$item_logo}>
34
+ {BEGIN logo_block}
35
+ <A data-itemtype="logo" data-itemid="logo" {$item_logo} data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
36
+ {$logo}
37
+ </A>
38
+ {END logo_block}
39
+ <button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">
40
+ <span class="sr-only">Toggle navigation</span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ </div>
44
+
45
+
46
+
47
+ <div class="clearfix " data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell data-itemid="expand_button" {$item_expand_button} data-topcell-item-type="expand_button" >
48
+ <span data-itemtype="expand_button" data-itemid="expand_button" {$item_expand_button} data-pageid="{$pageid}" data-small data-button-item>
49
+ <a type="button" title="Expand" class="btn btn-link
50
+ " href="#" >
51
+ <span class="glyphicon glyphicon-triangle-right"></span>
52
+ </a>
53
+ </span>
54
+ </div>
55
+
56
+
57
+
58
+
59
+
60
+ <div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
61
+ {BEGIN menuitems_main}
62
+ <ul data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}" class="r-menu nav menu-treelike"
63
+ data-menulevel="1"
64
+ >
65
+
66
+ {BEGIN item_children1}
67
+ <li class="
68
+ {$item_current}">
69
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline data-menu-top >
70
+ {$item_separator}
71
+ <span class="r-menu-link r-menu-expanded ">
72
+ <span class="r-menu-title">
73
+ {$item_icon} {$item_title}
74
+ </span>
75
+ {BEGIN item_haschildren2}
76
+ {BEGIN item_expand_icon}
77
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
78
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
79
+ {END item_expand_icon}
80
+ {END item_haschildren2}
81
+ </span>
82
+ <span class="r-menu-collapsed">{$item_collicon}{$item_firstcap}</span>
83
+ </a>
84
+ {BEGIN item_showchildren2}
85
+ <ul class="
86
+ nav collapse
87
+ {$submenu_class}"
88
+ id="submenu{$item_id}" data-menulevel="2">
89
+ {BEGIN item_children2}
90
+ {BEGIN item_menulink2}
91
+ <li class="
92
+ {$item_current}"
93
+ >
94
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
95
+ {$item_separator}
96
+ <span class="r-menu-link ">
97
+ <span class="r-menu-title">
98
+ {$item_icon} {$item_title}
99
+ </span>
100
+ {BEGIN item_haschildren2}
101
+ {BEGIN item_expand_icon}
102
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
103
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
104
+ {END item_expand_icon}
105
+ {END item_haschildren2}
106
+ </span>
107
+ </a>
108
+ {BEGIN item_showchildren3}
109
+ <ul class="
110
+ nav collapse
111
+ {$submenu_class}"
112
+ id="submenu{$item_id}" data-menulevel="3">
113
+ {BEGIN item_children3}
114
+ {BEGIN item_menulink3}
115
+ <li class="
116
+ {$item_current}"
117
+ >
118
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
119
+ {$item_separator}
120
+ <span class="r-menu-link ">
121
+ <span class="r-menu-title">
122
+ {$item_icon} {$item_title}
123
+ </span>
124
+ {BEGIN item_haschildren3}
125
+ {BEGIN item_expand_icon}
126
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
127
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
128
+ {END item_expand_icon}
129
+ {END item_haschildren3}
130
+ </span>
131
+ </a>
132
+ {BEGIN item_showchildren4}
133
+ <ul class="
134
+ nav collapse
135
+ {$submenu_class}"
136
+ id="submenu{$item_id}" data-menulevel="4">
137
+ {BEGIN item_children4}
138
+ {BEGIN item_menulink4}
139
+ <li class="
140
+ {$item_current}"
141
+ >
142
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
143
+ {$item_separator}
144
+ <span class="r-menu-link ">
145
+ <span class="r-menu-title">
146
+ {$item_icon} {$item_title}
147
+ </span>
148
+ {BEGIN item_haschildren4}
149
+ {BEGIN item_expand_icon}
150
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
151
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
152
+ {END item_expand_icon}
153
+ {END item_haschildren4}
154
+ </span>
155
+ </a>
156
+ {BEGIN item_showchildren5}
157
+ <ul class="
158
+ nav collapse
159
+ {$submenu_class}"
160
+ id="submenu{$item_id}" data-menulevel="5">
161
+ {BEGIN item_children5}
162
+ {BEGIN item_menulink5}
163
+ <li class="
164
+ {$item_current}"
165
+ >
166
+ <a {$item_attrs} title="{$item_tooltip}" data-menu-link data-menu-v data-menu-inline >
167
+ {$item_separator}
168
+ <span class="r-menu-link ">
169
+ <span class="r-menu-title">
170
+ {$item_icon} {$item_title}
171
+ </span>
172
+ {BEGIN item_haschildren5}
173
+ {BEGIN item_expand_icon}
174
+ <span class="r-menu-expand-icon fa fa-angle-left"></span>
175
+ <span class="r-menu-mobile-expand-icon fa fa-angle-left"></span>
176
+ {END item_expand_icon}
177
+ {END item_haschildren5}
178
+ </span>
179
+ </a>
180
+ </li>
181
+ {END item_menulink5}
182
+ {END item_children5}
183
+ </ul>
184
+ {END item_showchildren5}
185
+ </li>
186
+ {END item_menulink4}
187
+ {END item_children4}
188
+ </ul>
189
+ {END item_showchildren4}
190
+ </li>
191
+ {END item_menulink3}
192
+ {END item_children3}
193
+ </ul>
194
+ {END item_showchildren3}
195
+ </li>
196
+ {END item_menulink2}
197
+ {END item_children2}
198
+ </ul>
199
+ {END item_showchildren2}
200
+ </li>
201
+ {END item_children1}
202
+ </ul>
203
+ {END menuitems_main}
204
+ </div>
205
+
206
+
207
+
208
+ <div class="clearfix r-ori-vert" data-cellId="left_c1" data-pageid="{$pageid}" data-itemid="search_panel" {$item_search_panel} data-topcell-item-type="search_panel" >
209
+ <!-- Begin Search panel content -->
210
+ <div class="searchOptions panel panel-primary searchPanelContainer " {$srchOpt_attrs} data-itemtype="search_panel" data-itemid="search_panel" {$item_search_panel} data-pageid="{$pageid}" >
211
+
212
+ <div class="panel-heading">
213
+ <div class="btn-group r-sp-addfield" id="addSearchFieldButton{$id}">
214
+ <button id="showHideControlChooseMenu{$id}" type="button" class="btn btn-default dropdown-toggle btn-sm )" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
215
+ Search in <span class="caret"></span>
216
+ </button>
217
+ </div>
218
+
219
+
220
+ <div class="btn-group r-sp-options" id="searchPanelOptions{$id}">
221
+ <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
222
+ <span class="glyphicon glyphicon glyphicon-option-vertical"></span>
223
+ </button>
224
+ <ul class="dropdown-menu dropdown-left">
225
+ <li id="showHideSearchType{$id}" {$showHideCtrlsOpt_attrs}><a>Show options</a></li>
226
+ <li role="separator" class="divider"></li>
227
+ <li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAll" {$all_checkbox}><label for="radioAll"><span class="glyphicon">&nbsp;</span>all conditions</label></a></li>
228
+ <li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAny" {$any_checkbox}><label for="radioAny"><span class="glyphicon">&nbsp;</span>any condition</label></a></li>
229
+ <li role="separator" class="divider"></li>
230
+ <li><a class="close-button"><span class="glyphicon glyphicon-remove">&nbsp;</span>hide</a></li>
231
+ </ul>
232
+ </div>
233
+
234
+
235
+ </div>
236
+ <div class="panel-body controlsBlock" {$bottomSearchButt_attrs} >
237
+
238
+
239
+
240
+ {BEGIN searchCtrlBlock}
241
+ <div class="srchPanelRow form-group" {$filterRow_attrs}>
242
+ <label>{$fLabel}</label> {$delCtrlButt}
243
+ <span class="rnr-searchtype">{$searchtype}</span>
244
+ <span class="rnr-searchcontrol">{$searchcontrol}</span>
245
+ <span class="rnr-searchcontrol">{$searchcontrol1}</span>
246
+ </div>
247
+ {END searchCtrlBlock}
248
+ {BEGIN searchCtrlBlock_id}
249
+
250
+
251
+ <div class="form-group srchPanelRow {$filterRow_class_id}" {$filterRow_attrs_id}>
252
+ <label>{$label agett_prompt id }</label>
253
+
254
+ {$delCtrlButt}
255
+
256
+ <span class="rnr-searchtype">{$searchtype_id}</span>
257
+ <span class="rnr-searchcontrol">{$searchcontrol_id}</span>
258
+ <span class="rnr-searchcontrol">{$searchcontrol1_id}</span>
259
+ </div>
260
+ {END searchCtrlBlock_id}
261
+ {BEGIN searchCtrlBlock_prompt}
262
+
263
+
264
+ <div class="form-group srchPanelRow {$filterRow_class_prompt}" {$filterRow_attrs_prompt}>
265
+ <label>{$label agett_prompt prompt }</label>
266
+
267
+ {$delCtrlButt}
268
+
269
+ <span class="rnr-searchtype">{$searchtype_prompt}</span>
270
+ <span class="rnr-searchcontrol">{$searchcontrol_prompt}</span>
271
+ <span class="rnr-searchcontrol">{$searchcontrol1_prompt}</span>
272
+ </div>
273
+ {END searchCtrlBlock_prompt}
274
+
275
+
276
+ </div>
277
+
278
+ <div class="panel-footer bottomSearchButt" {$bottomSearchButt_attrs}>
279
+ <button class="btn btn-primary btn-sm" id="searchButton{$id}" {$searchbutton_attrs}>Search</button>
280
+
281
+ <button class="btn btn-default btn-sm" {$showAllCont_attrs} {$showallbutton_attrs}>Show all</button>
282
+ </div>
283
+ </div>
284
+ <!-- End Search panel content -->
285
+ </div>
286
+
287
+ {END left_block}
288
+ </div> </div>
289
+ <div class="r-content-col" data-resize-left="leftbar">
290
+ <div class="r-topheader" data-resize-name="topbar">
291
+ {BEGIN supertop_block}
292
+ <nav class="navbar navbar-default"
293
+ data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" >
294
+
295
+
296
+ <span class="navbar-form navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="expand_menu_button" {$item_expand_menu_button} data-topcell-item-type="expand_menu_button" >
297
+ <span data-itemtype="expand_menu_button" data-itemid="expand_menu_button" {$item_expand_menu_button} data-pageid="{$pageid}" data-small data-button-item>
298
+ <a type="button" title="Show menu" class="btn-link
299
+ glyphicon glyphicon-menu-hamburger" href="#" >
300
+
301
+ </a>
302
+ </span>
303
+ </span>
304
+
305
+ <span class="navbar-form navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
306
+ <span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button} data-pageid="{$pageid}" data-small data-button-item>
307
+ <a type="button" title="Collapse" class="btn-link
308
+ glyphicon glyphicon-triangle-left" href="#" >
309
+
310
+ </a>
311
+ </span>
312
+ </span>
313
+
314
+ <span class="navbar-form navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="breadcrumb" {$item_breadcrumb} data-topcell-item-type="breadcrumb" >
315
+ {BEGIN breadcrumb}
316
+ <ol class="breadcrumb" data-itemtype="breadcrumb" data-itemid="breadcrumb" {$item_breadcrumb} data-pageid="{$pageid}">
317
+ <li ><a href="{$crumb_home_link}"><span class="glyphicon glyphicon-home"></span></a>{$crumb_dropdown}</li>
318
+ {BEGIN crumb}
319
+ <li class="{$crumb_item_class}">
320
+ {BEGIN crumb_title_link}
321
+ <a {$crumb_attrs}>{$crumb_title}</a>
322
+ {END crumb_title_link}
323
+ {BEGIN crumb_title_span}
324
+ <span {$crumb_attrs}>{$crumb_title}</span>
325
+ {END crumb_title_span}
326
+ {$crumb_dropdown}
327
+ </li>
328
+ {END crumb}
329
+ </ol>
330
+ {END breadcrumb} </span>
331
+
332
+
333
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="simple_search" {$item_simple_search} data-topcell-item-type="simple_search" >
334
+ <span data-itemtype="simple_search" data-itemid="simple_search" {$item_simple_search} data-pageid="{$pageid}" class="form-group">
335
+
336
+ <div class="input-group">
337
+ {BEGIN searchform_text}
338
+ <input type="search" class="form-control" {$searchfor_attrs} size="25">
339
+ {END searchform_text}
340
+ <span class="input-group-btn">
341
+ {BEGIN searchform_showall}
342
+ <button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs} title="Show all">
343
+ <span class="glyphicon glyphicon-remove"></span>
344
+ </button>
345
+ {END searchform_showall}
346
+
347
+ {BEGIN searchform_search}
348
+ <button {$searchbutton_attrs} class="btn btn-primary" >
349
+ <span class="glyphicon glyphicon-search"></span>
350
+ </button>
351
+ {END searchform_search}
352
+ </span>
353
+ </div>
354
+
355
+ </span> </span>
356
+
357
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="list_options" {$item_list_options} data-topcell-item-type="list_options" >
358
+ <span data-itemtype="list_options" data-itemid="list_options" {$item_list_options} data-pageid="{$pageid}" data-small data-button-item>
359
+ <span class="dropdown ">
360
+ <button type="button" title="" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
361
+ <span class="glyphicon glyphicon-cog"></span>
362
+ <span class="caret"></span>
363
+ </button>
364
+ <ul class="dropdown-menu">
365
+ {BEGIN exportselected_link}
366
+ <li data-itemtype="export_selected" data-itemid="export_selected" {$item_export_selected} data-pageid="{$pageid}" data-small >
367
+ <a href="#" {$exportselectedlink_attrs} {$exportselectedlink_span} title="" >
368
+
369
+ Export selected
370
+ </a>
371
+ </li>
372
+ {END exportselected_link}
373
+ {BEGIN deleteselected_link}
374
+ <li data-itemtype="delete_selected" data-itemid="delete_selected" {$item_delete_selected} data-pageid="{$pageid}" data-small >
375
+ <a href="#" {$deleteselectedlink_attrs} {$deleteselectedlink_span} title="" >
376
+
377
+ Delete selected
378
+ </a>
379
+ </li>
380
+ {END deleteselected_link}
381
+ <li role="separator" class="divider"></li> <li data-itemtype="advsearch_link" data-itemid="advsearch_link" {$item_advsearch_link} data-pageid="{$pageid}" data-small >
382
+ <a href="agett_prompt_search.php{$stateLink_full}" {$advsearchlink_attrs} title="" >
383
+
384
+ Advanced search
385
+ </a>
386
+ </li>
387
+ {BEGIN searchPanelTopButtons}
388
+ <li data-itemtype="show_search_panel" data-itemid="show_search_panel" {$item_show_search_panel} data-pageid="{$pageid}" data-small >
389
+ <a id="showOptPanel{$id}" title="" >
390
+
391
+ Show search panel
392
+ </a>
393
+ </li>
394
+ {END searchPanelTopButtons}
395
+ {BEGIN searchPanelTopButtons}
396
+ <li data-itemtype="hide_search_panel" data-itemid="hide_search_panel" {$item_hide_search_panel} data-pageid="{$pageid}" data-small >
397
+ <a id="hideOptPanel{$id}" title="" >
398
+
399
+ Hide search panel
400
+ </a>
401
+ </li>
402
+ {END searchPanelTopButtons}
403
+ <li role="separator" class="divider"></li> {BEGIN export_link}
404
+ <li data-itemtype="export" data-itemid="export" {$item_export} data-pageid="{$pageid}" data-small >
405
+ <a href="#" {$exportlink_attrs} title="" >
406
+
407
+ Export results
408
+ </a>
409
+ </li>
410
+ {END export_link}
411
+ <li role="separator" class="divider"></li> {BEGIN import_link}
412
+ <li data-itemtype="import" data-itemid="import" {$item_import} data-pageid="{$pageid}" data-small >
413
+ <a {$importlink_attrs} href="agett_prompt_import.php{$stateLink_full}" title="" >
414
+
415
+ Import
416
+ </a>
417
+ </li>
418
+ {END import_link}
419
+ </ul>
420
+ </span>
421
+ </span>
422
+ </span>
423
+
424
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
425
+ {BEGIN guestloginbutton}
426
+ <span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login} data-pageid="{$pageid}" data-small data-button-item>
427
+ <a type="button" title="" class="btn btn-primary
428
+ " href="#" {$guestloginlink_attrs} >
429
+ Login </a>
430
+ </span>
431
+ {END guestloginbutton}
432
+ </span>
433
+
434
+ <span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
435
+ {BEGIN loggedas_message}
436
+ <span data-itemtype="username_button" data-itemid="username_button" {$item_username_button} data-pageid="{$pageid}" data-small data-button-item>
437
+ <span class="dropdown ">
438
+ <button type="button" title="" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
439
+ {BEGIN userbutton_icon} <span class="glyphicon glyphicon-user"></span>
440
+ {END userbutton_icon}{$userbutton_image} {$username} <span class="caret"></span>
441
+ </button>
442
+ <ul class="dropdown-menu">
443
+ {BEGIN userinfo_link}
444
+ <li data-itemtype="userinfo_link" data-itemid="userinfo_link" {$item_userinfo_link} data-pageid="{$pageid}" data-small >
445
+ <a href="userinfo.php" title="" >
446
+
447
+ User Profile
448
+ </a>
449
+ </li>
450
+ {END userinfo_link}
451
+ {BEGIN logoutbutton}
452
+ <li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link} data-pageid="{$pageid}" data-small >
453
+ <a href="#" {$logoutlink_attrs} title="" >
454
+
455
+ Log out
456
+ </a>
457
+ </li>
458
+ {END logoutbutton}
459
+ {BEGIN adminarea_link}
460
+ <li data-itemtype="adminarea_link" data-itemid="adminarea_link" {$item_adminarea_link} data-pageid="{$pageid}" data-small >
461
+ <a href="admin_rights_list.php" title="" >
462
+
463
+ Admin Area
464
+ </a>
465
+ </li>
466
+ {END adminarea_link}
467
+ </ul>
468
+ </span>
469
+ </span>
470
+ {END loggedas_message}
471
+ </span>
472
+ </nav>
473
+ {END supertop_block}
474
+ {$locking}
475
+ </div>
476
+ <div class="r-body" data-resize-top="topbar" data-body-width="standard">
477
+ {$header}
478
+ <div class="r-top">
479
+ {BEGIN top_block}
480
+ <div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" >
481
+ </div>
482
+ {END top_block}
483
+ </div>
484
+ <div class="r-above">
485
+ {BEGIN above-grid_block}
486
+ <div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$form_above-grid} data-pageid="{$pageid}" >
487
+
488
+ <div class="row">
489
+
490
+ <div
491
+ data-cellId="above-grid_c1" data-pageid="{$pageid}" {$cell_above-grid_c1}
492
+ class=" col-md-6
493
+
494
+ ">
495
+ {BEGIN firstAboveGridCell}
496
+
497
+ {BEGIN add_link}
498
+ <span data-itemtype="add" data-itemid="add" {$item_add} data-pageid="{$pageid}" data-small data-button-item>
499
+ <a type="button" title="" class="btn btn-primary
500
+ " {$addlink_attrs} href="agett_prompt_add.php{$stateLink_full}" >
501
+ Add new </a>
502
+ </span>
503
+ {END add_link}
504
+
505
+ {BEGIN deleteselected_link}
506
+ <span data-itemtype="delete" data-itemid="delete" {$item_delete} data-pageid="{$pageid}" data-small data-button-item>
507
+ <a type="button" title="" class="btn btn-default
508
+ " {$deleteselectedlink_attrs} {$deleteselectedlink_span} disabled >
509
+ Delete </a>
510
+ </span>
511
+ {END deleteselected_link}
512
+ {END firstAboveGridCell}
513
+ </div>
514
+ <div
515
+ data-cellId="above-grid_c2" data-pageid="{$pageid}" {$cell_above-grid_c2}
516
+ class="r-align-right col-md-6
517
+
518
+ ">
519
+
520
+ <span data-itemtype="details_found" data-itemid="details_found" {$item_details_found} data-pageid="{$pageid}" data-small >
521
+ {$mlp_push}{$mlparam first var first_shown}{$mlparam last var last_shown}{$mlparam total var records_found}{mlang_message DISPLAYING}{$mlp_pop}</span>
522
+ <span data-itemtype="page_size" data-itemid="page_size" {$item_page_size} data-pageid="{$pageid}" >
523
+ {$recsPerPage}
524
+ </span>
525
+ {BEGIN print_friendly}
526
+ <span id="printpanelblock{$id}" data-pageid="{$pageid}" {$printpanel_hiddenattr} data-itemtype="print_panel" data-itemid="print_panel" {$item_print_panel} data-pageid="{$pageid}">
527
+ <button title="Print-friendly page" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
528
+ <span class="glyphicon glyphicon-print"></span>
529
+ <span class="caret"></span>
530
+ </button>
531
+ <ul class="dropdown-menu pull-right">
532
+
533
+
534
+ <li class="container-fluid
535
+ ">
536
+ <div id="print_friendly_scope{$id}">
537
+ <div class="row">
538
+ <div class="col-md-4">
539
+ Scope: </div>
540
+
541
+
542
+ {BEGIN print_friendly_all}
543
+ <div class="col-md-8">
544
+ <label for="printAll{$id}">
545
+ <input type="radio" id="printAll{$id}" data-href="agett_prompt_print.php?all=1&amp;{$crosstable_attrs}" name="printScope" >
546
+ Print all pages </label>
547
+ </div>
548
+ {END print_friendly_all}
549
+ </div>
550
+ <div class="row">
551
+ <div class="col-md-4">&nbsp;</div>
552
+ <div class="col-md-8">
553
+ <label for="printPage{$id}">
554
+ <input name="printScope" id="printPage{$id}" type="radio" checked data-href="agett_prompt_print.php?{$crosstable_attrs}">
555
+ Print this page </label>
556
+ </div>
557
+ </div>
558
+
559
+
560
+ <div class="row">
561
+ <div class="col-md-4">
562
+ &nbsp;
563
+ </div>
564
+ <div class="col-md-8">
565
+ <label style="color: gray;" for="printSelection{$id}">
566
+ <input name="printScope" disabled="disabled" id="printSelection{$id}" type="radio" >
567
+ Print selected </label>
568
+ </div>
569
+ </div>
570
+ </div>
571
+
572
+ </li>
573
+ <li class="divider" role="separator"></li>
574
+
575
+
576
+ <li class="container-fluid
577
+ ">
578
+ <div>
579
+ <label for="printPerPage{$id}">
580
+ Records Per Page
581
+ </label>
582
+ <input type="number" id="printPerPage{$id}" value="{$print_recspp}" class="rnr-printrecspp">
583
+ </div>
584
+
585
+ </li>
586
+ <li class="divider" role="separator"></li>
587
+
588
+
589
+ <li class="container-fluid
590
+ text-center ">
591
+ <span data-itemtype="print_button" data-itemid="print_button" {$item_print_button} data-pageid="{$pageid}" data-small data-button-item>
592
+ <a type="button" title="" class="btn btn-primary
593
+ " id="print_friendly_button{$id}" >
594
+ Print </a>
595
+ </span>
596
+
597
+ </li>
598
+ </ul>
599
+ </span>
600
+ {END print_friendly}
601
+ </div> </div>
602
+ </div>
603
+ {END above-grid_block}
604
+ </div>
605
+ <div class="r-grid">
606
+ {BEGIN grid_tabs}
607
+ <ul class="nav nav-tabs bsgrid_tabs">
608
+ {$grid_tabs_content}
609
+ </ul>
610
+ {END grid_tabs}
611
+ {BEGIN grid_block}
612
+ {BEGIN message_block}
613
+ <div data-grid-message data-pageid="{$pageid}" class="alert {$message_class}" role="alert" {$grid_message_attrs}>{$message}</div>
614
+ {END message_block} <style>
615
+ @media screen and (max-width: 767px) {
616
+ [data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="id"]:before {
617
+ content: "{$label agett_prompt id}";
618
+ }
619
+ [data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="prompt"]:before {
620
+ content: "{$label agett_prompt prompt}";
621
+ }
622
+ }
623
+ </style>
624
+ <table data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}" class=" table table-striped table-bordered r-horizontal-grid r-flexgrid rnr-b-grid rnr-gridtable"
625
+ cellpadding="0"
626
+ data-body-height="1"
627
+ >
628
+ <thead>
629
+ {BEGIN grid_header}
630
+
631
+ <tr {$rowattrs} {$row_grid_0} class="{$rowclass}
632
+ {$gridHeader_class}
633
+
634
+ r-gridrow
635
+ ">
636
+ {BEGIN cellblock_grid_headcell_icons}
637
+ <th
638
+
639
+ {$cell_grid_headcell_icons}
640
+ {$recordattrs}
641
+ class="
642
+ r-ori-vert "
643
+
644
+
645
+ data-cellId="grid_headcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="agett_prompt_list" data-control-cell
646
+
647
+ >
648
+
649
+
650
+ </th>
651
+ {END cellblock_grid_headcell_icons}
652
+ {BEGIN cellblock_grid_headcell_checkbox}
653
+ <th
654
+
655
+ {$cell_grid_headcell_checkbox}
656
+ {$recordattrs}
657
+ class="
658
+ r-ori-vert "
659
+
660
+
661
+ data-cellId="grid_headcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="agett_prompt_list"
662
+ data-checkbox-cell
663
+ >
664
+
665
+
666
+ {BEGIN checkbox_column}
667
+ <span data-itemtype="grid_checkbox_head" data-itemid="grid_checkbox_head" {$item_grid_checkbox_head} data-pageid="{$pageid}" data-record-id="{$recId}" >
668
+ <input type="checkbox" {$checkboxheader_attrs}>
669
+ </span>
670
+ {END checkbox_column}
671
+
672
+ </th>
673
+ {END cellblock_grid_headcell_checkbox}
674
+ {BEGIN cellblock_grid_headcell_field}
675
+ <th
676
+
677
+ {$cell_grid_headcell_field}
678
+ {$recordattrs}
679
+ class="
680
+ r-ori-vert {$id_class} "
681
+
682
+ data-field="id"
683
+
684
+ data-cellId="grid_headcell_field" data-pageid="{$pageid}" data-record-id="{$recId}"
685
+ >
686
+
687
+
688
+ {BEGIN id_fieldheadercolumn}
689
+ {BEGIN id_fieldheader}
690
+ <span
691
+ data-itemtype="grid_field_label" data-itemid="simple_grid_field2" {$item_simple_grid_field2} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="id" data-fieldname="id"
692
+
693
+ {$id_orderlinkattrs}
694
+
695
+
696
+ >
697
+ <span class="text-label">
698
+ <span>{$label agett_prompt id }</span>
699
+ {$arrow_icon_id}
700
+ </span>
701
+ </span>
702
+ {END id_fieldheader}
703
+ {END id_fieldheadercolumn}
704
+
705
+
706
+ </th>
707
+ {END cellblock_grid_headcell_field}
708
+ {BEGIN cellblock_grid_headcell_field1}
709
+ <th
710
+
711
+ {$cell_grid_headcell_field1}
712
+ {$recordattrs}
713
+ class="
714
+ r-ori-vert {$prompt_class} "
715
+
716
+ data-field="prompt"
717
+
718
+ data-cellId="grid_headcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"
719
+ >
720
+
721
+
722
+ {BEGIN prompt_fieldheadercolumn}
723
+ {BEGIN prompt_fieldheader}
724
+ <span
725
+ data-itemtype="grid_field_label" data-itemid="simple_grid_field3" {$item_simple_grid_field3} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="prompt" data-fieldname="prompt"
726
+
727
+ {$prompt_orderlinkattrs}
728
+
729
+
730
+ >
731
+ <span class="text-label">
732
+ <span>{$label agett_prompt prompt }</span>
733
+ {$arrow_icon_prompt}
734
+ </span>
735
+ </span>
736
+ {END prompt_fieldheader}
737
+ {END prompt_fieldheadercolumn}
738
+
739
+
740
+ </th>
741
+ {END cellblock_grid_headcell_field1}
742
+ </tr>
743
+
744
+ {END grid_header}
745
+ </thead>
746
+ <tbody>
747
+ {BEGIN grid_row}
748
+
749
+ <tr {$rowattrs} {$row_grid_1} class="{$rowclass}
750
+
751
+ r-gridrow
752
+ ">
753
+ {BEGIN cellblock_grid_cell_icons}
754
+ <td
755
+
756
+ {$cell_grid_cell_icons}
757
+ {$recordattrs}
758
+ class="
759
+ "
760
+
761
+
762
+ data-cellId="grid_cell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="agett_prompt_list" data-control-cell
763
+
764
+ >
765
+
766
+
767
+ {BEGIN edit_column}
768
+ {BEGIN edit_link}
769
+ <span data-itemtype="grid_edit" data-itemid="grid_edit" {$item_grid_edit} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
770
+ <a type="button" title="Edit" class="btn-link
771
+ glyphicon glyphicon-pencil" href="agett_prompt_edit.php?{$editlink}" {$editlink_attrs} title="Edit" >
772
+
773
+ </a>
774
+ </span>
775
+ {END edit_link}
776
+ {END edit_column}
777
+
778
+ {BEGIN view_column}
779
+ {BEGIN view_link}
780
+ <span data-itemtype="grid_view" data-itemid="grid_view" {$item_grid_view} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
781
+ <a type="button" title="View record" class="btn-link
782
+ glyphicon glyphicon-search" href="agett_prompt_view.php?{$editlink}" {$viewlink_attrs} title="View" >
783
+
784
+ </a>
785
+ </span>
786
+ {END view_link}
787
+ {END view_column}
788
+
789
+ </td>
790
+ {END cellblock_grid_cell_icons}
791
+ {BEGIN cellblock_grid_cell_checkbox}
792
+ <td
793
+
794
+ {$cell_grid_cell_checkbox}
795
+ {$recordattrs}
796
+ class="
797
+ r-ori-vert "
798
+
799
+
800
+ data-cellId="grid_cell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}" data-control-cell
801
+
802
+ data-checkbox-cell
803
+ >
804
+
805
+
806
+ {BEGIN checkbox_column}
807
+ <span data-itemtype="grid_checkbox" data-itemid="grid_checkbox" {$item_grid_checkbox} data-pageid="{$pageid}" data-record-id="{$recId}" >
808
+ <input type="checkbox" {$checkbox_attrs}
809
+ >
810
+ </span>
811
+ {END checkbox_column}
812
+
813
+ </td>
814
+ {END cellblock_grid_cell_checkbox}
815
+ {BEGIN cellblock_grid_cell_field}
816
+ <td
817
+
818
+ {$cell_grid_cell_field}
819
+ {$recordattrs}
820
+ class="
821
+ r-ori-vert {$id_class} "
822
+
823
+ data-field="id"
824
+
825
+ data-cellId="grid_cell_field" data-pageid="{$pageid}" data-record-id="{$recId}"
826
+ >
827
+
828
+
829
+ {BEGIN id_fieldcolumn}
830
+ <span data-itemtype="grid_field" data-itemid="simple_grid_field" {$item_simple_grid_field} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="id" data-fieldname="id" data-default-width >
831
+ {$id_value}
832
+ </span>
833
+ {END id_fieldcolumn}
834
+ </td>
835
+ {END cellblock_grid_cell_field}
836
+ {BEGIN cellblock_grid_cell_field1}
837
+ <td
838
+
839
+ {$cell_grid_cell_field1}
840
+ {$recordattrs}
841
+ class="
842
+ r-ori-vert {$prompt_class} "
843
+
844
+ data-field="prompt"
845
+
846
+ data-cellId="grid_cell_field1" data-pageid="{$pageid}" data-record-id="{$recId}"
847
+ >
848
+
849
+
850
+ {BEGIN prompt_fieldcolumn}
851
+ <span data-itemtype="grid_field" data-itemid="simple_grid_field1" {$item_simple_grid_field1} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="prompt" data-fieldname="prompt" data-default-width >
852
+ {$prompt_value}
853
+ </span>
854
+ {END prompt_fieldcolumn}
855
+ </td>
856
+ {END cellblock_grid_cell_field1}
857
+ </tr>
858
+
859
+ {END grid_row}
860
+ </tbody>
861
+ <tfoot>
862
+
863
+ <tr {$rowattrs} {$row_grid_2} class="{$rowclass}
864
+ {$gridFooter_class}
865
+
866
+ r-gridrow
867
+ ">
868
+ {BEGIN cellblock_grid_footcell_icons}
869
+ <td
870
+
871
+ {$cell_grid_footcell_icons}
872
+ {$recordattrs}
873
+ class="
874
+ r-ori-vert "
875
+
876
+
877
+ data-cellId="grid_footcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}"
878
+ >
879
+
880
+
881
+ </td>
882
+ {END cellblock_grid_footcell_icons}
883
+ {BEGIN cellblock_grid_footcell_checkbox}
884
+ <td
885
+
886
+ {$cell_grid_footcell_checkbox}
887
+ {$recordattrs}
888
+ class="
889
+ r-ori-vert "
890
+
891
+
892
+ data-cellId="grid_footcell_checkbox" data-pageid="{$pageid}" data-record-id="{$recId}"
893
+ >
894
+
895
+
896
+ </td>
897
+ {END cellblock_grid_footcell_checkbox}
898
+ {BEGIN cellblock_grid_footcell_field}
899
+ <td
900
+
901
+ {$cell_grid_footcell_field}
902
+ {$recordattrs}
903
+ class="
904
+ r-ori-vert {$id_class} "
905
+
906
+
907
+ data-cellId="grid_footcell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="agett_prompt_list"
908
+ >
909
+
910
+
911
+ </td>
912
+ {END cellblock_grid_footcell_field}
913
+ {BEGIN cellblock_grid_footcell_field1}
914
+ <td
915
+
916
+ {$cell_grid_footcell_field1}
917
+ {$recordattrs}
918
+ class="
919
+ r-ori-vert {$prompt_class} "
920
+
921
+
922
+ data-cellId="grid_footcell_field1" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="agett_prompt_list"
923
+ >
924
+
925
+
926
+ </td>
927
+ {END cellblock_grid_footcell_field1}
928
+ </tr>
929
+
930
+ </tfoot>
931
+ </table>
932
+ {END grid_block}
933
+ </div>
934
+ <div class="r-below">
935
+ {BEGIN below-grid_block}
936
+ <div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" >
937
+
938
+ <div class="row">
939
+
940
+ <div
941
+ data-cellId="below-grid_c1" data-pageid="{$pageid}" {$cell_below-grid_c1}
942
+ class="r-align-center r-ori-vert col-md-12
943
+
944
+ ">
945
+
946
+ {BEGIN pagination_block}
947
+ <span data-itemtype="pagination" data-itemid="pagination" {$item_pagination} data-pageid="{$pageid}" >
948
+ {$pagination}
949
+ </span>
950
+ {END pagination_block}
951
+ </div> </div>
952
+ </div>
953
+ {END below-grid_block}
954
+ </div>
955
+
956
+
957
+
958
+
959
+ {$footer}
960
+ </div>
961
+ </div>
962
+ <div class="r-body-shadow">
963
+ </div>
964
+ </div>
965
+ {END body}
966
+ </body>
967
+ </html>