Feature Request 718739 -- USS Submission Start/End Dates
This commit is contained in:
parent
7f3f4ee30f
commit
82daf4f984
4 changed files with 56 additions and 11 deletions
|
|
@ -783,6 +783,8 @@ CREATE TABLE USS_submission (
|
|||
userDefined3 text,
|
||||
userDefined4 text,
|
||||
userDefined5 text,
|
||||
startDate int(11) default 946710000,
|
||||
endDate int(11) default 2114406000,
|
||||
PRIMARY KEY (USS_submissionId),
|
||||
KEY test (status,userId)
|
||||
) TYPE=MyISAM;
|
||||
|
|
@ -792,12 +794,12 @@ CREATE TABLE USS_submission (
|
|||
--
|
||||
|
||||
|
||||
INSERT INTO USS_submission VALUES (1,'Talk to the Experts',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_talk_to_experts.gif\" align=\"right\" style=\"padding-left: 15px;\" /> Our website contains all of the different methods for reaching us. Our friendly staff will be happy to assist you in any way possible.\r\n\r\n',NULL,NULL,'Approved',0,1004,1076706084,0,1000,'html','http://www.plainblack.com/contact_us','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (2,'Request an Interactive Demonstration CD',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_cd.gif\" align=\"right\" style=\"padding-left: 15px;\" />This CD shows all of the excellent features that WebGUI provides and gives you a brief overview of the product. It also provides examples of how the product works and how it can be used in your environment.',NULL,NULL,'Approved',0,1005,1076706084,0,1000,'html','http://www.plainblack.com/presentation_cd','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (3,'Get the Manual',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_manual.gif\" align=\"right\" style=\"padding-left: 15px;\" />Ruling WebGUI is the definitive guide to everything WebGUI related. It has been compiled by the experts at Plain Black Software and covers almost all aspects of WebGUI. When you purchase Ruling WebGUI, you will receive updates to this great manual for one full year.',NULL,NULL,'Approved',0,1006,1076706084,0,1000,'html','http://www.plainblack.com/ruling_webgui','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (4,'Purchase Technical Support',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_tech_support.gif\" align=\"right\" style=\"padding-left: 15px;\" />The WebGUI Support Center is there to help you when you get stuck. With a system as large as WebGUI, you\'ll likely have some questions, and our courteous and knowlegable staff is available to answer those questions. And best of all, you get Ruling WebGUI free when you sign up for the Support Center.\r\n\r\n',NULL,NULL,'Approved',0,1007,1076706084,0,1000,'html','http://www.plainblack.com/support_programs','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (5,'Sign Up for Hosting',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_hosting.gif\" align=\"right\" style=\"padding-left: 15px;\" />We provide professional hosting services for you so you don\'t have to go through the trouble of finding a hoster who likely won\'t know what to do with WebGUI anyway.',NULL,NULL,'Approved',0,1008,1076706084,0,1000,'html','http://www.plainblack.com/hosting','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (6,'Look Great',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_look_great.gif\" align=\"right\" style=\"padding-left: 15px;\" />Let Plain Black\'s design team build you a professional looking design. Our award-winning designers can get you the look you need on time and on budget, every time.',NULL,NULL,'Approved',0,1009,1076706084,0,1000,'html','http://www.plainblack.com/design','0',NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (1,'Talk to the Experts',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_talk_to_experts.gif\" align=\"right\" style=\"padding-left: 15px;\" /> Our website contains all of the different methods for reaching us. Our friendly staff will be happy to assist you in any way possible.\r\n\r\n',NULL,NULL,'Approved',0,1004,1076706084,0,1000,'html','http://www.plainblack.com/contact_us','0',NULL,NULL,NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (2,'Request an Interactive Demonstration CD',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_cd.gif\" align=\"right\" style=\"padding-left: 15px;\" />This CD shows all of the excellent features that WebGUI provides and gives you a brief overview of the product. It also provides examples of how the product works and how it can be used in your environment.',NULL,NULL,'Approved',0,1005,1076706084,0,1000,'html','http://www.plainblack.com/presentation_cd','0',NULL,NULL,NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (3,'Get the Manual',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_manual.gif\" align=\"right\" style=\"padding-left: 15px;\" />Ruling WebGUI is the definitive guide to everything WebGUI related. It has been compiled by the experts at Plain Black Software and covers almost all aspects of WebGUI. When you purchase Ruling WebGUI, you will receive updates to this great manual for one full year.',NULL,NULL,'Approved',0,1006,1076706084,0,1000,'html','http://www.plainblack.com/ruling_webgui','0',NULL,NULL,NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (4,'Purchase Technical Support',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_tech_support.gif\" align=\"right\" style=\"padding-left: 15px;\" />The WebGUI Support Center is there to help you when you get stuck. With a system as large as WebGUI, you\'ll likely have some questions, and our courteous and knowlegable staff is available to answer those questions. And best of all, you get Ruling WebGUI free when you sign up for the Support Center.\r\n\r\n',NULL,NULL,'Approved',0,1007,1076706084,0,1000,'html','http://www.plainblack.com/support_programs','0',NULL,NULL,NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (5,'Sign Up for Hosting',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_hosting.gif\" align=\"right\" style=\"padding-left: 15px;\" />We provide professional hosting services for you so you don\'t have to go through the trouble of finding a hoster who likely won\'t know what to do with WebGUI anyway.',NULL,NULL,'Approved',0,1008,1076706084,0,1000,'html','http://www.plainblack.com/hosting','0',NULL,NULL,NULL,NULL,NULL);
|
||||
INSERT INTO USS_submission VALUES (6,'Look Great',1076705448,'Admin',3,'<img src=\"^Extras;styles/webgui6/img_look_great.gif\" align=\"right\" style=\"padding-left: 15px;\" />Let Plain Black\'s design team build you a professional looking design. Our award-winning designers can get you the look you need on time and on budget, every time.',NULL,NULL,'Approved',0,1009,1076706084,0,1000,'html','http://www.plainblack.com/design','0',NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
--
|
||||
-- Table structure for table `WSClient`
|
||||
|
|
@ -1539,12 +1541,12 @@ INSERT INTO template VALUES (2,'Events List','<tmpl_if displayTitle>\r\n <h1>
|
|||
INSERT INTO template VALUES (2,'Center Image','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isFirstPage>\r\n<tmpl_if image.url>\r\n <div align=\"center\"><img src=\"<tmpl_var image.url>\" border=\"0\"></div>\r\n</tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isLastPage>\r\n<tmpl_if linkurl>\r\n <tmpl_if linktitle>\r\n <p /><a href=\"<tmpl_var linkUrl>\"><tmpl_var linkTitle></a>\r\n </tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_var attachment.box> <p />\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n<tmpl_var pagination.previousPage> \r\n·\r\n<tmpl_var pagination.pageList.upTo20>\r\n·\r\n<tmpl_var pagination.nextPage>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isLastPage>\r\n<tmpl_if allowDiscussion>\r\n <p><table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" border=\"0\">\r\n <tr><td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var replies.URL>\"><tmpl_var replies.label> (<tmpl_var replies.count>)</a></td>\r\n <td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a></td></tr>\r\n </table>\r\n</tmpl_if>\r\n</tmpl_if>','Article',1,1);
|
||||
INSERT INTO template VALUES (1,'Default Article','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isFirstPage>\r\n<tmpl_if image.url>\r\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"content\">\r\n <img src=\"<tmpl_var image.url>\" align=\"right\" border=\"0\">\r\n</tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_if pagination.isLastPage>\r\n<tmpl_if linkUrl>\r\n <tmpl_if linkTitle>\r\n <p /><a href=\"<tmpl_var linkUrl>\"><tmpl_var linkTitle></a>\r\n </tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_var attachment.box> <p />\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n<tmpl_var pagination.previousPage> \r\n·\r\n<tmpl_var pagination.pageList.upTo20>\r\n·\r\n<tmpl_var pagination.nextPage>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isFirstPage>\r\n<tmpl_if image.url>\r\n </td></tr></table>\r\n</tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isLastPage>\r\n<tmpl_if allowDiscussion>\r\n <p><table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" border=\"0\">\r\n <tr><td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var replies.URL>\"><tmpl_var replies.label> (<tmpl_var replies.count>)</a></td>\r\n <td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a></td></tr>\r\n </table>\r\n</tmpl_if>\r\n\r\n</tmpl_if>','Article',1,1);
|
||||
INSERT INTO template VALUES (4,'Linked Image with Caption','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isFirstPage>\r\n<tmpl_if image.url>\r\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"content\">\r\n <table align=\"right\"><tr><td align=\"center\">\r\n <tmpl_if linkUrl>\r\n <a href=\"<tmpl_var linkUrl>\">\r\n <img src=\"<tmpl_var image.url>\" border=\"0\">\r\n <br /><tmpl_var linkTitle></a>\r\n <tmpl_else>\r\n <img src=\"<tmpl_var image.url>\" border=\"0\">\r\n <br /> <tmpl_var linkTitle>\r\n </tmpl_if>\r\n </td></tr></table>\r\n</tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isLastPage>\r\n<tmpl_var attachment.box> <p />\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isFirstPage>\r\n<tmpl_if image.url>\r\n </td></tr></table>\r\n</tmpl_if>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n<tmpl_var pagination.previousPage> \r\n·\r\n<tmpl_var pagination.pageList.upTo20>\r\n·\r\n<tmpl_var pagination.nextPage>\r\n</tmpl_if>\r\n\r\n<tmpl_if pagination.isLastPage>\r\n\r\n<tmpl_if allowDiscussion>\r\n <p><table width=\"100%\" cellspacing=\"2\" cellpadding=\"1\" border=\"0\">\r\n <tr><td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var replies.URL>\"><tmpl_var replies.label> (<tmpl_var replies.count>)</a></td>\r\n <td align=\"center\" width=\"50%\" class=\"tableMenu\"><a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a></td></tr>\r\n </table>\r\n</tmpl_if>\r\n\r\n\r\n</tmpl_if>','Article',1,1);
|
||||
INSERT INTO template VALUES (1,'Default USS','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n<tmpl_if session.scratch.search>\r\n <tmpl_var search.form>\r\n</tmpl_if>\r\n\r\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0><tr>\r\n<td align=\"right\" class=\"tableMenu\">\r\n\r\n<tmpl_if canPost>\r\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a> ·\r\n</tmpl_if>\r\n\r\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a>\r\n\r\n</td></tr></table>\r\n\r\n<table width=\"100%\" cellspacing=1 cellpadding=2 border=0>\r\n<tr>\r\n<td class=\"tableHeader\"><tmpl_var title.label></td>\r\n<td class=\"tableHeader\"><tmpl_var date.label></td>\r\n<td class=\"tableHeader\"><tmpl_var by.label></td>\r\n</tr>\r\n\r\n<tmpl_loop submissions_loop>\r\n\r\n<tr>\r\n<td class=\"tableData\">\r\n <a href=\"<tmpl_var submission.URL>\"> <tmpl_var submission.title>\r\n <tmpl_if submission.currentUser>\r\n (<tmpl_var submission.status>)\r\n </tmpl_if>\r\n</td>\r\n<td class=\"tableData\"><tmpl_var submission.date></td>\r\n<td class=\"tableData\"><a href=\"<tmpl_var submission.userProfile>\"><tmpl_var submission.username></a></td>\r\n</tr>\r\n\r\n</tmpl_loop>\r\n\r\n</table>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n <div class=\"pagination\">\r\n <tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo20> · <tmpl_var pagination.nextPage>\r\n </div>\r\n</tmpl_if>\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (1,'Default USS','<tmpl_if displayTitle> <h1><tmpl_var title></h1></tmpl_if><tmpl_if description> <tmpl_var description><p /></tmpl_if><tmpl_if session.scratch.search> <tmpl_var search.form></tmpl_if><table width="100%" cellpadding=2 cellspacing=1 border=0><tr><td align="right" class="tableMenu"><tmpl_if canPost> <a href="<tmpl_var post.url>"><tmpl_var post.label></a> ·</tmpl_if><a href="<tmpl_var search.url>"><tmpl_var search.label></a></td></tr></table><table width="100%" cellspacing=1 cellpadding=2 border=0><tr><td class="tableHeader"><tmpl_var title.label></td><td class="tableHeader"><tmpl_var date.label></td><td class="tableHeader"><tmpl_var by.label></td></tr><tmpl_loop submissions_loop><tmpl_if submission.inDateRange><tr><td class="tableData"> <a href="<tmpl_var submission.URL>"> <tmpl_var submission.title> <tmpl_if submission.currentUser> (<tmpl_var submission.status>) </tmpl_if></td><td class="tableData"><tmpl_var submission.date></td><td class="tableData"><a href="<tmpl_var submission.userProfile>"><tmpl_var submission.username></a></td></tr><tmpl_else> <tmpl_if canModerate><tr><td class="tableData"> <i>*<a href="<tmpl_var submission.URL>"> <tmpl_var submission.title> <tmpl_if submission.currentUser> (<tmpl_var submission.status>) </tmpl_if></i></td><td class="tableData"><i><tmpl_var submission.date></i></td><td class="tableData"><i><a href="<tmpl_var submission.userProfile>"><tmpl_var submission.username></a></i></td></tr> </tmpl_if></tmpl_if></tmpl_loop></table><tmpl_if pagination.pageCount.isMultiple> <div class="pagination"> <tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo20> · <tmpl_var pagination.nextPage> </div></tmpl_if>','USS',1,1);
|
||||
INSERT INTO template VALUES (16,'FAQ','<a name=\"top\"></a>\r\n<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n <tmpl_if canPost>\n <a href=\"<tmpl_var post.url>\"> <tmpl_var addquestion.label></a><p />\r\n</tmpl_if>\r\n\r\n<ul>\r\n<tmpl_loop submissions_loop>\r\n <li><a href=\"#<tmpl_var submission.id>\"><span class=\"faqQuestion\"><tmpl_var submission.title></span></a>\r\n</tmpl_loop>\r\n</ul>\r\n<p />\r\n\r\n\r\n<tmpl_loop submissions_loop>\r\n\r\n \n <tmpl_if submission.currentUser>\n <tmpl_unless session.var.adminOn>[<a href=\"<tmpl_var submission.edit.url>\"><tmpl_var submission.edit.label></a>]</tmpl_unless>\n </tmpl_if>\n <tmpl_if canModerate>\n <tmpl_if session.var.adminOn><tmpl_var submission.controls><tmpl_else><tmpl_unless submission.currentUser><tmpl_unless session.var.adminOn>[<a href=\"<tmpl_var submission.edit.url>\"><tmpl_var submission.edit.label></a>]</tmpl_unless></tmpl_unless></tmpl_if>\n </tmpl_if>\n \r\n\r\n <a name=\"<tmpl_var submission.id>\"><span class=\"faqQuestion\"><tmpl_var submission.title></span></a><br />\r\n <tmpl_var submission.content.full>\r\n <p /><a href=\"#top\">[top]</a><p />\r\n</tmpl_loop>\r\n\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (2,'Traditional with Thumbnails','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_if session.scratch.search>\r\n <tmpl_var search.form>\r\n</tmpl_if>\r\n\r\n\r\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0><tr>\r\n<td align=\"right\" class=\"tableMenu\">\r\n\r\n<tmpl_if canPost>\r\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a> ·\r\n</tmpl_if>\r\n\r\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a>\r\n\r\n</td></tr></table>\r\n\r\n<table width=\"100%\" cellspacing=1 cellpadding=2 border=0>\r\n<tr>\r\n<td class=\"tableHeader\"><tmpl_var title.label></td>\r\n<td class=\"tableHeader\"><tmpl_var thumbnail.label></td>\r\n<td class=\"tableHeader\"><tmpl_var date.label></td>\r\n<td class=\"tableHeader\"><tmpl_var by.label></td>\r\n</tr>\r\n\r\n<tmpl_loop submissions_loop>\r\n\r\n<tr>\r\n<td class=\"tableData\">\r\n <a href=\"<tmpl_var submission.URL>\"> <tmpl_var submission.title>\r\n <tmpl_if submission.currentUser>\r\n (<tmpl_var submission.status>)\r\n </tmpl_if>\r\n</td>\r\n <td class=\"tableData\">\r\n <tmpl_if submission.thumbnail>\r\n <a href=\"<tmpl_var submission.url>\"><img src=\"<tmpl_var submission.thumbnail>\" border=\"0\"></a>\r\n </tmpl_if>\r\n </td>\r\n\r\n<td class=\"tableData\"><tmpl_var submission.date></td>\r\n<td class=\"tableData\"><a href=\"<tmpl_var submission.userProfile>\"><tmpl_var submission.username></a></td>\r\n</tr>\r\n\r\n</tmpl_loop>\r\n\r\n</table>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n <div class=\"pagination\">\r\n <tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo20> · <tmpl_var pagination.nextPage>\r\n </div>\r\n</tmpl_if>\r\n\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (3,'Weblog','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_if session.scratch.search>\r\n <tmpl_var search.form>\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_if canPost>\r\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a> ·\r\n</tmpl_if>\r\n\r\n\r\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a>\r\n<p />\r\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0>\r\n\r\n<tmpl_loop submissions_loop>\r\n\r\n<tr><td class=\"tableHeader\"><tmpl_var submission.title>\r\n <tmpl_if submission.currentUser>\r\n (<tmpl_var submission.status>)\r\n </tmpl_if>\r\n</td></tr><tr><td class=\"tableData\"><b>\r\n <tmpl_if submission.thumbnail>\r\n <a href=\"<tmpl_var submission.url>\"><img src=\"<tmpl_var submission.thumbnail>\" border=\"0\" align=\"right\"/></a>\r\n </tmpl_if>\r\n <tmpl_var by.label> <a href=\"<tmpl_var submission.userProfile>\"><tmpl_var submission.username></a> - <tmpl_var submission.date></b><br />\r\n<tmpl_var submission.content>\r\n<p /> ( <a href=\"<tmpl_var submission.url>\"><tmpl_var readmore.label></a>\r\n <tmpl_if submission.responses>\r\n | <tmpl_var submission.responses> <tmpl_var responses.label>\r\n </tmpl_if>\r\n )<p/>\r\n</td></tr>\r\n\r\n</tmpl_loop>\r\n\r\n</table>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n <div class=\"pagination\">\r\n <tmpl_var pagination.previousPage> · <tmpl_var pagination.nextPage>\r\n </div>\r\n</tmpl_if>\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (4,'Photo Gallery','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p/>\r\n</tmpl_if>\r\n\r\n<tmpl_if session.scratch.search>\r\n <tmpl_var search.form>\r\n</tmpl_if>\r\n\r\n<tmpl_if canPost>\r\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a> ·\r\n</tmpl_if>\r\n\r\n\r\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a><p />\r\n\r\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0>\r\n<tr>\r\n<tmpl_loop submissions_loop>\r\n\r\n<td align=\"center\" class=\"tableData\">\r\n \r\n <tmpl_if submission.thumbnail>\r\n <a href=\"<tmpl_var submission.url>\"><img src=\"<tmpl_var submission.thumbnail>\" border=\"0\"/></a><br />\r\n </tmpl_if>\r\n <a href=\"<tmpl_var submission.url>\"><tmpl_var submission.title></a>\r\n <tmpl_if submission.currentUser>\r\n (<tmpl_var submission.status>)\r\n </tmpl_if>\r\n</td>\r\n\r\n<tmpl_if submission.thirdColumn>\r\n </tr><tr>\r\n</tmpl_if>\r\n\r\n</tmpl_loop>\r\n</tr>\r\n</table>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n <div class=\"pagination\">\r\n <tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo20> · <tmpl_var pagination.nextPage>\r\n </div>\r\n</tmpl_if>\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (1,'Default Submission','<h1><tmpl_var title></h1>\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0>\n<tr><td valign=\"top\" class=\"tableHeader\" width=\"100%\">\n<b><tmpl_var user.label>:</b> <a href=\"<tmpl_var user.Profile>\"><tmpl_var user.username></a><br />\n<b><tmpl_var date.label>:</b> <tmpl_var date.human><br />\n<b><tmpl_var status.label>:</b> <tmpl_var status.status><br />\n<b><tmpl_var views.label>:</b> <tmpl_var views.count><br />\n</td>\n<td rowspan=\"2\" class=\"tableMenu\" nowrap=\"1\" valign=\"top\">\n\n<tmpl_if previous.more>\n <a href=\"<tmpl_var previous.url>\">«<tmpl_var previous.label></a><br />\n</tmpl_if>\n<tmpl_if next.more>\n <a href=\"<tmpl_var next.url>\"><tmpl_var next.label>»</a><br />\n</tmpl_if>\n<tmpl_if canEdit>\n <a href=\"<tmpl_var edit.url>\"><tmpl_var edit.label></a><br />\n <a href=\"<tmpl_var delete.url>\"><tmpl_var delete.label></a><br />\n</tmpl_if>\n<tmpl_if canChangeStatus>\n <a href=\"<tmpl_var approve.url>\"><tmpl_var approve.label></a><br />\n <a href=\"<tmpl_var deny.url>\"><tmpl_var deny.label></a><br />\n</tmpl_if>\n<tmpl_if canPost>\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a><br />\n</tmpl_if>\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a><br />\n<a href=\"<tmpl_var back.url>\"><tmpl_var back.label></a><br />\n\n</td</tr><tr><td class=\"tableData\">\n<tmpl_if image.url>\n <img src=\"<tmpl_var image.url>\" border=\"0\"><p />\n</tmpl_if>\n<tmpl_var content><p />\n<tmpl_var attachment.box><br />\n\n</td></tr></table>\n\n<tmpl_var replies>','USS/Submission',1,1);
|
||||
INSERT INTO template VALUES (1,'Default Submission','<h1><tmpl_var submission.header.label></h1><tmpl_var form.header><table><tmpl_if user.isVisitor> <tmpl_if submission.isNew><tr><td><tmpl_var visitorName.label></td><td><tmpl_var visitorName.form></td></tr></tmpl_if> </tmpl_if><tr><td><tmpl_var title.label></td><td><tmpl_var title.form></td></tr><tr><td><tmpl_var body.label></td><td><tmpl_var body.form></td></tr><tr><td><tmpl_var image.label></td><td><tmpl_var image.form></td></tr><tr><td><tmpl_var attachment.label></td><td><tmpl_var attachment.form></td></tr><tr><td><tmpl_var contentType.label></td><td><tmpl_var contentType.form></td></tr><tr><td><tmpl_var startDate.label></td><td><tmpl_var startDate.form></td></tr><tr><td><tmpl_var endDate.label></td><td><tmpl_var endDate.form></td></tr><tr><td></td><td><tmpl_var form.submit></td></tr></table><tmpl_var form.footer>','USS/Submission',1,1);
|
||||
INSERT INTO template VALUES (1,'Default Forum','<tmpl_if user.canPost>\n <a href=\"<tmpl_var thread.new.url>\"><tmpl_var thread.new.label></a>\n <tmpl_unless user.isVisitor>\n • \n <tmpl_if user.isSubscribed>\n <a href=\"<tmpl_var forum.unsubscribe.url>\"><tmpl_var forum.unsubscribe.label></a>\n <tmpl_else>\n <a href=\"<tmpl_var forum.subscribe.url>\"><tmpl_var forum.subscribe.label></a>\n </tmpl_if>\n </tmpl_unless>\n •\n <a href=\"<tmpl_var forum.search.url>\"><tmpl_var forum.search.label></a>\n <p />\n</tmpl_if>\n\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" border=\"0\">\n<tr>\n <td class=\"tableHeader\"><tmpl_var thread.subject.label></td>\n <td class=\"tableHeader\"><tmpl_var thread.user.label></td>\n <td class=\"tableHeader\"><a href=\"<tmpl_var thread.sortby.views.url>\"><tmpl_var thread.views.label></a></td>\n <td class=\"tableHeader\"><a href=\"<tmpl_var thread.sortby.replies.url>\"><tmpl_var thread.replies.label></a></td>\n <td class=\"tableHeader\"><a href=\"<tmpl_var thread.sortby.rating.url>\"><tmpl_var thread.rating.label></a></td>\n <td class=\"tableHeader\"><a href=\"<tmpl_var thread.sortby.date.url>\"><tmpl_var thread.date.label></a></td>\n <td class=\"tableHeader\"><a href=\"<tmpl_var thread.sortby.lastreply.url>\"><tmpl_var thread.last.label></a></td>\n</tr>\n<tmpl_loop thread_loop>\n<tr>\n <td class=\"tableData\"><a href=\"<tmpl_var thread.root.url>\"><tmpl_var thread.root.subject></a></td>\n <tmpl_if thread.root.user.isVisitor>\n <td class=\"tableData\"><tmpl_var thread.root.user.name></td>\n <tmpl_else>\n <td class=\"tableData\"><a href=\"<tmpl_var thread.root.user.profile>\"><tmpl_var thread.root.user.name></a></td>\n </tmpl_if>\n <td class=\"tableData\" align=\"center\"><tmpl_var thread.views></td>\n <td class=\"tableData\" align=\"center\"><tmpl_var thread.replies></td>\n <td class=\"tableData\" align=\"center\"><tmpl_var thread.rating></td>\n <td class=\"tableData\"><tmpl_var thread.root.date> @ <tmpl_var thread.root.time></td>\n <td class=\"tableData\" style=\"font-size: 11px;\">\n <a href=\"<tmpl_var thread.last.url>\"><tmpl_var thread.last.subject></a>\n by \n <tmpl_if thread.last.user.isVisitor>\n <tmpl_var thread.last.user.name>\n <tmpl_else>\n <a href=\"<tmpl_var thread.last.user.profile>\"><tmpl_var thread.last.user.name></a>\n </tmpl_if>\n on <tmpl_var thread.last.date> @ <tmpl_var thread.last.time>\n </td>\n</tr>\n</tmpl_loop>\n</table>\n\n<tmpl_if multiplePages>\n <div class=\"pagination\">\n <tmpl_var previousPage> · <tmpl_var pageList> · <tmpl_var nextPage>\n </div>\n</tmpl_if>\n\n\n<div align=\"center\">\n<a href=\"<tmpl_var callback.url>\">-=: <tmpl_var callback.label> :=-</a>\n</div>\n','Forum',1,1);
|
||||
INSERT INTO template VALUES (5,'Classifieds','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n<tmpl_if session.scratch.search>\r\n <tmpl_var search.form>\r\n</tmpl_if>\r\n\r\n<tmpl_if canPost>\r\n <a href=\"<tmpl_var post.url>\"><tmpl_var post.label></a> ·\r\n</tmpl_if>\r\n\r\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a><p />\r\n\r\n<table width=\"100%\" cellpadding=3 cellspacing=0 border=0>\r\n<tr>\r\n<tmpl_loop submissions_loop>\r\n\r\n<td valign=\"top\" class=\"tableData\" width=\"33%\" style=\"border: 1px dotted #aaaaaa; padding: 10px;\">\r\n <h2><a href=\"<tmpl_var submission.url>\"><tmpl_var submission.title></a></h2>\r\n <tmpl_if submission.currentUser>\r\n (<tmpl_var submission.status>)\r\n </tmpl_if>\r\n<br />\r\n <tmpl_if submission.thumbnail>\r\n <a href=\"<tmpl_var submission.url>\"><img src=\"<tmpl_var submission.thumbnail>\" border=\"0\"/ align=\"right\"></a><br />\r\n </tmpl_if>\r\n<tmpl_var submission.content>\r\n</td>\r\n\r\n<tmpl_if submission.thirdColumn>\r\n </tr><tr>\r\n</tmpl_if>\r\n\r\n</tmpl_loop>\r\n</tr>\r\n</table>\r\n\r\n<tmpl_if pagination.pageCount.isMultiple>\r\n <div class=\"pagination\">\r\n <tmpl_var pagination.previousPage> <tmpl_var pagination.pageList.upTo20> <tmpl_var pagination.nextPage>\r\n </div>\r\n</tmpl_if>\r\n','USS',1,1);
|
||||
INSERT INTO template VALUES (15,'Topics','<tmpl_if displayTitle>\r\n <h1><tmpl_var title></h1>\r\n</tmpl_if>\r\n\r\n<tmpl_if description>\r\n <tmpl_var description><p />\r\n</tmpl_if>\r\n\r\n <tmpl_if canPost>\n <a href=\"<tmpl_var post.url>\"> <tmpl_var addquestion.label></a><p />\r\n</tmpl_if>\r\n\r\n\r\n<tmpl_loop submissions_loop>\r\n \n <tmpl_if submission.currentUser>\n <tmpl_unless session.var.adminOn>[<a href=\"<tmpl_var submission.edit.url>\"><tmpl_var submission.edit.label></a>]</tmpl_unless>\n </tmpl_if>\n <tmpl_if canModerate>\n <tmpl_if session.var.adminOn><tmpl_var submission.controls><tmpl_else><tmpl_unless submission.currentUser><tmpl_unless session.var.adminOn>[<a href=\"<tmpl_var submission.edit.url>\"><tmpl_var submission.edit.label></a>]</tmpl_unless></tmpl_unless></tmpl_if>\n </tmpl_if>\n \r\n <h2><tmpl_var submission.title></h2>\r\n <tmpl_var submission.content.full>\r\n <p />\r\n</tmpl_loop>\r\n\r\n','USS',1,1);
|
||||
|
|
|
|||
|
|
@ -275,4 +275,7 @@ INSERT INTO template VALUES (1,'Default Post Preview','<h2><tmpl_var newpost.hea
|
|||
UPDATE userProfileField SET dataValues = '{\r\n6=>WebGUI::International::get(\'HTMLArea 3\'),\r\n1=>WebGUI::International::get(495), #htmlArea\r\n#2=>WebGUI::International::get(494), #editOnPro2\r\n3=>WebGUI::International::get(887), #midas\r\n4=>WebGUI::International::get(879), #classic\r\n5=>WebGUI::International::get(880),\r\nnone=>WebGUI::International::get(881)\r\n}' WHERE fieldName = 'richEditor';
|
||||
INSERT INTO template VALUES ('6','HTMLArea 3 (Mozilla / IE)','<script language=\"JavaScript\"> \r\nfunction fixChars(element) { \r\nelement.value = element.value.replace(/-/mg,\"-\"); \r\n} \r\n</script> \r\n\r\n<tmpl_if htmlArea3.supported> \r\n\r\n<script type=\"text/javascript\"> \r\n_editor_url = \"<tmpl_var session.config.extrasURL>/htmlArea3/\"; \r\n_editor_lang = \"en\"; \r\n</script> \r\n<script type=\"text/javascript\" src=\"<tmpl_var session.config.extrasURL>/htmlArea3/htmlarea.js\"></script> \r\n<script language=\"JavaScript\"> \r\nHTMLArea.loadPlugin(\"TableOperations\"); \r\nHTMLArea.loadPlugin(\"FullPage\"); \r\nfunction initEditor() { \r\n// create an editor for the textbox \r\neditor = new HTMLArea(\"<tmpl_var form.name>\"); \r\n\r\n// register the FullPage plugin \r\neditor.registerPlugin(FullPage); \r\n\r\n// register the SpellChecker plugin \r\neditor.registerPlugin(TableOperations); \r\n\r\nsetTimeout(function() { \r\neditor.generate(); \r\n}, 500); \r\nreturn false; \r\n} \r\nwindow.setTimeout(\"initEditor()\", 250); \r\n</script> \r\n</tmpl_if> \r\n\r\n<tmpl_var textarea> ','richEditor',1,1);
|
||||
alter table page add encryptPage int(11) default 0;
|
||||
|
||||
alter table USS_submission add startDate int(11) default 946710000;
|
||||
alter table USS_submission add endDate int(11) default 2114406000;
|
||||
update template set template = '<h1><tmpl_var submission.header.label></h1><tmpl_var form.header><table><tmpl_if user.isVisitor> <tmpl_if submission.isNew><tr><td><tmpl_var visitorName.label></td><td><tmpl_var visitorName.form></td></tr></tmpl_if> </tmpl_if><tr><td><tmpl_var title.label></td><td><tmpl_var title.form></td></tr><tr><td><tmpl_var body.label></td><td><tmpl_var body.form></td></tr><tr><td><tmpl_var image.label></td><td><tmpl_var image.form></td></tr><tr><td><tmpl_var attachment.label></td><td><tmpl_var attachment.form></td></tr><tr><td><tmpl_var contentType.label></td><td><tmpl_var contentType.form></td></tr><tr><td><tmpl_var startDate.label></td><td><tmpl_var startDate.form></td></tr><tr><td><tmpl_var endDate.label></td><td><tmpl_var endDate.form></td></tr><tr><td></td><td><tmpl_var form.submit></td></tr></table><tmpl_var form.footer>' where templateId=1 and namespace = 'USS/SubmissionForm';
|
||||
update template set template = '<tmpl_if displayTitle> <h1><tmpl_var title></h1></tmpl_if><tmpl_if description> <tmpl_var description><p /></tmpl_if><tmpl_if session.scratch.search> <tmpl_var search.form></tmpl_if><table width="100%" cellpadding=2 cellspacing=1 border=0><tr><td align="right" class="tableMenu"><tmpl_if canPost> <a href="<tmpl_var post.url>"><tmpl_var post.label></a> ·</tmpl_if><a href="<tmpl_var search.url>"><tmpl_var search.label></a></td></tr></table><table width="100%" cellspacing=1 cellpadding=2 border=0><tr><td class="tableHeader"><tmpl_var title.label></td><td class="tableHeader"><tmpl_var date.label></td><td class="tableHeader"><tmpl_var by.label></td></tr><tmpl_loop submissions_loop><tmpl_if submission.inDateRange><tr><td class="tableData"> <a href="<tmpl_var submission.URL>"> <tmpl_var submission.title> <tmpl_if submission.currentUser> (<tmpl_var submission.status>) </tmpl_if></td><td class="tableData"><tmpl_var submission.date></td><td class="tableData"><a href="<tmpl_var submission.userProfile>"><tmpl_var submission.username></a></td></tr><tmpl_else> <tmpl_if canModerate><tr><td class="tableData"> <i>*<a href="<tmpl_var submission.URL>"> <tmpl_var submission.title> <tmpl_if submission.currentUser> (<tmpl_var submission.status>) </tmpl_if></i></td><td class="tableData"><i><tmpl_var submission.date></i></td><td class="tableData"><i><a href="<tmpl_var submission.userProfile>"><tmpl_var submission.username></a></i></td></tr> </tmpl_if></tmpl_if></tmpl_loop></table><tmpl_if pagination.pageCount.isMultiple> <div class="pagination"> <tmpl_var pagination.previousPage> · <tmpl_var pagination.pageList.upTo20> · <tmpl_var pagination.nextPage> </div></tmpl_if>' where templateId=1 and namespace='USS';
|
||||
|
|
|
|||
|
|
@ -569,6 +569,16 @@ sub www_editSubmission {
|
|||
name=>'contentType',
|
||||
value=>[$submission->{contentType}]
|
||||
});
|
||||
$var{'startDate.label'} = WebGUI::International::get(497);
|
||||
$var{'endDate.label'} = WebGUI::International::get(498);
|
||||
$var{'startDate.form'} = WebGUI::Form::dateTime({
|
||||
name => 'startDate',
|
||||
value => ($submission->{startDate} || $_[0]->get("startDate"))
|
||||
});
|
||||
$var{'endDate.form'} = WebGUI::Form::dateTime({
|
||||
name => 'endDate',
|
||||
value => ($submission->{endDate} || $_[0]->get("endDate"))
|
||||
});
|
||||
$var{'form.submit'} = WebGUI::Form::submit();
|
||||
$var{'form.footer'} = WebGUI::Form::formFooter();
|
||||
return $_[0]->processTemplate($_[0]->get("submissionFormTemplateId"),\%var,"USS/SubmissionForm");
|
||||
|
|
@ -610,6 +620,8 @@ sub www_editSubmissionSave {
|
|||
$hash{userDefined3} = $session{form}{userDefined3};
|
||||
$hash{userDefined4} = $session{form}{userDefined4};
|
||||
$hash{userDefined5} = $session{form}{userDefined5};
|
||||
$hash{startDate} = WebGUI::DateTime::humanToEpoch($session{form}{startDate});
|
||||
$hash{endDate} = WebGUI::DateTime::humanToEpoch($session{form}{endDate});
|
||||
$hash{contentType} = $session{form}{contentType};
|
||||
$file = WebGUI::Attachment->new("",$session{form}{wid},$session{form}{sid});
|
||||
$file->save("image");
|
||||
|
|
@ -684,7 +696,7 @@ sub www_view {
|
|||
$var{"submission.edit.label"} = WebGUI::International::get(27,$_[0]->get("namespace"));
|
||||
$p = WebGUI::Paginator->new(WebGUI::URL::page('func=view&wid='.$_[0]->get("wobjectId")),$numResults);
|
||||
$p->setDataByQuery("select USS_submissionId, content, title, userId, status, image, dateSubmitted, dateUpdated,
|
||||
username, contentType, forumId, userDefined1, userDefined2, userDefined3, userDefined4, userDefined5 from USS_submission
|
||||
username, contentType, forumId, userDefined1, userDefined2, userDefined3, userDefined4, userDefined5, startDate, endDate from USS_submission
|
||||
where USS_id=".quote($_[0]->get("USS_Id"))." and $constraints order by ".$_[0]->getValue("sortBy")." ".$_[0]->getValue("sortOrder"));
|
||||
$page = $p->getPageData;
|
||||
$i = 0;
|
||||
|
|
@ -716,6 +728,13 @@ sub www_view {
|
|||
.moveDownIcon($quickurl.'moveSubmissionDown');
|
||||
}
|
||||
}
|
||||
my $inDateRange;
|
||||
if ($page->[$i]->{startDate} < WebGUI::DateTime::time() &&
|
||||
$page->[$i]->{endDate} > WebGUI::DateTime::time())
|
||||
{
|
||||
$inDateRange = 1;
|
||||
}
|
||||
else { $inDateRange = 0; }
|
||||
push (@submission,{
|
||||
"submission.id"=>$page->[$i]->{USS_submissionId},
|
||||
"submission.url"=>WebGUI::URL::page($quickurl.'viewSubmission'),
|
||||
|
|
@ -742,7 +761,8 @@ sub www_view {
|
|||
"submission.thirdColumn"=>(($i+1)%3==0),
|
||||
"submission.fourthColumn"=>(($i+1)%4==0),
|
||||
"submission.fifthColumn"=>(($i+1)%5==0),
|
||||
'submission.controls'=>$controls
|
||||
'submission.controls'=>$controls,
|
||||
'submission.inDateRange'=>$inDateRange
|
||||
});
|
||||
$i++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -231,6 +231,10 @@ A translated text label that prompts the user to edit a particular submission.
|
|||
A loop containing each submission.
|
||||
<blockquote>
|
||||
|
||||
<b>submission.inDateRange</b>
|
||||
A boolean value indicating whether or not the submission is within the specified date range.
|
||||
<p/>
|
||||
|
||||
<b>submission.id</b><br/>
|
||||
A unique identifier for this submission.
|
||||
<p/>
|
||||
|
|
@ -794,6 +798,22 @@ A label for the contentType.form variable.
|
|||
A field allowing the user to select the type of content contained in the form.body field.
|
||||
<p>
|
||||
|
||||
<b>startDate.label</b><br>
|
||||
A label for the startDate.form variable.
|
||||
<p>
|
||||
|
||||
<b>startDate.form</b><br>
|
||||
A field allowing the user to select the first date the submission should be visible on the USS list.
|
||||
<p>
|
||||
|
||||
<b>endDate.label</b><br>
|
||||
A label for the endDate.form variable.
|
||||
<p>
|
||||
|
||||
<b>endDate.form</b><br>
|
||||
A field allowing the user to select the last date the submission should be visible on the USS list.
|
||||
<p>
|
||||
|
||||
<b>form.submit</b><br>
|
||||
A submit button.
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue