﻿// JScript 文件
window.IncludeFile={"header":"head.html","tailer":"tail.html"};
window.JsModule=["system/jqframe.js","js/all_jpgys.js"];
function WebMain()
{ 
   
  
    $.SetFormat("zh","rdzx","<li><a style='width:250px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","xsfh","<li><a style='width:250px;' href=\"#\">#1#</a></li>","","");
    
    $.SetFormat("zh","settypesmall","<a class='qiyeli' style='width:70px;color:#17367E;' href=\"productlist.html?{'Sort':'#1#'}\">#0#</a>","","");
	$.SetFormat("zh","newsconl1","<li style='width:150px;height:30px;white-space:normal;margin-left:20px;'><a href=\"#2#\" target=\"_blank\">#1#</a></li>","","");
   
   
    
    /*热点资讯*/$("#rdzx").SendMessage({bLoading:false,type:"DBSelect",id:"rdzx",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=7 and IsCheck=1 and IsShow=1@>%16",format:"rdzx",start:0,total:9});    
    /*下属分会*/$("#xsfh").SendMessage({bLoading:false,type:"DBSelect",id:"xsfh",pm :"<@ehai_affiliate%16Id%16Id,AffName%16%16%16%160%16IsShow=1 and linktype=1@>%16",format:"xsfh"});


	/*相关链接*/	$("#newsconl1").SendMessage({bLoading:false,type:"DBSelect",id:"newsconl1",pm :"<@ehai_flink%16Id%16Id,FlinkName,FlinkUrl%16%16%16%160%16IsShow=1@>%16",format:"newsconl1",start:0,total:100});
	/*产品分类列表*/$.SendMessage({callback:setbigtype,bLoading:false,type:"DBSelect",id:"gq_left",pm :"<@ehai_typetable%16Id%16eName,Class,Id%16%16%16Class asc%160%16Sort=2 and LENGTH(Class)=2%16@>"});
    
	getAdsInfo(8);
	
}
//产品分类
 function setbigtype(re)
{
    if(re)
    {
        var h=""
        for(i=0;i<re.length;i++)
        {
            h+="<ul style='width:260px'><li class=\"sort\"><a style='color:#17367E;font-weight:bold;' href=\"productlist.html?{'Sort':'"+re[i][1]+"'}\">"+decodeURIComponent(re[i][0])+"</a></li><li id=\"bigtypeli"+re[i][1]+"\"></li></ul>";
        }
         $("#gq_left").html(h);
        for(i=0;i<re.length;i++)
        {
            /*产品小类*/$("#bigtypeli"+re[i][1]).SendMessage({bLoading:false,type:"DBSelect",pm :"<@ehai_typetable%16Id%16eName,Class,Id%16%16%16Class asc%160%16Sort=2 and LENGTH(Class)=4 and left(Class,2)='@>"+re[i][1]+"'%16",format:"settypesmall"});
        }
    }
};