<!doctype html>
<html>
<head>
<title>教师-{$:#.org.org_platformname}</title>
<vt:include file="../inc/meta.inc" />
<link href="Styles/List.css?ver={$version}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Scripts/List.js?ver={$version}"></script>
</head>
<body>
<vt:include file="../inc/Header.html" />
<div id="bodyTop">&nbsp;</div>
<div id="Context">
  
  <div id="teacherTitle"> 教师列表 </div>
  <div id="list">
    <vt:foreach id="teachers" from="$#.teachers" item="data" index="i" size="4" remark="教师信息列表">
      <div class="item">
        <!--教师信息 -->
        <div class="info">
          <div class="photo"> <img src="{$:#.data.th_photo}" default="../images/noPhoto.jpg"/></div>
          <div class="infoRight">
            <div class="infoFirst">
              <div class="name">{$:#.data.th_name}</div>
              <div class="title">{$:#.data.Ths_Name}</div>
            </div>
            <div class="intro">
             <vt:if var="data.th_intro" value="" compare="!="> 
            {$:#.data.th_intro} ... </vt:if>
            </div>
            <div class="btn"><a href="/teacher/detail.ashx?id={$:#.data.th_id}">更多介绍</a></div>
          </div>
        </div>
        <!--教师所肩负的课程 -->
        <div class="courseBox">
          <div class="courseTitle">所讲课程</div>
          <vt:function var="courses" method="getCourse" args="$#.data.Th_ID"/>
          <vt:if var="courses.Count" value="0" compare="=">
            <div class="noCourse">暂时没有课程</div>
          </vt:if>
          <div class="courses">
            <vt:foreach from="$#.courses" item="c" index="i">
              <div class="courseItem"> <a href="/course.ashx?id={$:#.c.cou_id}"><img src="{$:#.c.cou_logosmall}"  default="../images/cou_nophoto.jpg"/> </a>
                <div class="courseName"> <a href="/course.ashx?id={$:#.c.cou_id}" title="{$:#.c.cou_name}">{$:#.c.cou_name} </a></div>
              </div>
            </vt:foreach>
          </div>
        </div>
      </div>
    </vt:foreach>
  </div>
  <!--分页导航 -->
  <vt:if var="pageAmount.Length" value="1" compare=">">
    <div id="pagerBar">
      <div class="pagerFirst pagerBtn"><a href="/teacher/list.ashx">首页</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="/teacher/list.ashx?index={$:#.pagerPrev}">上一页</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="/teacher/list.ashx?index={$:i}">{$:i}</a></div>
          <vt:else />
          <div class="pagerIndex pagerBtn"><a href="/teacher/list.ashx?index={$:i}">{$: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="/teacher/list.ashx?index={$:#.pagerNext}">下一页</a></div>
      </vt:if>
      <div class="pagerLast pagerBtn"><a href="/teacher/list.ashx?index={$:pageAmount.length}">末页</a></div>
    </div>
  </vt:if>
</div>
<vt:include file="../inc/footer.html" />
</body>
</html>
