getTheLangListPidKey($gEditLang); // $aryValidLangContentID = $contentDao->getValidLangIDList(); //echo "
";
//print_r($aryValidLangContentID);
//echo "
"; //for($ii=0;$ii<4;$ii++) // { // $tpl->set_var("show".$ii,"none"); // } $tpl->set_var("shownl","none"); $tpl->set_var("showuk","none"); $aryValidLangContentID = $contentDao->getValidCountryArr($rootid); for($country_i=0;$country_iset_var("show".$langName,"inline-block"); } // //load line news //////////////////////news list//////////////////////// //$gID4News=96; $dao = $contentDao; $dao->setCurrPageNo(1); $dao->setNumberOfPage(5); $aryList = $dao->getValidContentListPid($gPageLanguage,$gID4News); //加载块模块 $i = 0; $tpl->set_block("newsline","newline_row","newline_rows"); while(list($key,$content) = each($aryList)){ $tpl->set_var("STEP",$i++); $title = is_object($content)?$content->getTitle():$gNoEnterTitle; $alt = is_object($content)?$content->getAlt():""; $tpl->set_var("TITLE",str_replace("'","\'",$title)); $tpl->set_var("ALT",formString($alt)); $tpl->set_var("ID",$content->getPid()); //$tpl->set_var("DATE",$news->getAddDate()); $tpl->parse("newline_rows","newline_row",true); } $tpl->parse("NEWSLINE","newsline"); //////////////////////news list end//////////////////////// //er left get date $categoryRootList = $categoryDao->getList($rootid); $tpl->set_file("plist","erLeft.html"); $tpl->set_block("plist","rootrow","rootrows"); $tpl->set_block("rootrow","subrow","subrows"); $tpl->set_block("subrow","newsrow","newsrows"); //##################################################################### for($i=0;$iset_var("subrows"); $categoryRoot = $categoryRootList[$i]; $content = $aryId2Content[$categoryRoot->getId()]; $title = is_object($content)?$content->getTitle():$gNoEnterTitle; $content=is_object($content)?$content->getContent():""; //level $level=$content; $levelShow="none"; $tpl->set_var('ROOTitle',$title); //dao hang $root_type=$title; $tpl->set_var("ROOTid",$categoryRoot->getId()); // $tpl->set_var("categoryId",$rootid); $categorySubList = $categoryDao->getShowList($categoryRoot->getId()); for($j=0;$jset_var("newsrows"); $categorySub = $categorySubList[$j]; $content = $aryId2Content[$categorySub->getId()]; //echo "
";
    // print_r($categorySub);
    // echo "
"; $showTag=is_object($content)?$content->getShowTag():""; if($showTag=="N"||$showTag=='') { $tpl->set_var("subshow","none"); } else { $tpl->set_var("subshow","black"); } //$title = is_object($content)?$content->getTitle():$gNoEnterTitle; $title = is_object($content)?$content->getTitle():$gNoEnterTitle; $id1=$categorySub->getId(); $image=$categorySub->getImage(); $showContent=is_object($content)?$content->getContent():""; // echo $title; // echo "
"; //level $levelShow="none"; $level=$id1==$levelId?$showContent:$level; $levelShow=$id1==$levelId||$id1==$parentId?"block":$levelShow; //daohan $daohantitle_news=$id1==$levelId||$id1==$parentId?$title:$daohantitle_news; // echo $title_news; //echo $id."--".$levelShow; //echo "
"; //level show or hidden $tpl->set_var("levelShow",$levelShow); $tpl->set_var("SUBid",$categorySub->getId()); $tpl->set_var("SUBTitle",$title); $articleList = $categoryDao->getShowList($categorySub->getId()); $pListKey=$categorySub->getId(); // for($k=0;$kgetId()]; $threeShow=is_object($content)?$content->getShowTag():""; if($threeShow=='N'||$threeShow=='') { $tpl->set_var("levelShow","none"); } else { $tpl->set_var("levelShow",$levelShow); } // echo $threeShow; $title = is_object($content)?$content->getTitle():$gNoEnterTitle; $upid=$id1; $id=$categoryArticle->getId(); $showContent=is_object($content)?$content->getContent():""; //level $level=$id==$levelId?$showContent:$level; //dao han $daohantitle_news3=$id==$levelId?$title:$daohantitle_news3; $tpl->set_var("ID",$id); $tpl->set_var("upid",$upid); $tpl->set_var("NewsTitle",$title); $tpl->parse("newsrows","newsrow","true"); } // $tpl->parse("subrows","subrow","true"); } $tpl->parse("rootrows","rootrow","true"); } $tpl->set_var("TITLE_CONTENT",$level); $tpl->set_var("categoryIdKey",$rootid); if($rootid=='93') { $picId=$_GET[upid]; $picId=$picId==''?$_GET[id]:$picId; if($picId=='192'||$picId=='193') { $tpl->set_var("categoryIdKey","app".$picId); } } $tpl->parse("PLIST","plist"); //产品列表结束 //daohang $root_type="".$root_type.""; $daohantitle_news3=$daohantitle_news3==""?$daohantitle_news:"".$daohantitle_news." >>".$daohantitle_news3; $daohantitle_news=" >>".$daohantitle_news3; $daohantitle_news=$_GET[id]==""?"":$daohantitle_news; $tpl->set_var("ROOT_TYPE",$root_type); $tpl->set_var("TITLE_NEWS",$daohantitle_news); //daohang end $tpl->set_var("tdHight","10"); $tpl->set_var("divHight","313"); $tpl->set_var("bgImage","n_1_21"); $tpl->set_var("divTabHight","335"); $tpl->parse("BODY",$tplkey); require_once $ROOT_DIR."config/bottom.inc.php"; ?>