template_dir = 'templates/'; $smarty->compile_dir = 'templates_c/'; $smarty->config_dir = 'configs/'; $smarty->cache_dir = 'cache/'; //引入常用函数库 include_once("Common/function.php"); //引入模版选择 include_once("function/mbselect.php"); //引入广告函数 include_once("Inc/adfunction.php"); //引入系统广告 include_once("AdSystem/showSystemAd.php"); //检索酒业资讯 $sql="select * from news where grade=3 order by (case when id=8569 then 1 when id=8550 then 2 else 4 end), id desc limit 0,8"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $ispic=$row["ispic"]; $writedate=$row["writedate"]; $class=$row["class"]; if($ispic==1) $xtitle=mysubstr(strip_tags($title),0,22)."(图)"; if($ispic==2) $xtitle=mysubstr(strip_tags($title),0,22)."(视)"; if($ispic==0) $xtitle=mysubstr(strip_tags($title),0,26); //标题样式处理 //====================================================== $titlestyle=$row["titlestyle"]; $xtitle=newsstyle($xtitle,$titlestyle); //======================================================= //检索分类名称 $sql2="select * from newsclass where id=$class"; $result2=mysql_query($sql2); if($class==1){ $linksite="http://www.71jiu.com/news/list1";} if($class==2){ $linksite="http://www.71jiu.com/news/list2";} if($class==3){ $linksite="http://www.71jiu.com/news/list3";} if($class==4){ $linksite="http://www.71jiu.com/news/list4";} if($class==5){ $linksite="http://www.71jiu.com/news/list5";} if($class==6){ $linksite="http://www.71jiu.com/news/list6";} if($class==7){ $linksite="http://www.71jiu.com/news/list7";} if($class==8){ $linksite="http://www.71jiu.com/news/list8";} if($class==10){ $linksite="http://www.71jiu.com/news/list10";} if($class==11){ $linksite="http://www.71jiu.com/news/list11";} if($class==12){ $linksite="http://www.71jiu.com/news/list12";} if($class==13){ $linksite="http://www.71jiu.com/zhuanti/allzt";} if($result2){ if($row2=mysql_fetch_array($result2)){ $newsclass="$row2[classname]"; } } $jyzx[]=array("title"=>"[$newsclass]$xtitle"); } } $sql="select * from news where grade<3 and grade!=0 order by id desc limit 0,10"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $ispic=$row["ispic"]; $writedate=$row["writedate"]; $class=$row["class"]; if($ispic==1) $xtitle=mysubstr(strip_tags($title),0,22)."(图)"; if($ispic==2) $xtitle=mysubstr(strip_tags($title),0,22)."(视)"; if($ispic!=1) $xtitle=mysubstr(strip_tags($title),0,26); //标题样式处理 //====================================================== $titlestyle=$row["titlestyle"]; $xtitle=newsstyle($xtitle,$titlestyle); //======================================================= $jyzxz[]=array("title"=>"$xtitle"); } } //检索最新产品 $sql="select * from product where pclass1=12 or pclass1=13 and pisopen=1 order by rand() limit 0,30"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $zhilianggrade=gradetotext($row["zhilianggrade"]); $dushu=$row["dushu"]; $xpname=mysubstr(strip_tags($pname),0,16); $newproduct[]=array("name"=>"$xpname","grade"=>$zhilianggrade,"dushu"=>$dushu); } } //重点推广产品 $sql="select * from product where price3>300 and price3<=800 and pisopen=1 and msggrade=1 or price3>300 and price3<=800 and pisopen=1 and msggrade=2 order by rand() limit 0,35"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $price1=$row["price1"]; $price2=$row["price2"]; $price3=$row["price3"]; $tejiadate=$row["tejiadate"]; $pspic=$row["pspic"]; $xpname=mysubstr(strip_tags($pname),0,12); if($price1==0) $price1="面议"; if($price2==0) $price2="面议"; if($price3==0) $price3="面议"; if($price1>0) $price1="¥".$price1."元"; if($price2>0) $price2="¥".$price2."元"; if($price3>0) $price3="¥".$price3."元"; $zdproduct[]=array ("id"=>$rowid,"pic"=>$pspic,"pname"=>$pname,"xpname"=>$xpname,"price1"=>$price1,"price2"=>$price2,"price3"=>$price3,"tejiadate"=>$tejiadate); } } //检索热销产品 $sql="select * from product where pclass=0 and pisopen=1 and msggrade=2 order by rand() limit 0,5"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $price1=$row["price1"]; $price2=$row["price2"]; $price3=$row["price3"]; $tejiadate=$row["tejiadate"]; $pspic=$row["pspic"]; $xpname=mysubstr(strip_tags($pname),0,14); if($price1==0) $price1="面议"; if($price2==0) $price2="面议"; if($price3==0) $price3="面议"; if($price1>0) $price1="¥".$price1."元"; if($price2>0) $price2="¥".$price2."元"; if($price3>0) $price3="¥".$price3."元"; $product[]=array ("id"=>$rowid,"pic"=>$pspic,"pname"=>$pname,"xpname"=>$xpname,"price1"=>$price1,"price2"=>$price2,"price3"=>$price3,"tejiadate"=>$tejiadate); } } //检索热销产品文字 $sql="select * from product where pclass=0 and pisopen=1 and msggrade=2 order by rand() limit 0,20"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $price1=$row["price1"]; $price2=$row["price2"]; $price3=$row["price3"]; $tejiadate=$row["tejiadate"]; $pspic=$row["pspic"]; $xpname=mysubstr(strip_tags($pname),0,16); if($price1==0) $price1="面议"; if($price2==0) $price2="面议"; if($price3==0) $price3="面议"; if($price1>0) $price1="¥".$price1."元"; if($price2>0) $price2="¥".$price2."元"; if($price3>0) $price3="¥".$price3."元"; $productwz[]=array ("id"=>$rowid,"pic"=>$pspic,"pname"=>$pname,"xpname"=>$xpname,"price1"=>$price1,"price2"=>$price2,"price3"=>$price3,"tejiadate"=>$tejiadate); } } //检索特价产品 $sql="select * from product where pclass=1 and pisopen=1 and msggrade=2 order by rand() limit 0,5"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $price1=$row["price1"]; $price2=$row["price2"]; $price3=$row["price3"]; $tejiadate=$row["tejiadate"]; $pspic=$row["pspic"]; $xpname=mysubstr(strip_tags($pname),0,14); if($price1==0) $price1="面议"; if($price2==0) $price2="面议"; if($price3==0) $price3="面议"; if($price1>0) $price1="¥".$price1."元"; if($price2>0) $price2="¥".$price2."元"; if($price3>0) $price3="¥".$price3."元"; $tejiaproduct[]=array ("id"=>$rowid,"pic"=>$pspic,"pname"=>$pname,"xpname"=>$xpname,"lname"=>$lname,"price1"=>$price1,"price2"=>$price2,"price3"=>$price3,"tejiadate"=>$tejiadate); } } //检索特价产品文字 $sql="select * from product where pclass=1 and pisopen=1 and msggrade=2 order by rand() limit 0,20"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pname=$row["pname"]; $price1=$row["price1"]; $price2=$row["price2"]; $price3=$row["price3"]; $tejiadate=$row["tejiadate"]; $pspic=$row["pspic"]; $xpname=mysubstr(strip_tags($pname),0,14); if($price1==0) $price1="面议"; if($price2==0) $price2="面议"; if($price3==0) $price3="面议"; if($price1>0) $price1="¥".$price1."元"; if($price2>0) $price2="¥".$price2."元"; if($price3>0) $price3="¥".$price3."元"; $tejiaproductwz[]=array ("id"=>$rowid,"pic"=>$pspic,"pname"=>$pname,"xpname"=>$xpname,"lname"=>$lname,"price1"=>$price1,"price2"=>$price2,"price3"=>$price3,"tejiadate"=>$tejiadate); } } /* //检索精品店铺 $sql="select * from myshop where isopen=1 and class=3 order by id desc limit 0,9"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $shopname=$row["shopname"]; $shopimg2=$row["shopimg2"]; $mbid=$row["mbid"]; if($shopimg2=="") $shopimg2="nopic.jpg"; $xshopname=mysubstr(strip_tags($shopname),0,10); $shoplink=selectmb($mbid,"",$rowid); $shop3[]=array("pic"=>$shopimg2,"name"=>$shopname,"xname"=>$xshopname,"shoplink"=>$shoplink); } } */ //检索商家店铺 $sql="select * from myshop where shopclass=1 and isopen=1 and class=3 order by rand() limit 0,12"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $shopname=$row["shopname"]; $shopimg2=$row["shopimg2"]; $mbid=$row["mbid"]; if($shopimg2=="") $shopimg2="nopic.jpg"; $xshopname=mysubstr(strip_tags($shopname),0,12); $shoplink=selectmb($mbid,"",$rowid); $shop1[]=array("pic"=>$shopimg2,"name"=>$shopname,"xname"=>$xshopname,"shoplink"=>$shoplink); } } //检索厂家店铺 $sql="select * from myshop where shopclass=2 and isopen=1 and class=3 order by rand() limit 0,10"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $shopname=$row["shopname"]; $shopimg2=$row["shopimg2"]; $mbid=$row["mbid"]; if($shopimg2=="") $shopimg2="nopic.jpg"; $xshopname=mysubstr(strip_tags($shopname),0,12); $shoplink=selectmb($mbid,"",$rowid); $shop2[]=array("pic"=>$shopimg2,"name"=>$shopname,"xname"=>$xshopname,"shoplink"=>$shoplink); } } /* //检索精品视频 $sql="select * from video where vflag=2 and vpic<>'' order by id desc limit 0,9"; $result=mysql_query($sql); if($result){ $colorindex=1; while($row=mysql_fetch_array($result)){ $videoid=$row["id"]; $videoname=$row["video"]; $vpic=$row["vpic"]; $userid=$row["userid"]; $vname=$row["vname"]; $xvideoname=mysubstr(strip_tags($videoname),0,10); if($vpic=="") $vpic="nopic.jpg"; if($userid!=0){ $sql3="select * from myshop where id=$userid"; $tmpre=mysql_query($sql3); $username=mysql_result($tmpre,0,"shopname"); }else{ $username=$vname; } $video2[]=array("id"=>$videoid,"video"=>$videoname,"xvideo"=>$xvideoname,"vpic"=>$vpic,"userid"=>$userid,"vname"=>$vname); } } */ //检索视频展播 $sql="select * from video where vflag=2 and vpic<>'' order by rand() limit 0,10"; $result=mysql_query($sql); if($result){ $colorindex=1; while($row=mysql_fetch_array($result)){ $videoid=$row["id"]; $videoname=$row["video"]; $vpic=$row["vpic"]; $userid=$row["userid"]; $vname=$row["vname"]; $xvideoname=mysubstr(strip_tags($videoname),0,14); if($vpic=="") $vpic="nopic.jpg"; if($userid!=0){ $sql3="select * from myshop where id=$userid"; $tmpre=mysql_query($sql3); $username=mysql_result($tmpre,0,"shopname"); }else{ $username=$vname; } $vpictype=strstr($vpic,"."); if($vpictype==".swf") $vpic="$vpic"; $video1[]=array ("id"=>$videoid,"video"=>$videoname,"xvideo"=>$xvideoname,"vpic"=>$vpic,"userid"=>$userid,"vname"=>$vname,"vpictype"=>$vpictype); } } /*$sql="select * from video where vflag=2 and vpic<>'' order by id asc limit 0,5"; $result=mysql_query($sql); if($result){ $colorindex=1; while($row=mysql_fetch_array($result)){ $videoid=$row["id"]; $videoname=$row["video"]; $vpic=$row["vpic"]; $userid=$row["userid"]; $vname=$row["vname"]; $xvideoname=mysubstr(strip_tags($videoname),0,16); if($vpic=="") $vpic="nopic.jpg"; if($userid!=0){ $sql3="select * from myshop where id=$userid"; $tmpre=mysql_query($sql3); $username=mysql_result($tmpre,0,"shopname"); }else{ $username=$vname; } $video1[]=array("id"=>$videoid,"video"=>$videoname,"xvideo"=>$xvideoname,"vpic"=>$vpic,"userid"=>$userid,"vname"=>$vname); } } */ /* //检索精品画册 $sql="select * from ebook where ebclass=3 order by rand() limit 0,9"; $result=mysql_query($sql); if($result){ $colorindex=12; while($row=mysql_fetch_array($result)){ $ebid=$row["id"]; $ebname=$row["ebname"]; $ebpic=$row["ebpic"]; if($ebpic=="") $ebpic="nopic.jpg"; $xebname=mysubstr(strip_tags($ebname),0,10); $ebook2[]=array("id"=>$ebid,"ebname"=>$ebname,"xebname"=>$xebname,"ebpic"=>$ebpic); } } */ //检索电子画册 $sql="select * from ebook where ebclass=2 order by rand() limit 0,10"; $result=mysql_query($sql); if($result){ $colorindex=12; while($row=mysql_fetch_array($result)){ $ebid=$row["id"]; $ebname=$row["ebname"]; $ebpic=$row["ebpic"]; if($ebpic=="") $ebpic="nopic.jpg"; $xebname=mysubstr(strip_tags($ebname),0,16); $ebook1[]=array("id"=>$ebid,"ebname"=>$ebname,"xebname"=>$xebname,"ebpic"=>$ebpic); } } //检索名酒推荐产品 $sql="select * from product where pisopen=1 and msggrade=1 order by rand() limit 0,20"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $pspic=$row["pspic"]; $pname=$row["pname"]; $xiangxing=$row["xiangxing"]; $dushu=$row["dushu"]; $xpname=mysubstr(strip_tags($pname),0,14); $mingjiu[]=array("id"=>$rowid,"pic"=>$pspic,"name"=>$pname,"xname"=>$xpname,"class"=>$xiangxing,"dushu"=>$dushu); } } //检索品牌故事 $sql="select * from news where class=3 and grade=2 order by id desc limit 0,8"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $ispic=$row["ispic"]; $writedate=$row["writedate"]; if($ispic==1) $xtitle=mysubstr(strip_tags($title),0,30)."(图)"; if($ispic!=1) $xtitle=mysubstr(strip_tags($title),0,34); //标题样式处理 //====================================================== $titlestyle=$row["titlestyle"]; $xtitle=newsstyle($xtitle,$titlestyle); //======================================================= $ppgs[]=array("title"=>"·$xtitle"); } } //检索名企动态 $sql="select * from news where class=8 and grade=2 order by id desc limit 0,8"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $ispic=$row["ispic"]; $writedate=$row["writedate"]; if($ispic==1) $xtitle=mysubstr(strip_tags($title),0,30)."(图)"; if($ispic!=1) $xtitle=mysubstr(strip_tags($title),0,34); //标题样式处理 //====================================================== $titlestyle=$row["titlestyle"]; $xtitle=newsstyle($xtitle,$titlestyle); //======================================================= $mqdt[]=array("title"=>"·$xtitle"); } } //检索店铺新闻 $sql="select * from news where class=12 and grade=3 or class=10 and grade=3 order by id desc limit 0,9"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $ispic=$row["ispic"]; $writedate=$row["writedate"]; if($ispic==1) $xtitle=mysubstr(strip_tags($title),0,28)."(图)"; if($ispic!=1) $xtitle=mysubstr(strip_tags($title),0,32); //标题样式处理 //====================================================== $titlestyle=$row["titlestyle"]; $xtitle=newsstyle($xtitle,$titlestyle); //======================================================= $dpxw[]=array("title"=>"·$xtitle"); } } //检索推荐名家 $sql="select * from mrt where id IN(143,127,24,120,123,42,156) order by rand()"; $result=mysql_query($sql); if($result){ if($row=mysql_fetch_array($result)){ $ztflag=1; $tjztid=$row["id"]; $tmname=$row["mname"]; $artjj=mysubstr(strip_tags($row["artjj"]),0,268)."..."; $tpicspath=$row["picspath"]; }else{ $ztflag=0; } } //检索供应信息 $sql="select * from gongqiu where class=1 and gspic<>'' and isopen=1 and grade=2 order by id desc limit 0,8"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $gspic=$row["gspic"]; $title=$row["title"]; $xtitle=mysubstr(strip_tags($title),0,11); $gongying[]=array("id"=>$rowid,"pic"=>$gspic,"title"=>$title,"xtitle"=>$xtitle); } } //特别供应 $sql="select * from gongqiu where class=1 and grade=1 and isopen=1 order by id desc limit 0,9"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $xtitle=mysubstr(strip_tags($title),0,28); $hotgongying[]=array("title"=>"·$xtitle"); } } //检索求购信息 $sql="select * from gongqiu where class=2 and isopen=1 and grade=2 order by rand() limit 0,8"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $title=$row["title"]; $xtitle=mysubstr(strip_tags($title),0,34); $qiugou[]=array("title"=>"·$xtitle"); } } //检索友情链接1 $sql="select * from link where linkclass=6 and isopen=1 order by id desc"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $link1.=""; } } //检索友情链接2 $sql="select * from link where linkclass=7 and isopen=1 order by id desc"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $link2.=""; } } //检索友情链接3 $sql="select * from link where linkclass=8 and isopen=1 order by id desc"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $link3.=""; } } //检索友情链接4 $sql="select * from link where linkclass=9 and isopen=1 order by id desc"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $link4.=""; } } //检索图片友情链接 $sql="select * from link where linkclass>9 and isopen=1 and linkclass1=2 and indexshow=1 order by id desc limit 0,6"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $sitepic=$row["sitepic"]; $piclink[]=array("link"=>$sitelink,"name"=>$sitename,"pic"=>$sitepic); } } //检索文字友情链接 $sql="select * from link where linkclass>9 and isopen=1 and linkclass1=1 and indexshow=1 order by id desc limit 0,24"; $result=mysql_query($sql); if($result){ while($row=mysql_fetch_array($result)){ $sitename=$row["sitename"]; $sitelink=$row["sitelink"]; $sitecontent=$row["sitecontent"]; $txtlink[]=array("link"=>$sitelink,"name"=>$sitename,"content"=>$sitecontent); } } //==================================================================== //检索所有大类信息 $sql1="select * from mainclass1 order by id asc"; $re1=mysql_query($sql1); if($re1){ while($row1=mysql_fetch_array($re1)){ $classid1=$row1["id"]; $classname1=$row1["menu"]; $productallclass.=""; $sql2="select * from mainclass2 where menu_superior=$classid1"; $re2=mysql_query($sql2); if($re2){ while($row2=mysql_fetch_array($re2)){ $classid2=$row2["id"]; $classname2="  ".$row2["menu"]; $productallclass.=""; } } } } //检索省份 $areasql="select * from sheng"; $areare=mysql_query($areasql); if($areare){ while($arearow=mysql_fetch_array($areare)){ $shengid=$arearow["id"]; $shengname=$arearow["shengname"]; $shenglist.= ""; } } //检索首字母 for($i=65;$i<=90;$i++){ $charlist.=""; } //==================================================================== //检索广告 $Ad1=showSystemAd(3); $Ad2=showSystemAd(10); $Ad3=showSystemAd(11); //检索推荐名家6个 $mingart=array(6); $sql="select * from mrt where mclass=3 order by id asc"; $result=mysql_query($sql); if($result){ $rowindex=0; while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $mname=$row["mname"]; if(strlen($mname)>12) $mname=mysubstr($mname,0,12); $mname="名家".$mname; $mingart[$rowindex]="$mname"; $rowindex++; } } // 酒业大家 $sql="select * from mrt where isopen=1 and mclass=2 order by id desc limit 0,9"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)){ $rowid=$row["id"]; $mname=$row["mname"]; $regdate=$row["regdate"]; $picspath=$row["picspath"]; $sypmingren[]=array("id"=>$rowid,"pic"=>$picspath,"name"=>$mname); } $smarty->assign("jyzx",$jyzx); $smarty->assign("jyzxz",$jyzxz); $smarty->assign("newproduct",$newproduct); $smarty->assign("zdproduct",$zdproduct); $smarty->assign("lpproduct",$lpproduct); $smarty->assign("hyproduct",$hyproduct); $smarty->assign("product",$product); $smarty->assign("productwz",$productwz); $smarty->assign("tejiaproduct",$tejiaproduct); $smarty->assign("tejiaproductwz",$tejiaproductwz); $smarty->assign("shop1",$shop1); $smarty->assign("shop2",$shop2); $smarty->assign("shop3",$shop3); $smarty->assign("video1",$video1); $smarty->assign("video2",$video2); $smarty->assign("ebook1",$ebook1); $smarty->assign("ebook2",$ebook2); $smarty->assign("zebook",$zebook); $smarty->assign("mingjiu",$mingjiu); $smarty->assign("ppgs",$ppgs); $smarty->assign("mqdt",$mqdt); $smarty->assign("dpxw",$dpxw); $smarty->assign("tjhk",$tjhk); $smarty->assign("ztflag",$ztflag); $smarty->assign("tjztid",$tjztid); $smarty->assign("artjj",$artjj); $smarty->assign("mname",$tmname); $smarty->assign("picspath",$tpicspath); $smarty->assign("gongying",$gongying); $smarty->assign("gongying1",$gongying1); $smarty->assign("hotgongying",$hotgongying); $smarty->assign("qiugou",$qiugou); $smarty->assign("link1",$link1); $smarty->assign("link2",$link2); $smarty->assign("link3",$link3); $smarty->assign("link4",$link4); $smarty->assign("piclink",$piclink); $smarty->assign("txtlink",$txtlink); $smarty->assign("productallclass",$productallclass); $smarty->assign("shenglist",$shenglist); $smarty->assign("charlist",$charlist); $smarty->assign("sypmingren",$sypmingren); $smarty->assign("ad1",$Ad1); $smarty->assign("ad2",$Ad2); $smarty->assign("ad3",$Ad3); $smarty->assign("ming",$mingart); $smarty->caching = ture; $smarty->cache_lefetime = 864000; $smarty->display("index.html"); /* $output=$smarty->fetch("index.html"); $PageName="index.html"; $fp = fopen($PageName, "w"); fwrite($fp, $output); fclose($fp); */ //$smarty->display("index.html"); ?>