| 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 | {if $user_id eq false} |
| 12 | <center>{include file="modules/loginbox.tpl"}</center><br><br> |
| 13 | {/if} |
| 14 | |
| 15 | |
| 16 | <table width='100%'><tr> |
| 17 | |
| 18 | <!--left column--> |
| 19 | <td valign='top' align='center' width='23%'> |
| 20 | {* show node info *} |
| 21 | {include file="modules/node_settings.tpl"} |
| 22 | |
| 23 | {* showing poll *} |
| 24 | {include file="modules/get_poll_box.tpl"} |
| 25 | <br> |
| 26 | {*showing bookmark_statistics*} |
| 27 | |
| 28 | {include file="modules/get_bookmark_statistics_box.tpl"} |
| 29 | </td> |
| 30 | <!--end of left column--> |
| 31 | |
| 32 | <!--main central column--> |
| 33 | <td width=666 valign='top'> |
| 34 | {*showing node_content*} |
| 35 | <table width='666' border=0 style='background:#111;'><tr><td> |
| 36 | {$node.node_content|nl2br} |
| 37 | </td></tr></table><br><br> |
| 38 | {*showing form for adding child node*} |
| 39 | <form enctype="multipart/form-data" action='/id/{$node.node_id}/{if $action neq false}{$action}{/if}'method='post' name='formular'> |
| 40 | {if $permissions.w eq true}{include file="modules/addnode.tpl"}{/if} |
| 41 | |
| 42 | {if $template_event eq 'preview'} |
| 43 | <table> |
| 44 | <tr> |
| 45 | <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td> |
| 46 | <td width='100%' valign='top'> |
| 47 | <table width='100%'><tr class='header'> |
| 48 | <td align='center'>PREVIEW |
| 49 | |
| 50 | <tr><td>{$post_vars.node_content|preview}</td></tr> |
| 51 | </table> |
| 52 | </table> |
| 53 | {* end of preview *} |
| 54 | |
| 55 | {elseif $template_event eq 'filter_by'} |
| 56 | {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} |
| 57 | {elseif $user_id neq true} |
| 58 | {get_threaded_children offset=0 listing_amount=232 orderby="asc"} |
| 59 | {elseif $node.node_user_subchild_count eq true} |
| 60 | {get_threaded_children offset=0 listing_amount=232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types} |
| 61 | <!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>--> |
| 62 | {else} |
| 63 | {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order} |
| 64 | {/if} |
| 65 | |
| 66 | |
| 67 | |
| 68 | {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*} |
| 69 | {if $user_id neq true} |
| 70 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"} |
| 71 | {else} |
| 72 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order} |
| 73 | {/if} |
| 74 | |
| 75 | |
| 76 | {foreach from=$merged item=child} |
| 77 | {if $child.template_id eq 11} |
| 78 | {get_poll poll=$child} |
| 79 | {include file="modules/show_poll.tpl" get_poll=$get_poll} |
| 80 | <br> |
| 81 | {else} |
| 82 | |
| 83 | <table width='666'> |
| 84 | <tr> |
| 85 | {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} |
| 86 | <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td> |
| 87 | </tr> |
| 88 | {*/if*} |
| 89 | <td width='{math equation="(x-y)-9" x=$child.depth y=$node.vector_depth}%'></td> |
| 90 | <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'></td> |
| 91 | <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'> |
| 92 | <table class='bordered' width='100%'><tr class='header'> |
| 93 | <td> |
| 94 | <a href='/id/{$child.node_creator}'>{$child.login}</a> |
| 95 | {if $child.user_action neq false} |
| 96 | [lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>] |
| 97 | {/if} |
| 98 | <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'> |
| 99 | {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} |
| 100 | {if $child.node_created > $node.last_visit}<span class='most_important'> NEW</span>{/if} |
| 101 | {if $child.node_status eq 'linked'}<span class='most_important'>LINKED</span>{/if} |
| 102 | |
| 103 | {if $child.node_name eq ''} |
| 104 | <div align='center'><a href='/id/{$child.node_id}'>enter node {$child.node_id}</a></div> |
| 105 | {else} |
| 106 | <div align='center'><a href='/id/{$child.node_id}'>{$child.node_name}</a></div> |
| 107 | {/if} |
| 108 | <tr><td>{$child.node_content|stripslashes|nl2br}</td></tr> |
| 109 | </table> |
| 110 | </table> |
| 111 | {/if} |
| 112 | <br> |
| 113 | {/foreach} |
| 114 | |
| 115 | <table align='center'><tr> |
| 116 | <td><input type='hidden' name='get_children_offset' value='{$offset}'></td> |
| 117 | <td><input type='submit' name='get_children_move' value='<'></td> |
| 118 | <td><input type='submit' name='get_children_move' value='<<'></td> |
| 119 | <td><input name='get_children_move' type='submit' value='>>'></td> |
| 120 | <td><input type='submit' name='get_children_move' value='>'></td> |
| 121 | </tr></table> |
| 122 | |
| 123 | |
| 124 | |
| 125 | </form> |
| 126 | <!--end of central column--> |
| 127 | |
| 128 | </td></tr></table> |
| 129 | |
| 130 | {include file="modules/footer.tpl"} |
| 131 | |