<!doctype html>
<html>
<head>
<title>选课中心:{$sbj.Sbj_Name}  - {$:#.org.org_platformname}</title>
<vt:include file="inc/meta.inc" />
<script type="text/javascript" src="Scripts/Courses.js?ver={$version}"></script>
<link href="Styles/Courses.css?ver={$version}" rel="stylesheet" type="text/css" />
</head>
<body>
<vt:include file="inc/Header.html" />
<div id="Context">
<vt:include file="Module/Course/Subject-bar.htm" from="_public" remark="专业分类导航" />
  <!-- 选择区结束 -->
<!--  <div id="TitleBar"> 课程中心</div>-->
  <div class="courseList">
   <vt:if var="course.Count" value="0" compare="!="> 
    <div class="courseListInner">
      <vt:foreach id="course" from="$#.course" item="c" index="i" size="40" remark="课程列表">
        <div class="course-item"> <a href="/course.ashx?id={$:#.c.cou_id}" target="_blank" title="{$:#.c.cou_name}" class="cour-img"><img src="{$:#.c.cou_logosmall}" default="images/cou_nophoto.jpg" /></a> <a href="/course.ashx?id={$:#.c.cou_id}" target="_blank" title="{$:#.c.cou_name}" class="cour-name"><vt:if var="c.Cou_ExistLive" value="true" compare="=" remark="直播">
                 <div class="live" title="直播课"></div>
                 </vt:if> {$:#.c.cou_name} </a>
                  <div class="cour-price">
                    <vt:if var="c.cou_isfree" value="true" compare="="> <span class="free">免费</span>
                      <vt:else/>
                      <vt:function var="price" method="getCoursePrice" args="$#.c.cou_uid"/>
                      <span class="money">
                      <vt:foreach from="$price" item="p" index="i" count="1"  remark="当前课程价格"> <span class="moneyico money-ico">&#xe625;</span> <span class="p-num">{$:#.p.CP_Price}元</span> <span class="p-span">/{$:#.p.CP_Span}</span> <span class="p-unit">{$:#.p.CP_Unit}</span> </vt:foreach>
                      </span> </vt:if>
                    <span class="cou-count" title="访问量">{$:#.c.cou_viewNum}</span> <span class="cou-sbj" title="{$:#.c.sbj_name}">{$:#.c.sbj_name}</span> </div>
                </div>
      </vt:foreach>
    </div>
    <vt:else/>
    <div class="nocourse">当前选择条件下没有课程！</div>
    </vt:if>
  </div>
  <!--分页导航 -->
  <vt:if var="pageAmount.Length" value="1" compare=">">
    <div id="pagerBar">
      <div class="pagerFirst pagerBtn"><a href="/courses.ashx?sbjid={$sbjid}">首页</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="/courses.ashx?index={$:#.pagerPrev}&sbjid={$sbjid}">上一页</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="/courses.ashx?index={$:i}&sbjid={$sbjid}">{$:i}</a></div>
          <vt:else />
          <div class="pagerIndex pagerBtn"><a href="/courses.ashx?index={$:data}&sbjid={$sbjid}">{$: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="/courses.ashx?index={$:#.pagerNext}&sbjid={$sbjid}">下一页</a></div>
      </vt:if>
      <div class="pagerLast pagerBtn"><a href="/courses.ashx?index={$:pageAmount.length}&sbjid={$sbjid}">末页</a></div>
    </div>
  </vt:if>
</div>
<vt:include file="inc/footer.html" />
</body>
</html>
