Forgot migrating the Synopis macro

This commit is contained in:
Len Kranendonk 2004-03-02 16:04:11 +00:00
parent a1b80ac789
commit 9c24f30f6e

View file

@ -670,5 +670,15 @@ alter table IndexedSearch_docInfo add column dateIndexed int not null;
INSERT INTO template VALUES (14,'Job Listing','<tmpl_if displayTitle>\n <h1><tmpl_var title></h1>\n</tmpl_if>\n\n<tmpl_if description>\n <tmpl_var description><p />\n</tmpl_if>\n\n<tmpl_if session.scratch.search>\n <tmpl_var search.form>\n</tmpl_if>\n\n<table width=\"100%\" cellpadding=2 cellspacing=1 border=0><tr>\n<td align=\"right\" class=\"tableMenu\">\n\n<tmpl_if canPost>\n <a href=\"<tmpl_var post.url>\">Add a job.</a> &middot;\n</tmpl_if>\n\n<a href=\"<tmpl_var search.url>\"><tmpl_var search.label></a>\n\n</td></tr></table>\n\n<table width=\"100%\" cellspacing=1 cellpadding=2 border=0>\n<tr>\n<td class=\"tableHeader\">Job Title</td>\n<td class=\"tableHeader\">Location</td>\n<td class=\"tableHeader\">Compensation</td>\n<td class=\"tableHeader\">Date Posted</td>\n</tr>\n\n<tmpl_loop submissions_loop>\n\n<tr>\n<td class=\"tableData\">\n <a href=\"<tmpl_var submission.URL>\"> <tmpl_var submission.title>\n</td>\n<td class=\"tableData\"><tmpl_var submission.userDefined2></td>\n<td class=\"tableData\"><tmpl_var submission.userDefined1></td>\n<td class=\"tableData\"><tmpl_var submission.date></td>\n</tr>\n\n</tmpl_loop>\n\n</table>\n\n<tmpl_if multiplePages>\n <div class=\"pagination\">\n <tmpl_var previousPage> &middot; <tmpl_var pageList> &middot; <tmpl_var nextPage>\n </div>\n</tmpl_if>\n','USS');
INSERT INTO template VALUES (2,'Job','<h1><tmpl_var title></h1>\n\n<tmpl_if content>\n<p>\n<b>Job Description</b><br />\n<tmpl_var content>\n</p>\n</tmpl_if>\n\n<tmpl_if userDefined3.value>\n<p>\n<b>Job Requirements</b><br />\n<tmpl_var userDefined3.value>\n</p>\n</tmpl_if>\n\n<table>\n<tr>\n <td class=\"tableHeader\">Date Posted</td>\n <td class=\"tableData\"><tmpl_var date.human></td>\n</tr>\n<tr>\n <td class=\"tableHeader\">Location</td>\n <td class=\"tableData\"><tmpl_var userDefined2.value></td>\n</tr>\n<tr>\n <td class=\"tableHeader\">Compensation</td>\n <td class=\"tableData\"><tmpl_var userDefined1.value></td>\n</tr>\n<tr>\n <td class=\"tableHeader\">Views</td>\n <td class=\"tableData\"><tmpl_var views.count></td>\n</tr>\n</table>\n\n<p>\n<tmpl_if previous.more>\n <a href=\"<tmpl_var previous.url>\">&laquo; Previous Job</a> &middot;\n</tmpl_if>\n<a href=\"<tmpl_var back.url>\">List All Jobs</a>\n<tmpl_if next.more>\n &middot; <a href=\"<tmpl_var next.url>\">Next Job &raquo;</a>\n</tmpl_if>\n</p>\n\n\n<tmpl_if canEdit>\n<p>\n <a href=\"<tmpl_var edit.url>\">Edit</a>\n &middot;\n <a href=\"<tmpl_var delete.url>\"><tmpl_var delete.label></a>\n</p>\n</tmpl_if>\n\n<tmpl_if canChangeStatus>\n <p>\n<b>Status:</b> <tmpl_var status.status> ||\n <a href=\"<tmpl_var approve.url>\"><tmpl_var approve.label></a>\n &middot;\n <a href=\"<tmpl_var deny.url>\"><tmpl_var deny.label></a>\n </p>\n</tmpl_if>\n\n\n\n','USS/Submission');
INSERT INTO template VALUES (4,'Job Submission Form','<h1>Edit Job Posting</h1>\n\n<tmpl_var form.header>\n<input type=\"hidden\" name=\"contentType\" value=\"html\" />\n <table>\n <tmpl_if user.isVisitor> <tmpl_if submission.isNew>\n <tr><td><tmpl_var visitorName.label></td><td><tmpl_var visitorName.form></td></tr>\n </tmpl_if> </tmpl_if>\n <tr><td>Job Title</td><td><tmpl_var title.form></td></tr>\n <tr><td>Job Description</td><td><tmpl_var body.form></td></tr>\n <tr><td>Job Requirements</td><td><tmpl_var userDefined3.form.htmlarea></td></tr>\n <tr><td>Compensation</td><td><tmpl_var userDefined1.form></td></tr>\n <tr><td>Location</td><td><tmpl_var userDefined2.form></td></tr>\n <tr><td></td><td><tmpl_var form.submit></td></tr>\n </table>\n<tmpl_var form.footer>\n','USS/SubmissionForm');
INSERT INTO international VALUES (1085,'WebGUI',1,'Navigation, Add/Edit',1078208044,NULL);
INSERT INTO international VALUES (1086,'WebGUI',1,'<P>Manage Navigation lets you add and edit what are essentially \'menu templates\' -- they define what pages\' Menu Names should be included in a menu based (sometimes) on where that menu appears. </P>\r\n<P><B>Identifier</B><BR>This is the (unique) label you will later use to specify this Navigation definition in a ^Navigation(); macro.</P>\r\n<P><B>Start Traversing At&nbsp; <FONT color=#ff0000>SHALL WE CALL THIS \"Base Page\" ?</FONT></B><BR>This identifies the spot in the Page Tree where the macro should commence listing pages. The first three choices will create \'absolute\' menus -- ones which will display the same pages no matter which page you use the macro from. </P>\r\n<P></P>\r\n<P>The next four create \'relative\' menus -- ones in which the items which will be displayed depend on the location in the page tree of the page in which you use the macro.</P>\r\n<P>The last two I still don\'t understand. Len? :-) <BR><FONT color=#ff0000>[Leave blank] has no function but it\'s part of the \"combo box\".<BR>Add new value-&gt; gives the possibility to define your own start page in the second field. It can be any page in the tree. Just fill in it\'s urlizedtitle ( home , staff , about_us , whatever ) or the pageId. </FONT></P>\r\n<P><B>Return a Loop With</B><BR>This determines which pages relative to the base page will be included in the menu which the macro creates.</P>\r\n<UL>\r\n<LI>daughters - pages below the <FONT color=#ff0000><STRIKE>root</STRIKE> base</FONT>&nbsp;page \r\n<LI>sisters - pages at the same level as the <FONT color=#ff0000><STRIKE>root</STRIKE> base</FONT> page<FONT color=#ff0000>, excluding the base page.</FONT> \r\n<LI><FONT color=#ff0000>self and sisters - all pages at the same level as the base page</FONT> \r\n<LI><FONT color=#ff0000>descendants - all the descendants of base page (daughters, granddaughters, grand-granddaughters, etc)</FONT> \r\n<LI><FONT color=#ff0000>self and descendants - base page and all of it\'s descendants.</FONT> \r\n<LI><FONT color=#ff0000>childless descendants - The \"leaf nodes\" under base page. Also called \"terminal nodes\" -- i.e. pages that have no daughters.</FONT> \r\n<LI><FONT color=#ff0000>generation - base page, it\'s sisters, it\'s cousins, grand cousins, grand-grand cousins, etc. Technically spoken: Pages that share the same depth as \"base page\".</FONT> \r\n<LI><FONT color=#ff0000>ancestors - all base page ancestors, starting with it\'s mother, then grandmother, etc.</FONT> \r\n<LI><FONT color=#ff0000>self and ancestors - same as ancestors but starting at base page.</FONT> \r\n<LI><FONT color=#ff0000>pedigree - This is what we know as the \"FlexMenu\". Starting at base page, it returns its daughters, self and sisters, ancestors and the sisters of each ancestor.<BR></FONT></LI></UL>\r\n<P>... and many other terms someone is going to have to explain to *me* before I can document them. :-) </P>\r\n<P></P>\r\n<P><B>Stop traversing when reaching level</B><BR>This allows you to prune a menu -- in either direction (?)&nbsp;<FONT color=#ff0000><STRONG>that\'s right</STRONG></FONT>&nbsp;-- when it reaches a <I>specific</I> level in the page tree. It\'s slightly different in effect than... </P>\r\n<P><B>Max Depth</B><BR>...which allows you to prune a menu -- in either direction (?)&nbsp;<STRONG><FONT color=#ff0000>that\'s right</FONT></STRONG>-- when it reaches a <I>number of levels</I> in the page tree. \'Stop Traversing\' is absolute; \'Max Depth\' is relative. Presumably, if you set both, whichever one takes effect <I>first</I> will be the active limit (that is, they\'re OR\'d together <STRONG><FONT color=#ff0000>Very true again :) </FONT></STRONG>). </P>\r\n<P><B>Show System Pages</B><BR>Should the menus the macro creates include System pages? (What\'s a system page, Len? <STRONG><FONT color=#ff0000>Trash, clipboard, </FONT></STRONG>:-) </P>\r\n<P><B>Show Hidden Pages</B><BR>Should the menus the macro creates include pages which are marked as Hidden? </P>\r\n<P><B>Show Unpriviliged Pages</B><BR>Should the menus the macro creates include pages which the currently logged-in user does not have the privilige to view? </P>\r\n<P><B>Template</B><BR>This menu permits you to select a template which is used to style the output created by the macro -- if you need the same collection of pages in multiple formats, you\'ll need to create multiple Navigation entries with (slightly) different names; the Copy Navigation button is useful for this.</P>\r\n<P><B>Revert Output</B><BR>I dunno what this does. Len? <B><FONT color=#ff0000>It draws the menu upside down :)</P></B></FONT>',1078216633,NULL);
INSERT INTO international VALUES (1087,'WebGUI',1,'Navigation, Manage',1078208044,NULL);
INSERT INTO international VALUES (1088,'WebGUI',1,'TODO: Document the Manage navigation Interface ',1078208044,NULL);
INSERT INTO international VALUES (1089,'WebGUI',1,'Navigation Template',1078207966,NULL);
INSERT INTO international VALUES (1090,'WebGUI',1,'<STRONG>config.button</STRONG>&nbsp;<BR>A \"Edit / Manage\" button for this navigation item.<BR>\r\n<P><STRONG>page_loop</STRONG><BR>A loop containing page information.</P>\r\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\">\r\n<P dir=ltr><STRONG>page.menuTitle<BR></STRONG>The menu title of this page.</P>\r\n<P dir=ltr><STRONG>page.title<BR></STRONG>The title of this page.</P>\r\n<P><STRONG>page.urlizedTitle<BR></STRONG>The urlized title of this pagepage.url.</P>\r\n<P><STRONG>page.url<BR></STRONG>The url of this page.</P>\r\n<P dir=ltr><STRONG>page.pageId</STRONG><BR>The pageId of this page.</P>\r\n<P dir=ltr><STRONG>page.parentId</STRONG><BR>The ParentId&nbsp;of this page.</P>\r\n<P dir=ltr><STRONG>page.ownerId<BR></STRONG>The ownerId of this page.</P>\r\n<P dir=ltr><STRONG>page.synopsis<BR></STRONG>The synopsis of this page.</P>\r\n<P dir=ltr><STRONG>page.newWindow</STRONG><BR>A condition indicating whether this page should be opened in a new window.</P>\r\n<P dir=ltr><STRONG>page.absDepth</STRONG><BR>The absolute depth of this page&nbsp;(relative to nameless root).</P>\r\n<P><STRONG>page.relDepth</STRONG><BR>The relative depth of this page (relative to starting point).</P>\r\n<P><STRONG>page.isCurrent</STRONG><BR>A condition indicating whether this page is current page.</P>\r\n<P><STRONG>page.isHidden</STRONG><BR>A condition indicating whether this page is a hidden page.<BR><EM>(Note: This variable is only visible if \"Show hidden pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.isSystem</STRONG><BR>A condition indicating whether this page is a system page (Trash, Clipboard, etc).<BR><EM>(Note: This variable is only visible if \"Show system pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.isViewable<BR></STRONG>A condition indicating whether the user has permission to view it.<BR><EM>(Note: This variable is only visible if \"Show unprivileged pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.indent<BR></STRONG>A variable containing the indent for current page. The default indent is three spaces. Use the <STRONG>page.indent_loop </STRONG>if you need a more flexible indent.</P>\r\n<P><STRONG>page.indent_loop<BR></STRONG>A loop that runs <STRONG>page.relDepth </STRONG>times.</P>\r\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\">\r\n<P><STRONG>indent</STRONG><BR>A number representing the loop count. </P></BLOCKQUOTE>\r\n<P dir=ltr><STRONG>page.isRoot</STRONG><BR>A condition indication whether this page is a root page.</P>\r\n<P dir=ltr><STRONG>page.isTop</STRONG><BR>A condition indication whether this page is a top page (daughter of root).</P>\r\n<P dir=ltr><STRONG>page.hasDaughter</STRONG><BR>A condition indication whether this page has a daughter. In other words: It evaluates to true if this page is a mother.</P>\r\n<P dir=ltr><STRONG>page.isMyDaughter</STRONG><BR>A condition indication whether this page is a daughter of current page.</P>\r\n<P dir=ltr><STRONG>page.isMyMother<BR></STRONG>A condition indication whether this page is the mother of current page.</P>\r\n<P dir=ltr><STRONG>page.mother.title<BR></STRONG>The title of the mother of this&nbsp;page.</P>\r\n<P dir=ltr><STRONG>page.mother.urlizedTitle<BR></STRONG>The urlized title of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.mother.pageId</STRONG><BR>The pageId of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.mother.parentId</STRONG><BR>The parentId of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.depthIs1 , page.depthIs2 , page.depthIs3 , page.depthIs4 , page.depthIsN<BR></STRONG>A condition indicating whether the depth of this page is N. This variable is useful if you want to style a certain level.</P>\r\n<P dir=ltr>&lt;tmpl_if page.depthIs1&gt;<BR>&nbsp;&nbsp; &lt;img src=\"level1.gif\"&gt;<BR>&lt;tmpl_else&gt;<BR>&nbsp;&nbsp; &lt;img src=\"defaultBullet.gif\"&gt;<BR>&lt;/tmpl_if&gt;</P>\r\n<P dir=ltr><STRONG>page.relativeDepthIs1 , page.relativeDepthIs2 , page.relativeDepthIs3 , page.relativeDepthIsN</STRONG><BR>A condition indicating whether the relative depth of this page is N.</P></BLOCKQUOTE>\r\n<P dir=ltr>&nbsp;</P>',1078207966,NULL);
INSERT INTO help VALUES (79,'WebGUI',1085,1086,'58,WebGUI;81,WebGUI;80,WebGUI;34,WebGUI;');
INSERT INTO help VALUES (80,'WebGUI',1087,1088,'58,WebGUI;81,WebGUI;79,WebGUI;');
INSERT INTO help VALUES (81,'WebGUI',1089,1090,'58,WebGUI;79,WebGUI;80,WebGUI;50,WebGUI;');
INSERT INTO template VALUES (8,'Synopsis','<div class=\"synopsis\">\r\n<tmpl_loop page_loop>\r\n <div class=\"synopsis_title\">\r\n <a href=\"<tmpl_var page.url>\"><tmpl_var page.menuTitle></a>\r\n </div>\r\n <tmpl_if page.indent>\r\n <div class=\"synopsis_sub\">\r\n <tmpl_var page.synopsis>\r\n </div>\r\n <tmpl_else>\r\n <div class=\"synopsis_summary\">\r\n <tmpl_var page.synopsis>\r\n </div>\r\n </tmpl_if>\r\n</tmpl_loop>\r\n</div>','Navigation',1,1);
INSERT INTO Navigation VALUES (18,'Synopsis',99,'self_and_descendants','current',-1,8,0,0,0,0);