<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master"  AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin_Course_KS_CsFiles" Codebehind="KS.CsFiles.aspx.cs" %>

<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="ListPanel" runat="server" Width="100%">    
        
     <div id="manage_top" class="menu_top_fixed"> 
       <ul>           
           <li id='p3'><asp:LinkButton ID="delclassbutton" runat="server"  OnClientClick="return(GetIDS('del'));" OnClick="delclassbutton_Click"><b></b>删除材料</asp:LinkButton></li>     
           </ul>
        </div>
          <div class="message">
        </div>
        <div class="message">
         <span style="float:right;padding-right:10px">  
              学员：<asp:TextBox CssClass="textbox" ID="TextBox6" Width="150px" runat="server" ></asp:TextBox>
               教师：<asp:TextBox CssClass="textbox" ID="TextBox1" Width="150px" runat="server" ></asp:TextBox>
        材料标题：<asp:TextBox CssClass="textbox" ID="TextBox10"  Width="150px" runat="server"></asp:TextBox>
         课程 <asp:DropDownList ID="DropDownList1" runat="server">
                 <asp:ListItem Value="0">--请选择课程--</asp:ListItem>
             </asp:DropDownList>
       <asp:Button ID="Button1" runat="server" Text=" 搜索 " CssClass="button" onclick="Button1_Click" />
        </span>
        
        当前位置：<a href="KS.CsFiles.aspx">材料管理</a>
        </div>  
          
     <div class="tabs_header">
    <ul class="tabs"> 
         <li ><a href="KS.CsFile.aspx">材料批改</a></li>    
        <li <%=KSCMS.S("Type")==""?" class='active'":string.Empty %>><a href="KS.CsFiles.Aspx"><span>所有材料</span></a></li>
        <li <%=KSCMS.S("Type")=="1"?" class='active'":string.Empty %>><a href="KS.CsFiles.Aspx?Type=1"><span>已评价</span></a></li>
        <li <%=KSCMS.S("Type")=="2"?" class='active'":string.Empty %>><a href="KS.CsFiles.Aspx?Type=2"><span>已终结</span></a></li>    
        <li <%=KSCMS.S("Type")=="3"?" class='active'":string.Empty %>><a href="KS.CsFiles.Aspx?Type=3"><span>未评价</span></a></li>
        <li <%=KSCMS.S("Type")=="4"?" class='active'":string.Empty %>><a href="KS.CsFiles.Aspx?Type=4"><span>未终结</span></a></li>      
    </ul>
