renamed data directory
[mirrors/Kyberia-bloodline.git] / basic-data / templates / own_templates / 2472111.tpl
CommitLineData
51ff3226 1<?php
2function smarty_function_get_k_filtred_nodes($params,&$smarty) {
3
4global $db,$node;
5
6$user_id = $_SESSION['user_id'];
7$node_id = 2472165;
8$q="select src from neurons where synapse_creator='$user_id' and dst='$node_id'";
9
10$set=$db->query($q);
11while ($set->next()) {
12$k_array[]=$set->getRecord();
13}
14
15$smarty->assign('get_k_filtred_nodes',$k_filtred_nodes_array);
16
17
18
19}
20?>
21
22{get_movement_params children_count=$node.node_children_count}
23{* header *}{include file="1549864.tpl"}
24<table><tr><td valign='top' width='23%'>{* get_userlist *}{include file="1549848.tpl"}</td>
25<td>
26<center><span class='important'>
27<span class='important'>newly CREATED K-valued nodes
28<form method='post'>Interval: <input type='text' name='interval'><input type='submit' value='Days'></form>
29<br/>newly K-VALUED nodes <a href='/id/788016'>here</a>
30</span>
31{get_k}
32</span>
33{* movement *}{include file="1549913.tpl"}
34<br style='clear:left;'>
35</center>
36
37{foreach from=$get_k item=k}
38{if $k.node_parent eq 21}
39{else}
40<table class='bordered'>
41<tr>
42<td align='center' rowspan='2' valign='top'>
43<img border='0' hspace='5' width='50' src={get_image_link id=$k.node_creator}>
44<span class='most_important'>{$k.k} k</span>
45<form action='/id/{$k.node_id}' method='post'><input type='submit' name='event' value='K'></form>
46</td>
47<td class='header' width='100%'><a href='/id/{$k.node_id}/'>{$k.node_name}</a>
48in <a href='/id/{$k.node_parent}'>{$k.parent_name}</a> by <a href='/id/{$k.node_creator}'>{$k.creator}</a></td>
49<tr><td valign='top'>
50{$k.node_content|stripslashes|nl2br}
51</td></tr>
52</tr>
53</table>
54<br>
55{/if}
56{/foreach}
57</td></tr></table>
58{*footer*}{include file="1549377.tpl"}
This page took 0.135766 seconds and 4 git commands to generate.