X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_nodes_by_type.php;h=fe45e7c0ec21b7023e6d6913ed5711978e82165c;hb=d9b4dfbcb3d920445869db2c3abd706ee6916286;hp=e72b975fbc58518aa03d169aadaaa32674fb24ee;hpb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_type.php b/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_type.php index e72b975..fe45e7c 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_type.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_nodes_by_type.php @@ -1,32 +1,27 @@ query($q); + $vector=""; + $orderby=""; + $type=$params['type']; + if ($params['listing_amount']=='all') $listing_amount=DEF_MAX_LISTING_AMMOUNT; + else $listing_amount=$params['listing_amount']; + if (empty($params['offset'])) $offset=0; + else $offset=$params['offset']; + if (isset($params['vector']) && $params['vector']) { + $vector=$params['vector']; + } + if (isset($params['orderby']) && $params['orderby']) { + $orderby=$params['orderby']; + } + $node_id=$node['node_id']; + $user_id=$_SESSION['user_id']; - while ($set->next()) $pole[]=$set->getRecord(); - $smarty->assign('get_nodes_by_type',$pole); + $result=nodes::getNodesByType($vector,$user_id,$type,$orderby,$offset,$listing_amount); - } -?> \ No newline at end of file + $smarty->assign('get_nodes_by_type',$result); + +} +?>