</div>   
             <asp:Repeater ID="Repeater1" runat="server"  onitemcommand="Repeater1_ItemCommand" >
          <HeaderTemplate>
            <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="CTable">
            <tr align="center" class="title">
               <td height="30" width="28" align="center"><b><input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/></b></td>
                <td  style="text-align:center;height:30px" width="60">交互次数</td>
                <td align="center" width="100" >学员（阅）</td>
                   <td align="center" width="180" >教师（阅）</td>
                 <td align="center" width="80" >教师用户名</td>              
                <td >材料标题（学）</td>
                <td width="220" >材料标题（师）</td>   
                  <td width="150" >课程</td>             
                 <td align="center" width="50" >评价</td>
                 <td align="center" width="60" >终结</td>
                <td align="center" width="60">提交时间</td>
                <td align="center" width="60">批阅时间</td>
               <td align="center" width="80">操作</td>
              </tr>
          </HeaderTemplate>
         <ItemTemplate>
             <TR class="tdbg">
                 <td height="30px" align="center">
                 <input type="checkbox"  name="ids" id="ids" value='<%# Eval("id") %>' />       
                 </td>
                 <td  align="center" height="30px">
                    第<%# Eval("orderId")%>次
                 </td>
                 <td> 
                     <img src="/user/images/msg<%# Utils.StrToInt(Eval("Sread")) %>.gif" align="absbottom" />  
                     <%# Eval("Sinputer").ToString()%>                                      
                 </td> 
                 <td align="left">
                     <img src="/user/images/msg<%# Utils.StrToInt(Eval("tread")) %>.gif" align="absbottom" />
                     <%# Kesion.Course.Course.GetTeacherName( Eval("tinputer").ToString()) %>               
                  </td>
                  <td align="left">
                   <%# Eval("tinputer").ToString()%>               
                  </td>
                 <td align="left">
                     <div onmouseover="jQuery('#_1a<%#Eval("id") %>').show();" onmouseout="jQuery('#_1a<%#Eval("id") %>').hide();">
                     <%# Eval("STitle")%>
                      <span id='_1a<%#Eval("id") %>' style="display:none;padding-left:1px;">
                    <span style="display:inline;">
                         <a href="<%#Eval("Sfiles") %>" title="下载材料" style="color:#0000ff">下载</a>
                    </span>
                     </span>
                      </div>
                 </td>
                 <td align="left">
                    <div onmouseover="jQuery('#_0a<%#Eval("id") %>').show();" onmouseout="jQuery('#_0a<%#Eval("id") %>').hide();">
                     <%# Eval("TTitle")%>
                        <span id='_0a<%#Eval("id") %>' style="display:none;padding-left:1px;">
                    <span style="display:inline;">
                         <a href="<%#Eval("Tfiles") %>" title="下载材料" style="color:#0000ff">下载</a>
                    </span>
                     </span>
                      </div>
                 </td>    
                           
                <td align="left">
                       <%# Eval("name")%>
                  </td>  

                  <td align="center">
                          <%# Utils.StrToInt(Eval("Spingjianum").ToString())>0 ? "<font color=blue>"+Eval("Spingjianum").ToString()+"</font>":"未评价"%>
                  </td>
                 <td  align="center">
                      <%# getover(Utils.StrToInt(Eval("IsOver")),Utils.StrToInt(Eval("PeriodID")),Utils.StrToInt(Eval("orderId")))%>
                 </td>
                <td  align="center">
                       <%# Eval("sadddate","{0:yyyy-MM-dd}")%>
                 </td>
                 <td  align="center">
                       <%# Eval("tadddate","{0:yyyy-MM-dd}")%>
                 </td>
                 <td class="splittd Ctd" align="center">
                     <asp:LinkButton ID="LinkButton1" CssClass="edit"  ToolTip="查看" runat="server" commandargument=<%#Eval("id") %> commandname="look">查看</asp:LinkButton>                                    
                     <asp:LinkButton  ToolTip="删除" CssClass="delete" runat="server" id="delete" commandargument=<%#Eval("id") %> commandname="del">删除</asp:LinkButton>
                 </td>
             </TR>
          </ItemTemplate>
          <FooterTemplate>
           <tr class="tdbg" style="display:<%# bool.Parse((Repeater1.Items.Count==0).ToString())?"":"none"%>">
                <td class="Ctd" style="text-align:center" colspan="7">
                  <div class="empty">暂未添加任何资料</div>
                </td>
               </tr> 
           </table>
          </FooterTemplate>
                 </asp:Repeater>
            <KS:Page ID="page1" runat="server" />

     <asp:Panel ID="Panel2" runat="server" Height="30px">
         <div class="clear blank10"></div>  
         <script type="text/javascript">
             showtips('&nbsp;&nbsp;<img src="/admin/images/dot.gif"> <span>操作说明：<br /></span>&nbsp;&nbsp;<img src="/user/images/msg0.gif" align="absbottom" />  - 为未读状态；<br />&nbsp;&nbsp;<img src="/user/images/msg1.gif" align="absbottom" /> - 为已读状态；');
		</script>
                         
          </asp:Panel>	
         </asp:Panel>  

    <asp:Panel ID="Looks" runat="server" Width="100%">
        
  <KS:TopNav ID="TopNav1" runat="server" Text="材料管理" />

      <table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="CTable">
      <tr class="title">
                 <td  align="left" colspan="2">材料管理《<asp:Label ID="Label5" runat="server"></asp:Label>》</td>
      </tr>

     <tr height="50px">
        <td align="right" width="120" class="lefttd">评价分数： 
          <br /> <asp:Label ID="Label10" runat="server"></asp:Label>
        </td>
         <td class="righttd" >
             <asp:RadioButtonList ID="RadioButtonList1" runat="server" Enabled="false" RepeatDirection="Horizontal">
                 <asp:ListItem Value="1">差评</asp:ListItem>
                 <asp:ListItem Value="2">一般</asp:ListItem>
                 <asp:ListItem Value="3">基本满意</asp:ListItem>
                 <asp:ListItem Value="4" Selected>满意</asp:ListItem>
                 <asp:ListItem Value="5">非常满意</asp:ListItem>
             </asp:RadioButtonList>
            
         </td>
       </tr> 

       <tr>
        <td align="right" class="lefttd">评价内容：</td>
         <td class="righttd"><asp:TextBox ID="TextBox3" TextMode="MultiLine"  Width="80%" Height="200px"  runat="server"></asp:TextBox>
              <%Kesion.APPCode.EditorAPI.EchoHead(); %>
         <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TextBox3.ClientID, "Basic");%>
        </td>
       </tr> 
  
      <tr>
        <td align="right" class="lefttd">材料次数：</td>
         <td class="righttd">
             <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>  
         </td>
     </tr> 
             
      <tr>
        <td align="right" class="lefttd" height="50" >学生资料标题：</td>
         <td class="righttd">
             <asp:Label ID="Label7" Font-Size="16" runat="server"></asp:Label>
              <asp:Label ID="Label8" Font-Size="16" runat="server" ></asp:Label>
         </td>
      </tr> 
          
      <tr>
        <td align="right" class="lefttd" height="30" > <font color=red >*</font>教师资料标题：</td>
         <td class="righttd">
                 <asp:Label ID="Label9" Font-Size="16" runat="server" ></asp:Label>
               <asp:Label ID="Label11" Font-Size="16" runat="server" ></asp:Label>
         </td>
      </tr>
       
     <tr>
        <td align="right" class="lefttd" height="30" > <font color=red >*</font>修改意见：
            <br /><font color="red">(请输入修改意见)</font>
        </td>
         <td class="righttd"><asp:TextBox ID="TextBox4" TextMode="MultiLine" Width="80%" Height="250px" runat="server"></asp:TextBox>
              <%Kesion.APPCode.EditorAPI.EchoHead(); %>
         <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TextBox4.ClientID, "Basic");%>
        </td>
     </tr>   
           
      <tr>
        <td align="right" class="lefttd" height="30" >学生备注：
            <br /><font color="red">(录入无效，只能查看)</font>
        </td>
         <td class="righttd">
             <asp:TextBox ID="TextBox5" TextMode="MultiLine" Width="80%" Height="250px" runat="server"></asp:TextBox>     
               <%Kesion.APPCode.EditorAPI.EchoHead(); %>       
         <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TextBox5.ClientID, "Basic");%>
        </td>
     </tr> 
         
  </table>
         <div style="text-align:center"><input type="button" class="button" onclick="window.history.go(-1);"value=" 返 回 "></</div>

   </asp:Panel>

</asp:Content>

