<? include mymps_tpl('search_head');?>
	<!-- 搜索结果页 -->	
	<div class="c"></div>
 	<div class="main2 cc" id="mainbox">
    	<div class="h">
        	<span class="fr">搜索<span class="s1"><?=$search[keywords]?></span>获得<?=$search[rows_num]?>条查询结果
        	</span>
            <span class="mr20"><a href="#"><?=$mymps_global[SiteName]?>搜索</a> &raquo; 团购</span><span class="s6">小提示：多个词用空格分隔，搜索的更准！</span>
        </div>

		<div class="content fl">
        	<div class="s_dlA">
            	<? if($search[rows_num] == 0){?>
                <div class="nodata">抱歉！没有找到匹配的相关信息，您可以尝试换个关键词搜索一下。</div>
                <? }else{?>
                <div class="searchgroup mt6">
				<? foreach($search[result] as $k =>$result){?>
				<div class="listgroup">
					<div class="preimg"><img src="<?=$mymps_global[SiteUrl]?><?=$result[pre_picture]?>"></div>
					<div class="middle">
						<div class="title"><span class="ttitle"><a href="<?=$result[uri]?>" target="_blank" ><?=$result[gname]?></a></span><span class="number">活动编号：<?=$result[groupid]?></span></div>
						<div class="introduction"><?=cutstr($result[des],160)?></div>
						<div class="subintro"><div class="floatleft">
						<button class="hdxq" value="活动详情" onclick="window.open('<?=$result[uri]?>')"></button> 
						<? if($result[commenturl]){?><button value="参与讨论" class="cytl" onclick="window.open('<?=$result[commenturl]?>')"></button><? }?>
						</div> <div class="floatright"><span class="zz">本站组织</span> <span class="zt">状态：<?=$glevel[$result[glevel]]?></span> <span class="enddate">截止：<?=GetTime($result[enddate],'Y年m月d日')?></span></div></div>
					</div>
					<div class="signin">
						<div class="ybm"><?=$result[signintotal]?></div>
						<div class="wybm"></div>
						<div class="bmjr"><button class="bmjr" value="报名加入" onclick="window.open('<?=$result[uri]?>#signin')"></button></div>
					</div>
				</div>
				<? }?>
    	</div>
        		<? }?>
                <div class="pagination mt6"><?=$search[pagination]?></div>
            </div>
        </div>

        <div class="sidebar fr">
        	<div class="p15 s_boxA">
            	<h2>团购活动详细检索</h2>
                <ul class="quicksearch">
                    <form action="search.php?" method="get" />
                    <input type="hidden" name="mod" value="group" />
                    <dl>
                    <dt>选择类别：</dt>
                    <dd>
                    <select name="cate_id">
                    	<option value="" <? if(!$cate_id){?>style="background-color:#6eb00c; color:white!important;"<? }?>>不限类别</option>
						<? foreach($catoptions as $k =>$options){?>
                        <option value="<?=$options[cate_id]?>" <? if($options[cate_id] == $cate_id){?>selected style="background-color:#6eb00c; color:white!important;"<? }?>><?=$options[cate_name]?></option>
                        <? }?>
                    </select>
					</dd>
                    <dt>所在地区：</dt>
                    <dd>
                    <select name="areaid">
                    <option value="" <? if(!$areaid){?>style="background-color:#6eb00c; color:white!important;"<? }?>>不限地区</option>
					<? foreach($area_result as $k =>$v){?>
                    <option value="<?=$v[areaid]?>" <? if($v['areaid'] == $areaid){?>selected style="background-color:#6eb00c; color:white!important;"<? }?>><?=$v[areaname]?></option>
                  	<? }?>
                    </select></dd>
                    <dt>关键字：</dt>
                    <dd><input type="text" name="keywords"  class="searchinput inputbox" value="<?=$search[keywords]?>" /></dd> 
                    <dt>&nbsp;</dt>
                    <dd><input type="submit" value="我要搜索" class="submit"/></dd>
                    </dl>
                    </form>
                </ul>
            </div>
        </div>

        <div class="c">&nbsp;</div>
  
    </div>  

</div></div>

<div class="footer-wrap">
<div class="c mt10"></div>
<? include mymps_tpl('search_foot'); ?>
</div>
</div>
<?=$mymps_global[SiteStat]?></body>
</html>