51ff3226 |
1 | {get_movement_params children_count=$node.node_children_count} |
2 | {include file="1549864.tpl"} |
3 | |
4 | {if $error eq true} |
5 | <center><font style='error'>{$error}</font></center> |
6 | {/if} |
7 | |
8 | {if $user_id eq false} |
9 | <center>{include file="1549885.tpl"}</center><br><br> |
10 | {/if} |
11 | |
12 | <table width='100%'><tr> |
13 | |
14 | <!--left column--> |
15 | <td valign='top' align='center' width='23%' id='left-pan'> |
16 | {* show node info *} |
17 | {include file="1549925.tpl"} |
18 | |
19 | {* showing poll *} |
20 | {include file="1549834.tpl"} |
21 | <br> |
22 | {*showing bookmark_statistics*} |
23 | {include file="1549386.tpl"} |
24 | </td> |
25 | <!--end of left column--> |
26 | |
27 | <!--main central column--> |
28 | <td width=66% valign='top'> |
29 | {*showing node_content*} |
30 | {include file="1549916.tpl"} |
31 | {*showing form for adding child node*} |
32 | <form enctype="multipart/form-data" action='/id/{$node.node_id}/ |
33 | {if $action neq false}{$action}{/if}' method='post' name='formular'> |
34 | |
35 | {if $permissions.w eq true}{include file="1548927.tpl"}{/if} |
36 | |
37 | {* include file="modules/get_threaded_children.tpl" children_type=4 *} |
38 | |
39 | {if $template_event eq 'preview'} |
40 | <div class='sub{$user_id}' style='margin-top: 10px;'> |
41 | <img width='50' hspace='5' src='{get_image_link id=$user_id}' alt='' style='float:left; margin-right:5px;' class='icon' /> |
42 | <div class='th_header' style='background:#333; margin-left: 55px;'> |
43 | PREVIEW |
44 | </div> |
45 | <div class='th_content' style='margin-top: 5px; margin-left: 55px;'> |
46 | {$post_vars.node_content|preview} |
47 | </div> |
48 | </div> |
49 | {* end of preview *} |
50 | |
51 | {elseif $template_event eq 'filter_by'} |
52 | {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} |
53 | {elseif $user_id neq true} |
54 | {get_threaded_children offset=0 listing_amount=232 orderby="asc"} |
55 | {elseif $node.node_user_subchild_count eq true} |
56 | {get_threaded_children offset=0 listing_amount=232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types} |
57 | |
58 | {else} |
59 | {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order} |
60 | {/if} |
61 | |
62 | {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*} |
63 | {if $user_id neq true} |
64 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"} |
65 | {else} |
66 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order} |
67 | {/if} |
68 | |
69 | {foreach from=$merged item=child} |
70 | {if $child.template_id eq 11} |
71 | {get_poll poll=$child} |
72 | {include file="modules/show_poll.tpl" get_poll=$get_poll} |
73 | <br> |
74 | {else} |
75 | {math equation="(x-y)-8" x=$child.depth y=$node.vector_depth assign="oover"} |
76 | <div class='sub{$user_id}' style='margin-top: 5px; width:666px;'> |
77 | {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} |
78 | <a href='/id/{$child.node_parent}' class='vector'>{$child.node_vector}</a> |
79 | {*/if*} |
80 | <div class='th_cnt' style='margin-left: {math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%;'> |
81 | {* put.Ty hack *} |
82 | {if $child.synapse_creator neq ''} |
83 | <img src='{get_image_link id=$child.synapse_creator}' width='50' alt='SYNAPSE CREATOR' style='float:left; margin-right:5px;' class='icon' /> |
84 | {else} |
85 | <img src='{get_image_link id=$child.node_creator}' width='50' alt='{$child.login}' style='float:left; margin-right:5px;' class='icon' onclick="km();sm('{$child.login}','{$child.node_creator}','{$node.node_id}')" /> |
86 | {/if} |
87 | {*end of put.Ty hack *} |
88 | <div class='bordered' style='margin-left: 55px; padding:2px; overflow:visible; {if $oover > 50} width:500px;{/if}'> |
89 | <div class='th_header'> |
90 | <a href='/id/{$child.node_creator}'>{$child.login}</a> |
91 | {if $child.user_action neq false} |
92 | [lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>] |
93 | {/if} |
94 | <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'> |
95 | {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} |
96 | {if $child.node_updated} |
97 | (modif: {$child.node_updated|date_format:"%d.%m.%Y. - %H:%M:%S"}) |
98 | {/if} |
99 | {if $child.k > 0} |
100 | [<span class='most_important'>{$child.k}K</span>] |
101 | {/if} |
102 | {if $child.node_created > $node.last_visit} |
103 | <span class='most_important'> NEW</span> |
104 | {/if} |
105 | {if $child.node_status eq 'linked'} |
106 | <span class='most_important'>HARDLINK</span> |
107 | {/if} |
108 | {if $child.node_updated > $node.last_visit} |
109 | <span class='most_important'>!!CONTENT CHANGED!!</span> |
110 | {/if} |
111 | {if $bookmarks.last_visit eq true and $child.lastdescendant_created > $bookmarks.last_visit} |
112 | <span class='most_important'>!!NEW DESCENDANT!!</span> |
113 | {/if} |
114 | |
115 | <div style='text-align:center;'> |
116 | {if $child.node_name eq ''} |
117 | <a href='/id/{$child.node_id}'>enter node {$child.node_id}</a> |
118 | {else} |
119 | <a href='/id/{$child.node_id}'>{$child.node_name}</a> |
120 | {/if} |
121 | {if $child.node_creator eq $user_id} |
122 | | <a href='/id/{$child.node_id}/1961033'>conf</a> |
123 | {/if} |
124 | </div> |
125 | </div> |
126 | <div class='th_content' style='margin-top: 5px;'> |
127 | {$child.node_content|stripslashes|nl2br} |
128 | </div> |
129 | </div> |
130 | </div> |
131 | <br style='clear:left'> |
132 | </div> |
133 | {/if} |
134 | {/foreach} |
135 | |
136 | <table align='center'><tr> |
137 | <td><input type='hidden' name='get_children_offset' value='{$offset}'></td> |
138 | <td><input type='submit' name='get_children_move' value='<'></td> |
139 | <td><input type='submit' name='get_children_move' value='<<'></td> |
140 | <td><input name='get_children_move' type='submit' value='>>'></td> |
141 | <td><input type='submit' name='get_children_move' value='>'></td> |
142 | </tr></table> |
143 | |
144 | </form> |
145 | <!--end of central column--> |
146 | </td></tr></table> |
147 | |
148 | {include file="1549377.tpl"} |