<%@ Page Language="C#" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Plus.Exam.LookSjClassInfo" Codebehind="LookSjClassInfo.aspx.cs" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.HtmlTags" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="<%=Request.ApplicationPath=="/"?"":Request.ApplicationPath%>/admin/images/style.css" rel="stylesheet" type="text/css" />
    <script src="../../admin/images/pannel/tabpane.js" type="text/javascript"></script>
    <link href="<%=Request.ApplicationPath=="/"?"":Request.ApplicationPath%>/admin/images/pannel/tabpane.CSS" rel="stylesheet" type="text/css" />
    <script src="<%=ResolveUrl("~/KS_Inc/Jquery.js") %>" type="text/javascript"></script>
    <script src="<%=ResolveUrl("~/KS_Inc/Kesion.Common.js") %>" type="text/javascript"></script>
	<script src="/admin/include/comm.js"></script>
    <script src="<%=ResolveUrl("~/KS_Inc/DatePicker/WdatePicker.js") %>"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <div class="content-area">
             <div class="tabs_header">
                <ul class="tabs">
                    <li <%=KSCMS.S("type")==""||KSCMS.S("type")=="0"?" class='active'":string.Empty %>><a href="looksjclassinfo.aspx?type=0&classid=<%=KSCMS.S("classid") %>"><span>子分类</span></a></li>
                    <li <%=KSCMS.S("type")=="1"?" class='active'":string.Empty %>><a href="looksjclassinfo.aspx?type=1&classid=<%=KSCMS.S("classid") %>"><span>试卷</span></a></li>
                </ul>
            </div>
           
                 <asp:Panel ID="SjClassPanel" runat="server">
                        <table width="100%"border="0" cellpadding="1" cellspacing="1" class="CTable">
                 <tr class="CTitle">
                     <td>分类名称</td>
                    <%-- <td>价格</td>--%>
                 </tr>
                     <asp:Repeater ID="sjClassRepeater" runat="server">
                         <ItemTemplate>
                             <tr>
                                 <td style="text-align:left"><%#Eval("classname") %></td>
                                 
                                <%-- <td style="text-align:center"><%=MyCache.GetCurrencySymbol %><%#Kesion.APPCode.Public.ReturnShopPrice(Eval("money")) %><%=MyCache.GetCurrencyUnit %></td>--%>
                                 
                             </tr>
                         </ItemTemplate>
                          <FooterTemplate>
                               <tr><td> <div class="empty" style="display: <%# bool.Parse((sjClassRepeater.Items.Count==0).ToString())?"":"none"%>">没有任何子分类</div></td></tr>
                            </FooterTemplate>
                     </asp:Repeater>
                 </table>

                 <KS:Page ID="page1" runat="server" />
                 </asp:Panel>
                 <asp:Panel ID="SjPanel" runat="server" Visible="false">
                     显示有设置价格试卷
                  <table width="100%"border="0" cellpadding="1" cellspacing="1" class="CTable">
                 <tr class="CTitle">
                     <td>试卷名称</td>
                     <td>价格</td>
                     <td>查看</td>
                 </tr>
                     <asp:Repeater ID="SjRepeater" runat="server">
                         <ItemTemplate>
                             <tr>
                                 <td style="text-align:left"><%#Eval("Title") %></td>

                                 <td style="text-align:center">所需<%# Kesion.Exam.Function.GetChargeType(-1,Utils.StrToInt(Eval("ChargeType").ToString())) %>:<%#Kesion.APPCode.Public.ReturnShopPrice(Eval("money"))%> <%# Kesion.Exam.Function.GetChargeType(1,Utils.StrToInt(Eval("ChargeType").ToString())) %>   </td>
                                 <td style="text-align:center"><a href="<%# BasicField.GetRewriteUrl("examview",Utils.StrToInt(Eval("ID"))) %>" target="_blank">查看试卷</a></td>
                             </tr>
                         </ItemTemplate>
                          <FooterTemplate>
                               <tr><td> <div class="empty" style="display: <%# bool.Parse((SjRepeater.Items.Count==0).ToString())?"":"none"%>">没有任何试卷信息</div></td></tr>
                            </FooterTemplate>
                     </asp:Repeater>  

                        </table>
                      <KS:Page ID="page2" runat="server" />
                 </asp:Panel>
         
         </div>
    </div>
    </form>
</body>
</html>
