First pass at adding key files

This commit is contained in:
dsainty
2024-06-17 21:49:12 +10:00
commit aa25e9347f
1274 changed files with 392549 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links<%if config.payment.enabled%> (titles coloured <font color="red">red</font> are links still awaiting payment or have expired)<%endif%>.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,67 @@
<html>
<head>
<script language="Javascript">
<!--
/**
* As we have just added a sub category, it is necessary
* to update the javascript tree in order to reflect the
* changes.
*/
if (parent.CAN_UPDATE) {
parent.frames[parent.LEFT_FRAME_ID].document.open();
parent.frames[parent.LEFT_FRAME_ID].document.writeln ('<HTML><BODY BGCOLOR="#FFFFFF"><H2><BLINK>Updating info...</BLINK></H2></BODY></HTML>');
parent.frames[parent.LEFT_FRAME_ID].document.close();
parent.tree.addNode (new parent.LoadedNode (<%child_id%>, <%father_id%>, "<%child_name%>", 0));
parent.frames[parent.LEFT_FRAME_ID].document.open();
parent.frames[parent.LEFT_FRAME_ID].document.writeln (parent.tree.toHtml());
parent.frames[parent.LEFT_FRAME_ID].document.close();
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%father_id%>");
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%parent_name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%parent_name%> <br>
<font color="green">Category <%child_name%> added successfully.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,45 @@
<html>
<head>
<title> Add a sub-category </title>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Add a Sub Category beneath <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Add a Sub Category beneath <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST" onSubmit="parent.CAN_UPDATE=1;">
<input type="hidden" name="action" value="category_add">
<%form%>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><font face="Tahoma,Arial,Helvetica" size="2"><input type=submit value="Add Sub Category"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,70 @@
<html>
<head>
<script language="Javascript">
<!-- //
if (parent.CAN_UPDATE) {
var old_id = <%child_id%>;
var old_node = parent.tree.lookup (old_id);
var fatherid = old_node.getFatherId();
var number_of_links = old_node.getNumberOfLinks();
parent.tree.delNode (old_node);
while (true)
{
if (old_node.getNumberOfLinks() != null) old_node.setNumberOfLinks (old_node.getNumberOfLinks() - number_of_links);
if (fatherid == old_id) break;
old_id = fatherid;
old_node = parent.tree.lookup (old_id);
fatherid = old_node.getFatherId();
}
parent.frames[parent.LEFT_FRAME_ID].document.open();
parent.frames[parent.LEFT_FRAME_ID].document.writeln (parent.tree.toHtml());
parent.frames[parent.LEFT_FRAME_ID].document.close();
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%father_name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%father_name%><br>
<font color="green"><%child_name%> has been deleted.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,31 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Delete Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Delete Category: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Are you sure that you want to delete category "<%Name%>" (<%category_id%>)? Note that this will also remove all links in this category.</font>
<p><font face="Tahoma,Arial,Helvetica" size="2">
&nbsp; &nbsp;
<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=category_del&category_id=<%category_id%>" onClick="parent.CAN_UPDATE = 1;">Yes</a> &nbsp; &nbsp; <a href="#" onClick="history.go(-1); return false">No</a>
</font>
</body>
</html>

View File

@ -0,0 +1,80 @@
<html>
<head>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Set Editors for Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Set Editors for Category: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST">
<input type="hidden" name="action" value="category_editors_form">
<input type="hidden" name="category_id" value="<%id%>">
<%if editors%>
<p><font face="Tahoma,Arial,Helvetica" size="2">The following users have editor access to this area: <input type="submit" value="Delete Checked"><br><br>
<%editors%>
</font></p>
<%endif%>
<table border="1" cellpadding="3" bordercolor="#DDDDDD" cellspacing="0" width="500">
<tr>
<td colspan="2" valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Add New
Editor:</font></td>
</tr>
<tr>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2"> Username:</font></td>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2"><input name="Username"> </font></td>
</tr>
<tr>
<td colspan="2" valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Permissions:</font></td>
</tr>
<tr>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Categories</font></td>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Add <input type="checkbox" name="CanAddCat" value="Yes">
Delete <input type="checkbox" name="CanDelCat" value="Yes"> Modify <input type="checkbox" name="CanModCat" value="Yes">
Move <input type="checkbox" name="CanMoveCat" value="Yes"> Relations <input type="checkbox" name="CanAddRel" value="Yes"></font></td>
</tr>
<tr>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Links</font></td>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Add <input type="checkbox" name="CanAddLink" value="Yes">
Delete <input type="checkbox" name="CanDelLink" value="Yes"> Modify <input type="checkbox" name="CanModLink" value="Yes">
Copy <input type="checkbox" name="CanCopyLink" value="Yes"> Move <input type="checkbox" name="CanMoveLink" value="Yes">
Validate <input type="checkbox" name="CanValLink" value="Yes"></font></td>
</tr>
<tr>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Reviews</font></td>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Delete/Modify/Validate <input type="checkbox" name="CanModReview" value="Yes"></font></td>
</tr>
<tr>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Editors</font></td>
<td valign="top"><font face="Tahoma,Arial,Helvetica" size="2">Add <input type="checkbox" name="CanAddEdit" value="Yes"></font></td>
</tr>
<tr>
<td valign="top" colspan="2">
<p align="center"><font face="Tahoma,Arial,Helvetica" size="2"><input type="submit" value="Add Editor"></td>
</tr>
</table>
<font face="Tahoma,Arial,Helvetica" size="2">
<p>&nbsp;</p>
</body>
</html>

View File

@ -0,0 +1,21 @@
<li><input type="checkbox" name="delete" value="<%Username%>|<%CategoryID%>"> <%Username%> (<%Full_Name%>) <br><font size=1>
Permissions: <br>
<b>Links:</b>
<%if CanAddLink eq 'Yes'%>Add<%endif%>
<%if CanDelLink eq 'Yes'%>Delete<%endif%>
<%if CanModLink eq 'Yes'%>Modify<%endif%>
<%if CanMoveLink eq 'Yes'%>Move<%endif%>
<%if CanCopyLink eq 'Yes'%>Copy<%endif%>
<%if CanValLink eq 'Yes'%>Validate<%endif%>
<b>Category:</b>
<%if CanAddCat eq 'Yes'%>Add<%endif%>
<%if CanDelCat eq 'Yes'%>Delete<%endif%>
<%if CanModCat eq 'Yes'%>Modify<%endif%>
<%if CanMoveCat eq 'Yes'%>Move<%endif%>
<%if CanAddRel eq 'Yes'%>Related<%endif%>
<b>Reviews:</b>
<%if CanModReview eq 'Yes'%>Delete/Modify/Validate<%endif%>
<b>Editors:</b>
<%if CanAddEdit eq 'Yes'%>Add<%endif%>
</font>
</li>

View File

@ -0,0 +1,13 @@
<html>
<head>
<title></title>
</head>
<body bgcolor="#ffffff" onLoad="parent.draw_tree(); parent.set_location(<%category_id%>);">
<script type="text/javascript">
if (parent.tree != null) {
<%instructions%>
parent.tree.lookup(<%category_id%>).setExpanded(true);
}
</script>
</body>
</html>

View File

@ -0,0 +1,65 @@
<html>
<head>
<script language="Javascript">
<!--
/**
* A category has just been modified, therefore the javascript
* tree on the left pane should be updated consequently.
*/
if (parent.CAN_UPDATE) {
var modified_category_id = <%category_id%>;
var modified_category_name = <%Name_quoted%>;
var category = parent.tree.lookup (modified_category_id);
category.setName (modified_category_name);
parent.frames[parent.LEFT_FRAME_ID].document.open();
parent.frames[parent.LEFT_FRAME_ID].document.writeln (parent.tree.toHtml());
parent.frames[parent.LEFT_FRAME_ID].document.close()
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%category_id%>");
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%Name%><br>
<font color="green"><%Name%> has been successfully modified.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,39 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Modify Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Modify Category: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" onSubmit="parent.CAN_UPDATE = 1;" method="POST">
<input type="hidden" name="action" value="category_modify">
<%form%>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><font face="Tahoma,Arial,Helvetica" size="2"><input type=submit value="Modify Category"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,121 @@
<html>
<head>
<script language="Javascript">
<!--
if (parent.CAN_UPDATE) {
var node_id = <%category_id%>;
var node_to_id = <%category_to_id%>;
var node = parent.tree.lookup (node_id);
var node_to = parent.tree.lookup (node_to_id);
var node_from_id = node.getFatherId();
var node_from = parent.tree.lookup (node_from_id);
var error_flag = false;
var error = "Software error:\n";
error += "---------------\n";
if (node == null || node_from == null || node_to == null) error_flag = true;
if (node == null) error += " + the node to move does not exist\n";
if (node_from == null) error += " + the original father node does not seem to exist\n";
if (node_to == null) error += " + the target father node does not seem to exist\n";
if (error_flag) alert (error);
else
{
if (!node_to.isLoaded())
{
parent.tree.delNode (node_to);
parent.tree.addNode (new parent.LoadedNode (node_to.getId(), node_to.getFatherId(), node_to.getName()));
<%load_node_info%>
}
}
parent.tree.delNode (node);
node.setFatherId (node_to_id);
parent.tree.addNode (node);
// Now update the links counters
var old_id = <%old%>;
var new_id = <%new%>;
var number_of_links = <%number_of_links%>;
var old_node = parent.tree.lookup (old_id);
var new_node = parent.tree.lookup (new_id);
// goes up in the tree, decreasing link counts by one
// from the old node
var fatherid = old_node.getFatherId();
while (true)
{
if (old_node.getNumberOfLinks() != null) old_node.setNumberOfLinks (old_node.getNumberOfLinks() - number_of_links);
if (fatherid == old_id) break;
old_id = fatherid;
old_node = parent.tree.lookup (old_id);
fatherid = old_node.getFatherId();
}
// goes up in the tree, increasing link counts by one
// from the new node
fatherid = new_node.getFatherId();
while (true)
{
if (new_node.getNumberOfLinks() != null) new_node.setNumberOfLinks (new_node.getNumberOfLinks() + number_of_links);
if (fatherid == new_id) break;
new_id = fatherid;
new_node = parent.tree.lookup (new_id);
fatherid = new_node.getFatherId();
}
// redisplays this info
parent.draw_tree();
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%old%>");
}
// -->
</script>
<body bgcolor="#FFFFFF" onUnload="parent.CAN_UPDATE = 0;">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse Category: <%Name%> <br>
<font color="green"><%Name%> has been successfully moved.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,39 @@
<html>
<head>
<script language="Javascript">
<!--
// Do not alter
move_from = <%category_id%>
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Move Category: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Move Category: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Please use the tree on your left to pick the category in
which you want to move the current category to, or
<a href="#" onClick="history.go(-1); return false">Click here to cancel</a></font>
</p>
</body>
</html>

View File

@ -0,0 +1,51 @@
<html>
<head>
<script language="Javascript">
<!--
// Do not alter
related_to = <%category_id%>
// -->
</script>
</head>
<body bgcolor="#ffffff" onUnload="related_to=0;">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Set Related Categories for: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Set Related Categories for: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST" name="related_form">
<input type="hidden" name="action" value="category_related_form">
<input type="hidden" name="category_id" value="<%id%>">
<input type="hidden" name="related_to" value="">
<%if related%>
<p><font face="Tahoma,Arial,Helvetica" size="2">The following categories are already related: <input type="submit" value="Delete Checked"><br><br>
<%related%>
<%endif%>
<p><font face="Tahoma,Arial,Helvetica" size="2">To create a related category, enter in the name you would like to appear (or leave blank
for the default), and then click on the category you want to <%Name%> to be related to.
<p><font face="Tahoma,Arial,Helvetica" size="2">Relation Name: <input type="text" size="20" name="related_name">
<p><font face="Tahoma,Arial,Helvetica" size="2"><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=category_click&category_id=<%id%>">Click here when finished</a>.
</form>
</body>
</html>

View File

@ -0,0 +1,14 @@
<html>
<head>
<script language="Javascript">
<!--
parent.tree = new parent.Tree();
<%instructions%>
//-->
</script>
</head>
<body bgcolor="#ffffff" onLoad="parent.draw_tree()">
</body>
</html>

View File

@ -0,0 +1,25 @@
<html>
<body bgcolor="#ffffff">
<table border="0" cellpadding="2" width="80%">
<tr>
<td width="100%">
<p><font face="Verdana,Arial,Helvetica" size="4">Browse</font></p>
<hr>
<p><font face="Tahoma,Arial,Helvetica" size="2">New to Gossamer Links is
our Category Management tool. From here, you can visually see the
layout of your categories, and point and click to move entire sections
of your category structure. You can also use it to add/modify/delete
links, and add/modify/delete categories. If you are looking for a
specific link or category, you should use the Database tool to do a
search.</font></p>
<p><font face="Tahoma,Arial,Helvetica" size="2">For large category
structures, the tree only loads the parts you ask for, thus making
category management much easier, or if you prefer, there are links to
load the entire tree as well.</font></p>
<p>&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>Error</title>
</head>
<body>
<script type="text/javascript">
<%error%>
</script>
</body>
</html>

View File

@ -0,0 +1,72 @@
<html>
<head>
<script language="Javascript">
<!--
/**
* This template is called when a link is added into a category,
* thus the javascript tree should be updated.
*/
if (parent.CAN_UPDATE) {
var nodeid = <%id%>;
var node = parent.tree.lookup (nodeid);
var fatherid = node.getFatherId();
while (true)
{
if (node.getNumberOfLinks() != null) node.setNumberOfLinks (node.getNumberOfLinks() + 1);
if (fatherid == nodeid) break;
nodeid = fatherid;
node = parent.tree.lookup (nodeid);
fatherid = node.getFatherId();
}
parent.draw_tree();
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%id%>");
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<font color="green">Link added successfully to <%Name%>.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,39 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Add Link to: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Add Link to: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST" onSubmit="parent.CAN_UPDATE = 1;">
<input type="hidden" name="action" value="link_add">
<%form%>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><font face="Tahoma,Arial,Helvetica" size="2"><input type=submit value="Add Link"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,73 @@
<html>
<head>
<script language="Javascript">
<!--
/**
* This template is called when a link is copied into a category,
* thus the javascript tree should be updated.
*/
if (parent.CAN_UPDATE) {
var new_id = <%new%>;
var new_node = parent.tree.lookup (new_id);
// goes up in the tree, increasing link counts by one
// from the new node
var fatherid = new_node.getFatherId();
while (true)
{
if (new_node.getNumberOfLinks() != null) new_node.setNumberOfLinks (new_node.getNumberOfLinks() + 1);
if (fatherid == new_id) break;
new_id = fatherid;
new_node = parent.tree.lookup (new_id);
fatherid = new_node.getFatherId();
}
// redisplays this info
parent.draw_tree();
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%new%>");
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<font color="green">Link successfully copied to <%New_Name%>.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,41 @@
<html>
<head>
<script language="Javascript">
<!--
/** This variable tells the javascript browser which node
we want to move from. Do not change. */
link_copy = <%link_copy%>;
old_category_id = <%old_category_id%>;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Copy Link From: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Copy Link From: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Please use the tree on your left to pick the category in
which you want to copy the selected link or
<a href="#" onClick="history.go(-1); return false">Click here to cancel</a></font>
</p>
</body>
</html>

View File

@ -0,0 +1,71 @@
<html>
<head>
<script language="Javascript">
<!--
/**
* This template is called when a link is added into a category,
* thus the javascript tree should be updated.
*/
if (parent.CAN_UPDATE) {
var nodeid = <%id%>;
var node = parent.tree.lookup (nodeid);
var fatherid = node.getFatherId();
while (true)
{
if (node.getNumberOfLinks() != null) node.setNumberOfLinks (node.getNumberOfLinks() - 1);
if (fatherid == nodeid) break;
nodeid = fatherid;
node = parent.tree.lookup (nodeid);
fatherid = node.getFatherId();
}
parent.draw_tree();
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<font color="green">Link successfully deleted.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,31 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Delete Link <%link%> from <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Delete Link <%link%> from <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Are you sure that you want to delete the link "<%link%>" (<%link_id%>)?
<p><font face="Tahoma,Arial,Helvetica" size="2">
&nbsp;&nbsp;<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_del&link_id=<%link_id%>&category_id=<%category_id%>" onClick="parent.CAN_UPDATE = 1;">Yes</a>
&nbsp;&nbsp;<a href="#" onClick="history.go(-1); return false">No</a></font>
</p>
</body>
</html>

View File

@ -0,0 +1,22 @@
<tr>
<td>
<font face="Tahoma,Arial,Helvetica" size="2"><li><%if ExpiryDate < $TIME%><font color="red"><%endif%><%escape_html Title%><%if ExpiryDate < $TIME%></font><%endif%></li></font>
</td>
<td>
<font face="Tahoma,Arial,Helvetica" size="2"><a href="<%escape_html URL%>" target="_blank"><%escape_html URL%></a></font>
</td>
<td><font face="Tahoma,Arial,Helvetica" size="1">
<%if isValidated eq 'No'%>
<%if CanValLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_validate_form&category_id=<%category_id%>&link_id=<%ID%>">Validate</a> | <%endif%>
<%endif%>
<%if hasChangeRequest%>
<%if CanValLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_validate_form&category_id=<%category_id%>&link_id=<%ID%>&update=1">Validate Changes</a> | <%endif%>
<%endif%>
<%if CanModLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_modify_form&category_id=<%category_id%>&link_id=<%ID%>">Edit</a> | <%endif%>
<%if CanDelLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_del_form&category_id=<%category_id%>&link_id=<%ID%>">Delete</a> | <%endif%>
<%if CanMoveLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_move_form&category_id=<%category_id%>&link_id=<%ID%>">Move</a> | <%endif%>
<%if CanCopyLink eq 'Yes'%><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_copy_form&category_id=<%category_id%>&link_id=<%ID%>">Copy</a> | <%endif%>
<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_user_list&category_id=<%category_id%>&user=<%linkowner_esc%>">Owner</a>
<%if CanModReview eq 'Yes' and hasReviews%>| <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=review_list&category_id=<%category_id%>&link_id=<%ID%>">Reviews</a><%endif%>
</td>
</tr>

View File

@ -0,0 +1,42 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<font color="green">Link modified successfully.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,55 @@
<html>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Modify Link in: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Modify Link in: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST">
<input type="hidden" name="action" value="link_modify">
<input type="hidden" name="category_id" value="<%category_id%>">
<%form%>
<br>
<%if category_loop.length%>
<%Links::config_vars%>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=left><font face="Tahoma,Arial,Helvetica" size="2">
This link is in the following categories:
<blockquote>
<%loop category_loop%>
<li><a href="<%cfg_db_cgi_url%>/page.cgi?g=<%ID%>" target="_blank"><%Full_Name%></a>
<%endloop%>
</blockquote>
</font></td></tr></table>
</td></tr></table>
<br>
<%endif%>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><font face="Tahoma,Arial,Helvetica" size="2"><input type=submit value="Modify Link"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,89 @@
<html>
<head>
<script>
<!--
/**
* This template is called when a link is moved from a category
* to another, and thus the javascript tree should be updated.
*/
if (parent.CAN_UPDATE) {
var old_id = <%old%>;
var new_id = <%new%>;
var old_node = parent.tree.lookup (old_id);
var new_node = parent.tree.lookup (new_id);
// goes up in the tree, decreasing link counts by one
// from the old node
var fatherid = old_node.getFatherId();
while (true)
{
if (old_node.getNumberOfLinks() != null) old_node.setNumberOfLinks (old_node.getNumberOfLinks() - 1);
if (fatherid == old_id) break;
old_id = fatherid;
old_node = parent.tree.lookup (old_id);
fatherid = old_node.getFatherId();
}
// goes up in the tree, increasing link counts by one
// from the new node
fatherid = new_node.getFatherId();
while (true)
{
if (new_node.getNumberOfLinks() != null) new_node.setNumberOfLinks (new_node.getNumberOfLinks() + 1);
if (fatherid == new_id) break;
new_id = fatherid;
new_node = parent.tree.lookup (new_id);
fatherid = new_node.getFatherId();
}
// redisplays this info
parent.draw_tree();
parent.frames[parent.LEFT_FRAME_ID].navigate("#<%old%>");
}
parent.CAN_UPDATE = 0;
// -->
</script>
</head>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<font color="green">Link successfully moved to <%New_Name%>.</font>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,39 @@
<html>
<head>
<script language="Javascript">
<!--
/** This variable tells the javascript browser which node
we want to move from. Do not change. */
link_move = <%link_move%>;
old_category_id = <%old_category_id%>;
// -->
</script>
</head>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Move Link From: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Move Link From: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Please use the tree on your left to pick the category in
which you want to move the selected link or <a href="#" onClick="history.go(-1); return false">Click here to cancel</a>
</font></p>
</body>
</html>

View File

@ -0,0 +1,46 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse Links Owned by: <%link_owner%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse Links Owned by: <%Username%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica"><b><%Username%></b> owns the following <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%ifnot links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica"><%Username%> does not own any links.</font></td></tr>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,82 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Search Links
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Search Links
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<font color="red" size="2" face="Tahoma,Arial,Helvetica"><%error%></font>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST" onSubmit="parent.CAN_UPDATE = 1;">
<input type="hidden" name="action" value="link_search_results">
<%form%>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=left><font face="Tahoma,Arial,Helvetica" size="2">
<input type=checkbox name="in_category" value="<%category_id%>"> Search only within this category</font></td></tr></table>
</td></tr></table>
<input type=hidden name="category_id" value="<%category_id%>">
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td>
<table border=0 width=500>
<tr>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Maximum Hits:</font></td>
<td><input type="text" name="mh" size="3" value="25"></td>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Match Any: </font></td>
<td><input type="checkbox" name="ma"></td>
</tr>
<tr>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Keyword Search:</font></td>
<td colspan=3><input type="text" name="keyword" value=""></td>
</tr>
<tr>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Indexed Search:</font></td>
<td colspan=3><input type="text" name="query" value=""></td>
</tr>
<tr>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Sort By:</font></td>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'><select name="sb"><option value="">---</option><option value="ID">ID</option><option value="Title">Title</option><option value="URL">URL</option><option value="LinkOwner">LinkOwner</option><option value="Add_Date">Add Date</option><option value="Mod_Date">Mod Date</option><option value="Description">Description</option><option value="Contact_Name">Contact Name</option><option value="Contact_Email">Contact Email</option><option value="Hits">Hits</option><option value="isNew">isNew</option><option value="isChanged">isChanged</option><option value="isPopular">isPopular</option><option value="isValidated">isValidated</option><option value="Rating">Rating</option><option value="Votes">Votes</option><option value="Status">Status</option><option value="Date_Checked">Date Checked</option><option value="Timestmp">Timestamp</option></select>
</td>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Using:</font></td>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'><select name="so"><option value="">---</option><option value="DESC">Descending</option><option value="ASC">Ascending</option></select>
</td>
</tr>
<tr>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'>Display Records:</font></td>
<td><font face='Tahoma,Arial,Helvetica' size='2' color='#000000'><select name="dr"><option value="">---</option><option value="">As Elements</option><option value="rows">As Rows</option></select>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><font face="Tahoma,Arial,Helvetica" size="2"><input type=submit value="Search"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,44 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Search Results
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Search Results
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%loop links%>
<%set category_id = $CategoryID%>
<%include browser_link_list.html%>
<%endloop%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,91 @@
<html>
<%if action eq 'validate'%>
<%ifnot error%>
<script language="Javascript">
<!--
/**
* This template is called when a link is validated, we need to update the counter.
*/
if (parent.CAN_UPDATE) {
var nodeid = <%id%>;
var node = parent.tree.lookup (nodeid);
var fatherid = node.getFatherId();
while (true)
{
if (node.getNumberOfLinks() != null) node.setNumberOfLinks (node.getNumberOfLinks() + 1);
if (fatherid == nodeid) break;
nodeid = fatherid;
node = parent.tree.lookup (nodeid);
fatherid = node.getFatherId();
}
parent.draw_tree();
}
parent.CAN_UPDATE = 0;
// -->
</script>
<%endif%>
<%endif%>
<script language="Javascript">
parent.CAN_UPDATE = 0;
</script>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Browse: <%Name%><br>
<%if error%>
<font color="red">Error: <%error%></font>
<%endif%>
<%ifnot error%>
<%if action eq 'validate'%>
<font color="green">Link successfully validated.</font>
<%endif%>
<%if action eq 'email'%>
<font color="green">Link has been removed, and rejection email sent.</font>
<%endif%>
<%if action eq 'delete'%>
<font color="green">Link has been deleted.</font>
<%endif%>
<%endif%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> links.</font></td></tr>
<%links%>
</table>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,98 @@
<html>
<head>
<script type="text/javascript">
function toggleOriginal(id) {
var orig = document.getElementById(id);
orig.style.display = orig.style.display == 'none' ? '' : 'none';
}
</script>
</head>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Validate Link in: <%Name%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Validate Link in: <%Name%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="POST" onSubmit="parent.CAN_UPDATE = 1;">
<input type="hidden" name="action" value="link_validate">
<input type="hidden" name="category_id" value="<%category_id%>">
<table border=1 cellpadding=0 cellspacing=0 width=500>
<tr><td><%form%></td></tr>
<tr><td>
<%ifnot update%>
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="validate">
Validate (<a href="<%escape_html URL%>" target="validate">view</a>)
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="delete">
Delete without reason
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="email">
Delete and email reason
</font>
</td>
</tr>
<tr>
<td colspan=2>
<textarea name="reason" rows=5 cols=40><%reason%></textarea>
</td>
</tr>
</table>
<%endif%>
<%if update%>
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="modify">
Modify (<a href="<%escape_html URL%>" target="validate">view</a>)
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="delete_change">
Delete Change without reason
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate" value="email_change">
Delete Change and email reason
</font>
</td>
</tr>
<tr>
<td colspan=2>
<textarea name="reason" rows=5 cols=40><%reason%></textarea>
</td>
</tr>
</table>
<%endif%>
</td></tr>
</table>
<br><br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><input type=submit value="Validate Selected"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,15 @@
<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_click">Browse</a>
<%if CanAddCat eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_add_form">Add Cat</a><%endif%>
<%if category_id%>
<%if CanAddLink eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=link_add_form">Add Link</a><%endif%>
<%if CanModCat eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_modify_form">Edit</a><%endif%>
<%if CanDelCat eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_del_form">Delete</a><%endif%>
<%if CanMoveCat eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_move_form">Move</a><%endif%>
<%if CanAddEdit eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_editors_form">Editors</a><%endif%>
<%if CanAddRel eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=category_related_form">Related</a><%endif%>
| <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=link_search_form">Search</a>
<%endif%>
<%if CanValLink eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=link_validate_list">Validate Links</a><%endif%>
<%if CanValLink eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=link_validate_changes_list">Validate Changes</a><%endif%>
<%if CanModReview eq 'Yes'%> | <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?category_id=<%category_id%>&action=review_list">Validate Reviews</a><%endif%>
<%if is_admin and CanAddTerms eq 'Yes'%> | <a href="admin.cgi?do=page;page=payment_cat_price.html;ID=<%category_id%>;not_global=1">Add/Edit Payment Terms</a><%endif%>

View File

@ -0,0 +1,31 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Delete Review <%escape_html Review_Subject%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Delete Review <%escape_html Review_Subject%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font face="Tahoma,Arial,Helvetica" size="2">Are you sure that you want to delete the review <b><%escape_html Review_Subject%></b>?
<p><font face="Tahoma,Arial,Helvetica" size="2">
&nbsp;&nbsp;<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=review_del&review_id=<%review_id%>&category_id=<%category_id%>">Yes</a>
&nbsp;&nbsp;<a href="#" onClick="history.go(-1); return false">No</a></font>
</p>
</body>
</html>

View File

@ -0,0 +1,14 @@
<tr>
<td>
<font face="Tahoma,Arial,Helvetica" size="2"><a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=link_modify_form&category_id=<%category_id%>&link_id=<%ID%>"><%escape_html Title%></a></font>
</td>
<td><font face="Tahoma,Arial,Helvetica" size="2"><%escape_html Review_Subject%></font>
</td>
<td><font face="Tahoma,Arial,Helvetica" size="2"><%Review_Owner%></font>
</td>
<td><font face="Tahoma,Arial,Helvetica" size="1">
<a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=review_del_form&category_id=<%category_id%>&review_id=<%ReviewID%>">Delete</a>
| <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=review_modify_form&category_id=<%category_id%>&review_id=<%ReviewID%>">Modify</a>
<%if Review_Validated eq 'No'%>| <a href="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>?action=review_modify_form&validate=1&category_id=<%category_id%>&review_id=<%ReviewID%>">Validate</a><%endif%>
</td>
</tr>

View File

@ -0,0 +1,73 @@
<html>
<body bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
<%if validate%>Validating<%else%>Modifying<%endif%> Review of: <%escape_html Title%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
<%if validate%>Validating<%else%>Modifying<%endif%> Review of: <%escape_html Title%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p>
<form <%enctype%>action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="post">
<input type="hidden" name="action" value="review_modify">
<%if validate%>
<input type="hidden" name="validate" value="1">
<%else%>
<input type="hidden" name="do" value="modify">
<%endif%>
<input type="hidden" name="category_id" value="<%category_id%>">
<table border=1 cellpadding=0 cellspacing=0 width=500>
<tr><td><%form%></td></tr>
<%if validate%>
<tr><td>
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><font face="Tahoma,Arial,Helvetica" size="2"><input type="radio" name="do" value="validate">
Validate.
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="2"><input type="radio" name="do" value="delete">
Delete without reason.
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="2"><input type="radio" name="do" value="email">
Delete and email reason.
</font>
</td>
</tr>
<tr>
<td colspan=2>
<textarea name="reason" rows=5 cols=40><%reason%></textarea>
</td>
</tr>
</table>
</td></tr>
<%endif%>
</table>
<br><br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><input type=submit value="<%if validate%>Validate<%else%>Modify<%endif%> Review"></font></center></td></tr></table>
</td></tr></table>
</form>
</p>
</body>
</html>

View File

@ -0,0 +1,43 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
<%if validate%>Validate<%elsif delete%>Delete<%else%>Modify<%endif%> Review
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
<%if validate%>Validate<%elsif delete%>Delete<%else%>Modify<%endif%> Review
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
<%if error%>
<p><font color="red">Error: <%error%></font></p>
<%else%>
<p>
<%if do eq 'modify'%>
<font color="green">The review was successfully modified.</font>
<%elsif do eq 'validate'%>
<font color="green">The review was successfully validated.</font>
<%elsif do eq 'email'%>
<font color="green">The review has been removed, and rejection email sent.</font>
<%elsif do eq 'delete' or delete%>
<font color="green">The review has been deleted.</font>
<%else%>
<font color="red">No action specified.</font>
<%endif%>
</p>
<%endif%>
</td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,67 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
<%unless link_id%>Validate <%endif%>Reviews
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
<%unless link_id%>Validate <%endif%>Reviews
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<form action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>">
<input type="hidden" name="category_id" value="<%category_id%>">
<input type="hidden" name="action" value="review_list">
<input type="hidden" name="set-cookie" value="1" />
<%if mh%><input type="hidden" name="mh" value="<%mh%>"><%endif%>
<%if not link_id and category_id != 0%><input type="checkbox" name="only_this_category"<%if only_this_category%> checked<%endif%>> Only show reviews from this category and <%endif%>Sort reviews by
<select name="cookie-review_sb">
<option value="Review_Date"<%if sb eq 'Review_Date'%> selected<%endif%>>Review Date</option>
<option value="Review_Owner"<%if sb eq 'Review_Owner'%> selected<%endif%>>Review Owner</option>
<option value="Review_Subject"<%if sb eq 'Review_Subject'%> selected<%endif%>>Review Subject</option>
</select>
<select name="cookie-review_so">
<option value="DESC"<%if so eq 'DESC'%> selected<%endif%>>Descending</option>
<option value="ASC"<%if so eq 'ASC'%> selected<%endif%>>Ascending</option>
</select>
<input type="submit" value="Sort Reviews">
</form>
</font></p>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica"><%if link_id%>This link has <b><%count%></b> reviews.<%else%>There are <b><%count%></b> reviews waiting to be validated.<%endif%></font></td></tr>
<tr>
<th><font face="Tahoma,Arial,Helvetica" size="2">Link</font></th>
<th><font face="Tahoma,Arial,Helvetica" size="2">Review Subject</font></th>
<th><font face="Tahoma,Arial,Helvetica" size="2">Review Owner</font></th>
<th><font face="Tahoma,Arial,Helvetica" size="2">Actions</font></th>
</tr>
<%links%>
</table>
<%else%>
<p><font size="2" face="Tahoma,Arial,Helvetica"><%if link_id%>This link has no reviews.<%else%>There are no reviews waiting to be validated.<%endif%></font></p>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body onLoad="parent.draw_tree()" bgcolor="#FFFFFF">
</body>
</html>

View File

@ -0,0 +1,199 @@
<html>
<script language="JavaScript">
<!--
/* Takes a check-all element, and a check-all value of
* 'email', 'delete', or 'validate'
*/
function checkAll (all, value) {
var valform = document.valform;
for (var i = valform.elements.length - 1; i >= 0; i--) {
var element = valform.elements[i];
if (/^validate-\d+$/.test(element.name) && element.value == value) {
if (all.checked)
element.checked = true;
else
document.getElementById(element.name + '-nothing').checked = true;
}
}
checkValidate();
}
function checkValidate () {
var checked = {
'validate' : false,
'delete' : false,
'email' : false,
'' : false,
'types' : 0
};
var valform = document.valform;
if (!valform) return;
for (var i = valform.elements.length - 1; i >= 0; i--) {
var element = valform.elements[i];
if (/^validate-\d+$/.test(element.name) && element.checked) {
checked[element.value] = true;
checked['types'] = 0;
if (checked['']) checked['types']++;
if (checked['validate']) checked['types']++;
if (checked['email']) checked['types']++;
if (checked['delete']) checked['types']++;
if (checked['types'] > 1) break;
}
}
if (checked['types'] > 1) {
checked['validate'] = checked['delete'] = checked['email'] = false;
}
if (!document.getElementById('checkall_validate_top')) return;
document.getElementById('checkall_validate_top').checked = checked['validate'];
document.getElementById('checkall_validate_bottom').checked = checked['validate'];
document.getElementById('checkall_email_top').checked = checked['email'];
document.getElementById('checkall_email_bottom').checked = checked['email'];
document.getElementById('checkall_delete_top').checked = checked['delete'];
document.getElementById('checkall_delete_bottom').checked = checked['delete'];
}
<%if count > 1%>window.onload = checkValidate;<%endif%>
// -->
</script>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Validate <%unless update%>Links<%else%>Changes<%endunless%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Validate <%unless update%>Links<%else%>Changes<%endunless%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
<%if result%><p><%result%></p><%endif%>
<p>
<%if links%>
There are <b><%count%></b> <%unless update%>links<%else%>changes<%endunless%> waiting to be validated<%if config.payment.enabled%> (titles coloured <font color="red">red</font> are links still awaiting payment or have expired)<%endif%>.
<%else%>
There are no <%unless update%>links<%else%>changes<%endunless%> waiting to be validated.
<%endif%>
</p>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<%-- Only show the form for validation if there are links to be edited --%>
<%if links%>
<form action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="post" name="repage">
<input type="hidden" name="category_id" value="<%if category_id%><%category_id%><%endif%>">
<input type="hidden" name="action" value="<%action%>">
<input type="hidden" name="mh" id="mh" value="<%if mh%><%mh%><%else%>5<%endif%>">
<input type="hidden" name="so" id="so" value="<%if so%><%so%><%else%>5<%endif%>">
<input type="hidden" name="sb" id="sb" value="<%if sb%><%sb%><%else%>5<%endif%>">
<input type="hidden" name="update" value="<%if update%><%update%><%endif%>">
</form>
<form action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>" method="post" name="valform">
<input type="hidden" name="category_id" value="<%if category_id%><%category_id%><%endif%>">
<input type="hidden" name="action" value="<%action%>">
<input type="hidden" name="update" value="<%if update%><%update%><%endif%>">
<input type="hidden" name="mh" value="<%if mh%><%mh%><%else%>5<%endif%>">
<%if count > 1%>
<table border="1" cellpadding="0" cellspacing="0" style="margin-bottom: 20px">
<tr><td>
<table bgColor="#ffffff" border="0" cellpadding="3" cellspacing="3" valign="top" width="500">
<tr><td colspan="2">
<p><font size="2" face="Tahoma,Arial,Helvetica">
Pages: <%if toolbar%><%toolbar%><%else%>1<%endif%> -
Links per page:
<select onchange="document.getElementById('mh').value = this.value; document.repage.submit()">
<option value="1"<%if mh == 1%> selected="selected"<%endif%>>1</option>
<option value="5"<%if mh == 5 or not mh%> selected="selected"<%endif%>>5</option>
<option value="10"<%if mh == 10%> selected="selected"<%endif%>>10</option>
<option value="25"<%if mh == 25%> selected="selected"<%endif%>>25</option>
<option value="100"<%if mh == 100%> selected="selected"<%endif%>>100</option>
</select>
<noscript><input type="submit" value="Go"></noscript>
</font></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<input type="checkbox" id="checkall_validate_top" onclick="checkAll(this, 'validate')"><label for="checkall_validate_top"> Validate all</label>
<input type="checkbox" id="checkall_delete_top" onclick="checkAll(this, 'delete')"><label for="checkall_delete_top"> Delete all without reason</label>
<input type="checkbox" id="checkall_email_top" onclick="checkAll(this, 'email')"><label for="checkall_email_top"> Delete all and e-mail reason</label>
</font></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<input type="hidden" name="action" value="<%unless update%>link_validate_detailed<%else%>link_validate_changes_detailed<%endif%>">
<%if mh%><input type="hidden" name="mh" value="<%mh%>"><%endif%>
<%if category_id != 0%><input type="checkbox" name="only_this_category"<%if only_this_category%> checked<%endif%>> Only show links from this category and <%endif%>Sort links by
<select name="sb" onchange="document.getElementById('sb').value = this.value; document.repage.submit()">
<option value="Add_Date"<%if sb eq 'Add_Date'%> selected<%endif%>>Add Date</option>
<option value="LinkOwner"<%if sb eq 'LinkOwner'%> selected<%endif%>>Link Owner</option>
<option value="ID"<%if sb eq 'ID'%> selected<%endif%>>Link ID</option>
<option value="Title"<%if sb eq 'Title'%> selected<%endif%>>Link Title</option>
<option value="URL"<%if sb eq 'URL'%> selected<%endif%>>Link URL</option>
</select>
<select name="so" name="sb" onchange="document.getElementById('so').value = this.value; document.repage.submit()">
<option value="DESC"<%if so eq 'DESC'%> selected<%endif%>>Descending</option>
<option value="ASC"<%if so eq 'ASC'%> selected<%endif%>>Ascending</option>
</select>
</font></p>
</td></tr>
</table>
</td></tr>
</table>
<%endif%>
<%if links%><%links%><%endif%>
<table border="1" cellpadding="0" cellspacing="0" style="margin-bottom: 20px">
<tr><td>
<table bgColor="#ffffff" border="0" cellpadding="3" cellspacing="3" valign="top" width="500">
<tr><td colspan="2">
<p><font size="2" face="Tahoma,Arial,Helvetica">
Pages: <%if toolbar%><%toolbar%><%else%>1<%endif%>
Links per page:
<select onchange="document.getElementById('mh').value = this.value; document.repage.submit()">
<option value="1"<%if mh == 1%> selected="selected"<%endif%>>1</option>
<option value="5"<%if mh == 5 or not mh%> selected="selected"<%endif%>>5</option>
<option value="10"<%if mh == 10%> selected="selected"<%endif%>>10</option>
<option value="25"<%if mh == 25%> selected="selected"<%endif%>>25</option>
<option value="100"<%if mh == 100%> selected="selected"<%endif%>>100</option>
</select>
<noscript><input type="submit" value="Go"></noscript>
</font></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<input type="checkbox" id="checkall_validate_bottom" onclick="checkAll(this, 'validate')"><label for="checkall_validate_bottom"> Validate all</label>
<input type="checkbox" id="checkall_delete_bottom" onclick="checkAll(this, 'delete')"><label for="checkall_delete_bottom"> Delete all without reason</label>
<input type="checkbox" id="checkall_email_bottom" onclick="checkAll(this, 'email')"><label for="checkall_email_bottom"> Delete all and e-mail reason</label>
</font></p>
</td></tr>
</table>
</td></tr>
</table>
<br>
<table border=1 cellpadding=0 cellspacing=0><tr><td align=center>
<table border=0 width=500><tr><td align=center><center><input type=submit value="Validate Selected"></font></center></td></tr></table>
</td></tr></table>
</form>
<%-- endif links --%>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,51 @@
<table border=1 cellpadding=0 cellspacing=0 width=500>
<tr><td><%form%></td></tr>
<tr><td>
<%ifnot update%>
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="validate" id="validate-<%ID%>-validate">
Validate (<a href="<%escape_html URL%>" target="validate">view</a>)
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="delete" id="validate-<%ID%>-delete">
Delete without reason
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="email" id="validate-<%ID%>-email">
Delete and email reason
</font>
</td>
</tr>
<tr>
<td colspan=2>
<textarea name="reason" rows=5 cols=40><%reason%></textarea>
</td>
</tr>
</table>
<%endif%>
<%if update%>
<table border=0 cellpadding=3 cellspacing=2>
<tr><td valign=top rowspan=2><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="modify" id="validate-<%ID%>-validate">
Modify (<a href="<%escape_html URL%>" target="validate">view</a>)
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="delete_change" id="validate-<%ID%>-delete">
Delete Change without reason
</font>
</td>
<td valign=top><font face="Tahoma,Arial,Helvetica" size="1"><input type="radio" name="validate-<%ID%>" value="email_change" id="validate-<%ID%>-email">
Delete Change and email reason
</font>
</td>
</tr>
<tr>
<td colspan=2>
<textarea name="reason" rows=5 cols=40><%reason%></textarea>
</td>
</tr>
</table>
<%endif%>
</td></tr>
</table>
<br/>

View File

@ -0,0 +1,63 @@
<html>
<body bgcolor="#ffffff">
<table border="1" cellpadding="0" cellspacing="0"><tr><td>
<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
<tr>
<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
Validate <%unless update%>Links<%else%>Changes<%endunless%>
</font></b></td>
</tr>
<tr>
<td>
<p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
Validate <%unless update%>Links<%else%>Changes<%endunless%>
</font></b></p>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
</font></p>
</td>
</tr>
</table>
</td></tr>
</table>
<p><font size="2" face="Tahoma,Arial,Helvetica">
<form action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>">
<input type="hidden" name="category_id" value="<%category_id%>">
<input type="hidden" name="action" value="<%unless update%>link_validate_list<%else%>link_validate_changes_list<%endif%>">
<input type="hidden" name="set-cookie" value="1" />
<%if mh%><input type="hidden" name="mh" value="<%mh%>"><%endif%>
<%if category_id != 0%><input type="checkbox" name="only_this_category"<%if only_this_category%> checked<%endif%>> Only show links from this category and <%endif%>Sort links by
<select name="cookie-link_validate<%if update%>_changes<%endif%>_sb">
<option value="Add_Date"<%if sb eq 'Add_Date'%> selected<%endif%>>Add Date</option>
<option value="LinkOwner"<%if sb eq 'LinkOwner'%> selected<%endif%>>Link Owner</option>
<option value="ID"<%if sb eq 'ID'%> selected<%endif%>>Link ID</option>
<option value="Title"<%if sb eq 'Title'%> selected<%endif%>>Link Title</option>
<option value="URL"<%if sb eq 'URL'%> selected<%endif%>>Link URL</option>
</select>
<select name="cookie-link_validate<%if update%>_changes<%endif%>_so">
<option value="DESC"<%if so eq 'DESC'%> selected<%endif%>>Descending</option>
<option value="ASC"<%if so eq 'ASC'%> selected<%endif%>>Ascending</option>
</select>
<input type="submit" value="Sort Links">
</form>
</font></p>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
<table border=1 cellpadding=3 cellspacing=0>
<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica">There are <b><%count%></b> <%unless update%>links<%else%>changes<%endunless%> waiting to be validated<%if config.payment.enabled%> (titles coloured <font color="red">red</font> are links still awaiting payment or have expired)<%endif%>.</font></td></tr>
<%links%>
</table>
<%else%>
<p><font size="2" face="Tahoma,Arial,Helvetica">There are no <%unless update%>links<%else%>changes<%endunless%> waiting to be validated.</font></p>
<%endif%>
<%if toolbar%>
<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
</body>
</html>

View File

@ -0,0 +1,30 @@
{
'BROWSER_CANTMOD' => 'Unable to modify category: %s',
'BROWSER_CATCANTADD' => 'Unable to add category: %s',
'BROWSER_CATCANTDEL' => 'Unable to delete category: %s',
'BROWSER_EDITORADD' => 'Unable to add editor, please make sure %s is a valid user.',
'BROWSER_EDITORDEL' => 'Unable to delete editor: %s',
'BROWSER_INVALIDCATID' => 'Invalid category: \'%s\'.',
'BROWSER_INVALIDLINKID' => 'Invalid link id: %s',
'BROWSER_INVALIDREVIEWID' => 'Invalid review id: %s',
'BROWSER_INVALIDUSER' => 'User \'%s\' not found.',
'BROWSER_LINKCANTADD' => 'Unable to add link: %s',
'BROWSER_LINKCANTDEL' => 'Unable to delete link: %s',
'BROWSER_LINKCANTMOD' => 'Unable to modify link: %s',
'BROWSER_LINKMOVEEXISTS' => 'You cannot move the link to that category, as it is already in that category.',
'BROWSER_LINKMOVEROOT' => 'Unable to move/copy a link to the root category, please pick a subcategory.',
'BROWSER_MOVECHILD' => 'Unable to move category into a sub tree of itself.',
'BROWSER_MOVEDUPE' => 'Unable to move category as a category with the same name already exists.',
'BROWSER_MOVESELF' => 'You cannot move a category on top of itself.',
'BROWSER_NOROOT' => 'Invalid Category Root: \'%s\'.',
'BROWSER_NOSEARCH' => 'Your search did not match any records.',
'BROWSER_NOTEDITOR' => 'Only category editors may use the browser.',
'BROWSER_RELADD' => 'Unable to create relation: %s. Check to make sure it isn\'t already related, and that it is a valid category.',
'BROWSER_REVIEWVALIDATED' => 'The review has already been validated.',
'BROWSER_UNAUTHORIZED' => 'You are not authorized to perform this action.',
'BROWSER_VALIDATE_OK' => '<font color=green>All Links successfully validated/deleted.</font>',
'BROWSER_VALIDATE_ERROR' => '<font color=red><ul>%s</ul></font>',
};
# vim:syn=perl:ts=4:noet