Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / own_templates / 800051.tpl
CommitLineData
e586807d
H
1<!--
2This program is free software. It comes without any warranty, to
3the extent permitted by applicable law. You can redistribute it
4and/or modify it under the terms of the Do What The Fuck You Want
5To Public License, Version 2, as published by Sam Hocevar. See
6http://sam.zoy.org/wtfpl/COPYING for more details.
7-->
8
9<head>
10<meta http-equiv="Cache-Control" content="Public">
11<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
12<link rel='stylesheet' type='text/css' href='/data/css/main.css'>
13<title>as above, so below</title>
14
15
16<script>
17
18var current_category;
19
20function showBookmark(node_id) {ldelim}
21 var bookmark=document.getElementById(node_id);
22 bookmark.style.visibility="visible";
23 return true;
24{rdelim}
25
26function setInvisible(id) {ldelim}
27 for (node in categories[id]) {ldelim}
28 document.getElementById(node).style.visibility="hidden";
29 {rdelim}
30{rdelim}
31
32function showBookmarks(id) {ldelim}
33 setInvisible(current_category);
34 for (node in categories[id]) {ldelim}
35 showBookmark(node);
36 {rdelim}
37 current_category=id;
38 return true;
39{rdelim}
40
41
42
43categories=new Object();
44categories["0"]=new Object();
45{get_bookmarks}
46
47{foreach from=$get_bookmarks item=bookmark_category}
48categories["{$bookmark_category.node_id}"]=new Object();
49
50{foreach from=$bookmark_category.children item=bookmark}
51categories["{$bookmark_category.node_id}"]["{$bookmark.node_id}"]=true;
52{/foreach}
53
54{/foreach}
55</script>
56</head>
57
58<body>
59{foreach from=$get_bookmarks item=category name=categoryname}
60{circle_coordinates amount=$smarty.foreach.categoryname.total iteration=$smarty.foreach.categoryname.iteration}
61<div id='category{$smarty.foreach.categoryname.iteration}' style='position: absolute; left:{$x_coordinate}px; top:{$y_coordinate}px;'>
62<a onmouseover="category{$smarty.foreach.categoryname.iteration}.innerHtml='{$category.node_name}';showBookmarks('{$category.node_id}');" href='/{$category.node_id}/'>{$category.node_name}</a>
63
64{foreach from=$category.children item=bookmarks name=bookmarks}
65<div id='{$bookmarks.node_id}' style='visibility: hidden; left; position: relative;'>
66<a href='/{$bookmarks.node_name}'>{$bookmarks.node_name}</a>
67 {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}
68 :: <span class='most_important'>!!NEW!!</span>
69 {/if}
70<br>
71</div>
72{/foreach}
73</div>
74{/foreach}
75</body>
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
This page took 0.147513 seconds and 4 git commands to generate.