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

数据库编程

开发平台:

Visual C++

  1. <%@ Page Language="C#"  MasterPageFile = "../MasterPage4.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="teacher_index"  Title="老师首页"%>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  3.     <div style="margin-top:20px;height:380px;">
  4.         <div style="float:left;width:270px;">
  5.            <div style="margin-top:10px;background-image:url(../image/25707_0906160458331.jpg);width:270px;height:233px; float:left;">   
  6.            </div>
  7.            <div style="margin-top:20px;height:150px; ">
  8.          <img src="../image/huashixw.gif" longdesc="../image/huashixw.gif" id="IMG1"/>
  9.      <li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/xsglgd_list.asp" target="_blank">规章制度</a></li><li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/zxtz_list.asp" target="_blank">通知公告</a></li><li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/jzgl_list.asp" target="_blank">奖助信息</a></li><li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/bszn_list.asp" target="_blank">办事指南</a></li></div>  
  10.         </div>
  11.         <div style="float:left;width:300px; margin-left:25px;">
  12.            <div style="float:left;">
  13.               <img src="../image/biaoti_xiushi.gif" width="21" height="21" longdesc="../image/biaoti_xiushi.gif" />
  14.            </div>
  15.    <div style="float:left;">
  16.   <span class="STYLE4">学生查询</span>   
  17.    </div>
  18.    <div style="float:right;">
  19.               <asp:RadioButton ID="RadioButton1" runat="server" /> 
  20.               <asp:Label ID="Label1" runat="server" Text="选择" Font-Size="XX-Small" Font-Bold="true"></asp:Label>
  21.               <asp:RadioButton ID="RadioButton2" runat="server" /> 
  22.               <asp:Label ID="Label2" runat="server" Text="拒绝" Font-Size="XX-Small" Font-Bold="true"  ForeColor="red" ></asp:Label>
  23.               <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />
  24.    </div>
  25.    <div style="background-image:url(../image/division.JPG);background-repeat:repeat-x; height:2px; width:400px;">
  26.    </div>
  27.    <div>
  28.        <span class="STYLE6">
  29.                    <asp:GridView ID="GridView2" runat="server" DataSourceID="SqlDataSource2" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="398px" >
  30.                    
  31.                <Columns>
  32.                     <asp:TemplateField>
  33.                            <ItemTemplate>
  34.                                <asp:CheckBox ID="CheckBox1" runat="server" Checked="false" />
  35.                            </ItemTemplate>
  36.                      </asp:TemplateField>
  37.                    <asp:HyperLinkField DataNavigateUrlFields="stu_id" DataNavigateUrlFormatString="details.aspx?stu_Id={0}" DataTextField="stu_name" />
  38.                   
  39.        
  40.                    <asp:BoundField DataField="state" HeaderText="状态" SortExpression="state">
  41.                        
  42.                    </asp:BoundField>
  43.                </Columns>
  44.                    </asp:GridView>
  45.                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ecnuprosysConnectionString %>" SelectCommand="SELECT stu_id_num.stu_id, stu_id_num.stu_name, stu_tea.state FROM stu_id_num INNER JOIN stu_tea ON stu_id_num.stu_id = stu_tea.sut_id and stu_tea.state= '未选择'"></asp:SqlDataSource>
  46.                </span>
  47.           </div>  
  48.    </div>   
  49.    <div style="float:left;width:180px; height:180px;margin-left:25px;margin-top:10px;">
  50.     <img src="../image/shangcaigk.gif" longdesc="../image/shangcaigk.gif" />&nbsp;<br />
  51.            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="stu_id" AllowPaging="True" AllowSorting="True">
  52.                <Columns>
  53.                    <asp:HyperLinkField DataNavigateUrlFields="stu_id" DataNavigateUrlFormatString="thesises.aspx?stu_Id={0}" DataTextField="stu_name"/>
  54.                </Columns>
  55.            </asp:GridView>
  56.            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ecnuprosysConnectionString %>"
  57.                SelectCommand="select stu_id_num.stu_id,stu_id_num.stu_name from stu_id_num,stu_tea where stu_id_num.stu_id = stu_tea.sut_id  ">
  58.            </asp:SqlDataSource>
  59.        </div>
  60.    <div style="float:right; width:180px; height:180px;margin-top:10px;">
  61.         <img src="../image/gonggongfw.gif" longdesc="../image/gonggongfw.gif" /><br />
  62.            &nbsp;
  63.            <asp:GridView ID="GridView3" runat="server" Height="141px" Width="193px" AutoGenerateColumns="False" DataKeyNames="stu_id" DataSourceID="SqlDataSource3">
  64.                 <Columns>
  65.                     <%--<asp:BoundField DataField="stu_id" HeaderText="stu_id" ReadOnly="True" SortExpression="stu_id" />
  66.                     <asp:BoundField DataField="arg_time" HeaderText="arg_time" SortExpression="arg_time" />
  67.                     <asp:BoundField DataField="arg_place" HeaderText="arg_place" SortExpression="arg_place" />
  68.                     <asp:BoundField DataField="arg_tea_id" HeaderText="arg_tea_id" SortExpression="arg_tea_id" />
  69.                     <asp:BoundField DataField="exam_id" HeaderText="exam_id" ReadOnly="True" SortExpression="exam_id" />
  70.                     <asp:BoundField DataField="stu_id1" HeaderText="stu_id1" SortExpression="stu_id1" />
  71.                     <asp:BoundField DataField="stu_name" HeaderText="stu_name" SortExpression="stu_name" />
  72.                     <asp:BoundField DataField="stu_score" HeaderText="stu_score" SortExpression="stu_score" />
  73.                     <asp:BoundField DataField="avg_point" HeaderText="avg_point" SortExpression="avg_point" />--%>
  74.                     <asp:HyperLinkField HeaderText="学生姓名" DataNavigateUrlFields="stu_id" DataNavigateUrlFormatString="arrangement.aspx?stu_Id={0}" DataTextField="stu_name" />
  75.                     <asp:BoundField DataField="arg_time" HeaderText="答辩时间" SortExpression="arg_time" />
  76.                     <asp:BoundField DataField="arg_place" HeaderText="答辩地点" SortExpression="arg_place" />
  77.                 </Columns>
  78.            </asp:GridView>
  79.            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ecnuprosysConnectionString %>"
  80.                SelectCommand="select * from rep_to_arg,stu_id_num where (stu_id_num.stu_id = rep_to_arg.stu_id)">
  81.            </asp:SqlDataSource>
  82.            &nbsp;
  83.        </div> 
  84.     </div>  
  85. </asp:Content>