array("about",0),"pipeline"=>array("products",0),"technology"=>array("technology",0),"business_development"=>array("",4),"investors"=>array("",3),"careers"=>array("",2),"downloadcenter"=>array("",5),"contact"=>array("",15)); if(isset($_REQUEST["page"])){$page=mysql_real_escape_string($_REQUEST["page"]);} if(isset($_REQUEST["sub"])){$sub=floor($_REQUEST["sub"]);} if(count($page_array[$page])!=0){ if($page_array[$page][0]!=""){ $sth=mysql_query("SELECT *,content_lang.id as CID FROM `content`,`content_lang` where content.id=content_id and type='".$page_array[$page][0]."' and online=1 and languages_id=".$lang." order by content_id asc"); }else{ $sth=mysql_query("SELECT *,content_lang.id as CID FROM `content`,`content_lang` where content.id=content_id and content_id=".$page_array[$page][1]." and online=1 and languages_id=".$lang); } for($i=0; $idownload PDF"; } }else{ if($item["content_id"]==$sub){ $titlefield=$item["title"]; $textfield=$item["txt"]; $parent_id =$item["content_id"]; $description=$item["meta_description"]; $keywords=$item["meta_keywords"]; if($item["pdf"]!=""){ $textfield.="
download PDF
"; } } } } $sth=mysql_query("SELECT *,docs_lang.id as CID FROM `docs`,`docs_lang` where docs.id=docs_id and online=1 and languages_id=".$lang." order by order_id asc"); for($i=0; $i".$item["title"].""; } } }else if($page=="press"&&$sub!=0){ $textfield=""; $sth=mysql_query("SELECT *,DATE_FORMAT(date, '%e %M %Y') as mydate FROM `news`,`news_lang` where news.id=news_id and news_id=".$sub." and online=1 and languages_id=".$lang." order by date desc"); for($i=0; $i".$item["txt"]; $parent_id=$item["news_id"]; if($item["pdf"]!=""){ $textfield.="
download PDF
"; } } }else if($page=="press"){ //echo "press"; $titlefield="news"; $textfield=""; $sth=mysql_query("SELECT *,DATE_FORMAT(date, '%e %M %Y') as mydate FROM `news`,`news_lang` where news.id=news_id and online=1 and languages_id=".$lang." order by date desc"); for($i=0; $i".$item["title"]."

"; $parent_id=0; } } if($page==""){ $sth2=mysql_query("SELECT * FROM `content`,`content_lang` where content.id=content_id and content_id=20 and online=1 and languages_id=".$lang); $item2=mysql_fetch_array($sth2); $description=$item2["meta_description"]; $keywords=$item2["meta_keywords"]; } function getSubMenu($submenupage,$page_array,$lang){ $sth=mysql_query("SELECT * FROM `content`,`content_lang` where content.id=content_id and type='".$page_array[$submenupage][0]."' and online=1 and languages_id=".$lang." order by order_id asc"); $buildsubmenu=""; for($i=0; $i".$item["title"].""; } return $buildsubmenu; } ?> Formac Pharma