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.
164 lines
6.0 KiB
164 lines
6.0 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]#': Bookmarks</title>
|
|
#%env/templates/metas.template%#
|
|
<script src="/js/ajax.js"></script>
|
|
<script src="/js/Bookmarks.js"></script>
|
|
</head>
|
|
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
|
|
#%env/templates/header.template%#
|
|
<br><br>
|
|
<h2>Bookmarks</h2></p>
|
|
<!-- todo: div layout? -->
|
|
|
|
#(mode)#
|
|
<a href="Bookmarks.html?login=true">Login</a>
|
|
::
|
|
<a href="Bookmarks.html?mode=add">Add Bookmark</a>
|
|
<a href="Bookmarks.html?mode=importxml">Import XML Bookmarks</a>
|
|
<!-- <a href="Bookmarks.html?mode=importbookmarks">Import Bookmarks.html</a> -->
|
|
::
|
|
<form action="Bookmarks.html" method="GET">
|
|
<table border="0" width="100%" height="100%">
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader">#(edit)#<h3>Add Bookmark</h3>::<h3>Edit Bookmark</h3>#(/edit)#</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">URL:</td>
|
|
<td valign="top" class="TableCellLight" width="100%"><input type="text" name="url" value="#[url]#" onblur="loadTitle()" size="80"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">Title:</td>
|
|
<td valign="top" class="TableCellLight"><input type="text" name="title" value="#[title]#" size="80"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">Description:</td>
|
|
<td valign="top" class="TableCellLight"><input type="text" name="description" value="#[description]#" size="80"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark"><nobr>Tags (comma separated):</nobr></td>
|
|
<td class="TableCellLight"><input type="text" name="tags" value="#[tags]#" size="80"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">Public:</td>
|
|
<td valign="top" class="TableCellLight"><select name="public">
|
|
<option value="public" #(public)#::selected#(/public)#>yes</option>
|
|
<option value="private" #(public)#selected::#(/public)#>no</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader" width="100%">
|
|
#(edit)#
|
|
<input type="submit" name="add" value="create">
|
|
::
|
|
<input type="submit" name="add" value="edit">
|
|
#(/edit)#
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
::
|
|
<!-- import XML Bookmarks -->
|
|
<form action="Bookmarks.html" method="POST" enctype="multipart/form-data">
|
|
<table border="0" width="100%" height="100%">
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader"><h3>Import XML Bookmarks</h3></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">File:</td>
|
|
<td valign="top" class="TableCellLight" width="100%"><input type="file" name="xmlfile"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">import as Public:</td>
|
|
<td valign="top" class="TableCellLight"><select name="public">
|
|
<option value="public">yes</option>
|
|
<option value="private">no</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader" width="100%">
|
|
<input type="submit" name="importxml" value="import">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
::
|
|
<!-- import Netscape Bookmarks -->
|
|
<form action="Bookmarks.html" method="POST" enctype="multipart/form-data">
|
|
<table border="0" width="100%" height="100%">
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader"><h3>Import Bookmarks</h3></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">File:</td>
|
|
<td valign="top" class="TableCellLight" width="100%"><input type="file" name="bookmarksfile"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">Default Tags:</td>
|
|
<td valign="top" class="TableCellLight" width="100%"><input type="text" name="tags" value="imported"></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" class="TableCellDark">import as Public:</td>
|
|
<td valign="top" class="TableCellLight"><select name="public">
|
|
<option value="public">yes</option>
|
|
<option value="private">no</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" colspan="2" valign="top" class="TableHeader" width="100%">
|
|
<input type="submit" name="importbookmarks" value="import">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
#(/mode)#
|
|
<hr>
|
|
|
|
<table width="100%" height="100%">
|
|
<tr>
|
|
<td style="padding-bottom: 10px;"><h3>Bookmark List</h3></td>
|
|
<td><h3>Tags</h3></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100%" valign="top">
|
|
#{bookmarks}#
|
|
<p style="border-bottom:1px #000 dashed; padding-bottom: 1em;">
|
|
#(public)#<img class="bookmarkIcon" src="env/grafics/bookmarkpriv.png" alt="private bookmark" title="private bookmark">::<img class="bookmarkIcon" src="env/grafics/bookmarkpub.png" alt="public bookmark" title="public bookmark">#(/public)#
|
|
<a href="#[link]#" target="_blank" class="bookmarkTitle">#[title]#</a><br />
|
|
<span class="bookmarkDescription">#[description]#</span><br />
|
|
Tagged with | #{tags}#<a href="Bookmarks.html?tag=#[tag]#" class="bookmarkTags">#[tag]#</a> | #{/tags}#<br />
|
|
<a href="Bookmarks.html?edit=#[hash]#" class="bookmarkAction">Edit</a> /
|
|
<a href="Bookmarks.html?delete=#[hash]#" class="bookmarkAction">Delete</a>
|
|
</p>
|
|
#{/bookmarks}#
|
|
<p />
|
|
#(prev-page)#
|
|
::<a href="Bookmarks.html?tag=#[tag]#&start=#[start]#&num=#[num]#">previous page</a>
|
|
#(/prev-page)#
|
|
#(next-page)#
|
|
::<a href="Bookmarks.html?tag=#[tag]#&start=#[start]#&num=#[num]#">next page</a>
|
|
#(/next-page)#
|
|
<br />
|
|
Show
|
|
<a href="Bookmarks.html?tag=#[tag]#&start=#[start]#&num=10">10</a>
|
|
<a href="Bookmarks.html?tag=#[tag]#&start=#[start]#&num=50">50</a>
|
|
<a href="Bookmarks.html?tag=#[tag]#&start=#[start]#&num=100">100</a>
|
|
Bookmarks per page.
|
|
</td>
|
|
<td valign="top" style="padding-left: 5px; border-left-style: solid; border-left-width: 1px; border-left-color: black;">
|
|
<div style="text-align: right">
|
|
<a href="Bookmarks.html" class="bookmarkTags">All</a> (#[num-bookmarks]#)<br />
|
|
#{taglist}#
|
|
<a href="Bookmarks.html?tag=#[tag]#" class="bookmarkTags">#[name]#</a> (#[num]#)<br />
|
|
#{/taglist}#
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
#%env/templates/footer.template%#
|
|
</body>
|
|
</html> |