<!--
<?php
$i=0;
foreach($module_db AS $key=>$value){	
    $module_select.="<div onmouseover=\"selectmodule($key,$i)\"><span><img src=\"$webdb[www_url]/images/green/house/m$i.gif\"/></span></div>\t\n";
    $i++;
}
print <<<EOT
--> 
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/green/house/index.css">
<div class="MainCont1">
	<div class="HouseSearch">
    <form name="form_searchpage" method="post" action="search.php" onsubmit="return checksearch(this);">
    	<div class="selectm" id="selectm">
        	$module_select
        </div>
        <div class="select">
            <div id="showsel" onClick="displaymore()">类 型</div>
            <div id="listselect">
                <a href="javascript:;" onClick="changstyle('title','标题',0)">标 题</a>
                <a href="javascript:;" onClick="changstyle('mobphone','手机号码',1)">手机号码</a>
                <a href="javascript:;" onClick="changstyle('username','发布者',2)">发布者</a>
            </div>
        </div>
        <div class="keywords">
            <input type="text" value="请输入您要查找的内容" onClick="if(this.value.indexOf('请输入您要查找的')!=-1)this.value=''" name="keyword" id="keyword">
        </div>
        <div class="sub">
            <input name="" type="image" src="$webdb[www_url]/images/green/house/submit.gif" />
        </div>
        <input type="hidden" name="mid" value="" id="mid_search">
        <input type="hidden" name="type" value="" id="type_search">
        <input type="hidden" name="action" value="search">
    </form>
    </div>
<script language="javascript">
	function checksearch(obj){
		if(document.getElementById("keyword").value==''){
			alert('关键字不能为空!');
			return false;
		}
	}
	function displaymore(){
		document.getElementById("listselect").style.display="block";
		document.getElementById("showsel").className="onclicks";
	}
	function hiddendiva(){
		document.getElementById("listselect").style.display="none";
		document.getElementById("showsel").className="";
	}
   function selectmodule(mid,obj){
		document.getElementById('mid_search').value=mid;		
		var alinks=document.getElementById('selectm').getElementsByTagName('div');
		for(var i=0;i<alinks.length;i++){
			if(i==obj){
				alinks[i].className='ck';
			}else{
				alinks[i].className='';
			}			
		}
   }
   function changstyle(type,word,obj){
		document.getElementById('type_search').value=type;
		document.getElementById('showsel').innerHTML = word;
		document.getElementById("showsel").className="";
		document.getElementById("listselect").style.display="none";		
		var alinka=document.getElementById('listselect').getElementsByTagName('a');
		for(var i=0;i<alinka.length;i++){
			if(i==obj){
				alinka[i].className='ck';
			}else{
				alinka[i].className='';
			}
		}
   }
   selectmodule(1,0);
   changstyle('title','标题',0);
</script>
	<div class="ShowSorts">
    	<div class="head"><div class="tag">{$label[fashion_houseindexh1]}</div></div>
        <div class="cont">
<!--
EOT;
$i=0;
foreach($Fid_db[0] AS $key=>$name){
$i++;
if($i>6)break;
$name=get_word($name,20);
print <<<EOT
-->
				<div class="list"><a href="list.php?fid=$key" target="_blank">{$name}信息</a></div>
<!--
EOT;
}print <<<EOT
-->	
        </div>
    </div>
</div>
<div class="MainBanner">
	{$label[fashion_houseindext1]}
</div>
<div class="MainCont2" onmouseover="hiddendiva()">
	<div class="Side">
    	<div class="sidecont1">
            <div class="head">
                <div class="tag">{$label[fashion_houseindexh2]}</div>
                <div class="hot"><br/></div>
            </div>
            <div class="cont hotcont">
                <div class="hh">
                    {$label[house_heads2]}                	
                </div>
                <div class="cc" id="Tab1">{$label[house_st1]}</div>
                <div class="cc" id="Tab2">{$label[house_st2]}</div>
                <div class="cc" id="Tab3">{$label[house_st3]}</div>
                <SCRIPT LANGUAGE="JavaScript">ShowTab(2,1,4);</SCRIPT>
            </div>
        </div>
        <div class="hothouse">
        	<div class="head">
                <div class="tag">{$label[fashion_houseindexh3]}</div>
                <div class="hot"><br/></div>
            </div>
            <div class="cont">
            	{$label[house_title3]}
            </div>
        </div>
        <div class="sidecont1">
            <div class="head">
                <div class="tag">{$label[fashion_houseindexh4]}</div>
                <div class="policy"><br/></div>
            </div>
            <div class="cont policycont">
            	{$label[house_title7]}
            </div>
        </div>
        <div class="sideLAdcont">{$label[fashion_houseindexad2]}</div>
        <div class="tophouse">
        	<div class="head">
            	{$label[fashion_houseindexh5]}
            </div>
            <div class="cont">
            	<div id="Tab5">{$label[fashion_houseindext4]}</div>
                <div id="Tab6">{$label[fashion_houseindext5]}</div>
                <SCRIPT LANGUAGE="JavaScript">ShowTab(5,5,7);</SCRIPT>
            </div>
        </div>
        <div class="sideLAdcont">{$label[fashion_houseindexad3]}</div>
    </div>
    <div class="Main">
    	<dl class="NewsHouse">
        	<dt class="dtL">
                <div class="sidecont">
                    <div class="head">
                        {$label[fashion_houseindexh6]}
                    </div>
                    <div class="cont">
                        {$label[fashion_houseindext2]}
                    </div>
                </div>
            </dt>
            <dd class="ddR">
            	<div class="SlideCont">
                	<div class="SlideContIn">
                	{$label[fashion_houseindext3]}
                    </div>
                </div>
                <div class="sidecont">
                    <div class="head">
                        <div class="tag">{$label[fashion_houseindexh7]}</div>
                    </div>
                    <div class="cont">
                        {$label[house_title2]}
                    </div>
                </div>
            </dd>
        </dl>
        <div class="maincont">
        	<div class="head">
            	{$label[fashion_houseindexh8]}
            </div>
            <div class="cont cont1">
            	{$label[house_title4]}
            </div>
        </div>
        <div class="maincont">
        	<div class="head">
            	{$label[fashion_houseindexh9]}
            </div>
            <div class="cont cont2">
            	{$label[house_title5]}
            </div>
        </div>
        <div class="maincont">
        	<div class="head">
            	{$label[fashion_houseindexh10]}
            </div>
            <div class="cont cont3">
            	{$label[house_title8]}
            </div>
        </div>
        <div class="maincont">
        	<div class="head">
            	{$label[fashion_houseindexh11]}
            </div>
            <div id="Tab7" class="cont cont4">{$label[house_st7]}</div>
            <div id="Tab8" class="cont cont4">{$label[house_st8]}</div>
            <SCRIPT LANGUAGE="JavaScript">ShowTab(7,7,9);</SCRIPT>
        </div>
    </div>
    <div style="clear:both;"></div>
</div>   
<div class="FootDiv"></div>
<!--
EOT;
?>
-->
