| 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 | |
| 12 | {if $user_id eq false} |
| 13 | <center>{include file="modules/loginbox.tpl"}</center><br><br> |
| 14 | {/if} |
| 15 | |
| 16 | |
| 17 | |
| 18 | <!--left column--> |
| 19 | <div id="left" style="width:23%; float:left; text-align:center; padding: auto; margin: auto;"> |
| 20 | {* show node info *} |
| 21 | {include file="1549925.tpl"} |
| 22 | |
| 23 | |
| 24 | {* showing poll *} |
| 25 | {include file="modules/get_poll_box.tpl"} |
| 26 | <br> |
| 27 | {*showing bookmark_statistics*} |
| 28 | {include file="modules/get_bookmark_statistics_box.tpl"} |
| 29 | </div> |
| 30 | <!--end of left column--> |
| 31 | |
| 32 | <!--main central column--> |
| 33 | <div id="right" style="width:666px; float:left;"> |
| 34 | {*showing node_content*} |
| 35 | {include file="modules/node_content.tpl"} |
| 36 | |
| 37 | {*showing form for adding child node*} |
| 38 | <form enctype="multipart/form-data" action='/id/{$node.node_id}/{if $action neq false}{$action}{/if}'method='post' name='formular'> |
| 39 | {if $permissions.w eq true}{include file="modules/addnode.tpl"}{/if} |
| 40 | |
| 41 | {* include file="modules/get_threaded_children.tpl" children_type=4 *} |
| 42 | |
| 43 | {if $template_event eq 'preview'} |
| 44 | <div class='sub{$user_id}' style='margin-top: 10px;'> |
| 45 | <img width='50' hspace='5' src='{get_image_link id=$user_id}' alt='' style='float:left; margin-right:5px;' class='icon' /> |
| 46 | <div class='th_header' style='background:#333;'> |
| 47 | PREVIEW |
| 48 | </div> |
| 49 | <div class='th_content' style='margin-top: 5px;'> |
| 50 | {$post_vars.node_content|preview} |
| 51 | </div> |
| 52 | </div> |
| 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 | |
| 62 | {else} |
| 63 | {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order} |
| 64 | {/if} |
| 65 | |
| 66 | {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*} |
| 67 | {if $user_id neq true} |
| 68 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"} |
| 69 | {else} |
| 70 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order} |
| 71 | {/if} |
| 72 | |
| 73 | {foreach from=$merged item=child} |
| 74 | {if $child.template_id eq 11} |
| 75 | {get_poll poll=$child} |
| 76 | {include file="modules/show_poll.tpl" get_poll=$get_poll} |
| 77 | <br> |
| 78 | {else} |
| 79 | |
| 80 | <table width='666'> |
| 81 | <tr> |
| 82 | {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} |
| 83 | <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td> |
| 84 | </tr> |
| 85 | {*/if*} |
| 86 | <td width='{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%'></td> |
| 87 | <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'></td> |
| 88 | <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'> |
| 89 | <table class='bordered' width='100%'><tr class='header'> |
| 90 | <td> |
| 91 | <a href='/id/{$child.node_creator}'>{$child.login}</a> |
| 92 | {if $child.user_action neq false} |
| 93 | [lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>] |
| 94 | {/if} |
| 95 | <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'> |
| 96 | {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} |
| 97 | {if $child.node_created > $node.last_visit}<span class='most_important'> NEW</span>{/if} |
| 98 | {if $child.node_status eq 'linked'}<span class='most_important'>LINKED</span>{/if} |
| 99 | |
| 100 | <div class='header_button' style='text-align:center;'> |
| 101 | {if $child.node_name eq ''} |
| 102 | <a href='/id/{$child.node_id}'>enter node {$child.node_id}</a> |
| 103 | {else} |
| 104 | <a href='/id/{$child.node_id}'>{$child.node_name}</a> |
| 105 | {/if} |
| 106 | | <a href='/id/{$child.node_id}/configure'>conf</a> |
| 107 | </div> |
| 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 | </form> |
| 125 | </div> |
| 126 | <!--end of central column--> |
| 127 | <div class="footer" style="clear:left;"> |
| 128 | {include file="modules/footer.tpl"} |
| 129 | </div> |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |