<!DOCTYPE html>
<html>
<head>
<title>选课中心 - {$:#.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" style="margin-top:8px; display:table">
  <div class="leftBox" >
    <div id="TitleBar"> 课程选择</div>
    <!--选择区域 -->
    <vt:include file="Module/Course/Subject-bar.htm" from="_public" remark="专业分类导航" />
    <div id="TitleBar"><span> 课程中心</span> </div>
    <div class="courseList">
      <vt:if var="course.Count" value="0" compare="!=">
        <div class="courseListInner">
          <vt:foreach id="course" from="$#.course" item="data" index="i" size="16" remark="课程列表">
            <div class="item" couid="{$:#.data.cou_id}" wd="800" hg="600"> <a href="/course.ashx?id={$:#.data.cou_id}"><img src="{$:#.data.cou_logosmall}"  default="images/cou_nophoto.jpg"/> </a>
              <div class="itemInfo"> <a href="/course.ashx?id={$:#.data.cou_id}" title="{$:#.data.cou_name}">
              <vt:if var="data.Cou_ExistLive" value="true" compare="=" remark="直播">
                 <div class="live" title="直播课"></div>
                 </vt:if>
              {$:#.data.cou_name} </a>
                <div class="itemDetails"><span class="hot-left count">{$:#.data.cou_viewNum}</span> <span class="hot-right">{$:#.data.sbj_name}</span> </div>
              </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?sbj={$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}&sbj={$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}&sbj={$sbjid}">{$:i}</a></div>
            <vt:else />
            <div class="pagerIndex pagerBtn"><a href="/courses.ashx?index={$:i}&sbj={$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}&sbj={$sbjid}">下一页</a></div>
        </vt:if>
        <div class="pagerLast pagerBtn"><a href="/courses.ashx?index={$:pageAmount.length}&sbj={$sbjid}">末页</a></div>
      </div>
    </vt:if>
  </div>
  <div class="rightBox" >
    <div class="login box" >
      <div class="boxTit"> <span class="txt">学员登录</span> </div>
      <div class="loginAreaBox">
        <vt:if var="Account.Ac_id" value="0" compare=">">
          <div class="isLoginBox">
            <div class="loginRow">尊敬的：{$:#.Account.Ac_name} 您好！ </div>
            <div  class="stLoginPhoto">
              <vt:if var="Account.Ac_photo" value="" compare="="> <img src="images/nophoto.jpg"/>
                <vt:else/>
                <img src="{$stpath}{$:#.Account.Ac_photo}"/> </vt:if>
            </div>
            <div class="loginRow"> <a href="/Student/panel.ashx" class="btnInManage">进入学习</a> <a href="/Student/logout.ashx" class="btnLogout">退出登录</a></div>
          </div>
          <vt:else/>
          <form id="student" name="student" method="post" action="/student/index.ashx" star="false">
            <div class="loginRow">
              <widget type="text" ico="&#xe600;"  deftxt="手机号/账号/学籍号" name="tbAcc" class="textbox width" nullable="false"  group="login"> </widget>
            </div>
            <div class="loginRow">
              <widget type="password" ico="&#xe6ed;"  deftxt="密码" name="tbPw" class="textbox width" nullable="false"  group="login"> </widget>
            </div>
            <div class="loginRow">
              <input name="from" type="hidden" value="{$from}" />
              <input name="succurl" type="hidden" value="/default.ashx" />
              <input name="failurl" type="hidden" value="/student/index.ashx" />
              <widget type="text"  ico="&#xe636;" deftxt="验证码" name="tbCode" 
                class="textbox verify" nullable="false" lenlimit="4-4" datatype="number"   group="login"> </widget>
              <img src="/Utility/codeimg.aspx?name=studentvcode" class="verifyCode"/> </div>
            <div class="loginRow btnBar">
              <input type="submit" name="btnSubmit" id="btnSubmit" value="&nbsp;&nbsp;"  verify="true"  group="login" class="btnLogin"/>
              <vt:if var="IsRegStudent" value="false" compare="="> <a href="/student/index.ashx?loyout=reg" class="aRegister"> </a> </vt:if>
            </div>
          </form>
        </vt:if>
      </div>
    </div>
    <div class="box newsBox">
      <div class="boxBar">
        <div class="title"> 资讯</div>
        <div class="more"> <a href="/news.ashx">更多&gt;&gt;</a></div>
      </div>
      <div class="nolist">
        <vt:list type="news" item="data" index="i" count="10" >
          <div class="item" noid="{$:#.data.no_id}"> <img src="images/{$:i}.png"/><a href="/article.ashx?id={$:#.data.art_id}" title="{$:#.data.art_title}"> {$:#.data.art_title}</a>
            <div class="noTime">{$:#.data.art_pushTime  format="[MM-dd]"}</div>
          </div>
        </vt:list>
      </div>
    </div>
  </div>
</div>
<vt:include file="inc/footer.html" />
</body>
</html>
