<%if not in_eycms then response.write("template load fail"):response.end() end if%>
{eycms:include("../../eycms_top.asp")}
<title>{eycms.iif(eycms.strlen(seotitle)>0,seotitle,classname)}{if page>1}_第{page}页{/if}_{eycms[webname]}</title>
<meta name="Keywords" content="{seokey}">
<meta name="Description" content="{seodesc}">
</head>
<body>
{eycms:include("../../eycms_head.asp")}

<section class="width100">
{if instr(eycms.get_sonid(rootid),",")>0}
<div class="news_type">
  <ul class="fix">
    {eycms:rs table="ey_category" top="3" where="followid=[rootid] and ismenu=1" order="ordnum,cateid"}
      <li><a href="{$rs[link]}" class="f26 li1">{eycms.cutstr($rs[catename],10,0)}</a></li>
    {/eycms:rs}
    <li class="more" onclick="show_more_type()"><a class="f26">更多<span><img src="{skins}/images/ico_d.png" class="width100"></span></a></li>
  </ul>

  <dl id="news_type_hid" style="display: none;">
  {eycms:rs table="ey_category" top="0" where="followid=[rootid] and ismenu=1" order="ordnum,cateid"}
  {if i>3}
    <dd><a href="{$rs[link]}" class="f26"><span>{eycms.cutstr($rs[catename],28,0)}</span><div><img alt="网站建设" src="{skins}/images/news_jiantou.png" class="width100"></div></a></dd>
  {/if}
  {/eycms:rs}
  </dl>
</div>
{/if}

<div class="news_list_inner">
  <div id="news_list_html" class="list-loop">
    {eycms:rs table="ey_content" where="classid in([sonid]) and islock=1" order="ontop desc,id desc" pagesize="{var pagenum}"}
      <div class="loop news_item"><dl class="fl"><dt class="f60">{day($rs[createdate])}</dt><dd class="month f22">{year($rs[createdate])}-{month($rs[createdate])}</dd><dd class="author f20">{$rs[author]}</dd><dd class="line"><img src="{skins}/images/news_line.jpg" alt="line" class="width100"></dd><dd class="type"><a class="f20" href="{eycms.getcateurl($rs[classid])}">{eycms.getcatename($rs[classid])}</a></dd></dl><dl class="fr"><dt><a href="{$rs[link]}" class="f26">{eycms.cutstr($rs[title],28,1)}</a></dt><dd class="spec"><a href="{$rs[link]}" class="f20">{eycms.cutstr(eycms.dishtml($rs[intro]),120,1)}</a></dd><dd class="more fix"><span class=" f20 hits_t">浏览次数：</span><span class="f20 hits_num">{$rs[hits]}</span><a class="btn_a" href="{$rs[link]}">查看更多&gt;&gt;</a></dd></dl><div class="c"></div></div>
    {/eycms:rs}
  </div>
  <div class="c"></div>
  <div class="imore btn_more"><a href="{page:next}" class="f24">加载更多&gt;&gt;</a></div>
</div>
</section>
<script>
    $(".news_item").each(function(){
      $(this).find('fl').height($(this).height());
    });

    function show_more_type() {
       if($("#news_type_hid").is(":visible")) {
               $("#news_type_hid").hide();
       } else {
               $("#news_type_hid").show();
       }
    }
</script>
{eycms:include("../../eycms_foot.asp")}
</body>
</html>