<!doctype html>
<html>
<head>
<title>知识库 - {$org.org_platformname}</title>
<vt:include file="inc/meta.inc" />
<script type="text/javascript" src="CoreScripts/Tree.js?ver={$version}"></script>
<script type="text/javascript" src="CoreScripts/Node.js?ver={$version}"></script>
<script type="text/javascript" src="Scripts/KnowledgesList.js?ver={$version}"></script>
<link href="Styles/KnowledgesList.css?ver={$version}" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
  <div class="headTitle">
    <vt:if var="#.sort" value="" compare=""> 当前课程的全部资料
      <vt:else />
      {$sort.kns_name} </vt:if>
  </div>
</div>
<!--知识资料列表 -->
<vt:if var="Knowledge.Length" value="0" compare=">">
  <dl>
    <vt:foreach id="Knowledges" from="$#.Knowledge" item="data" index="i" size="10" lenth="100" remark="知识资料列表">
      <vt:expression var="tax" expression="({0}-1)*{1}+{2}" args="$pageIndex" args="$pageSize" args="$i"/>
      <vt:if var="#.tax" value="10" compare="<=">
        <dd class="item" >
          <div class="tax"> <img src="images/{$tax}.png"/></div>
          <div class="link"> <a href="/Knowledge.ashx?id={$:#.data.kn_id}" target="_blank">{$:#.data.kn_title} </a> </div>
        </dd>
       <!--  <dd class="intro"> <a href="/Knowledge.ashx?id={$:#.data.kn_id}" target="_top">{$:#.data.kn_intro} ...</a></dd> -->
        <vt:else />
        <dd class="item" >
          <div class="tax"> {$tax}</div>
          <div class="link"> <a href="/Knowledge.ashx?id={$:#.data.kn_id}" target="_blank">{$:#.data.kn_title} </a> </div>
        </dd>
       
      </vt:if>
    </vt:foreach>
  </dl>
  <vt:else />
  <div class="onContext"> 当前分类下没有资料 </div>
</vt:if>
<!--分页导航 -->
<vt:if var="pageAmount.Length" value="1" compare=">">
  <div id="pagerBar">
    <div class="pagerFirst pagerBtn"><a href="/KnowledgesList.ashx?couid={$couid}&sort={$sort.kns_id}">首页</a></div>
    <!--上一页 -->
    <vt:expression var="pagerPrev" expression="{0}-1" args="$pageIndex" />
    <vt:if var="#.pagerPrev" value="1" compare="<">
      <div class="pagerPrev pagerBtn"><a href="#">上一页</a></div>
      <vt:else />
      <div class="pagerPrev pagerBtn"><a href="/KnowledgesList.ashx?couid={$couid}&index={$:#.pagerPrev}&sort={$sort.kns_id}">上一页</a></div>
    </vt:if>
    <!--分页数字 -->
    <vt:foreach id="pageAmount" from="$#.pageAmount" item="data" index="i" remark="分页数字">
      <vt:if var="#.data" value="$pageIndex" compare="=">
        <div class="pagerIndex pagerBtn pagerCurr"><a href="/KnowledgesList.ashx?couid={$couid}&index={$:i}&sort={$sort.kns_id}">{$:i}</a></div>
        <vt:else />
        <div class="pagerIndex pagerBtn"><a href="/KnowledgesList.ashx?couid={$couid}&index={$:i}&sort={$sort.kns_id}">{$:i}</a></div>
      </vt:if>
    </vt:foreach>
    <!--下一页 -->
    <vt:expression var="pagerNext" expression="{0}+1" args="$pageIndex" />
    <vt:if var="#.pagerNext" value="$pageAmount.Length" compare=">">
      <div class="pagerNext pagerBtn"><a href="#">下一页</a></div>
      <vt:else />
      <div class="pagerNext pagerBtn"><a href="/KnowledgesList.ashx?couid={$couid}&index={$:#.pagerNext}&sort={$sort.kns_id}">下一页</a></div>
    </vt:if>
    <div class="pagerLast pagerBtn"><a href="/KnowledgesList.ashx?couid={$couid}&index={$:pageAmount.length}&sort={$sort.kns_id}">末页</a></div>
  </div>
</vt:if>
</body>
</html>
