1 {include file="1549864.tpl"}
2 {*showing form for adding child node*}
3 <form enctype="multipart/form-data" action='/id/{$node.node_id}/{if $action neq false}{$action}{/if}'method='post' name='formular'>
4 {if $permissions.w eq true}{*addnode*}{include file="1548927.tpl"}{/if}
6 {math equation="x/8" x=$node.vector_depth assign="crd"}
7 {if $template_event eq 'preview'}
10 <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
11 <td width='100%' valign='top'>
13 <tr class='header'><td align='center'>PREVIEW</td></tr>
14 <tr><td>{$post_vars.node_content|preview}</td></tr>
18 {elseif $template_event eq 'filter_by'}
19 {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
20 {elseif $node.node_user_subchild_count eq true}
21 {get_threaded_children offset=0 link='yes' listing_amount=23232323232 time=$node.last_visit time=$node.last_visit orderby=$listing_order }
22 <!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>-->
24 {get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}
27 <ul style='width:611px; margin:0; padding-right:55px;' id='th_root'>
28 {section name=child loop=$get_threaded_children}{if $get_threaded_children[child].template_id neq 1549834}
30 {math equation="(x/8)-y" x=$get_threaded_children[child].depth y=$crd assign="hierarch"}
31 {math equation="(x/8)-y" x=$get_threaded_children[child.index_prev].depth y=$crd assign="prev_depth"}
32 {math equation="(x/8)-y" x=$get_threaded_children[child.index_next].depth y=$crd assign="next_depth"}
33 {*depth in hierarchy*}
34 {if $smarty.section.child.last}{math equation="x-1" x=$hierarch assign="h_depth"}{else}{math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}{/if}
36 {str_split string=$get_threaded_children[child].node_vector name=hroot length=8}
37 {eval var=$str_split.hroot.$crd assign="h_root"}
38 {str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8}
39 {eval var=$str_split.proot.$crd assign="p_root"}
40 {str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8}
41 {eval var=$str_split.nroot.$crd assign="n_root"}
42 {*depth in hierarchy*}
43 {math equation="(x-y)-1" x=$hierarch y=$prev_depth assign="p_depth"}
44 {math equation="x-1" x=$hierarch assign="ph_depth"}
45 {math equation="x-y" x=$next_depth y=$hierarch assign="c_depth"}
46 {if $smarty.section.child.last}
47 {math equation="x-1" x=$hierarch assign="h_depth"}
48 {elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq 'linked'}
49 {math equation="x-1" x=$hierarch assign="h_depth"}
50 {elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'}
51 {math equation="x-1" x=$hierarch assign="h_depth"}
53 {math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}
55 {math equation="x+1" x=$crd assign="starter"}
56 {eval var=$get_threaded_children[child].node_creator assign="h_creator"}
59 {capture name=child_container}
60 {*IGNORE USER CONDITION*}{if $ignore[$h_creator] neq true}
61 {* put.Ty hack *}{if $get_threaded_children[child].synapse_creator neq ''}
62 <img src='{get_image_link id=$get_threaded_children[child].synapse_creator}' width='50' alt='SYNAPSE CREATOR' style='float:left;' />
64 <img src='{get_image_link id=$get_threaded_children[child].node_creator}' width='50' alt='{$get_threaded_children[child].login}' onclick="km();sm('{$get_threaded_children[child].login}','{$get_threaded_children[child].node_creator}','{$node.node_id}')" style='float:left;' />
65 {/if}{*end of put.Ty hack *}
66 <div class='bordered' style='margin-left:5px; display:table; overflow:visible; padding:2px; width:100%;'>
67 <div class='th_header'>
68 <a href='/id/{$get_threaded_children[child].node_creator}'>{$get_threaded_children[child].login}</a>
69 <input type='checkbox' value='{$get_threaded_children[child].node_id}' name='node_chosen[]' />
70 {$get_threaded_children[child].node_created|date_format:"%d.%m.%Y. - %H:%M:%S"}
71 {if $get_threaded_children[child].node_updated}
72 (modif: {$get_threaded_children[child].node_updated|date_format:"%d.%m.%Y. - %H:%M:%S"})
74 {if $get_threaded_children[child].k > 0}
75 [<span class='most_important'>{$get_threaded_children[child].k}K</span>]
77 {if $get_threaded_children[child].node_created > $node.last_visit}
78 <span class='most_important'> NEW</span>
80 {if $get_threaded_children[child].node_status eq 'linked'}
81 <span class='most_important'> HARDLINK</span>
83 {if $get_threaded_children[child].node_updated > $node.last_visit}
84 <span class='most_important'> !!CONTENT CHANGED!!</span>
86 <div style='text-align:center;'>
87 {if $get_threaded_children[child].node_name eq ''}
88 <a href='/id/{$get_threaded_children[child].node_id}'>enter node {$get_threaded_children[child].node_id}</a>
90 <a href='/id/{$get_threaded_children[child].node_id}'>{$get_threaded_children[child].node_name|strip_tags}</a>
92 {if $child.node_creator eq $user_id}
93 | <a href='/id/{$get_threaded_children[child].node_id}/1961033'>conf</a>
97 <div class='th_content' style='margin-top: 5px; position:relative;'>
98 {$get_threaded_children[child].node_content|stripslashes|nl2br}
101 {/if}{*IGNORE USER CONDITION end*}
103 {*end of child content*}
105 {*stromcek prestri sa*}
106 {if $smarty.section.child.first && $sterter < $hierarch}
107 {section name=sta loop=$ph_depth}
108 <li class='empty_thread' ><ul>
111 {if $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq 'linked' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}
112 {section name=sta loop=$p_depth}
113 <li class='empty_thread'><ul>
115 {elseif $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq 'linked' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}
116 {section name=sta loop=$p_depth}
117 <li class='empty_thread'><ul>
119 {elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq 'linked'}
120 {section name=sta loop=$ph_depth}
121 <li class='empty_thread'><ul>
123 {elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq 'linked'}
124 {section name=sta loop=$hp_depth}
125 <li class='empty_thread'><ul>
128 <li class='sub{$get_threaded_children[child].node_creator}' style='list-style-type:none;'>
129 <a href='/id/{$get_threaded_children[child].node_parent}' class='vector'>{$get_threaded_children[child].node_vector}</a>
131 {$smarty.capture.child_container}
133 {if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id}
134 {section name=con loop=$c_depth}
136 <li class='empty_thread'>
139 {elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq 'linked'}
140 <ul>{elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq 'linked'}<ul>{else}
142 {/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}
143 {section name=fin loop=$h_depth}
150 <table align='center'><tr>
151 <td><input type='hidden' name='get_children_offset' value='{$offset}'></td>
152 <td><input type='submit' name='get_children_move' value='<'></td>
153 <td><input type='submit' name='get_children_move' value='<<'></td>
154 <td><input name='get_children_move' type='submit' value='>>'></td>
155 <td><input type='submit' name='get_children_move' value='>'></td>