You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/htroot/Blog.html

72 lines
3.5 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>YaCy '#[clientname]#': Blog</title>
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#%env/templates/header.template%#
#(mode)#
<!-- 0: viewing -->
<center>
#{entries}#
<table width="80%" border="1" cellspacing="0">
<tr class="TableHeader"><td align="left">#[date]#</td><td>by #[author]#</td></tr>
<tr class="WikiBackground"><td colspan=2 align="left"><div style="padding:5px;"><h2>#[subject]#</h2><br>#[page]#</div></td><td></td></tr>
<tr class="TableHeader"><td colspan=2 align="left"><a href="Blog.html?page=#[pageid]#">link</a>#(admin)#:: - <a href="Blog.html?page=#[pageid]#&edit=true">edit</a> - <a href="Blog.html?page=#[pageid]#&delete=try">delete</a>#(/admin)#</td><td></td></tr>
</table>
<br>
#{/entries}#
#(moreentries)#::<a href="Blog.html?start=#[start]#&num=#[num]#">show more entries...</a>#(/moreentries)#
<br>
#(admin)#::<a href="Blog.html?edit=true">new entry</a> - #(/admin)#<a href="Blog.html">Blog-Home</a></center>
::
<!-- 1: edit -->
<form action="Blog.html" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
<p>Author:<br><input name="author" type="text" size="20" maxlength="80" value="#[author]#"></p>
<p>Subject:<br><input name="subject" type="text" size="20" maxlength="80" value="#[subject]#"></p>
<p>Text:<br><textarea name="content" cols="80" rows="24">#[page-code]#</textarea></p>
<input type="hidden" name="page" value="#[pageid]#">
<input type="submit" name="submit" value="Submit">
<input type="submit" name="preview" value="Preview">
<input type="submit" name="view" value="Discard">
</form>
::
<!-- 2: preview -->
<h2>Preview</h2>
<p>No changes have been submitted so far!</p>
<table width="80%" border="1" cellpadding="0" cellspacing="0">
<tr class="TableHeader"><td align="left">#[date]#</td><td>by #[author]#</td></tr>
<tr class="WikiBackground"><td colspan=2 align="left"><div style="padding:5px;"><h2>#[subject]#</h2><br>#[page]#</div></td><td></td></tr>
<tr class="TableHeader"><td></td><td></td></tr>
</table>
<form action="Blog.html" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
<p>Author:<br><input name="author" type="text" size="20" maxlength="80" value="#[author]#"></p>
<p>Subject:<br><input name="subject" type="text" size="20" maxlength="80" value="#[subject]#"></p>
<p>Text:<br><textarea name="content" cols="80" rows="24">#[page-code]#</textarea></p>
<input type="hidden" name="page" value="#[pageid]#">
<input type="submit" name="submit" value="Submit">
<input type="submit" name="preview" value="Preview">
<input type="submit" name="view" value="Discard">
</form>
::
<!-- 3: Access Denied (no rights) -->
<h3>Access denied</h3>
To edit or create blog-entries you need to be logged in as Admin or User that has Blog rights.
::
<!-- 4: Delete Confirmation -->
<h3>Are you sure...</h3>
... that you want to delete <b>#[subject]#</b> by #[author]#?<br><br>
<form action="Blog.html" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="hidden" name="delete" value="sure">
<input type="hidden" name="page" value="#[pageid]#">
<input type="submit" value="Yes, delete it.">
</form><br>
<form action="Blog.html" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="submit" value="No, leave it.">
</form>
#(/mode)#
#%env/templates/footer.template%#
</body>
</html>