Fix pagebuilder cannot create more than 2 pages
Fix pagebuilder prototype breaks usenet Add default limit of 4 pages (configurable)
This commit is contained in:
@@ -42,52 +42,62 @@ Content-Type: text/html`
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<DISPLAY fontsize=medium>
|
||||
<TITLE>Page Settings</TITLE>
|
||||
<DISPLAY fontsize=medium>
|
||||
<TITLE>Page Settings</TITLE>
|
||||
</HEAD>
|
||||
<sidebar width=122 height=420 align=left>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr><td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-author:/documents"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Index</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-guide:/help?topic=Publish&subtopic=Index&appName=Page%20Builder"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Help</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right > <img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-author:/documents" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Index</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Help</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right>
|
||||
<img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
</sidebar>
|
||||
<body
|
||||
bgcolor=#1e4261
|
||||
|
||||
@@ -14,124 +14,150 @@ Content-Type: text/html`
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<DISPLAY fontsize=medium>
|
||||
<TITLE>Page Builder index</TITLE>
|
||||
<DISPLAY fontsize=medium>
|
||||
<TITLE>Page Builder index</TITLE>
|
||||
</HEAD>
|
||||
<sidebar width=122 height=420 align=left>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr><td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-author:/templates"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Create</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-author:/scrapbook"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Scrapbook</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-author:/document-cleanup"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Clean up</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-author:/samples_en-US/index.html"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Examples</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href=javascript:checkPageStatus()
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Archive</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-guide:/help?topic=Publish&subtopic=Index&appName=Page%20Builder"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Help</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right > <img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-author:/templates" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Create</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="client:showalert?message=This%20feature%20is%20not%20available." cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Scrapbook</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="client:showalert?message=Select%20the%20document%20you%20would%20like%20to%20remove%20then%20choose%20discard%20page." cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Clean up</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-author:/samples_en-US/index.html" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Examples</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href=client:showalert?message=This%20feature%20is%20not%20available. cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Archive</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Help</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right>
|
||||
<img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
</sidebar>
|
||||
<body
|
||||
bgcolor=#1e4261
|
||||
background=wtv-author:/ROMCache/blue_tile_128.gif text=AEBFD1 link=B8BDC7
|
||||
vlink=B8BDC7
|
||||
hspace=0
|
||||
vspace=0
|
||||
onLoad=StorageWarning()
|
||||
>
|
||||
<SCRIPT>
|
||||
function StorageWarning() { }
|
||||
</SCRIPT>
|
||||
<form name=onlyOnce><input type=hidden name=didIt value=0></form>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td abswidth=22 rowspan=100><td><td abswidth=22 rowspan=100>
|
||||
<tr>
|
||||
<td absheight=12>
|
||||
<tr>
|
||||
<td height=25 valign=top>
|
||||
<font size=+1 color=D1D1D1><blackface> Page Builder index </blackface></font>
|
||||
<tr>
|
||||
<td height=24>
|
||||
<font color=AEBFD1> Choose a document to change or view it </font>
|
||||
<tr>
|
||||
<td height=14>
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<body bgcolor=#1e4261 background=wtv-author:/ROMCache/blue_tile_128.gif text=AEBFD1 link=B8BDC7 vlink=B8BDC7 hspace=0 vspace=0 onLoad=StorageWarning()>
|
||||
<SCRIPT>
|
||||
function StorageWarning() {}
|
||||
</SCRIPT>
|
||||
<form name=onlyOnce>
|
||||
<input type=hidden name=didIt value=0>
|
||||
</form>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td abswidth=22 rowspan=100>
|
||||
<td>
|
||||
<td abswidth=22 rowspan=100>
|
||||
<tr>
|
||||
<td absheight=12>
|
||||
<tr>
|
||||
<td height=25 valign=top>
|
||||
<font size=+1 color=D1D1D1>
|
||||
<blackface> Page Builder index </blackface>
|
||||
</font>
|
||||
<tr>
|
||||
<td height=24>
|
||||
<font color=AEBFD1> Choose a document to change or view it </font>
|
||||
<tr>
|
||||
<td height=14>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
`
|
||||
for (let i = 0; i < numofpages; i++) {
|
||||
data += `<tr> <td rowspan=2 valign=top>`
|
||||
@@ -163,14 +189,20 @@ data += `
|
||||
<tr> <td><img src="/ROMCache/left_mark.gif" width=5 height=9>
|
||||
<td colspan=4><img src="/ROMCache/horiz_line_bottom.gif" width=347 height=9>
|
||||
<td><img src="/ROMCache/right_mark.gif" width=5 height=9>`
|
||||
}
|
||||
if (minisrv_config.services["wtv-author"].max_pages) {
|
||||
data += `
|
||||
</table>
|
||||
<p>A maximum of <b>${minisrv_config.services["wtv-author"].max_pages}</b> pages can be created, regardless of publish status.
|
||||
</table>`
|
||||
|
||||
}
|
||||
data += `
|
||||
</table>
|
||||
</table>
|
||||
<SCRIPT language=JavaScript>
|
||||
function checkPageStatus() {
|
||||
location = "wtv-author:/scrapbook-serve-confirm-archive?pub=true&unpub=false";
|
||||
}
|
||||
</SCRIPT>
|
||||
|
||||
</BODY>
|
||||
</HTML>`;
|
||||
|
||||
@@ -34,7 +34,7 @@ if (request_headers.query.publishing == "true") {
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-guide:/help?topic=Publish&subtopic=Index"
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
|
||||
@@ -1,9 +1,21 @@
|
||||
var minisrv_service_file = true;
|
||||
var create = true;
|
||||
var pagenums = session_data.pagestore.listPages().length;
|
||||
if (minisrv_config.services["wtv-author"].max_pages) {
|
||||
if (pagenums + 1 > minisrv_config.services["wtv-author"].max_pages) {
|
||||
create = false;
|
||||
}
|
||||
}
|
||||
if (create) {
|
||||
var pagename = session_data.pagestore.createPage(request_headers.query.styleName.replace(' ', '_'));
|
||||
|
||||
var pagename = session_data.pagestore.createPage(request_headers.query.styleName.replace(' ', '_'));
|
||||
|
||||
headers = `300 OK
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-author:/documents
|
||||
Location: wtv-author:/show-blocks?docName=${pagename}`
|
||||
} else {
|
||||
var err = wtvshared.doErrorPage(500, "You are not allowed to create more than <b>"+minisrv_config.services["wtv-author"].max_pages+"</b> pages.");
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
}
|
||||
@@ -7,8 +7,62 @@ AppName = window.navigator.appName;
|
||||
if (AppName.indexOf("WebTV") >= 0 )
|
||||
gIsWebTV = true;
|
||||
</SCRIPT>
|
||||
<TITLE>Sammy M. Surfer</TITLE>
|
||||
<TITLE>Examples</TITLE>
|
||||
</HEAD>
|
||||
<sidebar width=122 height=420 align=left>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="wtv-star:/ROMCache/HackTVLogoJewel.gif" width=87 height=67>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-author:/documents" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Index</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Help</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right>
|
||||
<img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
</sidebar>
|
||||
<body
|
||||
background="/clipart/styleMedia/ExternalBackground.gif"
|
||||
bgcolor=#1e4261
|
||||
@@ -24,7 +78,7 @@ vspace=0
|
||||
<td height=12>
|
||||
<tr>
|
||||
<td height=25 valign=top colspan=4>
|
||||
<font size=+1 color=D1D1D1>Pages of Sammy M. Surfer</font>
|
||||
<font size=+1 color=D1D1D1>Example Pages:</font>
|
||||
<tr>
|
||||
<td height=14>
|
||||
<tr><td height=10>
|
||||
|
||||
@@ -83,7 +83,7 @@ cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-guide:/help?topic=Publish&subtopic=Index&appName=Page%20Builder"
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,13 @@
|
||||
var minisrv_service_file = true;
|
||||
var create = true;
|
||||
var pagenums = session_data.pagestore.listPages().length;
|
||||
if (minisrv_config.services["wtv-author"].max_pages) {
|
||||
if (pagenums + 1 > minisrv_config.services["wtv-author"].max_pages) {
|
||||
create = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (create) {
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
@@ -10,241 +18,264 @@ data = `<HTML>
|
||||
<TITLE>Select a page style</TITLE>
|
||||
</HEAD>
|
||||
<sidebar width=122 height=420 align=left>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr><td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26 >
|
||||
<table href="wtv-guide:/help?topic=Publish&subtopic=Index&appName=Page%20Builder"
|
||||
cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left><table cellspacing=0 cellpadding=0><tr><td maxlines=1><font sizerange=medium color="C2CCD7">Help</font></table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right > <img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0 height=385>
|
||||
<TR>
|
||||
<td width=3>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td absHEIGHT=4>
|
||||
<td abswidth=2 bgColor=#8A99B0 rowspan=99>
|
||||
<td width=4 rowspan=99>
|
||||
<td backGround="wtv-author:/ROMCache/grad_tile.gif" width=16 rowspan=99>
|
||||
</TR>
|
||||
<tr>
|
||||
<td>
|
||||
<td align=right height=69 width=93 href="wtv-home:/home">
|
||||
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-author:/documents" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Index</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td abswidth=93 absheight=26>
|
||||
<table href="wtv-guide:/help?topic=Glossary&subtopic=P&page=pagebuilder" cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=5>
|
||||
<td abswidth=90 valign=middle align=left>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td maxlines=1>
|
||||
<font sizerange=medium color="C2CCD7">Help</font>
|
||||
</table>
|
||||
</table>
|
||||
<TR>
|
||||
<td colspan=5 absheight=2 valign=middle align=center bgcolor=#8A99B0>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=bottom align=right>
|
||||
<img src="wtv-author:/ROMCache/pagebuilder.gif" height=124 width=78>
|
||||
</table>
|
||||
</sidebar>
|
||||
<body
|
||||
bgcolor=#1e4261
|
||||
background=wtv-author:/ROMCache/blue_tile_128.gif text=AEBFD1 link=B8BDC7
|
||||
vlink=B8BDC7
|
||||
hspace=0
|
||||
vspace=0
|
||||
>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td abswidth=10 rowspan=100>
|
||||
<tr>
|
||||
<td height=44 width=206 valign=middle colspan=2>
|
||||
<font size=+1 color=D1D1D1><blackface> Choose a page style </blackface></font>
|
||||
<td align=right valign=middle>
|
||||
<table valign=middle>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0
|
||||
><tr><td><img src="wtv-author:/ROMCache/minus_button_dim.gif">
|
||||
</table>
|
||||
</td>
|
||||
<td align=center><font color=D1D1D1><B>1 of 6</B></font></td>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0
|
||||
href="wtv-author:/styles?tmplClass=11&docName=&styleName=&pageNum=1#plus" id=plus><tr><td><img src="wtv-author:/ROMCache/plus_button.gif">
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<tr>
|
||||
<td colspan=5><font color=AEBFD1> You can change the style at any time without losing your text or images.
|
||||
</font>
|
||||
<tr>
|
||||
<td absheight=10>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<tr>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=Blue_Sands.tmpl&contentTMPL=&styleName=Blue Sands
|
||||
&blocksPerPage=0"
|
||||
name="Blue Sands
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Blue Sands
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/blue_sands.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=Ocean.tmpl&contentTMPL=&styleName=Ocean
|
||||
&blocksPerPage=0"
|
||||
name="Ocean
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Ocean
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/oceanic.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=Space.tmpl&contentTMPL=&styleName=Space
|
||||
&blocksPerPage=0"
|
||||
name="Space
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Space
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/space.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<tr>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=ringbinder.tmpl&contentTMPL=&styleName=Ringbinder
|
||||
&blocksPerPage=0"
|
||||
name="Ringbinder
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Ringbinder
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/ringbinder.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=Stone.tmpl&contentTMPL=&styleName=Stone
|
||||
&blocksPerPage=0"
|
||||
name="Stone
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Stone
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/stone.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0
|
||||
href="new?tmplClass=
|
||||
&layoutTMPL=Cats.tmpl&contentTMPL=&styleName=Cats
|
||||
&blocksPerPage=0"
|
||||
name="Cats
|
||||
"
|
||||
>
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F>
|
||||
Cats
|
||||
<BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/catz.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120><IMG height=120 width=12 src=/ROMCache/right_shadow.gif></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128><IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif></TD>
|
||||
<TD><IMG height=12 width=12 src=/ROMCache/corner_shadow.gif></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
</table>
|
||||
<body bgcolor=#1e4261 background=wtv-author:/ROMCache/blue_tile_128.gif text=AEBFD1 link=B8BDC7 vlink=B8BDC7 hspace=0 vspace=0>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td abswidth=10 rowspan=100>
|
||||
<tr>
|
||||
<td height=44 width=206 valign=middle colspan=2>
|
||||
<font size=+1 color=D1D1D1>
|
||||
<blackface> Choose a page style </blackface>
|
||||
</font>
|
||||
<td align=right valign=middle>
|
||||
<table valign=middle>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="wtv-author:/ROMCache/minus_button_dim.gif">
|
||||
</table>
|
||||
</td>
|
||||
<td align=center>
|
||||
<font color=D1D1D1>
|
||||
<B>1 of 1</B>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0 ref="wtv-author:/styles?tmplClass=11&docName=&styleName=&pageNum=1#plus" id=plus>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="wtv-author:/ROMCache/plus_button_dim.gif">
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<tr>
|
||||
<td colspan=5>
|
||||
<font color=AEBFD1> You can change the style at any time without losing your text or images. </font>
|
||||
<tr>
|
||||
<td absheight=10>
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Blue_Sands.tmpl&contentTMPL=&styleName=Blue Sands&blocksPerPage=0" name="Blue Sands">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Blue Sands <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/blue_sands.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Space.tmpl&contentTMPL=&styleName=Space&blocksPerPage=0" name="Space">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Space <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/space.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Cats.tmpl&contentTMPL=&styleName=Cats&blocksPerPage=0" name="Cats">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Cats <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/catz.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<tr>
|
||||
<td>
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Blue.tmpl&contentTMPL=&styleName=Blue&blocksPerPage=0" name="Blue">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Blue <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/blue.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Red.tmpl&contentTMPL=&styleName=Red&blocksPerPage=0" name="Red">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Red <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/red.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<TABLE border=0 cellpadding=0 cellspacing=0 width=137>
|
||||
<TR height=120>
|
||||
<TD width=128 height=120 bgcolor=#8A99B0 href="new?tmplClass=&layoutTMPL=Republican.tmpl&contentTMPL=&styleName=Republican&blocksPerPage=0" name="Republican">
|
||||
<spacer type=block width=4></spacer>
|
||||
<font color=0F283F> Republican <BR>
|
||||
</font>
|
||||
<center>
|
||||
<img src=/images/styles/republican.gif width="120" height="90" vspace=3>
|
||||
</center>
|
||||
</TD>
|
||||
<TD height=120>
|
||||
<IMG height=120 width=12 src=/ROMCache/right_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD width=128>
|
||||
<IMG height=12 width=128 src=/ROMCache/bottom_shadow.gif>
|
||||
</TD>
|
||||
<TD>
|
||||
<IMG height=12 width=12 src=/ROMCache/corner_shadow.gif>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</td>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
} else {
|
||||
var err = wtvshared.doErrorPage(500, "You are not allowed to create more than <b>"+minisrv_config.services["wtv-author"].max_pages+"</b> pages.");
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user