yacy_search_server/htroot/Blog.html
michitux 31393312d0 New XHTML-template for a large part of the frontend, for details see http://yacy-websuche.de/wiki/index.php/Dev:XHTML
If you don't use the default skin, the style will be broken or at least not complete.
YaCy now has two css-files: base.css in htroot/env and the skin. In base.css the layout and black/white text-formating-rules are defined. Colors are only defined in the skin.
The skin is now very easy to read and to change. If you want to make more changes than the colors you see in the default-skin, feel free to use the full power of css, but you are warned: The code is still not ready and may change, but we try to avoid changes which affect anything in the default-style.
Translation will be broken too because the language-files contain HTML-Code which has changed.


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2547 6c8d7289-2bf4-0310-a012-ef5d649a1542
2006-09-11 18:18:12 +00:00

130 lines
5.5 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Blog</title>
#%env/templates/metas.template%#
</head>
<body id="Blog">
#%env/templates/header.template%#
#(mode)#
<!-- 0: viewing -->
#{entries}#
<div class="Post">
<h2 class="PostSubject"><a href="Blog.html?page=#[pageid]#">#[subject]#</a></h2>
<div class="PostBody">#[page]#</div>
<p class="PostInfo">
#[date]# | by #[author]#
#(admin)#::| <a href="Blog.html?page=#[pageid]#&amp;edit=true">edit</a>
- <a href="Blog.html?page=#[pageid]#&amp;delete=try">delete</a>#(/admin)#
</p>
</div>
#{/entries}#
#(moreentries)#::<p class="Navigation"><a href="Blog.html?start=#[start]#&amp;num=#[num]#">show more entries...</a></p>#(/moreentries)#
<p class="Navigation">
#(admin)#<a href="Blog.html?login=true">Login</a> - ::<a href="Blog.html?edit=true">new entry</a> - <a href="Blog.html?import=xml">import XML-File</a> - <a href="Blog.xml?xml=1">export as XML</a> - #(/admin)#<a href="Blog.html">Blog-Home</a>
</p>
::
<!-- 1: edit -->
<form action="Blog.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<dl>
<dt><label for="author">Author:</label></dt>
<dd>
<input name="author" id="author" type="text" size="20" maxlength="80" value="#[author]#" />
</dd>
<dt><label for="subject">Subject:</label></dt>
<dd>
<input name="subject" id="subject" type="text" size="20" maxlength="80" value="#[subject]#" />
</dd>
<dt><label for="content">Text:</label></dt>
<dd>
<textarea name="content" id="content" cols="80" rows="24">#[page-code]#</textarea>
<p class="help">
You can use <a href="WikiHelp.html" onclick="window.open('WikiHelp.html','WikiHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">Yacy-Wiki Code</a> here.
</p>
</dd>
</dl>
<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" />
</fieldset>
</form>
::
<!-- 2: preview -->
<h2>Preview</h2>
<p>No changes have been submitted so far!</p>
<div class="Post">
<h2 class="PostSubject">#[subject]#</h2>
<div class="PostBody">#[page]#</div>
<p class="PostInfo">#[date]# | by #[author]#</p>
</div>
<form action="Blog.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<dl>
<dt><label for="author">Author:</label></dt>
<dd>
<input name="author" id="author" type="text" size="20" maxlength="80" value="#[author]#" />
</dd>
<dt><label for="subject">Subject:</label></dt>
<dd>
<input name="subject" id="subject" type="text" size="20" maxlength="80" value="#[subject]#" />
</dd>
<dt>
<label for="content">Text:</label>
</dt>
<dd>
<textarea name="content" id="content" cols="80" rows="24">#[page-code]#</textarea>
<p class="help">
You can use <a href="WikiHelp.html" onclick="window.open('WikiHelp.html','WikiHelp','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480');return false;">Yacy-Wiki Code</a> here.
</p>
</dd>
</dl>
<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" />
</fieldset>
</form>
::
<!-- 3: Access Denied (no rights) -->
<h3>Access denied</h3>
<p>To edit or create blog-entries you need to be logged in as Admin or User who has Blog rights.</p>
::
<!-- 4: Delete Confirmation -->
<h3>Are you sure...</h3>
<p>... that you want to delete <strong>#[subject]#</strong> by #[author]#?</p>
<form action="Blog.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<input type="hidden" name="delete" value="sure" />
<input type="hidden" name="page" value="#[pageid]#" />
<input type="submit" value="Yes, delete it." />
</fieldset>
</form>
<br />
<form action="Blog.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<input type="submit" value="No, leave it." />
</fieldset>
</form>
::
<!-- 5: XML-Import -->
<h3>XML-Import</h3>
#(state)#
::
<p>Import was successful!</p>
::
<p>Import failed, maybe the supplied file was no valid blog-backup?</p>
#(/state)#
<p>Please select the XML-file you want to import:</p>
<form action="Blog.html" method="post" enctype="multipart/form-data">
<fieldset>
<input type="file" size="50" name="xmlfile" />
<input type="submit" name="importxml" value="Import" />
</fieldset>
</form>
#(/mode)#
#%env/templates/footer.template%#
</body>
</html>