Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / own_templates / modules / get_threaded_children.tpl
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 HELLO WORLD
10 {if $template_event eq 'preview'}
11 <table>
12 <tr>
13 <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td>
14 <td width='100%' valign='top'>
15 <table width='100%'><tr class='header'>
16 <td align='center'>PREVIEW
17
18 <tr><td>{$post_vars.node_content|preview}</td></tr>
19 </table>
20 </table>
21 {* end of preview *}
22 {elseif $template_event eq 'filter_by'}
23 {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
24 {elseif $node.node_user_subchild_count eq true}
25 {get_threaded_children offset=0 listing_amount=23232323232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types}
26 <!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>-->
27 {else}
28 {get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order}
29 {/if}
30
31 {*get_linked_nodes*}
32
33 {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order}
34
35 {foreach from=$merged item=child}
36 {if $child.node_type eq 11}
37 {get_poll poll=$child}
38 {include file="modules/show_poll.tpl" get_poll=$get_poll}
39 <br>
40 {else}
41
42 <table width='666'>
43 <tr>
44 {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*}
45 <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td>
46 </tr>
47 {*/if*}
48 <td width='{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%'></td>
49 <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'></td>
50 <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'>
51 <table class='bordered' width='100%'><tr class='header'>
52 <td>
53 &nbsp;<a href='/id/{$child.node_creator}'>{$child.login}</a>
54 {if $child.user_action neq false}
55 &nbsp;[lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>]
56 {/if}
57 &nbsp;&nbsp;<input type='checkbox' value='{$child.node_id}' name='node_chosen[]'>
58 &nbsp;&nbsp;{$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"}
59 {if $child.node_created > $node.last_visit}<span class='most_important'>&nbsp;&nbsp;NEW</span>{/if}
60 {if $child.node_status eq 'linked'}<span class='most_important'>LINKED</span>{/if}
61
62 <div style='text-align:center;'>
63 {if $child.node_name eq ''}
64 <a href='/id/{$child.node_id}'>enter node {$child.node_id}</a>
65 {else}
66 <a href='/id/{$child.node_id}'>{$child.node_name}</a>
67 {/if}
68 {if $child.node_creator eq $user_id or $child.node_permission eq 'master' or $child.node_permission eq 'op'}| <a href='/id/{$child.node_id}/configure'>conf</a>{/if}
69 </div>
70 <tr><td>{$child.node_content|stripslashes|nl2br}</td></tr>
71 </table>
72 </table>
73 {/if}
74 <br>
75 {/foreach}
76
77 <table align='center'><tr>
78 <td><input type='hidden' name='get_children_offset' value='{$offset}'></td>
79 <td><input type='submit' name='get_children_move' value='<'></td>
80 <td><input type='submit' name='get_children_move' value='<<'></td>
81 <td><input name='get_children_move' type='submit' value='>>'></td>
82 <td><input type='submit' name='get_children_move' value='>'></td>
83 </tr></table>
This page took 0.300311 seconds and 4 git commands to generate.