<script type="text/javascript" src="<?php echo SITE_PATH;?>templates/lib/common.js"></script>
<script type="text/javascript" src="<?php echo SITE_PATH;?>templates/lib/search.js"></script>
<script type="text/javascript">

/*搜索*/
function do_search(){
    var searchvalue = $("#seach-txt").val();
    if(searchvalue==''){return false;}
    window.location.href="<?php echo SITE_PATH?>index.php?tpl=search&q="+encodeURIComponent(searchvalue);
}
</script>
</head>
<!--<script>(function(){
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?3d1a12ddcb14a450691dbe77e1b793b0":"https://jspassport.ssl.qhimg.com/11.0.1.js?3d1a12ddcb14a450691dbe77e1b793b0";
document.write('<script src="' + src + '" id="sozz"><\/script>');
})();
</script>-->
<body>
<div class="warp">
    <div class="warp-top"> <!-- 顶部  开始-->
        <div class="top-bar-area">
            <div class="marauto">
               <div class="l bar-left" style="color:#aaa;">
                    <a class="web-name" href="<?php echo SITE_URL;?>"><?php echo SITE_NAME;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php $a=$c->get_app_info_count();echo('应用：'.$a['app_total'].' 当日：'.$a['app_today'].' 新闻：'.$a['info_total'].' 当日：'.$a['info_today'].' '); ?>
                </div>
                <div class="r bar-right">
                    <a href="<?php echo SITE_PATH."index.php?tpl=rss"?>" >RSS</a>&nbsp;&nbsp;&nbsp;
                   <A onclick="window.external.addFavorite('http://www.szzuan.com','兼职手赚网')" href="/">玩家交流群：236361596</a>
 
                </div>
          </div>
        </div>
        <div class="top-head">
            <div class="marauto">
                <a href="javascript:void(0);" class="l web-logo"><?php if(defined('SITE_LOGO') && SITE_LOGO != ''){ echo '<img border="0" src="'.SITE_LOGO.'">';}?></a>
                <ul class="r head-seach">
                    <li class="seach-bar">
                        <p class="bdr-span">
                            <input type="text" class="l seach-txt" id="seach-txt" onkeyup="search_up(this,event)" onclick="show_hot(this);" onkeydown="search_down(this,event); if(event.keyCode==13) do_search();" value="<?php if(isset($_GET['q'])) echo $_GET['q'];?>"/>
                            <a href="javascript:void(0);" class="l seach-btn" onClick="do_search()">搜应用</a>
							
                        </p>
                    </li>
					<li class="keyword">
						热门搜索：
                        <?php foreach ($c -> get_keyword() as $v) { ?>
                        <a href="/index.php?tpl=search&q=<?php echo $v;?>"><?php echo $v;?></a>
                        <?php } ?>
					</li>
                </ul>

        <div class="top-nav">
            <div class="pr marauto">
                <ul class="ul-nav">
                    <li><a href="<?php echo SITE_PATH;?>" <?php if($cid<=0 && !strstr($_SERVER['QUERY_STRING'],'special') && !isset($topid) && !strstr($_SERVER['QUERY_STRING'],'lastupdate')) echo 'class="selected"';?>>首页</a></li>
                    <?php //print_r($c->categories);
                        foreach($c->categories as $a){
                            if($a['parent_id']=='0'){//只输出顶级分类
                                $style='';
                                if((intval($cid)>0 && ($a['cate_id'] == $cid || $a['cate_id']==$c->categories[$cid]['parent_id'])) || (isset($topid) && $topid == $a['cate_id'])) $style='class="selected"';
                               if($a['cat_show'] == 1) echo('<li><a href="'.$a['surl'].'" '.$style.'>'.$a['cname'].'</a></li>');
                            }
                        }
                    ?>

                </ul>
            </div>
        </div>
    </div><!-- 顶部 结束-->
