| 1 | <!-- |
| 2 | This program is free software. It comes without any warranty, to |
| 3 | the extent permitted by applicable law. You can redistribute it |
| 4 | and/or modify it under the terms of the Do What The Fuck You Want |
| 5 | To Public License, Version 2, as published by Sam Hocevar. See |
| 6 | http://sam.zoy.org/wtfpl/COPYING for more details. |
| 7 | --> |
| 8 | |
| 9 | {include file="modules/header.tpl"} |
| 10 | |
| 11 | <div style=" |
| 12 | margin: 1em; |
| 13 | padding: 2em; |
| 14 | border: 1px solid darkgreen; |
| 15 | "> |
| 16 | |
| 17 | |
| 18 | <form method='post' action='/id/{$node.node_id}'> |
| 19 | |
| 20 | {get_bookmarks} |
| 21 | {foreach from=$get_bookmarks item=bookmark_category} |
| 22 | <ul> |
| 23 | |
| 24 | {* showing bookmark category *} |
| 25 | {if $bookmark_category.node_name neq false} |
| 26 | |
| 27 | <li> |
| 28 | <a href='/id/{$bookmark_category.node_id}/'> |
| 29 | <h1>{$bookmark_category.node_name}</h1> |
| 30 | </a> |
| 31 | </li> |
| 32 | |
| 33 | |
| 34 | {/if} |
| 35 | |
| 36 | {foreach from=$bookmark_category.children item=bookmarks} |
| 37 | {if $bookmarks.node_name} |
| 38 | <input style='height: 11px; width: 11px;' type='checkbox' name='bookmarks_chosen[]' value='{$bookmarks.node_id}'> |
| 39 | |
| 40 | <a href='/id/{$bookmarks.node_id}'> |
| 41 | {$bookmarks.node_name} |
| 42 | </a> |
| 43 | |
| 44 | {if $bookmarks.node_user_subchild_count neq false} |
| 45 | :: <span class='most_important'> |
| 46 | {$bookmarks.node_user_subchild_count} NEW CHILDREN |
| 47 | </span> |
| 48 | {/if} |
| 49 | |
| 50 | {if $bookmarks.lastdescendant_created > $bookmarks.last_visit} |
| 51 | :: <span class='most_important'> |
| 52 | !!NEW DESCENDANT!! |
| 53 | </span> |
| 54 | {/if} |
| 55 | |
| 56 | <br> |
| 57 | {/if} |
| 58 | {/foreach} |
| 59 | |
| 60 | </ul> |
| 61 | {/foreach} |
| 62 | |
| 63 | <input type='text' name='bookmark_category_id'> |
| 64 | <input type='submit' name='event' value='set_bookmark_category'> |
| 65 | </form> |
| 66 | |
| 67 | |
| 68 | </div> |