<script language="javascript" src="<?php echo $DIRCMS['site_url'];?>member/api/login.js.php"></script>
<div class="mini-nav">
  <aside>
  	<span class="fl">您好，欢迎来到<?php echo $DIRCMS[site_name];?>！</span>
  	<span class="nologin" style="display:none;"><span class="login-link fl"><a class="blue" href="<?php echo $DIRCMS['site_url'];?>member/index.php?file=login&action=login">请登录</a>
	<div style="padding-top:4px; float:left;"> <a href="<?php echo $DIRCMS['site_url'];?>member/api/qq_login.php"><img src="<?php echo $DIRCMS['site_url'];?>member/images/connect_qq.png" align="texttop" /></a></div>
    <a class="red" href="<?php echo $DIRCMS['site_url'];?>member/index.php?file=login&action=register">免费注册</a><a href="<?php echo $DIRCMS['site_url'];?>member/index.php?file=login&action=getpwd">找回密码</a></span></span>
	
	<span  class="haslogin" style="display:none;"><span class="login-link fl"><i class="fl"></i><i class="gray fl"><script language=javascript>document.write(js_username);</script></i><a class="red" href="<?php echo $DIRCMS['site_url'];?>member/index.php">进入会员中心</a> <a href="<?php echo $DIRCMS['site_url'];?>member/index.php?file=login&action=logout">退出</a></span></span>
	
	</aside>
  <span class="top-link"><a class="blue" href="<?php echo $DIRCMS['site_url'];?>post/index.php">免费发布信息</a> | <a href="javascript:void(0);" class="green" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $DIRCMS[site_url];?>');" title="把<?php echo $DIRCMS[site_name];?>设为首页">设为首页</a> | <a href="javascript:window.external.addFavorite('<?php echo $DIRCMS[site_url];?>','<?php echo $DIRCMS[site_name];?>');">加入收藏</a> | <a href="<?php echo $DIRCMS[site_url];?>feed.php" title="网站地图">网站地图</a></span> </div>
</div>
<div class="header-bg">
  <div class="header page-wrap">
    <h1 class="fl"><a href="<?php echo $DIRCMS['site_url'];?>"><img src="<?php echo $DIRCMS['site_url'];?>template/<?php echo $DIRCMS['tpl_name'];?>/images/logo.png" width="224" height="38" alt="<?php echo $DIRCMS['site_name'];?>" title="<?php echo $DIRCMS['site_name'];?>"></a><strong><?php echo $DIRCMS['site_name'];?></strong></h1>
    <div class="search-subnav-area fl">
      <div class="search">
        <form  id="searchtop" action="<?php echo $DIRCMS['site_url'];?>search/index.php" method="get" name="mysearchform">
	  	<input type="hidden" name="modelid" value="all" />
          <div id="j-select-cat" class="select-replacer">
            <span class="select-value" id="select-value" onclick="$('#select-options').show();">按标题搜索</span>
            <div class="select-options" id="select-options" style="display:none;">
              <ul>
                <li class="ie6-hover" onClick="$('#select-value').html('按标题搜索');$('#stype').val('title');$('#select-options').hide();" value="title">按标题搜索</li>
                <li class="ie6-hover" onClick="$('#select-value').html('按关键字');$('#stype').val('keywords');$('#select-options').hide();" value="keywords">按关键字</li>
                <li class="ie6-hover" onClick="$('#select-value').html('按简介搜索');$('#stype').val('description');$('#select-options').hide();" value="description">按简介搜索</li>
             </ul>
             <input id="stype" type="hidden" value="title" name="stype">
            </div>
          </div>
          <div class="search-input">
            <input id="searchinput" type="text"  name="k" autocomplete="off" value="请输入关键字查询" onfocus="if(this.value=='请输入关键字查询'){this.value='';}"  onblur="if(this.value==''){this.value='请输入关键字查询';}">
          </div>
          <button type="submit" class="btn-s">搜 索</button>
          <div class="post-m"><a class="btn-post" href="<?php echo $DIRCMS['site_url'];?>post/index.php">发布信息</a></div>
        </form>
      </div>
      <div class="subnav">
        <ul>
          <?php $_DATA=get_category_data(0,0,0,7,array (
  0 => 1,
),'son',6);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>"<?php echo title_style($r['style']);?> <?php if($no==3) { ?>class="red"<?php }?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
          <?php $_DATA=get_category_data(0,0,0,14,array (
  0 => 1,
),'son',4);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>"<?php echo title_style($r['style']);?> <?php if($no==1) { ?>class="green"<?php }?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
          <?php $_DATA=get_category_data(0,0,0,48,array (
  0 => 1,
),'son',4);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>"<?php echo title_style($r['style']);?> <?php if($no==2) { ?>class="red"<?php }?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
		  <?php $_DATA=get_category_data(0,0,0,94,array (
  0 => 1,
),'son',2);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>"<?php echo title_style($r['style']);?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
		  <?php $_DATA=get_category_data(0,0,0,84,array (
  0 => 1,
),'son',4);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		  <li><a href="<?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>"<?php echo title_style($r['style']);?> <?php if($no==3) { ?>class="green"<?php }?>><?php echo $r['catname'];?></a></li>
		  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
        </ul>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<div class="nav-bg">
  <div class="nav">
    <ul>
      	<li class="current"><a href="<?php echo $DIRCMS['site_url'];?>"><strong>网站首页</strong></a></li>
      <?php $_DATA=get_category_data(0,0,0,0,array (
  0 => 1,
  1 => 4,
),'top',100);$loopcatid=$catid;foreach($_DATA as $no => $r)if(is_array($r)){$catid=$r["id"];?>
		<li <?php if($no==10) { ?>class="none"<?php }?>> <a href="<?php if($r['type']==1) { ?><?php echo $DIRCMS['site_url'];?><?php }?><?php echo $r['url'];?>"><strong><?php echo $r['catname'];?></strong></a> </li>
	  <?php } $catid=isset($loopcatid)?$dir_catid:0;unset($_DATA);?>
      <li class="none"><a href="http://bbs.ijintang.com/"><strong>金堂论坛</strong><sup><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/hot.gif" /></sup></a></li>
    </ul>
  </div>
</div>
