WebGUI 3.0.1 release
This commit is contained in:
parent
baec9039ef
commit
237925b365
43 changed files with 129 additions and 329 deletions
|
|
@ -2366,6 +2366,15 @@ INSERT INTO international VALUES (375,'WebGUI','English','Select Package To Depl
|
|||
INSERT INTO international VALUES (376,'WebGUI','English','Package');
|
||||
INSERT INTO international VALUES (377,'WebGUI','English','No packages have been defined by your package manager(s) or administrator(s).');
|
||||
INSERT INTO international VALUES (11,'Poll','English','Vote!');
|
||||
INSERT INTO international VALUES (31,'UserSubmission','English','Content');
|
||||
INSERT INTO international VALUES (32,'UserSubmission','English','Image');
|
||||
INSERT INTO international VALUES (33,'UserSubmission','English','Attachement');
|
||||
INSERT INTO international VALUES (34,'UserSubmission','English','Convert Carriage Returns');
|
||||
INSERT INTO international VALUES (35,'UserSubmission','English','Title');
|
||||
INSERT INTO international VALUES (36,'UserSubmission','English','Delete file.');
|
||||
INSERT INTO international VALUES (378,'WebGUI','English','User ID');
|
||||
INSERT INTO international VALUES (379,'WebGUI','English','Group ID');
|
||||
INSERT INTO international VALUES (380,'WebGUI','English','Style ID');
|
||||
|
||||
#
|
||||
# Table structure for table 'messageLog'
|
||||
|
|
@ -2414,7 +2423,7 @@ CREATE TABLE page (
|
|||
# Dumping data for table 'page'
|
||||
#
|
||||
|
||||
INSERT INTO page VALUES (1,0,'Home',-5,3,1,1,1,1,0,1,0,1,'','home',1,'Default');
|
||||
INSERT INTO page VALUES (1,0,'Home',-3,3,1,1,1,1,0,1,0,1,'','home',1,'Default');
|
||||
INSERT INTO page VALUES (6,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
INSERT INTO page VALUES (7,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
INSERT INTO page VALUES (8,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
|
|
@ -2435,7 +2444,7 @@ INSERT INTO page VALUES (22,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Def
|
|||
INSERT INTO page VALUES (23,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
INSERT INTO page VALUES (24,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
INSERT INTO page VALUES (25,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL,0,'Default');
|
||||
INSERT INTO page VALUES (4,0,'Page Not Found',-2,3,1,1,1,1,0,1,0,1,'','page_not_found',0,'Default');
|
||||
INSERT INTO page VALUES (4,0,'Page Not Found',-3,3,1,1,1,1,0,1,0,1,'','page_not_found',0,'Default');
|
||||
INSERT INTO page VALUES (3,0,'Trash',4,3,1,1,3,1,1,0,0,1,'','trash',0,'Default');
|
||||
INSERT INTO page VALUES (2,0,'Clipboard',4,3,1,1,4,1,1,0,0,1,'','clipboard',0,'Default');
|
||||
INSERT INTO page VALUES (5,0,'Packages',1,3,0,0,6,1,1,0,0,1,'','packages',0,'Default');
|
||||
|
|
@ -2515,9 +2524,9 @@ CREATE TABLE style (
|
|||
#
|
||||
|
||||
INSERT INTO style VALUES (1,'Packages','<body>\r\n<table width=\"100%\"><tr><td valign=\"top\" width=\"30%\"><b>PACKAGES</b><br>^FlexMenu;</td><td valign=\"top\" width=\"70%\"><b>CONTENT</b><br>','</td></tr></table>\r\n<hr>\r\n^H; / ^a;\r\n</body>','<style>\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n</style>');
|
||||
INSERT INTO style VALUES (-3,'WebGUI','<body bgcolor=\"#000000\" text=\"#C9E200\" link=\"#ED4400\" marginwidth=\"0\" leftmargin=\"0\">\r\n<table width=\"100%\" cellpadding=0 cellspacing=0 border=0>\r\n<tr><td valign=\"top\" width=\"200\">\r\n<a href=\"/\"><img src=\"/extras/styles/webgui/logo.gif\" border=0></a>\r\n<table cellpadding=0 border=0 cellspacing=0>\r\n<tr><td colspan=3><img src=\"/extras/styles/webgui/menuTop.gif\" width=\"200\"></td></tr>\r\n<tr>\r\n <td bgcolor=\"#C9E200\"><img src=\"/extras/spacer.gif\" width=5></td>\r\n <td bgcolor=\"#C9E200\">^FlexMenu;</td>\r\n <td bgcolor=\"#C9E200\"><img src=\"/extras/spacer.gif\" width=5></td>\r\n</tr>\r\n<tr><td colspan=3><img src=\"/extras/styles/webgui/menuBottom.gif\" width=\"200\"></td></tr>\r\n</table>\r\n^L;\r\n</td>\r\n<td><img src=\"/extras/spacer.gif\" width=20></td>\r\n<td valign=\"top\" width=\"100%\">\r\n\r\n','</td></tr></table>\r\n<p>\r\n<div align=\"center\">\r\n<a href=\"\"><img src=\"/extras/styles/webgui/icon.gif\" border=0></a><br>\r\n©2001-2002 Plain Black Software<br>\r\n</div>\r\n</body>','<style>\r\n\r\n.content, body {\r\n background-color: #000000;\r\n color: #C9E200;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n scrollbar-base-color: #000000;\r\n scrollbar-track-color: #444444;\r\n scrollbar-face-color: #000000;\r\n scrollbar-highlight-color: #555555;\r\n scrollbar-3dlight-color: #444444;\r\n scrollbar-darkshadow-color: #222222;\r\n scrollbar-shadow-color: #333333;\r\n scrollbar-arrow-color: #ED4400;\r\n}\r\n\r\nselect, input, textarea {\r\n color: #000000;\r\n background-color: #C9E200;\r\n}\r\n\r\nA {\r\n color: #ED4400;\r\n}\r\n\r\nA:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.verticalMenu {\r\n font-size: 10pt;\r\n}\r\n\r\n.verticalMenu A, .verticalMenu A:visited {\r\n color: #000000;\r\n}\r\n\r\n.verticalMenu A:hover {\r\n color: #ED4400;\r\n}\r\n\r\n.selectedMenuItem A,.selectedMenuItem A:visited {\r\n color: #ED4400;\r\n}\r\n\r\n.loginBox {\r\n font-size: 10pt;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #444444;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #444444;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #555555;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #C9E200;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #aaaaaa;\r\n}\r\n</style>');
|
||||
INSERT INTO style VALUES (-3,'WebGUI','<body bgcolor=\"#000000\" text=\"#C9E200\" link=\"#ED4400\" marginwidth=\"0\" leftmargin=\"0\">\r\n<table width=\"100%\" cellpadding=0 cellspacing=0 border=0>\r\n<tr><td valign=\"top\" width=\"200\">\r\n<a href=\"/\"><img src=\"/extras/styles/webgui/logo.gif\" border=0></a>\r\n<table cellpadding=0 border=0 cellspacing=0>\r\n<tr><td colspan=3><img src=\"/extras/styles/webgui/menuTop.gif\" width=\"200\"></td></tr>\r\n<tr>\r\n <td bgcolor=\"#C9E200\"><img src=\"/extras/spacer.gif\" width=5></td>\r\n <td bgcolor=\"#C9E200\">^FlexMenu;</td>\r\n <td bgcolor=\"#C9E200\"><img src=\"/extras/spacer.gif\" width=5></td>\r\n</tr>\r\n<tr><td colspan=3><img src=\"/extras/styles/webgui/menuBottom.gif\" width=\"200\"></td></tr>\r\n</table>\r\n^L;\r\n</td>\r\n<td><img src=\"/extras/spacer.gif\" width=20></td>\r\n<td valign=\"top\" width=\"100%\">\r\n\r\n','</td></tr></table>\r\n<p>\r\n<div align=\"center\">\r\n<a href=\"/\"><img src=\"/extras/styles/webgui/icon.gif\" border=0></a><br>\r\n©2001-2002 Plain Black Software<br>\r\n</div>\r\n</body>','<style>\r\n\r\n.content, body {\r\n background-color: #000000;\r\n color: #C9E200;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n scrollbar-base-color: #000000;\r\n scrollbar-track-color: #444444;\r\n scrollbar-face-color: #000000;\r\n scrollbar-highlight-color: #555555;\r\n scrollbar-3dlight-color: #444444;\r\n scrollbar-darkshadow-color: #222222;\r\n scrollbar-shadow-color: #333333;\r\n scrollbar-arrow-color: #ED4400;\r\n}\r\n\r\nselect, input, textarea {\r\n color: #000000;\r\n background-color: #C9E200;\r\n}\r\n\r\nA {\r\n color: #ED4400;\r\n}\r\n\r\nA:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.verticalMenu {\r\n font-size: 10pt;\r\n}\r\n\r\n.verticalMenu A, .verticalMenu A:visited {\r\n color: #000000;\r\n}\r\n\r\n.verticalMenu A:hover {\r\n color: #ED4400;\r\n}\r\n\r\n.selectedMenuItem A,.selectedMenuItem A:visited {\r\n color: #ED4400;\r\n}\r\n\r\n.loginBox {\r\n font-size: 10pt;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #444444;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #444444;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #555555;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #C9E200;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #aaaaaa;\r\n}\r\n</style>');
|
||||
INSERT INTO style VALUES (2,'Fail Safe','<body>\r\n^H; / ^t; / ^m; / ^a;\r\n<hr>','<hr>\r\n^H; / ^t; / ^m; / ^a;\r\n</body>','<style>\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n</style>');
|
||||
INSERT INTO style VALUES (-2,'Plain Black Software (black)','<body text=\"#ffffff\" link=\"#EF4200\" vlink=\"#EF4200\" bgcolor=\"#535558\" marginwidth=0 marginheight=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>\r\n\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"200\" rowspan=\"2\" bgcolor=\"#ffffff\"><a href=\"/\"><img src=\"/extras/styles/plainblack/logo-white.gif\" width=\"200\" height=\"50\" alt=\"Plain Black Software\" border=\"0\"></a></td>\r\n <td width=\"50%\" bgcolor=\"#38393C\" valign=\"bottom\"><img src=\"/extras/spacer.gif\" width=\"5\"><img src=\"/extras/styles/plainblack/user.gif\" width=\"41\" height=\"25\" alt=\"User:\" border=\"0\"> <a href=\"^\\;?op=displayAccount\" style=\"font-family: courier; color: #cee700; text-decoration: none; vertical-align: middle;\">^@;</a></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#38393C\" valign=\"bottom\"><a href=\"^\\;?op=displayAccount\"><img src=\"/extras/styles/plainblack/myaccount.gif\" width=\"84\" height=\"25\" alt=\"My Account\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"^/;/download\"><img src=\"/extras/styles/plainblack/download.gif\" width=\"75\" height=\"25\" alt=\"Download\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"/\"><img src=\"/extras/styles/plainblack/home.gif\" width=\"40\" height=\"25\" alt=\"Home\" border=\"0\"></a><img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/spacer.gif\" width=\"5\">^C;</td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\" style=\"font-family: courier; color: #cee700;\">^D(\"%c %D, %y\");<img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\" bgcolor=\"#38393C\">\r\n<tr>\r\n <td width=\"200\" valign=\"top\" class=\"sideMenu\">^T(2);</td>\r\n <td width=\"100%\" bgcolor=\"#000000\" rowspan=\"2\" valign=\"top\">','</td>\r\n</tr>\r\n<tr>\r\n <td width=\"200\" bgcolor=\"#38393C\" align=\"center\" valign=\"bottom\"><p><img src=\"/extras/styles/plainblack/webgui.gif\" width=\"200\" height=\"84\" alt=\"\" border=\"0\"><p></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/styles/plainblack/copyright.gif\" width=\"223\" height=\"25\" alt=\"Copyright 2001-2002 Plain Black Software\" border=\"0\"></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\">^r(\'<img src=\"/extras/styles/plainblack/makepageprintable.gif\" width=\"149\" height=\"25\" alt=\"Make Page Printable\" border=\"0\">\');</td>\r\n</tr>\r\n</table>\r\n</body>\r\n','<style>\r\n\r\n.content{\r\n background-color: #000000;\r\n color: #ffffff;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n padding: 10pt;\r\n}\r\n\r\n.sideMenu {\r\n filter:DropShadow(OffX=2,OffY=2,color:#000000);\r\n font-size: 10pt;\r\n padding: 5pt;\r\n font-family: helvetica, arial;\r\n color: #000000;\r\n}\r\n\r\n.sideMenu A {\r\n text-decoration: none;\r\n color: #ffffff;\r\n}\r\n\r\n.sideMenu A:hover {\r\n color: #EF4200;\r\n text-decoration: underline;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n color: #cee700;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\nA {\r\n color: #EF4200;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.crumbTrail {\r\n font-family: helvetica, arial;\r\n color: #cee700;\r\n font-size: 8pt;\r\n}\r\n\r\n.crumbTrail A,.crumbTrail A:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #535558;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #38393C;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #38393C;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #cee700;\r\n border: thin solid #ffffff;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #cee700;\r\n}\r\n\r\n</style>');
|
||||
INSERT INTO style VALUES (-2,'Plain Black Software (black)','<body text=\"#ffffff\" link=\"#EF4200\" vlink=\"#EF4200\" bgcolor=\"#535558\" marginwidth=0 marginheight=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>\r\n\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"200\" rowspan=\"2\" bgcolor=\"#ffffff\"><a href=\"/\"><img src=\"/extras/styles/plainblack/logo-white.gif\" width=\"200\" height=\"50\" alt=\"Plain Black Software\" border=\"0\"></a></td>\r\n <td width=\"70%\" bgcolor=\"#38393C\" valign=\"bottom\"><img src=\"/extras/spacer.gif\" width=\"5\"><img src=\"/extras/styles/plainblack/user.gif\" width=\"41\" height=\"25\" alt=\"User:\" border=\"0\"> <a href=\"^\\;?op=displayAccount\" style=\"font-family: courier; color: #cee700; text-decoration: none; vertical-align: middle;\">^@;</a></td>\r\n <td width=\"30%\" align=\"right\" bgcolor=\"#38393C\" valign=\"bottom\"><a href=\"^\\;?op=displayAccount\"><img src=\"/extras/styles/plainblack/myaccount.gif\" width=\"84\" height=\"25\" alt=\"My Account\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"^/;/download\"><img src=\"/extras/styles/plainblack/download.gif\" width=\"75\" height=\"25\" alt=\"Download\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"/\"><img src=\"/extras/styles/plainblack/home.gif\" width=\"40\" height=\"25\" alt=\"Home\" border=\"0\"></a><img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n<tr>\r\n <td width=\"70%\" bgcolor=\"#535558\"><img src=\"/extras/spacer.gif\" width=\"5\">^C;</td>\r\n <td width=\"30%\" align=\"right\" bgcolor=\"#535558\" style=\"font-family: courier; color: #cee700;\">^D(\"%c %D, %y\");<img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\" bgcolor=\"#38393C\">\r\n<tr>\r\n <td width=\"200\" valign=\"top\" class=\"sideMenu\">^T(2);</td>\r\n <td width=\"100%\" bgcolor=\"#000000\" rowspan=\"2\" valign=\"top\">','</td>\r\n</tr>\r\n<tr>\r\n <td width=\"200\" bgcolor=\"#38393C\" align=\"center\" valign=\"bottom\"><p><img src=\"/extras/styles/plainblack/webgui.gif\" width=\"200\" height=\"84\" alt=\"\" border=\"0\"><p></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/styles/plainblack/copyright.gif\" width=\"223\" height=\"25\" alt=\"Copyright 2001-2002 Plain Black Software\" border=\"0\"></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\">^r(\'<img src=\"/extras/styles/plainblack/makepageprintable.gif\" width=\"149\" height=\"25\" alt=\"Make Page Printable\" border=\"0\">\');</td>\r\n</tr>\r\n</table>\r\n</body>\r\n','<style>\r\n\r\n.content{\r\n background-color: #000000;\r\n color: #ffffff;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n padding: 10pt;\r\n}\r\n\r\n.sideMenu {\r\n filter:DropShadow(OffX=2,OffY=2,color:#000000);\r\n font-size: 10pt;\r\n padding: 5pt;\r\n font-family: helvetica, arial;\r\n color: #000000;\r\n}\r\n\r\n.sideMenu A {\r\n text-decoration: none;\r\n color: #ffffff;\r\n}\r\n\r\n.sideMenu A:hover {\r\n color: #EF4200;\r\n text-decoration: underline;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n color: #cee700;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\nA {\r\n color: #EF4200;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.crumbTrail {\r\n font-family: helvetica, arial;\r\n color: #cee700;\r\n font-size: 8pt;\r\n}\r\n\r\n.crumbTrail A,.crumbTrail A:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #535558;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #38393C;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #38393C;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #cee700;\r\n border: thin solid #ffffff;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #cee700;\r\n}\r\n\r\n</style>');
|
||||
INSERT INTO style VALUES (4,'Trash / Clipboard','<body>\r\n<table width=\"100%\"><tr><td valign=\"top\" width=\"30%\"><b>PAGES</b><br>^M(0);</td><td valign=\"top\" width=\"70%\"><b>CONTENT</b><br>','</td></tr></table>\r\n<hr>\r\n^H; / ^a;\r\n</body>','<style>\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n</style>');
|
||||
INSERT INTO style VALUES (5,'Reserved','<body>','</body></html>',NULL);
|
||||
INSERT INTO style VALUES (6,'Reserved','<body>','</body></html>',NULL);
|
||||
|
|
@ -2543,7 +2552,7 @@ INSERT INTO style VALUES (-1,'Yahoo!','<html><head><title>Yahoo!</title><meta ht
|
|||
INSERT INTO style VALUES (-4,'Demo Style','<body bgcolor=\"#666666\">\r\n\r\n<table border=\"0\" width=\"700\" background=\"/extras/styles/demo/topbg-3.gif\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n<tr>\r\n <td width=\"324\" height=\"80\"><img src=\"/extras/styles/demo/top-3.jpg\" border=0 width=\"324\"></td>\r\n <td width=\"100%\"><h3 style=\"color:white\">Your Company Name Here</h3><div style=\"color:white\">Address: 1903 Sunrise St. City, State 65977<br>\r\nTel: 915.888.8888<br>\r\nEmail: service@company.com</div></td>\r\n </tr>\r\n</table>\r\n<table border=\"0\" width=\"700\" height=\"21\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#000000\" align=center>\r\n <tr>\r\n <td><img src=\"/extras/styles/demo/mid-3.jpg\" border=0 width=\"140\" height=\"21\"></td>\r\n <td width=\"100%\">^t;</td>\r\n </tr>\r\n</table>\r\n<table border=\"0\" width=\"700\" height=\"500\" cellspacing=\"0\" cellpadding=\"0\" align=center>\r\n <tr>\r\n <td bgcolor=\"#990000\" width=\"140\" style=\"background-image: url(\'/extras/styles/demo/leftbg-3.jpg\'); background-repeat: no-repeat; background-position: left top\" valign=\"top\"><img src=\"/extras/spacer.gif\" height=\"10\" width=\"140\" border=0>\r\n<table cellpadding=4><tr><td>\r\n^M;\r\n</td></tr></table>\r\n </td>\r\n <td width=\"100%\" align=\"right\" height=\"100%\" valign=\"top\"><img src=\"/extras/styles/demo/x.gif\" height=\"4\" width=\"560\"><br>\r\n <table width=\"99%\" height=\"99%\" border=\"0\" bgcolor=\"black\" cellpadding=\"3\" cellspacing=\"1\">\r\n <tr><td bgcolor=\"#f9ecec\" style=\"background-image: url(\'/extras/styles/demo/contentbg-3.gif\'); background-repeat: no-repeat; background-position: right bottom\" height=\"100%\" valign=\"top\">\r\n ',' </td></tr>\r\n </table>\r\n </td>\r\n </tr>\r\n</table>\r\n<table border=\"0\" width=\"700\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n<tr><td align=\"right\">^H · ^a;</td></tr>\r\n</table>\r\n\r\n\r\n</body>\r\n','<style>\r\n\r\n.homeLink, .myAccountLink, {\r\n color: #ffffff;\r\n font-size: 8pt;\r\n}\r\n\r\n.verticalMenu A, .verticalMenu A:visited {\r\n color: #ffffff;\r\n font-weight: bold;\r\n}\r\n\r\nbody {\r\n font-family:arial; \r\n font-size: 12px; \r\n color: black;\r\n background: #666666;\r\n}\r\n\r\ntd { \r\n font-size: 11px;\r\n}\r\n\r\nH1 {\r\n MARGIN-TOP: 3px;\r\n MARGIN-BOTTOM: 3px;\r\n font-size: 16pt;\r\n}\r\n\r\nH3 {\r\n MARGIN-TOP: 3px;\r\n MARGIN-BOTTOM: 3px;\r\n}\r\n\r\nH4 {\r\n MARGIN-TOP: 3px;\r\n MARGIN-BOTTOM: 3px;\r\n}\r\n\r\nH5 {\r\n MARGIN-TOP: 3px;\r\n MARGIN-BOTTOM: 3px;\r\n}\r\n\r\nul { \r\n MARGIN-TOP: 3px; \r\n MARGIN-BOTTOM: 3px \r\n}\r\n\r\nA {\r\n color: #800000;\r\n TEXT-DECORATION: underline\r\n}\r\n\r\nA:hover {\r\n color: #990000;\r\n TEXT-DECORATION: none;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n text-align: center;\r\n font-size: 8pt;\r\n}\r\n\r\n.horizontalMenu {\r\n font-size: 8pt;\r\n padding: 5px;\r\n font-weight: bold;\r\n color: #aaaaaa;\r\n}\r\n\r\n.horizontalMenu A, .horizontalMenu A:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.highlight {\r\n background-color: #EAEAEA;\r\n}\r\n\r\n.formDescription {\r\n font-size: 10pt;\r\n}\r\n\r\n.formSubtext {\r\n font-size: 8pt;\r\n}\r\n\r\n.tableMenu {\r\n font-size: 8pt;\r\n background-color: #F5DFDF;\r\n}\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #F5DFDF;\r\n font-size: 10pt;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #ffddbb;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n color: #000000;\r\n font-weight: bold;\r\n text-decoration: none;\r\n}\r\n\r\n</style>');
|
||||
INSERT INTO style VALUES (3,'Make Page Printable','<body onLoad=\"window.print()\">\r\n<div align=\"center\"><a href=\"^\\;\"><img src=\"/extras/styles/plainblack/logo-white.gif\" border=\"0\"></a></div>','<div align=\"center\">© 2001-2002 Plain Black Software</div>\r\n</body>','<style>\r\n\r\n.content{\r\n background-color: #ffffff;\r\n color: #000000;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n padding: 10pt;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n}\r\n\r\nA {\r\n color: #EF4200;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #dddddd;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #cccccc;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #cccccc;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #444444;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n font-weight: bold;\r\n color: #000000;\r\n}\r\n\r\n</style>');
|
||||
INSERT INTO style VALUES (25,'Reserved',NULL,NULL,NULL);
|
||||
INSERT INTO style VALUES (-5,'Plain Black Software (white)','<body text=\"#000000\" link=\"#EF4200\" vlink=\"#EF4200\" bgcolor=\"#535558\" marginwidth=0 marginheight=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>\r\n\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"200\" rowspan=\"2\" bgcolor=\"#000000\"><a href=\"/\"><img src=\"/extras/styles/plainblack/logo-black.gif\" width=\"200\" height=\"50\" alt=\"Plain Black Software\" border=\"0\"></a></td>\r\n <td width=\"50%\" bgcolor=\"#38393C\" valign=\"bottom\"><img src=\"/extras/spacer.gif\" width=\"5\"><img src=\"/extras/styles/plainblack/user.gif\" width=\"41\" height=\"25\" alt=\"User:\" border=\"0\"> <a href=\"^\\;?op=displayAccount\" style=\"font-family: courier; color: #cee700; text-decoration: none; vertical-align: middle;\">^@;</a></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#38393C\" valign=\"bottom\"><a href=\"^\\;?op=displayAccount\"><img src=\"/extras/styles/plainblack/myaccount.gif\" width=\"84\" height=\"25\" alt=\"My Account\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"^/;/download\"><img src=\"/extras/styles/plainblack/download.gif\" width=\"75\" height=\"25\" alt=\"Download\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"/\"><img src=\"/extras/styles/plainblack/home.gif\" width=\"40\" height=\"25\" alt=\"Home\" border=\"0\"></a><img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/spacer.gif\" width=\"5\">^C;</td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\" style=\"font-family: courier; color: #cee700;\">^D(\"%c %D, %y\");<img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\" bgcolor=\"#38393C\">\r\n<tr>\r\n <td width=\"200\" valign=\"top\" class=\"sideMenu\">^T(2);</td>\r\n <td width=\"100%\" bgcolor=\"#ffffff\" rowspan=\"2\" valign=\"top\">','</td>\r\n</tr>\r\n<tr>\r\n <td width=\"200\" bgcolor=\"#38393C\" align=\"center\" valign=\"bottom\"><p><img src=\"/extras/styles/plainblack/webgui.gif\" width=\"200\" height=\"84\" alt=\"\" border=\"0\"><p></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/styles/plainblack/copyright.gif\" width=\"223\" height=\"25\" alt=\"Copyright 2001-2002 Plain Black Software\" border=\"0\"></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\">^r(\'<img src=\"/extras/styles/plainblack/makepageprintable.gif\" width=\"149\" height=\"25\" alt=\"Make Page Printable\" border=\"0\">\');</td>\r\n</tr>\r\n</table>\r\n</body>\r\n','<style>\r\n\r\n.content{\r\n background-color: #ffffff;\r\n color: #000000;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n padding: 10pt;\r\n}\r\n\r\n.sideMenu {\r\n filter:DropShadow(OffX=2,OffY=2,color:#000000);\r\n font-size: 10pt;\r\n padding: 5pt;\r\n font-family: helvetica, arial;\r\n color: #000000;\r\n}\r\n\r\n.sideMenu A {\r\n text-decoration: none;\r\n color: #ffffff;\r\n}\r\n\r\n.sideMenu A:hover {\r\n color: #EF4200;\r\n text-decoration: underline;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n color: #38393C;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\nA {\r\n color: #EF4200;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.crumbTrail {\r\n font-family: helvetica, arial;\r\n color: #cee700;\r\n font-size: 8pt;\r\n}\r\n\r\n.crumbTrail A,.crumbTrail A:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #cccccc;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #cee700;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #cee700;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #cee700;\r\n border: thin solid #000000;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #38393C;\r\n font-weight: bold;\r\n}\r\n\r\n</style>');
|
||||
INSERT INTO style VALUES (-5,'Plain Black Software (white)','<body text=\"#000000\" link=\"#EF4200\" vlink=\"#EF4200\" bgcolor=\"#535558\" marginwidth=0 marginheight=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>\r\n\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"200\" rowspan=\"2\" bgcolor=\"#000000\"><a href=\"/\"><img src=\"/extras/styles/plainblack/logo-black.gif\" width=\"200\" height=\"50\" alt=\"Plain Black Software\" border=\"0\"></a></td>\r\n <td width=\"70%\" bgcolor=\"#38393C\" valign=\"bottom\"><img src=\"/extras/spacer.gif\" width=\"5\"><img src=\"/extras/styles/plainblack/user.gif\" width=\"41\" height=\"25\" alt=\"User:\" border=\"0\"> <a href=\"^\\;?op=displayAccount\" style=\"font-family: courier; color: #cee700; text-decoration: none; vertical-align: middle;\">^@;</a></td>\r\n <td width=\"30%\" align=\"right\" bgcolor=\"#38393C\" valign=\"bottom\"><a href=\"^\\;?op=displayAccount\"><img src=\"/extras/styles/plainblack/myaccount.gif\" width=\"84\" height=\"25\" alt=\"My Account\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"^/;/download\"><img src=\"/extras/styles/plainblack/download.gif\" width=\"75\" height=\"25\" alt=\"Download\" border=\"0\"></a><img src=\"/extras/styles/plainblack/darkbar.gif\" width=\"11\" height=\"25\" alt=\"|\" border=\"0\"><a href=\"/\"><img src=\"/extras/styles/plainblack/home.gif\" width=\"40\" height=\"25\" alt=\"Home\" border=\"0\"></a><img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n<tr>\r\n <td width=\"70%\" bgcolor=\"#535558\"><img src=\"/extras/spacer.gif\" width=\"5\">^C;</td>\r\n <td width=\"30%\" align=\"right\" bgcolor=\"#535558\" style=\"font-family: courier; color: #cee700;\">^D(\"%c %D, %y\");<img src=\"/extras/spacer.gif\" width=\"5\"></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\" bgcolor=\"#38393C\">\r\n<tr>\r\n <td width=\"200\" valign=\"top\" class=\"sideMenu\">^T(2);</td>\r\n <td width=\"100%\" bgcolor=\"#ffffff\" rowspan=\"2\" valign=\"top\">','</td>\r\n</tr>\r\n<tr>\r\n <td width=\"200\" bgcolor=\"#38393C\" align=\"center\" valign=\"bottom\"><p><img src=\"/extras/styles/plainblack/webgui.gif\" width=\"200\" height=\"84\" alt=\"\" border=\"0\"><p></td>\r\n</tr>\r\n</table>\r\n<table cellspacing=0 cellpadding=0 border=0 width=\"100%\">\r\n<tr>\r\n <td width=\"50%\" bgcolor=\"#535558\"><img src=\"/extras/styles/plainblack/copyright.gif\" width=\"223\" height=\"25\" alt=\"Copyright 2001-2002 Plain Black Software\" border=\"0\"></td>\r\n <td width=\"50%\" align=\"right\" bgcolor=\"#535558\">^r(\'<img src=\"/extras/styles/plainblack/makepageprintable.gif\" width=\"149\" height=\"25\" alt=\"Make Page Printable\" border=\"0\">\');</td>\r\n</tr>\r\n</table>\r\n</body>\r\n','<style>\r\n\r\n.content{\r\n background-color: #ffffff;\r\n color: #000000;\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n padding: 10pt;\r\n}\r\n\r\n.sideMenu {\r\n filter:DropShadow(OffX=2,OffY=2,color:#000000);\r\n font-size: 10pt;\r\n padding: 5pt;\r\n font-family: helvetica, arial;\r\n color: #000000;\r\n}\r\n\r\n.sideMenu A {\r\n text-decoration: none;\r\n color: #ffffff;\r\n}\r\n\r\n.sideMenu A:hover {\r\n color: #EF4200;\r\n text-decoration: underline;\r\n}\r\n\r\nH1 {\r\n font-family: helvetica, arial;\r\n font-size: 16pt;\r\n color: #38393C;\r\n}\r\n\r\nsearchBox {\r\n font-size: 10pt;\r\n}\r\n\r\nA {\r\n color: #EF4200;\r\n}\r\n\r\n.pagination {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n text-align: center;\r\n}\r\n\r\n.adminBar {\r\n background-color: #dddddd;\r\n font-size: 8pt;\r\n font-family: helvetica, arial;\r\n color: #000055;\r\n}\r\n\r\n.crumbTrail {\r\n font-family: helvetica, arial;\r\n color: #cee700;\r\n font-size: 8pt;\r\n}\r\n\r\n.crumbTrail A,.crumbTrail A:visited {\r\n color: #ffffff;\r\n}\r\n\r\n.formDescription {\r\n font-family: helvetica, arial;\r\n font-size: 10pt;\r\n font-weight: bold;\r\n}\r\n\r\n.formSubtext {\r\n font-family: helvetica, arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.highlight {\r\n background-color: #cccccc;\r\n}\r\n\r\n.tableMenu {\r\n background-color: #cee700;\r\n font-size: 8pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableMenu a {\r\n text-decoration: none;\r\n}\r\n\r\n.tableHeader {\r\n background-color: #cee700;\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.tableData {\r\n font-size: 10pt;\r\n font-family: Helvetica, Arial;\r\n}\r\n\r\n.pollAnswer {\r\n font-family: Helvetica, Arial;\r\n font-size: 8pt;\r\n}\r\n\r\n.pollColor {\r\n background-color: #cee700;\r\n border: thin solid #000000;\r\n}\r\n\r\n.pollQuestion {\r\n font-face: Helvetica, Arial;\r\n font-weight: bold;\r\n}\r\n\r\n.faqQuestion {\r\n font-size: 12pt;\r\n color: #38393C;\r\n font-weight: bold;\r\n}\r\n\r\n</style>');
|
||||
|
||||
#
|
||||
# Table structure for table 'users'
|
||||
|
|
@ -2632,7 +2641,7 @@ CREATE TABLE widget (
|
|||
addedBy int(11) default NULL,
|
||||
lastEdited int(11) default NULL,
|
||||
editedBy int(11) default NULL,
|
||||
position char(1) NOT NULL default 'A',
|
||||
templatePosition char(1) NOT NULL default 'A',
|
||||
PRIMARY KEY (widgetId)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,15 @@ upgrading from one version to the next, or even between multiple
|
|||
versions. Be sure to heed the warnings contained herein as they will
|
||||
save you many hours of grief.
|
||||
|
||||
3.0.1
|
||||
--------------------------------------------------------------------
|
||||
* The macro syntax of old has officially been removed. If you're
|
||||
still using the old macro syntax, you must change them to
|
||||
the new syntax to avoid problems.
|
||||
|
||||
Example: ^r => ^r;
|
||||
Example: ^m3^/m => ^m(3);
|
||||
|
||||
3.0.0
|
||||
--------------------------------------------------------------------
|
||||
* All 3rd-party widgets, macros, and templates that were not
|
||||
|
|
|
|||
11
docs/upgrades/upgrade_3.0.0-3.0.1.sql
Normal file
11
docs/upgrades/upgrade_3.0.0-3.0.1.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
alter table widget change position templatePosition char(1) not null default 'A';
|
||||
INSERT INTO international VALUES (31,'UserSubmission','English','Content');
|
||||
INSERT INTO international VALUES (32,'UserSubmission','English','Image');
|
||||
INSERT INTO international VALUES (33,'UserSubmission','English','Attachement');
|
||||
INSERT INTO international VALUES (34,'UserSubmission','English','Convert Carriage Returns');
|
||||
INSERT INTO international VALUES (35,'UserSubmission','English','Title');
|
||||
INSERT INTO international VALUES (36,'UserSubmission','English','Delete file.');
|
||||
INSERT INTO international VALUES (378,'WebGUI','English','User ID');
|
||||
INSERT INTO international VALUES (379,'WebGUI','English','Group ID');
|
||||
INSERT INTO international VALUES (380,'WebGUI','English','Style ID');
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
package WebGUI;
|
||||
our $VERSION = "3.0.0";
|
||||
our $VERSION = "3.0.1";
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2002 Plain Black Software.
|
||||
|
|
@ -172,7 +172,7 @@ sub page {
|
|||
if ($session{var}{adminOn}) {
|
||||
$pageEdit = '<br><img src="'.$session{setting}{lib}.'/page.gif" border=0 alt="Page Settings:"><a href="'.$session{page}{url}.'?op=editPage"><img src="'.$session{setting}{lib}.'/edit.gif" border=0 alt="Edit Page"></a><a href="'.$session{page}{url}.'?op=cutPage"><img src="'.$session{setting}{lib}.'/cut.gif" border=0 alt="Cut Page"></a><a href="'.$session{page}{url}.'?op=deletePage"><img src="'.$session{setting}{lib}.'/delete.gif" border=0 alt="Delete Page"></a><a href="'.$session{page}{url}.'?op=movePageUp"><img src="'.$session{setting}{lib}.'/pageUp.gif" border=0 alt="Move Page Up"></a><a href="'.$session{page}{url}.'?op=movePageDown"><img src="'.$session{setting}{lib}.'/pageDown.gif" border=0 alt="Move Page Down"></a></span>';
|
||||
}
|
||||
$sth = WebGUI::SQL->read("select widgetId, widgetType, position from widget where pageId=".$session{page}{pageId}." order by sequenceNumber, widgetId");
|
||||
$sth = WebGUI::SQL->read("select widgetId, widgetType, templatePosition from widget where pageId=".$session{page}{pageId}." order by sequenceNumber, widgetId");
|
||||
while (@widgetList = $sth->array) {
|
||||
if ($session{var}{adminOn}) {
|
||||
$contentHash{$widgetList[2]} .= '<hr><a href="'.$session{page}{url}.'?func=edit&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/edit.gif" border=0 alt="Edit"></a><a href="'.$session{page}{url}.'?func=cut&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/cut.gif" border=0 alt="Cut"></a><a href="'.$session{page}{url}.'?func=copy&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/copy.gif" border=0 alt="Copy"></a><a href="'.$session{page}{url}.'?wid='.$widgetList[0].'&func=delete"><img src="'.$session{setting}{lib}.'/delete.gif" border=0 alt="Delete"></a><a href="'.$session{page}{url}.'?func=moveUp&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/upArrow.gif" border=0 alt="Move Up"></a><a href="'.$session{page}{url}.'?func=moveDown&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/downArrow.gif" border=0 alt="Move Down"></a><a href="'.$session{page}{url}.'?func=jumpUp&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/jumpUp.gif" border=0 alt="Move to Top"></a><a href="'.$session{page}{url}.'?func=jumpDown&wid='.$widgetList[0].'"><img src="'.$session{setting}{lib}.'/jumpDown.gif" border=0 alt="Move to Bottom"></a><br>';
|
||||
|
|
|
|||
|
|
@ -47,12 +47,6 @@ sub process {
|
|||
}
|
||||
}
|
||||
closedir(DIR);
|
||||
#---script url---
|
||||
# slash has to go last because it is also used as the end character for configurable widgets
|
||||
# this will disappear in a future rev as it is depricated
|
||||
if ($output =~ /\^\//) {
|
||||
$output =~ s/\^\//$session{env}{SCRIPT_NAME}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^\@\;/$session{user}{username}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^\@/) {
|
||||
$output =~ s/\^\@/$session{user}{username}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^\\\;/$session{page}{url}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^\\/) {
|
||||
$output =~ s/\^\\/$session{page}{url}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,11 +41,6 @@ sub process {
|
|||
my ($output, $temp);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^C\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^C/) {
|
||||
$temp = '<span class="crumbTrail">'._recurseCrumbTrail($session{page}{parentId}).'<a href="'.$session{page}{url}.'">'.$session{page}{title}.'</a></span>';
|
||||
$output =~ s/\^C/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,18 +28,10 @@ sub _replacement {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my ($output, $temp, @param);
|
||||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^D\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^D\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^D(.*)\^\/D/) {
|
||||
$temp = epochToHuman(time(),$1);
|
||||
$output =~ s/\^D(.*)\^\/D/$temp/g;
|
||||
} elsif ($output =~ /\^D/) {
|
||||
$temp = localtime(time);
|
||||
$output =~ s/\^D/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,14 +35,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^H\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^H\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^H(.*)\^\/H/) {
|
||||
$temp = '<a class="homeLink" href="'.$session{env}{SCRIPT_NAME}.'/home">'.$1.'</a>';
|
||||
$output =~ s/\^H(.*)\^\/H/$temp/g;
|
||||
} elsif ($output =~ /\^H/) {
|
||||
$temp = '<a class="homeLink" href="'.$session{env}{SCRIPT_NAME}.'/home">'.WebGUI::International::get(47).'</a>';
|
||||
$output =~ s/\^H/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^\#\;/$session{user}{userId}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^\#/) {
|
||||
$output =~ s/\^\#/$session{user}{userId}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,30 +47,6 @@ sub process {
|
|||
my ($output, $temp);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^L\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^L/) {
|
||||
$temp = '<div class="loginBox">';
|
||||
if ($session{var}{sessionId}) {
|
||||
$temp .= WebGUI::International::get(48);
|
||||
$temp .= ' <a href="'.$session{page}{url}.'?op=displayAccount">'.$session{user}{username}.'</a>. ';
|
||||
$temp .= WebGUI::International::get(49);
|
||||
$temp = WebGUI::Macro::Backslash_pageUrl::process($temp);
|
||||
} else {
|
||||
$temp .= '<form method="post" action="'.$session{page}{url}.'"> ';
|
||||
$temp .= WebGUI::Form::hidden("op","login").'<span class="formSubtext">';
|
||||
$temp .= WebGUI::International::get(50);
|
||||
$temp .= '<br></span>';
|
||||
$temp .= WebGUI::Form::text("username",12,30).'<span class="formSubtext"><br>';
|
||||
$temp .= WebGUI::International::get(51);
|
||||
$temp .= '<br></span>';
|
||||
$temp .= WebGUI::Form::password("identifier",12,30).'<span class="formSubtext"><br></span>';
|
||||
$temp .= WebGUI::Form::submit(WebGUI::International::get(52));
|
||||
$temp .= '</form>';
|
||||
$temp .= '<a href="'.$session{page}{url}.'?op=createAccount">Click here to register.</a>';
|
||||
}
|
||||
$temp .= '</div>';
|
||||
$output =~ s/\^L/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,18 +35,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^M\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^M\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^M(.*)\^\/M/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree($session{page}{pageId},0,$1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^M(.*)\^\/M/$temp/g;
|
||||
} elsif ($output =~ /\^M/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree($session{page}{pageId},0,1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^M/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,18 +35,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^P\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^P\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^P(.*)\^\/P/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree($session{page}{parentId},0,$1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^P(.*)\^\/P/$temp/g;
|
||||
} elsif ($output =~ /\^P/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree($session{page}{parentId},0,1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^P/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,21 +39,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^S\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^S\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
my ($pageTitle, $depth);
|
||||
if ($output =~ /\^S(.*)\^\/S/) {
|
||||
($pageTitle,$depth) = split(/,/,$1);
|
||||
if ($depth eq "") {
|
||||
$depth = 0;
|
||||
}
|
||||
@data = WebGUI::SQL->quickArray("select pageId,title,urlizedTitle from page where urlizedTitle='$pageTitle'");
|
||||
$temp = '<span class="verticalMenu">';
|
||||
if (defined $data[0] && WebGUI::Privilege::canViewPage($data[0])) {
|
||||
$temp .= traversePageTree($data[0],1,$depth);
|
||||
}
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^S(.*)\^\/S/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,14 +32,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^\*\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^\*\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^\*(.*)\^\/\*/) {
|
||||
$temp = round(rand()*$1);
|
||||
$output =~ s/\^\*(.*)\^\/\*/$temp/g;
|
||||
} elsif ($output =~ /\^\*/) {
|
||||
$temp = round(rand()*1000000000);
|
||||
$output =~ s/\^\*/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,18 +34,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^T\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^T\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^T(.*)\^\/T/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree(1,0,$1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^T(.*)\^\/T/$temp/g;
|
||||
} elsif ($output =~ /\^T/) {
|
||||
$temp = '<span class="verticalMenu">';
|
||||
$temp .= traversePageTree(1,0,1);
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^T/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,14 +35,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^a\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^a\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^a(.*)\^\/a/) {
|
||||
$temp = '<a class="myAccountLink" href="'.$session{page}{url}.'?op=displayAccount">'.$1.'</a>';
|
||||
$output =~ s/\^a(.*)\^\/a/$temp/g;
|
||||
} elsif ($output =~ /\^a/) {
|
||||
$temp = '<a class="myAccountLink" href="'.$session{page}{url}.'?op=displayAccount">'.WebGUI::International::get(46).'</a>';
|
||||
$output =~ s/\^a/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^c\;/$session{setting}{companyName}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^c/) {
|
||||
$output =~ s/\^c/$session{setting}{companyName}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^e\;/$session{setting}{companyEmail}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^e/) {
|
||||
$output =~ s/\^e/$session{setting}{companyEmail}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,25 +41,6 @@ sub process {
|
|||
my ($output, $temp, @data, $sth, $first);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^m\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^m/) {
|
||||
$temp = '<span class="horizontalMenu">';
|
||||
$first = 1;
|
||||
$sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId=$session{page}{pageId} order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
if ($first) {
|
||||
$first = 0;
|
||||
} else {
|
||||
$temp .= " · ";
|
||||
}
|
||||
$temp .= '<a class="horizontalMenu" href="'.$session{env}{SCRIPT_NAME}.'/'.$data[1].'">'.$data[0].'</a>';
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^m/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,25 +42,6 @@ sub process {
|
|||
my ($output, $temp, @data, $sth, $first);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^p\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^p/) {
|
||||
$temp = '<span class="horizontalMenu">';
|
||||
$first = 1;
|
||||
$sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId=$session{page}{parentId} order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
if ($first) {
|
||||
$first = 0;
|
||||
} else {
|
||||
$temp .= " · ";
|
||||
}
|
||||
$temp .= '<a class="horizontalMenu" href="'.$session{env}{SCRIPT_NAME}.'/'.$data[1].'">'.$data[0].'</a>';
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^p/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,18 +37,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^r\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^r\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^r(.*)\^\/r/) {
|
||||
$temp = appendToUrl($session{env}{REQUEST_URI},'makePrintable=1');
|
||||
$temp = '<a class="makePrintableLink" href="'.$temp.'">'.$1.'</a>';
|
||||
$output =~ s/\^r(.*)\^\/r/$temp/g;
|
||||
} elsif ($output =~ /\^r/) {
|
||||
$temp = appendToUrl($session{env}{REQUEST_URI},'makePrintable=1');
|
||||
$temp = '<a class="makePrintableLink" href="'.$temp.'">';
|
||||
$temp .= WebGUI::International::get(53);
|
||||
$temp .= '</a>';
|
||||
$output =~ s/\^r/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,27 +45,6 @@ sub process {
|
|||
$output = $_[0];
|
||||
$output =~ s/\^s\((.*?)\)\;/_replacement($1)/ge;
|
||||
$output =~ s/\^s\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^s(.*)\^\/s/) {
|
||||
$pageTitle = $1;
|
||||
$temp = '<span class="horizontalMenu">';
|
||||
$first = 1;
|
||||
($parentId) = WebGUI::SQL->quickArray("select pageId from page where urlizedTitle='$pageTitle'");
|
||||
$sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId='$parentId' order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
if ($first) {
|
||||
$first = 0;
|
||||
} else {
|
||||
$temp .= " · ";
|
||||
}
|
||||
$temp .= '<a class="horizontalMenu" href="'.$session{env}{SCRIPT_NAME}.'/'.$data[1].'">'.$data[0].'</a>';
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^s(.*)\^\/s/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,25 +41,6 @@ sub process {
|
|||
my ($output, $temp, @data, $sth, $first);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^t\;/_replacement()/ge;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^t/) {
|
||||
$temp = '<span class="horizontalMenu">';
|
||||
$first = 1;
|
||||
$sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId=1 order by sequenceNumber");
|
||||
while (@data = $sth->array) {
|
||||
if (WebGUI::Privilege::canViewPage($data[2])) {
|
||||
if ($first) {
|
||||
$first = 0;
|
||||
} else {
|
||||
$temp .= " · ";
|
||||
}
|
||||
$temp .= '<a class="horizontalMenu" href="'.$session{env}{SCRIPT_NAME}.'/'.$data[1].'">'.$data[0].'</a>';
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
$temp .= '</span>';
|
||||
$output =~ s/\^t/$temp/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,6 @@ sub process {
|
|||
my ($output);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^u\;/$session{setting}{companyURL}/g;
|
||||
#---everything below this line will go away in a later rev.
|
||||
if ($output =~ /\^u/) {
|
||||
$output =~ s/\^u/$session{setting}{companyURL}/g;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ our %ldapStatusCode = ( 0=>'success (0)', 1=>'Operations Error (1)', 2=>'Protoco
|
|||
sub _accountOptions {
|
||||
my ($output);
|
||||
$output = '<div class="accountOptions"><ul>';
|
||||
if (WebGUI::Privilege::isInGroup(3) || WebGUI::Privilege::isInGroup(4)) {
|
||||
if (WebGUI::Privilege::isInGroup(3) || WebGUI::Privilege::isInGroup(4) || WebGUI::Privilege::isInGroup(5) || WebGUI::Privilege::isInGroup(6)) {
|
||||
if ($session{var}{adminOn}) {
|
||||
$output .= '<li><a href="'.$session{page}{url}.'?op=switchOffAdmin">'.WebGUI::International::get(12).'</a>';
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ sub www_editGroup {
|
|||
$output .= WebGUI::Form::hidden("op","editGroupSave");
|
||||
$output .= WebGUI::Form::hidden("gid",$session{form}{gid});
|
||||
$output .= '<table>';
|
||||
$output .= tableFormRow(WebGUI::International::get(379),$session{form}{gid});
|
||||
$output .= tableFormRow(WebGUI::International::get(84),WebGUI::Form::text("groupName",20,30,$group{groupName}));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$group{description}));
|
||||
$output .= tableFormRow(WebGUI::International::get(367),WebGUI::Form::text("expireAfter",20,30,$group{expireAfter}));
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ our @EXPORT = qw(&www_copyStyle &www_addStyle &www_addStyleSave &www_deleteStyle
|
|||
#-------------------------------------------------------------------
|
||||
sub www_addStyle {
|
||||
my ($output);
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
$output .= helpLink(16);
|
||||
$output .= '<h1>'.WebGUI::International::get(150).'</h1>';
|
||||
$output .= formHeader();
|
||||
|
|
@ -49,7 +49,7 @@ sub www_addStyle {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_addStyleSave {
|
||||
my ($output);
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
WebGUI::SQL->write("insert into style values (".getNextId("styleId").", ".quote($session{form}{name}).", ".quote($session{form}{header}).", ".quote($session{form}{footer}).", ".quote($session{form}{styleSheet}).")");
|
||||
$output = www_listStyles();
|
||||
} else {
|
||||
|
|
@ -61,7 +61,7 @@ sub www_addStyleSave {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_copyStyle {
|
||||
my (%style);
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
%style = WebGUI::SQL->quickHash("select * from style where styleId=$session{form}{sid}");
|
||||
WebGUI::SQL->write("insert into style values (".getNextId("styleId").", ".quote('Copy of '.$style{name}).", ".quote($style{header}).", ".quote($style{footer}).", ".quote($style{styleSheet}).")");
|
||||
return www_listStyles();
|
||||
|
|
@ -75,7 +75,7 @@ sub www_deleteStyle {
|
|||
my ($output);
|
||||
if ($session{form}{sid} < 26) {
|
||||
return WebGUI::Privilege::vitalComponent();
|
||||
} elsif (WebGUI::Privilege::isInGroup(3)) {
|
||||
} elsif (WebGUI::Privilege::isInGroup(5)) {
|
||||
$output .= helpLink(4);
|
||||
$output .= '<h1>'.WebGUI::International::get(42).'</h1>';
|
||||
$output .= WebGUI::International::get(155).'<p>';
|
||||
|
|
@ -91,7 +91,7 @@ sub www_deleteStyle {
|
|||
sub www_deleteStyleConfirm {
|
||||
if ($session{form}{sid} < 26) {
|
||||
return WebGUI::Privilege::vitalComponent();
|
||||
} elsif (WebGUI::Privilege::isInGroup(3)) {
|
||||
} elsif (WebGUI::Privilege::isInGroup(5)) {
|
||||
WebGUI::SQL->write("delete from style where styleId=".$session{form}{sid});
|
||||
WebGUI::SQL->write("update page set styleId=2 where styleId=".$session{form}{sid});
|
||||
return www_listStyles();
|
||||
|
|
@ -104,7 +104,7 @@ sub www_deleteStyleConfirm {
|
|||
sub www_editStyle {
|
||||
my ($output, %style);
|
||||
tie %style, 'Tie::CPHash';
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
%style = WebGUI::SQL->quickHash("select * from style where styleId=$session{form}{sid}");
|
||||
$output .= helpLink(16);
|
||||
$output .= '<h1>'.WebGUI::International::get(156).'</h1>';
|
||||
|
|
@ -112,6 +112,7 @@ sub www_editStyle {
|
|||
$output .= WebGUI::Form::hidden("op","editStyleSave");
|
||||
$output .= WebGUI::Form::hidden("sid",$session{form}{sid});
|
||||
$output .= '<table>';
|
||||
$output .= tableFormRow(WebGUI::International::get(380),$session{form}{sid});
|
||||
$output .= tableFormRow(WebGUI::International::get(151),WebGUI::Form::text("name",20,30,$style{name}));
|
||||
$output .= tableFormRow(WebGUI::International::get(152),WebGUI::Form::textArea("header",$style{header},50,10));
|
||||
$output .= tableFormRow(WebGUI::International::get(153),WebGUI::Form::textArea("footer",$style{footer},50,10));
|
||||
|
|
@ -127,7 +128,7 @@ sub www_editStyle {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editStyleSave {
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
WebGUI::SQL->write("update style set name=".quote($session{form}{name}).", header=".quote($session{form}{header}).", footer=".quote($session{form}{footer}).", styleSheet=".quote($session{form}{styleSheet})." where styleId=".$session{form}{sid});
|
||||
return www_listStyles();
|
||||
} else {
|
||||
|
|
@ -138,7 +139,7 @@ sub www_editStyleSave {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_listStyles {
|
||||
my ($output, $sth, @data, @row, $i, $prevNextBar, $dataRows);
|
||||
if (WebGUI::Privilege::isInGroup(3)) {
|
||||
if (WebGUI::Privilege::isInGroup(5)) {
|
||||
$output = helpLink(9);
|
||||
$output .= '<h1>'.WebGUI::International::get(157).'</h1>';
|
||||
$output .= '<div align="center"><a href="'.$session{page}{url}.'?op=addStyle">'.WebGUI::International::get(158).'</a></div>';
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ sub www_editUser {
|
|||
$output .= WebGUI::Form::hidden("op","editUserSave");
|
||||
$output .= WebGUI::Form::hidden("uid",$session{form}{uid});
|
||||
$output .= '<table>';
|
||||
$output .= tableFormRow(WebGUI::International::get(378),$session{form}{uid});
|
||||
$output .= tableFormRow(WebGUI::International::get(50),WebGUI::Form::text("username",20,30,$user{username}));
|
||||
$output .= tableFormRow(WebGUI::International::get(51),WebGUI::Form::password("identifier",20,30,"password"));
|
||||
%hash = ('WebGUI'=>'WebGUI', 'LDAP'=>'LDAP');
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ our @EXPORT = qw(&getProperties &purgeWidget &www_jumpDown &www_jumpUp &update &
|
|||
#-------------------------------------------------------------------
|
||||
sub _reorderWidgets {
|
||||
my ($sth, $i, $wid);
|
||||
$sth = WebGUI::SQL->read("select widgetId from widget where pageId=$_[0] order by position,sequenceNumber");
|
||||
$sth = WebGUI::SQL->read("select widgetId from widget where pageId=$_[0] order by templatePosition,sequenceNumber");
|
||||
while (($wid) = $sth->array) {
|
||||
$i++;
|
||||
WebGUI::SQL->write("update widget set sequenceNumber='$i' where widgetId=$wid");
|
||||
|
|
@ -69,7 +69,7 @@ sub purgeWidget {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub update {
|
||||
WebGUI::SQL->write("update widget set title=".quote($session{form}{title}).", displayTitle='$session{form}{displayTitle}', description=".quote($session{form}{description}).", processMacros='$session{form}{processMacros}', lastEdited=".time().", editedBy='$session{user}{userId}', position='$session{form}{position}' where widgetId=$session{form}{wid}");
|
||||
WebGUI::SQL->write("update widget set title=".quote($session{form}{title}).", displayTitle='$session{form}{displayTitle}', description=".quote($session{form}{description}).", processMacros='$session{form}{processMacros}', lastEdited=".time().", editedBy='$session{user}{userId}', templatePosition='$session{form}{templatePosition}' where widgetId=$session{form}{wid}");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::Attachment::copy($data{image},$_[0],$newWidgetId);
|
||||
WebGUI::Attachment::copy($data{attachment},$_[0],$newWidgetId);
|
||||
WebGUI::SQL->write("insert into Article values ($newWidgetId, $data{startDate}, $data{endDate}, ".quote($data{body}).", ".quote($data{image}).", ".quote($data{linkTitle}).", ".quote($data{linkURL}).", ".quote($data{attachment}).", '$data{convertCarriageReturns}')");
|
||||
|
|
@ -61,7 +61,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::text("startDate",20,30,epochToSet(time()),1));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("endDate",20,30,'01/01/2037',1));
|
||||
$output .= tableFormRow(WebGUI::International::get(5,$namespace),WebGUI::Form::textArea("body",'',50,10,1));
|
||||
|
|
@ -83,7 +83,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId, $image, $attachment);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
$image = WebGUI::Attachment::save("image",$widgetId);
|
||||
$attachment = WebGUI::Attachment::save("attachment",$widgetId);
|
||||
WebGUI::SQL->write("insert into Article values ($widgetId, '".setToEpoch($session{form}{startDate})."', '".setToEpoch($session{form}{endDate})."', ".quote($session{form}{body}).", ".quote($image).", ".quote($session{form}{linkTitle}).", ".quote($session{form}{linkURL}).", ".quote($attachment).", '$session{form}{convertCarriageReturns}')");
|
||||
|
|
@ -140,8 +140,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::text("startDate",20,30,epochToSet($data{startDate}),1));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("endDate",20,30,epochToSet($data{endDate}),1));
|
||||
$output .= tableFormRow(WebGUI::International::get(5,$namespace),WebGUI::Form::textArea("body",$data{body},50,10,1));
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into EventsCalendar values ($newWidgetId)");
|
||||
$sth = WebGUI::SQL->read("select * from EventsCalendar_event order by recurringEventId");
|
||||
$sth = WebGUI::SQL->read("select * from EventsCalendar_event where widgetId=$_[0] order by recurringEventId");
|
||||
while (@row = $sth->array) {
|
||||
$newEventId = getNextId("eventId");
|
||||
if ($row[6] > 0 && $row[6] != $previousRecurringEventId) {
|
||||
|
|
@ -69,7 +69,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::checkbox("proceed",1,1));
|
||||
$output .= formSave();
|
||||
|
|
@ -85,7 +85,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into EventsCalendar values ($widgetId)");
|
||||
if ($session{form}{proceed} == 1) {
|
||||
$session{form}{wid} = $widgetId;
|
||||
|
|
@ -224,8 +224,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,$data{processMacros}));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,5,1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= formSave();
|
||||
$output .= '</table></form>';
|
||||
$output .= '<p><a href="'.$session{page}{url}.'?func=addEvent&wid='.$session{form}{wid}.'">Add New Event</a><p>';
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into ExtraColumn values ($newWidgetId, '$data{spacer}', '$data{width}', ".quote($data{class}).")");
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ sub www_add {
|
|||
$output .= WebGUI::Form::hidden("title","column");
|
||||
$output .= '<table>';
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::text("spacer",20,3,10));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("width",20,3,200));
|
||||
$output .= tableFormRow(WebGUI::International::get(5,$namespace),WebGUI::Form::text("class",20,50,"content"));
|
||||
|
|
@ -71,7 +71,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId, $displayTitle, $image, $attachment);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into ExtraColumn values ($widgetId, '$session{form}{spacer}', '$session{form}{width}', ".quote($session{form}{class}).")");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -104,8 +104,8 @@ sub www_edit {
|
|||
$output .= WebGUI::Form::hidden("title","column");
|
||||
$output .= '<table>';
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::text("spacer",20,3,$data{spacer}));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("width",20,3,$data{width}));
|
||||
$output .= tableFormRow(WebGUI::International::get(5,$namespace),WebGUI::Form::text("class",20,50,$data{class}));
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into FAQ values ($newWidgetId)");
|
||||
$sth = WebGUI::SQL->read("select * from FAQ_question");
|
||||
$sth = WebGUI::SQL->read("select * from FAQ_question where widgetId=$_[0]");
|
||||
while (@row = $sth->array) {
|
||||
$newQuestionId = getNextId("questionId");
|
||||
WebGUI::SQL->write("insert into FAQ_question values ($newWidgetId, $newQuestionId, ".quote($row[2]).", ".quote($row[3]).", '$row[4]')");
|
||||
|
|
@ -75,7 +75,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'','','',1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::checkbox("proceed",1,1));
|
||||
$output .= formSave();
|
||||
|
|
@ -91,7 +91,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into FAQ values ($widgetId)");
|
||||
if ($session{form}{proceed} == 1) {
|
||||
$session{form}{wid} = $widgetId;
|
||||
|
|
@ -190,8 +190,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},'','',1));
|
||||
$output .= formSave();
|
||||
$output .= '</table></form>';
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::Attachment::copy($data{attachment},$_[0],$newWidgetId);
|
||||
WebGUI::SQL->write("insert into Item values ($newWidgetId, ".quote($data{description}).", ".quote($data{linkURL}).", ".quote($data{attachment}).")");
|
||||
}
|
||||
|
|
@ -58,7 +58,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(99),WebGUI::Form::text("title",20,30,widgetName()));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",''));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("linkURL",20,2048));
|
||||
$output .= tableFormRow(WebGUI::International::get(2,$namespace),WebGUI::Form::file("attachment"));
|
||||
|
|
@ -75,7 +75,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId, $attachment);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
$attachment = WebGUI::Attachment::save("attachment",$widgetId);
|
||||
WebGUI::SQL->write("insert into Item values ($widgetId, ".quote($session{form}{description}).", ".quote($session{form}{linkURL}).", ".quote($attachment).")");
|
||||
return "";
|
||||
|
|
@ -120,8 +120,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(99),WebGUI::Form::text("title",20,30,$data{title}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description}));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("linkURL",20,2048,$data{linkURL}));
|
||||
if ($data{attachment} ne "") {
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into LinkList values ($newWidgetId, '$data{indent}', '$data{lineSpacing}', ".quote($data{bullet}).")");
|
||||
$sth = WebGUI::SQL->read("select * from LinkList_link");
|
||||
$sth = WebGUI::SQL->read("select * from LinkList_link where widgetId=$_[0]");
|
||||
while (@row = $sth->array) {
|
||||
$newLinkId = getNextId("linkId");
|
||||
WebGUI::SQL->write("insert into LinkList_link values ($newWidgetId, $newLinkId, ".quote($row[2]).", ".quote($row[3]).", ".quote($row[4]).", '$row[5]', '$row[6]')");
|
||||
|
|
@ -75,7 +75,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("indent",20,2,0));
|
||||
$output .= tableFormRow(WebGUI::International::get(2,$namespace),WebGUI::Form::text("lineSpacing",20,1,1));
|
||||
|
|
@ -94,7 +94,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into LinkList values ($widgetId, '$session{form}{indent}', '$session{form}{lineSpacing}', ".quote($session{form}{bullet}).")");
|
||||
if ($session{form}{proceed} == 1) {
|
||||
$session{form}{wid} = $widgetId;
|
||||
|
|
@ -195,8 +195,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("indent",20,2,$data{indent}));
|
||||
$output .= tableFormRow(WebGUI::International::get(2,$namespace),WebGUI::Form::text("lineSpacing",20,1,$data{lineSpacing}));
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into MessageBoard values ($newWidgetId, $data{groupToPost}, '$data{messagesPerPage}', '$data{editTimeout}')");
|
||||
WebGUI::Discussion::duplicate($_[0],$newWidgetId);
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
$array[0] = 2;
|
||||
|
|
@ -82,7 +82,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into MessageBoard values ($widgetId, $session{form}{groupToPost}, '$session{form}{messagesPerPage}', '$session{form}{editTimeout}')");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -117,8 +117,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$board{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$board{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $board{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $board{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$board{description},50,5,1));
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
$array[0] = $board{groupToPost};
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into Poll values ($newWidgetId, '$data{active}', '$data{graphWidth}', '$data{voteGroup}', ".quote($data{question}).", ".quote($data{a1}).", ".quote($data{a2}).", ".quote($data{a3}).", ".quote($data{a4}).", ".quote($data{a5}).", ".quote($data{a6}).", ".quote($data{a7}).", ".quote($data{a8}).", ".quote($data{a9}).", ".quote($data{a10}).", ".quote($data{a11}).", ".quote($data{a12}).", ".quote($data{a13}).", ".quote($data{a14}).", ".quote($data{a15}).", ".quote($data{a16}).", ".quote($data{a17}).", ".quote($data{a18}).", ".quote($data{a19}).", ".quote($data{a20}).")");
|
||||
$sth = WebGUI::SQL->read("select * from Poll_answer");
|
||||
$sth = WebGUI::SQL->read("select * from Poll_answer where widgetId=$_[0]");
|
||||
while (@row = $sth->array) {
|
||||
WebGUI::SQL->write("insert into Poll_answer values ($newWidgetId, '$row[1]', $row[2], '$row[3]')");
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::checkbox("active",1,1));
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
|
|
@ -129,7 +129,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId, @answer);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
@answer = split("\n",$session{form}{answers});
|
||||
WebGUI::SQL->write("insert into Poll values ($widgetId, '$session{form}{active}', '$session{form}{graphWidth}', '$session{form}{voteGroup}', ".quote($session{form}{question}).", ".quote($answer[0]).", ".quote($answer[1]).", ".quote($answer[2]).", ".quote($answer[3]).", ".quote($answer[4]).", ".quote($answer[5]).", ".quote($answer[6]).", ".quote($answer[7]).", ".quote($answer[8]).", ".quote($answer[9]).", ".quote($answer[10]).", ".quote($answer[11]).", ".quote($answer[12]).", ".quote($answer[13]).", ".quote($answer[14]).", ".quote($answer[15]).", ".quote($answer[16]).", ".quote($answer[17]).", ".quote($answer[18]).", ".quote($answer[19]).")");
|
||||
return "";
|
||||
|
|
@ -165,8 +165,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::checkbox("active",1,$data{active}));
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into SQLReport values($newWidgetId, ".quote($data{template}).", ".quote($data{dbQuery}).", ".quote($data{DSN}).", ".quote($data{username}).", ".quote($data{identifier}).", '$data{convertCarriageReturns}')");
|
||||
}
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'','','',1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::textArea("template",'','','',1));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::textArea("dbQuery",''));
|
||||
|
|
@ -79,7 +79,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into SQLReport values($widgetId, ".quote($session{form}{template}).", ".quote($session{form}{dbQuery}).", ".quote($session{form}{DSN}).", ".quote($session{form}{username}).", ".quote($session{form}{identifier}).", '$session{form}{convertCarriageReturns}')");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -114,8 +114,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,10,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::textArea("template",$data{template},50,10,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::textArea("dbQuery",$data{dbQuery},50,10,1));
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into SiteMap values ($newWidgetId, '$data{startAtThisLevel}', '$data{depth}', '$data{indent}', ".quote($data{bullet}).", '$data{lineSpacing}')");
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::checkbox("startAtThisLevel",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("depth",20,2,0));
|
||||
|
|
@ -105,7 +105,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId, $displayTitle, $image, $attachment);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into SiteMap values ($widgetId, '$session{form}{startAtThisLevel}', '$session{form}{depth}', '$session{form}{indent}', ".quote($session{form}{bullet}).", '$session{form}{lineSpacing}')");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -140,8 +140,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1,$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,5,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(3,$namespace),WebGUI::Form::checkbox("startAtThisLevel",1,$data{startAtThisLevel}));
|
||||
$output .= tableFormRow(WebGUI::International::get(4,$namespace),WebGUI::Form::text("depth",20,2,$data{depth}));
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into SyndicatedContent values ($newWidgetId, ".quote($data{rssUrl}).", ".quote($data{content}).", ".quote($data{lastFetched}).")");
|
||||
}
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'','','',1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("rssUrl",20,2048));
|
||||
$output .= formSave();
|
||||
|
|
@ -74,7 +74,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into SyndicatedContent values ($widgetId, ".quote($session{form}{rssUrl}).", 'Not yet fetched.', '".time()."')");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -109,8 +109,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description},50,10,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(1,$namespace),WebGUI::Form::text("rssUrl",20,2048,$data{rssUrl}));
|
||||
$output .= formSave();
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ sub duplicate {
|
|||
tie %data, 'Tie::CPHash';
|
||||
%data = getProperties($namespace,$_[0]);
|
||||
$pageId = $_[1] || $data{pageId};
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{position});
|
||||
$newWidgetId = create($pageId,$namespace,$data{title},$data{displayTitle},$data{description},$data{processMacros},$data{templatePosition});
|
||||
WebGUI::SQL->write("insert into UserSubmission values ($newWidgetId, $data{groupToContribute}, '$data{submissionsPerPage}', '$data{defaultStatus}', $data{groupToApprove})");
|
||||
$sth = WebGUI::SQL->read("select * from UserSubmission_submission");
|
||||
$sth = WebGUI::SQL->read("select * from UserSubmission_submission where widgetId=$_[0]");
|
||||
while (@row = $sth->array) {
|
||||
$newSubmissionId = getNextId("submissionId");
|
||||
WebGUI::SQL->write("insert into UserSubmission_submission values ($newWidgetId, $newSubmissionId, ".quote($row[2]).", $row[3], ".quote($row[4]).", '$row[5]', ".quote($row[6]).", ".quote($row[7]).", ".quote($row[8]).", '$row[9]', '$row[10]')");
|
||||
|
|
@ -69,7 +69,7 @@ sub www_add {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle",1,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros",1));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",'',50,5,1));
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
$array[0] = 4;
|
||||
|
|
@ -92,7 +92,7 @@ sub www_add {
|
|||
sub www_addSave {
|
||||
my ($widgetId);
|
||||
if (WebGUI::Privilege::canEditPage()) {
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{position});
|
||||
$widgetId = create($session{page}{pageId},$session{form}{widget},$session{form}{title},$session{form}{displayTitle},$session{form}{description},$session{form}{processMacros},$session{form}{templatePosition});
|
||||
WebGUI::SQL->write("insert into UserSubmission values ($widgetId, $session{form}{groupToContribute}, '$session{form}{submissionsPerPage}', '$session{form}{defaultStatus}', $session{form}{groupToApprove})");
|
||||
return "";
|
||||
} else {
|
||||
|
|
@ -110,11 +110,11 @@ sub www_addSubmission {
|
|||
$output .= WebGUI::Form::hidden("wid",$session{form}{wid});
|
||||
$output .= WebGUI::Form::hidden("func","addSubmissionSave");
|
||||
$output .= '<table>';
|
||||
$output .= tableFormRow(WebGUI::International::get(99),WebGUI::Form::text("title",20,128));
|
||||
$output .= tableFormRow(WebGUI::International::get(178),WebGUI::Form::textArea("content",'',50,10,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(179),WebGUI::Form::file("image"));
|
||||
$output .= tableFormRow(WebGUI::International::get(182),WebGUI::Form::file("attachment"));
|
||||
$output .= tableFormRow(WebGUI::International::get(183),WebGUI::Form::checkbox("convertCarriageReturns",1,1).' <span style="font-size: 8pt;">'.WebGUI::International::get(12,$namespace).'</span>');
|
||||
$output .= tableFormRow(WebGUI::International::get(35,$namespace),WebGUI::Form::text("title",20,128));
|
||||
$output .= tableFormRow(WebGUI::International::get(31,$namespace),WebGUI::Form::textArea("content",'',50,10,1));
|
||||
$output .= tableFormRow(WebGUI::International::get(32,$namespace),WebGUI::Form::file("image"));
|
||||
$output .= tableFormRow(WebGUI::International::get(33,$namespace),WebGUI::Form::file("attachment"));
|
||||
$output .= tableFormRow(WebGUI::International::get(34,$namespace),WebGUI::Form::checkbox("convertCarriageReturns",1,1).' <span style="font-size: 8pt;">'.WebGUI::International::get(12,$namespace).'</span>');
|
||||
$output .= formSave();
|
||||
$output .= '</table></form>';
|
||||
$output .= '<table width="100%" cellspacing=1 cellpadding=2 border=0>';
|
||||
|
|
@ -262,8 +262,8 @@ sub www_edit {
|
|||
$output .= tableFormRow(WebGUI::International::get(174),WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}));
|
||||
$output .= tableFormRow(WebGUI::International::get(175),WebGUI::Form::checkbox("processMacros","1",$data{processMacros}));
|
||||
%hash = WebGUI::Widget::getPositions();
|
||||
$array[0] = $data{position};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("position",\%hash,\@array));
|
||||
$array[0] = $data{templatePosition};
|
||||
$output .= tableFormRow(WebGUI::International::get(363),WebGUI::Form::selectList("templatePosition",\%hash,\@array));
|
||||
$output .= tableFormRow(WebGUI::International::get(85),WebGUI::Form::textArea("description",$data{description}));
|
||||
$array[0] = $data{groupToApprove};
|
||||
%hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName");
|
||||
|
|
@ -306,19 +306,19 @@ sub www_editSubmission {
|
|||
$output .= WebGUI::Form::hidden("sid",$session{form}{sid});
|
||||
$output .= WebGUI::Form::hidden("func","editSubmissionSave");
|
||||
$output .= '<table>';
|
||||
$output .= tableFormRow(WebGUI::International::get(99),WebGUI::Form::text("title",20,128,$submission{title}));
|
||||
$output .= tableFormRow(WebGUI::International::get(178),WebGUI::Form::textArea("content",$submission{content},50,10));
|
||||
$output .= tableFormRow(WebGUI::International::get(35,$namespace),WebGUI::Form::text("title",20,128,$submission{title}));
|
||||
$output .= tableFormRow(WebGUI::International::get(31,$namespace),WebGUI::Form::textArea("content",$submission{content},50,10));
|
||||
if ($submission{image} ne "") {
|
||||
$output .= tableFormRow(WebGUI::International::get(179),'<a href="'.$session{page}{url}.'?func=deleteImage&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'">'.WebGUI::International::get(186).'</a>');
|
||||
$output .= tableFormRow(WebGUI::International::get(32,$namespace),'<a href="'.$session{page}{url}.'?func=deleteImage&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'">'.WebGUI::International::get(36,$namespace).'</a>');
|
||||
} else {
|
||||
$output .= tableFormRow(WebGUI::International::get(179),WebGUI::Form::file("image"));
|
||||
$output .= tableFormRow(WebGUI::International::get(32,$namespace),WebGUI::Form::file("image"));
|
||||
}
|
||||
if ($submission{attachment} ne "") {
|
||||
$output .= tableFormRow(WebGUI::International::get(182),'<a href="'.$session{page}{url}.'?func=deleteAttachment&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'">'.WebGUI::International::get(186).'</a>');
|
||||
$output .= tableFormRow(WebGUI::International::get(33,$namespace),'<a href="'.$session{page}{url}.'?func=deleteAttachment&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'">'.WebGUI::International::get(36,$namespace).'</a>');
|
||||
} else {
|
||||
$output .= tableFormRow(WebGUI::International::get(182),WebGUI::Form::file("attachment"));
|
||||
$output .= tableFormRow(WebGUI::International::get(33,$namespace),WebGUI::Form::file("attachment"));
|
||||
}
|
||||
$output .= tableFormRow(WebGUI::International::get(183),WebGUI::Form::checkbox("convertCarriageReturns",1,$submission{convertCarriageReturns}).' <span style="font-size: 8pt;">(uncheck if you\'re writing an HTML submission)</span>');
|
||||
$output .= tableFormRow(WebGUI::International::get(34,$namespace),WebGUI::Form::checkbox("convertCarriageReturns",1,$submission{convertCarriageReturns}).' <span style="font-size: 8pt;">(uncheck if you\'re writing an HTML submission)</span>');
|
||||
$output .= formSave();
|
||||
$output .= '</table></form>';
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue