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