<%@ page language="C#" autoeventwireup="true" inherits="Admin_n25_pingfen_manage, App_Web_m37mpoil" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../css/GridView.css" rel="stylesheet" />
    <link href="../css/pager.css" rel="stylesheet" type="text/css" />

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript">
    </script>

    <link href="../css/main.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" >

function ff_open(id)
{


document.getElementById ("pp_"+id).style.display="block";
document.getElementById ("btn_"+id+"_1").style.display="none";
document.getElementById ("btn_"+id+"_2").style.display="block";



}

function ff_close(id)
{

document.getElementById ("btn_"+id+"_1").style.display="block";
document.getElementById ("btn_"+id+"_2").style.display="none";
document.getElementById ("pp_"+id).style.display="none";


}

function mose_over(p)
{

p.style.backgroundColor='#ffff99'
}
function mose_out(p)
{

p.style.backgroundColor='#ffffff'
}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"
            EnableScriptLocalization="true">
        </asp:ScriptManager>
  <div class="title">
  学生评价分值管理
  </div>    
  <div class="panel">
      <asp:UpdatePanel ID="UpdatePanel1" runat="server"  RenderMode="Inline"  >
          <ContentTemplate>  
  
  学期：<asp:DropDownList ID="xueqi" runat="server">
      </asp:DropDownList>
 
 年级：<asp:DropDownList ID="nianji" runat="server" AutoPostBack="True" OnSelectedIndexChanged="nianji_SelectedIndexChanged">
      </asp:DropDownList>
      
  班级：
      <asp:DropDownList ID="banji" runat="server">
      </asp:DropDownList>

      
      </ContentTemplate>
      <Triggers >
   
      
      </Triggers>
      </asp:UpdatePanel>
  主题：<asp:DropDownList ID="title" runat="server">
      </asp:DropDownList>
  
  
  
  日期：<asp:TextBox ID="tim1" runat="server" CssClass="Wdate" ></asp:TextBox>至
  <asp:TextBox ID="tim2" runat="server" CssClass="Wdate" ></asp:TextBox>
      <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" PopupButtonID="tim1"
          TargetControlID="tim1">
      </cc1:CalendarExtender>
      <cc1:CalendarExtender ID="CalendarExtender2" runat="server" Format="yyyy-MM-dd" PopupButtonID="tim2"
          TargetControlID="tim2">
      </cc1:CalendarExtender>
  
  
      <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" CssClass="btn" />
  
  </div>
  
  
    <%--    <asp:Panel ID="Panel1" runat="server"  Width="100%">
      
        <table border="0" cellpadding="0" cellspacing="0" width="100%" >
        <tr>
            <td align="center" style="width: 50px; height: 25px">
                序号
            </td>
        <td style="width: 200px; height:25px;" align="center" >
        学期
        </td>
        <td align="center" style="width: 100px; height:25px;">
        班级
        </td>
        <td align="center" style="width: 100px;  height:25px;">
        学生
        </td>
        <td align="center" style="width: 100px; height:25px;">
        评价总分
        </td>
            <td align="center" style="width: 100px; height:25px;">
               评论人数
            </td>
            <td align="center" style="width: 100px; height:25px;">
            平均分
            </td>
            <td style="width: 50px; height: 25px;">
            
            </td>
        
        </tr>
        
        </table>
        </asp:Panel>  --%>   
   
   
        <asp:DataList ID="DataList1"  runat="server" Width="100%" OnItemDataBound="DataList1_ItemDataBound">
            <HeaderStyle BackColor="MediumAquamarine" />
       <HeaderTemplate >
           <table border="0" cellpadding="0" cellspacing="0" width="100%">
               <tr>
                   <td align="center" style="width: 50px; height: 30px">
                       序号
                   </td>
                   <td align="center" style="width: 200px; height: 30px;">
                       学期
                   </td>
                   <td align="center" style="width: 100px; height: 30px;">
                       班级
                   </td>
                   <td align="center" style="width: 100px; height: 30px;">
                       学生
                   </td>
                   <td align="center" style="width: 100px; height: 30px;">
                       评价总分
                   </td>
                   <td align="center" style="width: 100px; height: 30px;">
                       评论人数
                   </td>
                   <td align="center" style="width: 100px; height: 30px;">
                       平均分
                   </td>
                   <td style="width: 50px; height:30px;">
                   </td>
               </tr>
           </table>
       </HeaderTemplate>
        <ItemTemplate>
        
        <div  style="width:100%" >
           
        <table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
        <tr>
            <td align="center" style="width: 50px; height: 25px">
                <asp:Label ID="Label2" runat="server" Font-Bold="true" Font-Size="12px" ForeColor="MediumAquamarine"
                    Text='<%# DataList1.Items.Count+1%>'></asp:Label>
            </td>
        <td align="center" style="width: 200px; height:25px;">
        
       <%# Eval("xueqi")  %>
        
        </td>
        <td align="center" style="width: 100px; height: 25px;">
           <%# Eval("kkk")  %>
        </td>
        <td align="center" style="width: 100px; height: 25px;">
           
            <%# Eval("stuname")  %>
          
            
        </td>
        <td align="center" style="width: 100px; height: 25px;">
            <%# Eval("kk")  %>
        </td>
        <td align="center" style="width: 100px; height: 25px;">
            <%# Eval("ct")  %>
        
        </td>
            <td align="center" style="width: 100px; height: 25px;">
                <%# Eval("Stu_avg")%>
            </td>
        
        <td style="width: 50px; height: 25px;">
         
            <img id="btn_<%# Eval("RecStuId") %>_1" alt="展开" onclick='ff_open(<%# Eval("RecStuId")  %>)' src="../images/up_list.gif" style="cursor: pointer;" />
            <img id="btn_<%# Eval("RecStuId") %>_2" alt="收拢" onclick='ff_close(<%# Eval("RecStuId")  %>)' src="../images/down_list.gif" style="cursor: pointer; display: none" />
                
                
                
        </td>
        </tr>
        
        
        </table>
        
        
        <div id="pp_<%# Eval("RecStuId") %>" style="width: 100%; display: none">
        
        
       
            <asp:DataList ID="DataList2"   GridLines="Horizontal"  CellPadding="1" CellSpacing="0" BorderWidth="1"    BorderColor="LightSteelBlue" BorderStyle="Solid"    runat="server" Width="100%" OnItemDataBound="DataList2_ItemDataBound">
                <HeaderStyle BackColor="LightBlue" />
                <HeaderTemplate >
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="center" style="width: 50px; height: 25px;">
                        序号
                        </td>
                        <td align="center" class="lien" style="width: 400px; height: 25px;">
                        标题
                        </td>
                        <td align="center" style="width: 100px; height: 25px;">
                        评价总分
                        </td>
                        <td align="center" style="width: 100px; height: 25px;">
                        评价人数
                        </td>
                        <td align="center" style="width: 100px; height: 25px;">
                        平均分
                        </td>
                        <td align="center" style="width: 50px; height: 25px;">
                        
                        </td>
                    </tr>
                    
                    </table>
                
                </HeaderTemplate>
              
                <ItemTemplate>
                   
                  
                
                <table  border="0" cellpadding="0"   cellspacing="0"  width="100%">
                <tr onmouseout="mose_out(this)" onmouseover="mose_over(this)">
                <td style="width: 50px; height: 25px;" align="center" >
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
                <td align="center" class="lien" style="width: 400px;height: 25px;">
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"n25_pingfen_manage_Detail.aspx?id="+ Eval("RecId")+"&d1="+tim1.Text+"&d2="+tim2.Text %>'
                        Target="_blank" Text='<%# Eval("RecTitle")%>'></asp:HyperLink>    
                </td>
                <td align="center" style="width: 100px; height:25px;">
                    <%# Eval("kk")%>
                </td>
                
                <td align="center" style="width: 100px; height:25px;">
                    <%# Eval("ct")%>
                </td>
                <td align="center" style="width: 100px; height:25px;">
                    <%# Eval("Stu_avg")%>
                
                </td>
                    <td style="width: 50px; height:25px;">
                    </td>
                </tr>
                
                </table>
                
                </ItemTemplate>
            </asp:DataList>
        </div>
        </div>
        
        </ItemTemplate>
        </asp:DataList>
    
    
    

    </form>
    <asp:Label ID="lb_pageid" runat="server" Text="" Visible="false"></asp:Label>
    <asp:Label ID="recordcount" runat="server" Visible="false"></asp:Label>
    <asp:Label ID="page_indexpage" runat="server" Text="1" Visible="false"></asp:Label>
    <asp:Label ID="page_count" runat="server" Text="0" Visible="false"></asp:Label>
</body>
</html>
