Handle basic HTTP auth using PHP instead of using webserver configuration = better...
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 2089465.tpl
CommitLineData
51ff3226 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}
5
6{math equation="x/8" x=$node.vector_depth assign="crd"}
7{if $template_event eq 'preview'}
8<table width=666>
9 <tr>
10 <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
11 <td width='100%' valign='top'>
12 <table width='100%'>
13 <tr class='header'><td align='center'>PREVIEW</td></tr>
14 <tr><td>{$post_vars.node_content|preview}</td></tr>
15 </table>
16</table>
17{* end of preview *}
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>-->
23{else}
24{get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}
25{/if}
26
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}
29{*position in tree*}
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}
35{*root_id decka*}
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"}
52{else}
53{math equation="x-y" x=$hierarch y=$next_depth assign="h_depth"}
54{/if}
55{math equation="x+1" x=$crd assign="starter"}
56{eval var=$get_threaded_children[child].node_creator assign="h_creator"}
57
58{*child content*}
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;' />
63{else}
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"})
73 {/if}
74 {if $get_threaded_children[child].k > 0}
75 [<span class='most_important'>{$get_threaded_children[child].k}K</span>]
76 {/if}
77 {if $get_threaded_children[child].node_created > $node.last_visit}
78 <span class='most_important'>&nbsp;&nbsp;NEW</span>
79 {/if}
80 {if $get_threaded_children[child].node_status eq 'linked'}
81 <span class='most_important'>&nbsp;HARDLINK</span>
82 {/if}
83 {if $get_threaded_children[child].node_updated > $node.last_visit}
84 <span class='most_important'>&nbsp;!!CONTENT CHANGED!!</span>
85 {/if}
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>
89 {else}
90 <a href='/id/{$get_threaded_children[child].node_id}'>{$get_threaded_children[child].node_name|strip_tags}</a>
91 {/if}
92 {if $child.node_creator eq $user_id}
93 | <a href='/id/{$get_threaded_children[child].node_id}/1961033'>conf</a>
94 {/if}
95 </div>
96 </div>
97 <div class='th_content' style='margin-top: 5px; position:relative;'>
98 {$get_threaded_children[child].node_content|stripslashes|nl2br}
99 </div>
100</div>
101{/if}{*IGNORE USER CONDITION end*}
102{/capture}
103{*end of child content*}
104
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>
109{/section}
110{/if}
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>
114{/section}
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>
118{/section}
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>
122{/section}
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>
126{/section}
127{/if}
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>
130 <div class='th_cnt'>
131 {$smarty.capture.child_container}
132 </div>
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}
135 <ul>
136 <li class='empty_thread'>
137{/section}
138
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}
141 </li>
142{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}
143{section name=fin loop=$h_depth}
144 </ul>
145</li>
146{/section}{/if}
147{/if}{/section}
148</ul>
149
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>
156</tr></table>
157</form>
This page took 0.582372 seconds and 4 git commands to generate.