Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / kyberia / 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
14 {elseif $template_event eq 'filter_by'}
15 {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content}
16 {elseif $user_id neq true}
17 {get_threaded_children link='yes' offset=0 listing_amount=232 orderby="asc"}
18 {elseif $node.node_user_subchild_count eq true}
19 {get_threaded_children link='yes' offset=0 listing_amount=232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types}
20 <!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>-->
21 {else}
22 {get_threaded_children link='yes' listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order}
23 {/if}
24
25
26
27 {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*}
28 {if $user_id neq true}
29 {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"}
30 {else}
31 {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order}
32 {/if}
33
34
35 {foreach from=$merged item=child}
36 {if $child.template_id 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)-9" 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 {if $child.node_name eq ''}
63 <div align='center'><a href='/id/{$child.node_id}'>enter node {$child.node_id}</a></div>
64 {else}
65 <div align='center'><a href='/id/{$child.node_id}'>{$child.node_name}</a></div>
66 {/if}
67 <tr><td>{$child.node_content|stripslashes|nl2br}</td></tr>
68 </table>
69 </table>
70 {/if}
71 <br>
72 {/foreach}
73
74 <table align='center'><tr>
75 <td><input type='hidden' name='get_children_offset' value='{$offset}'></td>
76 <td><input type='submit' name='get_children_move' value='<'></td>
77 <td><input type='submit' name='get_children_move' value='<<'></td>
78 <td><input name='get_children_move' type='submit' value='>>'></td>
79 <td><input type='submit' name='get_children_move' value='>'></td>
80 </tr></table>
This page took 0.299701 seconds and 4 git commands to generate.