| 1 | {include file="modules/header.tpl"} |
| 2 | |
| 3 | {if $user_id eq false} |
| 4 | <center>{include file="modules/loginbox.tpl"}</center><br><br> |
| 5 | {/if} |
| 6 | |
| 7 | |
| 8 | <table width='100%'><tr> |
| 9 | |
| 10 | <!--left column--> |
| 11 | <td valign='top' align='center' width='23%'> |
| 12 | {* show node info *} |
| 13 | {include file="modules/node_settings.tpl"} |
| 14 | |
| 15 | {* showing poll *} |
| 16 | {include file="modules/get_poll_box.tpl"} |
| 17 | <br> |
| 18 | {*showing bookmark_statistics*} |
| 19 | |
| 20 | {include file="modules/get_bookmark_statistics_box.tpl"} |
| 21 | </td> |
| 22 | <!--end of left column--> |
| 23 | |
| 24 | <!--main central column--> |
| 25 | <td width=666 valign='top'> |
| 26 | {*showing node_content*} |
| 27 | <table width='666' border=0 style='background:#111;'><tr><td> |
| 28 | {$node.node_content|nl2br} |
| 29 | </td></tr></table><br><br> |
| 30 | {*showing form for adding child node*} |
| 31 | <form enctype="multipart/form-data" action='/id/{$node.node_id}/{if $action neq false}{$action}{/if}'method='post' name='formular'> |
| 32 | {if $permissions.w eq true}{include file="modules/addnode.tpl"}{/if} |
| 33 | |
| 34 | {if $template_event eq 'preview'} |
| 35 | <table> |
| 36 | <tr> |
| 37 | <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td> |
| 38 | <td width='100%' valign='top'> |
| 39 | <table width='100%'><tr class='header'> |
| 40 | <td align='center'>PREVIEW |
| 41 | |
| 42 | <tr><td>{$post_vars.node_content|preview}</td></tr> |
| 43 | </table> |
| 44 | </table> |
| 45 | {* end of preview *} |
| 46 | |
| 47 | {elseif $template_event eq 'filter_by'} |
| 48 | {get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} |
| 49 | {elseif $user_id neq true} |
| 50 | {get_threaded_children offset=0 listing_amount=232 orderby="asc"} |
| 51 | {elseif $node.node_user_subchild_count eq true} |
| 52 | {get_threaded_children offset=0 listing_amount=232 time=$node.last_visit time=$node.last_visit orderby=$listing_order types=$children_types} |
| 53 | <!--<center><span class='most_important'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>--> |
| 54 | {else} |
| 55 | {get_threaded_children listing_amount=$listing_amount offset=$offset types=$children_types orderby=$listing_order} |
| 56 | {/if} |
| 57 | |
| 58 | |
| 59 | |
| 60 | {*get_linked_nodes time_1=$time_1 time_2=$time_2 orderby=$listing_order*} |
| 61 | {if $user_id neq true} |
| 62 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby="asc"} |
| 63 | {else} |
| 64 | {merge_arrays array1=$get_threaded_children array2=$get_linked_nodes sort_by='thread' orderby=$listing_order} |
| 65 | {/if} |
| 66 | |
| 67 | |
| 68 | {foreach from=$merged item=child} |
| 69 | {if $child.template_id eq 11} |
| 70 | {get_poll poll=$child} |
| 71 | {include file="modules/show_poll.tpl" get_poll=$get_poll} |
| 72 | <br> |
| 73 | {else} |
| 74 | |
| 75 | <table width='666'> |
| 76 | <tr> |
| 77 | {*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} |
| 78 | <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td> |
| 79 | </tr> |
| 80 | {*/if*} |
| 81 | <td width='{math equation="(x-y)-9" x=$child.depth y=$node.vector_depth}%'></td> |
| 82 | <td valign='top' rowspan='2'><img width='50' hspace='5' src='{get_image_link id=$child.node_creator}'></td> |
| 83 | <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'> |
| 84 | <table class='bordered' width='100%'><tr class='header'> |
| 85 | <td> |
| 86 | <a href='/id/{$child.node_creator}'>{$child.login}</a> |
| 87 | {if $child.user_action neq false} |
| 88 | [lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>] |
| 89 | {/if} |
| 90 | <input type='checkbox' value='{$child.node_id}' name='node_chosen[]'> |
| 91 | {$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"} |
| 92 | {if $child.node_created > $node.last_visit}<span class='most_important'> NEW</span>{/if} |
| 93 | {if $child.node_status eq 'linked'}<span class='most_important'>LINKED</span>{/if} |
| 94 | |
| 95 | {if $child.node_name eq ''} |
| 96 | <div align='center'><a href='/id/{$child.node_id}'>enter node {$child.node_id}</a></div> |
| 97 | {else} |
| 98 | <div align='center'><a href='/id/{$child.node_id}'>{$child.node_name}</a></div> |
| 99 | {/if} |
| 100 | <tr><td>{$child.node_content|stripslashes|nl2br}</td></tr> |
| 101 | </table> |
| 102 | </table> |
| 103 | {/if} |
| 104 | <br> |
| 105 | {/foreach} |
| 106 | |
| 107 | <table align='center'><tr> |
| 108 | <td><input type='hidden' name='get_children_offset' value='{$offset}'></td> |
| 109 | <td><input type='submit' name='get_children_move' value='<'></td> |
| 110 | <td><input type='submit' name='get_children_move' value='<<'></td> |
| 111 | <td><input name='get_children_move' type='submit' value='>>'></td> |
| 112 | <td><input type='submit' name='get_children_move' value='>'></td> |
| 113 | </tr></table> |
| 114 | |
| 115 | |
| 116 | |
| 117 | </form> |
| 118 | <!--end of central column--> |
| 119 | |
| 120 | </td></tr></table> |
| 121 | |
| 122 | {include file="modules/footer.tpl"} |
| 123 | |