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.
255 lines
8.7 KiB
255 lines
8.7 KiB
<!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]#': Bookmarks</title>
|
|
#%env/templates/metas.template%#
|
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
|
#(display)#
|
|
<script src="/js/Bookmarks.js" type="text/javascript"></script>
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="Bookmarks.rss" />
|
|
::
|
|
#(/display)#
|
|
</head>
|
|
<body id="Bookmarks"
|
|
#(display)#
|
|
onload="treeMenu_init(document.getElementById('folder'), window.name)"
|
|
onunload="window.name = treeMenu_store(document.getElementById('folder'))"
|
|
::
|
|
#(/display)#
|
|
>
|
|
|
|
#(display)#
|
|
<div id="api">
|
|
<script type="text/javascript">
|
|
document.write("\<a href=\"Bookmarks.rss?" + window.location.search.substring(1) + "\"\>")
|
|
</script>
|
|
<img src="env/grafics/api.png"></a>
|
|
<span>The bookmarks list can also be retrieved as RSS feed. This can also be done when you select a specific tag.
|
|
Click the API icon to load the RSS from the current selection.
|
|
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
|
|
</div>
|
|
::
|
|
#(/display)#
|
|
|
|
#%env/templates/header.template%#
|
|
<div class="SubMenu">
|
|
<h3>Bookmarks</h3>
|
|
#(mode)#
|
|
<!-- SubMenu (mode=0) -->
|
|
<ul class="SubMenu">
|
|
<li><a href="Bookmarks.html?login=true" class="MenuItemLink">Login</a></li>
|
|
<li><a href="Bookmarks.html?login=true&mode=add" class="MenuItemLink lock">Add Bookmark</a></li>
|
|
<li><a href="Bookmarks.html?login=true&mode=importxml" class="MenuItemLink lock">Import Bookmarks</a></li>
|
|
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Bookmarks (XBEL)</a></li>
|
|
<li><a href="xml/bookmarks/posts/all.xml" class="MenuItemLink lock">Bookmarks (XML)</a></li>
|
|
<li><a href="Bookmarks.rss" class="MenuItemLink lock">Bookmarks (RSS)</a></li>
|
|
</ul>
|
|
<p/>
|
|
:: <!-- Submenu isAdmin (mode=1) -->
|
|
<ul class="SubMenu">
|
|
<li><a href="Bookmarks.html?mode=add" class="MenuItemLink lock">Add Bookmark</a></li>
|
|
<li><a href="Bookmarks.html?mode=importxml" class="MenuItemLink lock">Import Bookmarks</a></li>
|
|
<li><a href="xml/bookmarks/xbel/xbel.xml" class="MenuItemLink lock">Bookmarks (XBEL)</a></li>
|
|
<li><a href="xml/bookmarks/posts/all.xml" class="MenuItemLink lock">Bookmarks (XML)</a></li>
|
|
<li><a href="Bookmarks.rss" class="MenuItemLink lock">Bookmarks (RSS)</a></li>
|
|
</ul>
|
|
<p/>
|
|
:: <!-- add or edit Bookmark (mode=2) -->
|
|
<form action="Bookmarks.html" method="get">
|
|
<fieldset>
|
|
<legend>#(edit)#Add Bookmark::Edit Bookmark#(/edit)#</legend>
|
|
<dl>
|
|
<dt>
|
|
<label for="url">URL:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="url" id="url" value="#[url]#" onblur="loadTitle()" size="80" />
|
|
</dd>
|
|
<dt>
|
|
<label for="title">Title:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="title" id="title" value="#[title]#" size="80" />
|
|
</dd>
|
|
<dt>
|
|
<label for="description">Description:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="description" id="description" value="#[description]#" size="80" />
|
|
</dd>
|
|
<dt>
|
|
<label for="folder">Folder (/folder/subfolder):</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="path" id="path" value="#[path]#" size="80" />
|
|
</dd>
|
|
<dt>
|
|
<label for="tags">Tags (comma separated):</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="tags" id="tags" value="#[tags]#" size="80" />
|
|
</dd>
|
|
<dt>
|
|
<label for="public">Public:</label>
|
|
</dt>
|
|
<dd>
|
|
<select name="public" id="public">
|
|
<option value="public" #(public)#::selected="selected"#(/public)#>yes</option>
|
|
<option value="private" #(public)#selected="selected"::#(/public)#>no</option>
|
|
</select>
|
|
</dd>
|
|
<dt>
|
|
<input type="checkbox" value="true" name="feed" id="feed" #(feed)#::checked#(/feed)# />
|
|
<label for="feed">Bookmark is a newsfeed</label>
|
|
</dt>
|
|
</dl>
|
|
#(edit)#
|
|
<p><input type="submit" name="add" value="create" /></p>
|
|
::
|
|
<p><input type="submit" name="add" value="edit" /></p>
|
|
#(/edit)#
|
|
<img src="/env/grafics/empty.gif" name="ajax" />
|
|
</fieldset>
|
|
</form>
|
|
:: <!-- import XML Bookmarks (mode=3) -->
|
|
<form action="Bookmarks.html" method="post" enctype="multipart/form-data">
|
|
<div class="BookmarksFieldset">
|
|
<fieldset>
|
|
<legend>Import XML Bookmarks</legend>
|
|
<dl>
|
|
<dt>
|
|
<label for="xmlfile">File:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="file" name="xmlfile" id="xmlfile" />
|
|
</dd>
|
|
<dt>
|
|
<label for="public">import as Public:</label>
|
|
</dt>
|
|
<dd>
|
|
<select name="public" id="public">
|
|
<option value="public">yes</option>
|
|
<option value="private">no</option>
|
|
</select>
|
|
</dd>
|
|
</dl>
|
|
<input type="submit" name="importxml" value="import" />
|
|
</fieldset>
|
|
</div>
|
|
</form>
|
|
<!-- import Netscape Bookmarks -->
|
|
<form action="Bookmarks.html" method="post" enctype="multipart/form-data">
|
|
<fieldset>
|
|
<legend>Import HTML Bookmarks</legend>
|
|
<dl>
|
|
<dt>
|
|
<label for="file">File:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="file" name="htmlfile" id="htmlfile" />
|
|
</dd>
|
|
<dt>
|
|
<label for="tags">Default Tags:</label>
|
|
</dt>
|
|
<dd>
|
|
<input type="text" name="tags" id="tags" value="imported" />
|
|
</dd>
|
|
<dt>
|
|
<label for="public">import as Public:</label>
|
|
</dt>
|
|
<dd>
|
|
<select name="public" id="public">
|
|
<option value="public">yes</option>
|
|
<option value="private">no</option>
|
|
</select>
|
|
</dd>
|
|
</dl>
|
|
<input type="submit" name="importbookmarks" value="import" />
|
|
</fieldset>
|
|
</form>
|
|
::
|
|
<!-- (mode=4) -->
|
|
#(/mode)#
|
|
</div>
|
|
#(display)#
|
|
<!-- show Folders -->
|
|
<div class="TagList">
|
|
<fieldset>
|
|
<legend>Folders</legend>
|
|
<ul class="folder" id="folder">
|
|
<li>Bookmark Folder
|
|
<ul class="folder">
|
|
#{folderlist}#
|
|
#[folder]#
|
|
#{/folderlist}#
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</fieldset>
|
|
|
|
<!-- show TagList -->
|
|
|
|
<fieldset>
|
|
<legend>Tags</legend>
|
|
<p>
|
|
<form action="Bookmarks.html" name="choosetag" method="get" accept-charset="UTF-8">
|
|
<select size="1" name="tag" onChange="document.choosetag.submit();">
|
|
<option value=""#[selected]#>All (#[num-bookmarks]#)</option>
|
|
#{optlist}#<option value="#[name]#"#[selected]#>#[name]# (#[num]#)</option>
|
|
#{/optlist}#
|
|
</select>
|
|
<input type="submit" value=" ... ">
|
|
</form>
|
|
</p>
|
|
<p>
|
|
#{taglist}#<span style="font-size:#[size]#em"><a href="Bookmarks.html?tag=#[name]#">#[name]#</a></span>
|
|
#{/taglist}#
|
|
</p>
|
|
</fieldset>
|
|
</div>
|
|
<!-- show BookmarkList -->
|
|
<div class="bookmarkList">
|
|
<h3>Bookmark List</h3>
|
|
#{bookmarks}#
|
|
<div class="bookmark #(public)#public::private#(/public)#">
|
|
<h4 class="bookmarkTitle">
|
|
#(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]#" class="bookmarkTitle">#[title]#</a>
|
|
</h4>
|
|
<p class="bookmarkDescription">#[description]#</p>
|
|
<p class="tags">Tagged with | #{tags}#<a href="Bookmarks.html?tag=#[tag]#" class="bookmarkTags">#[tag]#</a> | #{/tags}#</p>
|
|
<p class="bookmarkActions">
|
|
<a href="Bookmarks.html?edit=#[hash]#" class="bookmarkAction">Edit</a>
|
|
/
|
|
<a href="Bookmarks.html?delete=#[hash]#" class="bookmarkAction" onclick="return confirm('Confirm deletion')">Delete</a>
|
|
/
|
|
<a href="/api/util/getpageinfo_p.xml?url=#[link]#" class="bookmarkAction">Info</a>
|
|
</p>
|
|
</div>
|
|
#{/bookmarks}#
|
|
<p class="Navigation">
|
|
#(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)#
|
|
</p>
|
|
<p class="bookmarkNavigation">
|
|
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.
|
|
</p>
|
|
</div>
|
|
::
|
|
#(/display)#
|
|
#%env/templates/footer.template%#
|
|
</body>
|
|
</html>
|