Execute("SELECT * FROM ".$params['tb']." WHERE ".$params['field']."='".$params['search']."' ".$params['opt'].""); return $rs->RecordCount(); } ?>Execute("SELECT * FROM ".$params['tb']." WHERE ".$params['field']."='".$params['search']."'"); if($rs->RecordCount()){ return $rs->Fields($params['getfield']); } } ?>db = $dbobj; $this->params = $params; } function get_modules_name(){ $rs = $this->db->Execute("SELECT * FROM tb_modul WHERE modul='".$params['mod']."'"); if($rs->RecordCount()>0){ return $rs->Fields("display_name"); } } } ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_pages where idtb_page ='".$params['id']."'"); }else{ $rs = $GLOBALS['obj']['dbconn']->getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_pages where main_page='yes'"); } if(count($rs)>0){ $GLOBALS['obj']['tpl']->assign($params['item'],$rs); } } $GLOBALS['obj']['tpl']->register_function('SITE_PAGES','f_PAGES'); ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_blok where position='".$params['pos']."' and status='yes'"); $GLOBALS['obj']['tpl']->assign($params['item'],$rs); } $GLOBALS['obj']['tpl']->register_function("SITE_BLOKS","f_BLOKS"); ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_news where status='PUBLISH' order by idtb_news desc limit ".$params['limit'].""); }else{ $rs = $GLOBALS['obj']['dbconn']->getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_news where status='PUBLISH' order by idtb_news desc limit ".$params['limit'].""); } if(count($rs)>0){ $GLOBALS['obj']['tpl']->assign($params['item'],$rs); } } $GLOBALS['obj']['tpl']->register_function("SITE_NEWS","f_NEWS"); ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_image_cat AS A INNER JOIN ".$GLOBALS['config']['prefix']."_image AS B ON A.idtb_image_cat=B.tb_image_cat_idtb_image_cat WHERE A.position='CLG' order by B.idtb_image desc limit 8"); if(count($rs)>0){ $GLOBALS['obj']['tpl']->assign('SITE_GALLERY',$rs); } ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_poll AS A INNER JOIN ".$GLOBALS['config']['prefix']."_poll_data AS B ON A.idtb_poll=B.tb_poll_idtb_poll order by A.idtb_poll ASC"); if(count($rs)>0){ $GLOBALS['obj']['tpl']->assign("poll_data",$rs); } ?>getArray("SELECT * FROM ".$GLOBALS['config']['prefix']."_message where approve='yes' order by idtb_message desc limit 2"); if(count($rs)>0){ $GLOBALS['obj']['tpl']->assign("RBCR",$rs); } ?>