index.aspx
上传用户:ah_jiwei
上传日期:2022-07-24
资源大小:54044k
文件大小:3k
源码类别:

数据库编程

开发平台:

Visual C++

  1. <%@ Page Language="C#"  MasterPageFile = "../MasterPage5.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="administration_index"  Title="老师首页"%>
  2. <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
  3.     Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
  4.     
  5. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  6. <div style="margin-top:20px;height:350px;">
  7.     <div style="width:250px;float:left;">
  8.         <div style="margin-top:20px; margin-left:30px;float:left;">
  9.            <img src="../image/huashixw.gif" longdesc="../image/huashixw.gif" id="IMG1"/><br />
  10.             <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
  11.                 AutoGenerateColumns="False" DataKeyNames="sut_id" DataSourceID="SqlDataSource1" Width="247px" Height="283px">
  12.                 <Columns>
  13.                     <asp:TemplateField>
  14.                            <ItemTemplate>
  15.                                <asp:CheckBox ID="CheckBox1" runat="server" Checked="false" />
  16.                            </ItemTemplate>
  17.                        </asp:TemplateField>
  18.                     <asp:BoundField DataField="sut_id" HeaderText="学号" ReadOnly="True" SortExpression="sut_id" />
  19.                     <asp:HyperLinkField HeaderText="学生姓名" DataNavigateUrlFields="sut_id" DataNavigateUrlFormatString="stu_details.aspx?stu_Id={0}" DataTextField="stu_name" SortExpression="stu_name"/>
  20.                      <asp:HyperLinkField HeaderText="导师姓名" DataNavigateUrlFields="tea_id" DataNavigateUrlFormatString="tea_details.aspx?tea_Id={0}" DataTextField="tea_name" SortExpression="tea_name"/>
  21.                  
  22.                     <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state" />
  23.                 </Columns>
  24.             </asp:GridView>
  25.             <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ecnuprosysConnectionString %>"
  26.                 SelectCommand="select stu_tea.sut_id,stu_id_num.stu_name,tea_table.tea_name,stu_tea.state,stu_tea.tea_id from stu_tea,stu_id_num,tea_table&#13;&#10;where stu_tea.sut_id = stu_id_num.stu_id and&#13;&#10;stu_tea.tea_id = tea_table.tea_id&#13;&#10;group by stu_tea.state,tea_table.tea_name,stu_tea.sut_id,stu_id_num.stu_name,stu_tea.tea_id">
  27.             </asp:SqlDataSource>
  28.        </div>
  29.     </div>
  30.     <div style="float:left;width:250px;margin-left:40px;height:350px;">
  31.        <div style="height:250px;">
  32.        <div style=" margin-left:250px;">
  33.           <asp:Button ID="Button1" runat="server" Text="发邮件" OnClick="Button1_Click"/>
  34.        </div>
  35.         <img src="../image/huashixw.gif" longdesc="../image/huashixw.gif" id="IMG3"/><br />
  36.         学生导师选择统计&nbsp;<br />
  37.          <img src="../image/graph1.gif" longdesc="../image/graph1.gif" id="IMG4"/><br />
  38.        
  39.        </div>
  40.    
  41.      
  42.     </div>
  43.  </div>
  44. </asp:Content>