X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=wwwroot%2F_ajax%2Fget_children.php;fp=wwwroot%2F_ajax%2Fget_children.php;h=86b69263c7e66ad7a6ccee12d71c3ea9eee1ef69;hb=a9de50399642ccac64af5e8d881ea55003e530d3;hp=0000000000000000000000000000000000000000;hpb=1dbcd10085c04288d9199af55b076c4ef571d9c9;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/_ajax/get_children.php b/wwwroot/_ajax/get_children.php new file mode 100644 index 0000000..86b6926 --- /dev/null +++ b/wwwroot/_ajax/get_children.php @@ -0,0 +1,32 @@ +query("select users.listing_amount, users.listing_order from users where users.user_id='$user_id' limit 1"); +$set->next(); +$listing_amount=$set->getString('listing_amount'); +if (!is_numeric($listing_amount)) { + $listing_amount=23; +} +$offset=0; + +$q="select creator.node_name as creator,users.user_id,nodes.node_name,nodes.node_id as node_id from nodes +left join node_access on (nodes.node_id=node_access.node_id and node_access.user_id='$user_id') left join users on users.user_id=nodes.node_creator left join nodes as creator on nodes.node_creator=creator.node_id where nodes.node_parent='$node_id'"; + +$q.=" order by nodes.template_id,nodes.node_name LIMIT 0,3"; +$set=$db->query($q); + +while ($set->next()) { + $get_children_array[]=$set->getRecord(); +} +printf(''); +?>