<script type="text/javascript" src="buy.js?ver={$version}" href="buy.css?ver={$version}"></script>

<div class="navi-bar"> <a href="/" class="nav-txt">首页</a> &gt; <a href="/courses.ashx" class="nav-txt">课程中心</a> &gt;
  <vt:foreach id="course" from="$#.sbjs" item="data" index="i" remark="当前课程专业"> <a href="/courses.ashx?sbj={$:#.data.sbj_id}"  class="nav-txt">{$:#.data.sbj_name}</a> &gt; </vt:foreach>
  <!--  <span class="nav-txt">{$course.cou_name}</span>--> 
</div>
<div loyout="row" class="context">
  <div class="infoTop">
    <div class="photo"> <img style="background: url({$course.cou_logo}) no-repeat center" src="images/alpha.png" /></div>
    <a class="course-name" href="course.ashx?id={$course.cou_id}">
    <vt:if var="course.cou_name" value="" compare="!="> 《{$course.cou_name}》
      <vt:else/>
      (当前课程不存在，或课程被暂停学习) </vt:if>
    </a>
    <vt:function var="intro" method="ClearHtml" args="$course.cou_intro" />
    <div class="couIntro">
      <vt:if var="intro" value="" compare="!="  remark="课程介绍"> 简介：{$:#.intro}
        <vt:else />
        （没有课程介绍） </vt:if>
    </div>
    <div class="couNum"> 关注次数：{$course.cou_viewNum} </div>
    <div class="courseInfo"> 章节{$olCount}个/试题{$quesCount}道</div>
  </div>
  <div class="courseBox"> 
    
    <!--右侧价格区域-->
    <form class="money-area"  action="/pay/PayEntry.ashx" method="post"  couid="{$couid}">
      <vt:if var="isfree" value="True" compare="=">
        <vt:if var="course.Cou_IsFree" value="True" compare="=">
          <div class="freeBox"><span class="moneyico">&#xe746;</span>当前课程免费</div>
          <vt:else/>
          <vt:if var="course.Cou_IsLimitFree" value="True" compare="=">
            <div class="freeBox"><span class="moneyico">&#xe746;</span>限时免费<br />
              （{$course.Cou_FreeStart format="yyyy/M/d"} - {$course.Cou_FreeEnd format="yyyy/M/d"}）</div>
          </vt:if>
        </vt:if>
        <vt:if var="Account.Ac_id" value="" compare="!="> 
          <!-- 账户余额 -->
          <div class="moneyBox">
            <div class="veriTxt">账户余额：</div>
            <span class="money">{$Account.Ac_money format="0.00"}</span>元 <a class="btnRecharge" href="student/panel.ashx?mmid=635" target="_blank">充值</a></div>
        </vt:if>
        <div class="FreeBtnBox"> <a href="CourseStudy.ashx?couid={$course.cou_id}" id="btnStudy" class="btnStudy">开始学习</a> 
          <!--     <input type="submit" name="btnSubmit" value="开始学习"  verify="true"  group="login" class="btnStudy"/> --> 
          <a href="course.ashx?id={$course.cou_id}" class="btnStudyBack">返回</a> </div>
        <vt:else/>
        <!--不免费-->
        <div class="priceTitle">学习费用：
         <input name="paiid" type="hidden" value=""/>
      <input name="money" type="hidden"  value="0" />
        <vt:if var="Account.Ac_id" value="" compare="!="> 
          <!-- 账户余额 -->
          <div class="surplus">
            <div class="veriTxt">余额：</div>
            <span id="money">{$Account.Ac_money format="0.00"}</span>元 <a class="btnRecharge" href="/student/panel.ashx?mmid=635" target="_blank">充值</a></div>
          <div class="surplus">
            <div class="veriTxt">卡券：</div>
            <span id="coupon">{$Account.Ac_Coupon format="0"}</span>个 （1卡券等于1元现金，购买课程时优先扣除卡券）</div>
        </vt:if>
        </div>
        <div class="priceBox">
          <vt:if var="#.prices.Length" value="0" compare=">">
            <vt:foreach id="prices" from="$#.prices" item="data" remark="价格列表">
              <div class="priceItem" cpid=" {$:#.data.CP_ID}" couid="{$course.Cou_id}"><i></i> &#165;<span class="mprice">{$:#.data.CP_Price}</span>/{$:#.data.CP_Span}{$:#.data.CP_Unit} <span class="alt" span="{$:#.data.CP_Span}" unit="{$:#.data.CP_Unit}" price="{$:#.data.CP_Price}">(日均<b>0.1</b>)</span>
                <vt:if var="data.CP_Coupon" value="0" compare=">"> <span class="coupon">(可以用券抵扣<span class="cprice">{$:#.data.CP_Coupon}</span>元)</span> </vt:if>
                <div class="txt-row"></div>
              </div>
            </vt:foreach>
            <vt:else />
            <div class="noPrice">没有设置价格</div>
          </vt:if>
        </div>
        
        <dl id="payInterface">
        <vt:foreach id="pis" from="$#.pis" item="data" remark="支付接口">
              <dd class="cell payitem" select="false" pattern="{$:#.data.Pai_Pattern}" scene="{$:#.data.Pai_Scene}" painame="{$:#.data.Pai_Name}" paiid="{$:#.data.Pai_ID}"> <img src="/pay/images/{$:#.data.Pai_Pattern}.png"/><b>{$:#.data.Pai_Name} </b><span class="ico"></span> 
              <div class="rechargeValue">充值<span></span>元</div>
               </dd>
            </vt:foreach>
             <dd class="cell" id="nopay" style="display:none">没有可供使用的支持接口</dd>
            </dl>
        <div class="StudyBtnBox">
          <input type="submit" name="btnBuyStudy" id="btnBuyStudy" value="购买学习"  verify="true" class="btnStudy"/>
          <a href="course.ashx?id={$course.cou_id}" class="btnStudyBack">返回</a></div>
        <!-- <vt:if var="course.Cou_IsTry" value="true" compare="=">
          <div class="loginRow btnBar"> <a href="Tryout.ashx?from={$from}&couid={$course.Cou_ID}" course="{$course.Cou_Name}" IsTry="{$course.Cou_IsTry}" class="aTryout">暂时试用</a> </div>
        </vt:if>--> 
      </vt:if>
    </form>
    <!--右侧价格区域结束--> 
  </div>
</div>
