{get_threaded_children_v2 listing_amount=$listing_amount offset=$offset orderby=$listing_order link="yes"}


{foreach from=$get_threaded_children_v2 item=child}{if $child.template_id neq 1549834 and $child.external_link neq "session://fook"}
<table width='666'>
  <tr>
{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}
{*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*}
    <td colspan='3'><a href='/id/{$child.node_parent}'>{$child.node_vector}</a></td>
  </tr>
{*/if*}
  <tr>
    <td width='{math equation="(x-y)-8" x=$child.depth y=$node.vector_depth}%'></td>
    <td valign='top' rowspan='2'>
{* put.Ty hack *}
{if $child.synapse_creator neq ''}
    <img src='{get_image_link id=$child.synapse_creator}' width='50' hspace='5' alt='SYNAPSE CREATOR' />
{else}
    <img src='{get_image_link id=$child.node_creator}' width='50' hspace='5' alt='{$child.login}' onclick="km();sm('{$child.login}','{$child.node_creator}','{$node.node_id}')" />
{/if}
{*end of put.Ty hack *}
    </td>
    <td width='{math equation="100-(x-y)" x=$child.depth y=$node.vector_depth}%'>
      <table class='bordered' width='100%'><tr class='header'>
        <td>
          &nbsp;<a href='/id/{$child.node_creator}'>{$child.login}</a>
{if $child.user_action neq false}
          &nbsp;[lokacia :: <a href='/{$child.user_actions}/'>{$child.user_action}</a>]
{/if}
&nbsp;&nbsp;<input type='checkbox' value='{$child.node_id}' name='node_chosen[]'>
&nbsp;&nbsp;{$child.node_created|date_format:"%d.%m.%Y. - %H:%M:%S"}
{if $child.node_updated} (modif: {$child.node_updated|date_format:"%d.%m.%Y. - %H:%M:%S"}){/if}
{if $child.k > 0} [<span class='most_important'>{$child.k}K</span>] {/if}
{if $child.node_created > $node.last_visit}<span class='most_important'>&nbsp;&nbsp;NEW</span>{/if}
{if $child.node_status eq 'linked'}
&nbsp;<span class='important'>HARDLINK</span>
{/if}
{if $child.node_updated > $node.last_visit}<span class='most_important'>!!CONTENT CHANGED!!</span>{/if}
{if $bookmarks.last_visit eq true and $child.lastdescendant_created > $bookmarks.last_visit}<span class='most_important'>!!NEW DESCENDANT!!</span>{/if}


<div style='text-align:center;'>
{if $child.node_name eq ''}
<a href='/id/{$child.node_id}'>enter node {$child.node_id}</a>
{else}
<a href='/id/{$child.node_id}'>{$child.node_name|stripslashes}</a>
{/if}
{if $child.node_creator eq $user_id}| <a href='/id/{$child.node_id}/1961033'>conf</a>{/if}
</div></td></tr>
<tr><td>{if $permissions.r}{$child.node_content|escape:'html'}{else}you don't have permissions for viewing this data node{/if}</td></tr>
</table></td>
{/if}{*IGNORE USER CONDITION end*}
</tr>
</table>

<br>{/if}
{/foreach}

<table align='center'><tr>
<td><input type='hidden' name='get_children_offset' value='{$offset}'></td>
<td><input type='submit' name='get_children_move' value='<'></td>
<td><input type='submit' name='get_children_move' value='<<'></td>
<td><input name='get_children_move' type='submit' value='>>'></td>
<td><input type='submit' name='get_children_move' value='>'></td>
</tr></table>