Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 2472111.tpl
diff --git a/data/templates/own_templates/2472111.tpl b/data/templates/own_templates/2472111.tpl
new file mode 100644 (file)
index 0000000..5a5f519
--- /dev/null
@@ -0,0 +1,58 @@
+<?php
+function smarty_function_get_k_filtred_nodes($params,&$smarty) {
+
+global $db,$node;
+
+$user_id = $_SESSION['user_id'];
+$node_id = 2472165;
+$q="select src from neurons where synapse_creator='$user_id' and dst='$node_id'";
+
+$set=$db->query($q);
+while ($set->next()) {
+$k_array[]=$set->getRecord();
+}
+
+$smarty->assign('get_k_filtred_nodes',$k_filtred_nodes_array);
+
+
+
+}
+?>
+
+{get_movement_params children_count=$node.node_children_count}
+{* header *}{include file="1549864.tpl"}
+<table><tr><td valign='top' width='23%'>{* get_userlist *}{include file="1549848.tpl"}</td>
+<td>
+<center><span class='important'>
+<span class='important'>newly CREATED K-valued nodes
+<form method='post'>Interval: <input type='text' name='interval'><input type='submit' value='Days'></form>
+<br/>newly K-VALUED nodes <a href='/id/788016'>here</a>
+</span>
+{get_k}
+</span>
+{* movement *}{include file="1549913.tpl"}
+<br style='clear:left;'>
+</center>
+
+{foreach from=$get_k item=k}
+{if $k.node_parent eq 21}
+{else}
+<table class='bordered'>
+<tr>
+<td align='center' rowspan='2' valign='top'>
+<img border='0' hspace='5' width='50' src={get_image_link id=$k.node_creator}>
+<span class='most_important'>{$k.k} k</span>
+<form action='/id/{$k.node_id}' method='post'><input type='submit' name='event' value='K'></form>
+</td>
+<td class='header' width='100%'><a href='/id/{$k.node_id}/'>{$k.node_name}</a>
+in <a href='/id/{$k.node_parent}'>{$k.parent_name}</a> by <a href='/id/{$k.node_creator}'>{$k.creator}</a></td>
+<tr><td valign='top'>
+{$k.node_content|stripslashes|nl2br}
+</td></tr>
+</tr>
+</table>
+<br>
+{/if}
+{/foreach}
+</td></tr></table>
+{*footer*}{include file="1549377.tpl"}
This page took 0.140694 seconds and 4 git commands to generate.