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.
60 lines
1.9 KiB
60 lines
1.9 KiB
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
$("#side1").accordion("activate", 1);
|
|
$("#side3").accordion("activate", 2);
|
|
$('#yoptions').resetForm();
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
url: "/xml/bookmarks/xbel/xbel.xml?login=",
|
|
dataType: "xml",
|
|
success: function(xml) {
|
|
$(xml).find('bookmark').each(function(){
|
|
var link = $(this).attr('href');
|
|
var hash = $(this).attr('id');
|
|
var title = $(this).find('title').text();
|
|
var date = "01-01-0101";
|
|
var desc = $(this).find('desc').text();
|
|
var tags = $(this).find('metadata').attr('ShortcutURL');
|
|
$('<tr></tr')
|
|
.html('<td><input type="checkbox" value="true" /></td><td><img src="img-2/world2.png" alt="public bookmark" title="public bookmark"/></td><td><h3 class="linktitle">' +title+ '</h3><p class="desc">' +desc+ '</p><p class="url"><a href="' +link+ '">' +link+ '</a></p><td>' +tags+ '</td><td>' +date+ '</td><td><a href="/Bookmarks.html?edit=' +hash+ '"><img src="img-2/pencil.png" alt="edit bookmark" title="edit bookmark" /></a><img src="img-2/cancel.png" alt="delete bookmark" title="delete bookmark"/></td>')
|
|
.appendTo('#ymarks tbody');
|
|
}); //close each(
|
|
$('#ymarks')
|
|
.tablesorter({widgets: ['zebra']})
|
|
.tablesorterPager({container: $('#pager'), size: 5, positionFixed: false});
|
|
}
|
|
}); //close $.ajax(
|
|
});
|
|
//]]>
|
|
</script>
|
|
|
|
<!-- Table -->
|
|
<table class="ytable" id="ymarks" summary="YaCy Bookmarks">
|
|
<colgroup>
|
|
<col width="25"/>
|
|
<col width="25"/>
|
|
<col width="425"/>
|
|
<col width="150"/>
|
|
<col width="150"/>
|
|
<col width="25"/>
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th class="{sorter: false}"></th>
|
|
<th></th>
|
|
<th>Title</th>
|
|
<th>Tags</th>
|
|
<th>Date</th>
|
|
<th class="{sorter: false}"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|