📄 studentsmanagement.aspx
字号:
<%@ Register TagPrefix="StudentsMIS" TagName="MenuControl" Src="/Controls/MenuControl.ascx" %>
<%@ Register TagPrefix="StudentsMIS" TagName="FooterControl" Src="/Controls/FooterControl.ascx" %>
<%@ Page language="c#" Inherits="StudentsMIS.Web.StudentsManagement.StudentsManagement" CodeFile="StudentsManagement.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>学生管理信息系统</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="/StyleSheets/StyleSheet.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<STUDENTSMIS:MENUCONTROL id="MenuControl1" runat="server" SubOperation="管理学生信息" Operation="管理学生信息"></STUDENTSMIS:MENUCONTROL>
<table style="BORDER-RIGHT: #0c5280 1px solid; BORDER-LEFT: #629dc5 1px solid; BORDER-BOTTOM: #0c5280 1px solid"
height="495" cellSpacing="0" cellPadding="0" width="99%" align="center" bgColor="#4791c5"
border="0">
<tr>
<td width="1%"></td>
<td vAlign="top" width="98%" bgColor="#7fb7e1" height="483"><table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="15" height="15" rowSpan="10"></td>
<td height="15"></td>
</tr>
<tr>
<td height="30"><asp:dropdownlist id="ddListCollege" runat="server" AutoPostBack="True" onselectedindexchanged="ddListCollege_SelectedIndexChanged">
<asp:ListItem Value="0">选择学院</asp:ListItem>
</asp:dropdownlist> <asp:dropdownlist id="ddListSpeciality" runat="server" AutoPostBack="True" onselectedindexchanged="ddListSpeciality_SelectedIndexChanged">
<asp:ListItem Value="选择专业">选择专业</asp:ListItem>
</asp:dropdownlist> <asp:dropdownlist id="ddListClass" runat="server" AutoPostBack="True" onselectedindexchanged="ddListClass_SelectedIndexChanged">
<asp:ListItem Value="选择班级">选择班级</asp:ListItem>
</asp:dropdownlist>(模糊查找)
<asp:dropdownlist id="ddListKey" runat="server">
<asp:ListItem Value="0" Selected="True">按学号</asp:ListItem>
<asp:ListItem Value="1">按姓名</asp:ListItem>
</asp:dropdownlist>
<asp:textbox id="txtValue" runat="server"></asp:textbox>
<asp:button id="btnSearch" runat="server" Text=" 查找 " onclick="btnSearch_Click"></asp:button>(精确查找)
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td><asp:datagrid id="dataGridStudents" runat="server" BackColor="White" BorderColor="#E8E6EB" GridLines="Horizontal"
BorderStyle="None" AutoGenerateColumns="False" AllowPaging="True" Font-Names="Arial">
<FooterStyle BackColor="Silver"></FooterStyle>
<SelectedItemStyle BackColor="LightGreen"></SelectedItemStyle>
<EditItemStyle Height="25px"></EditItemStyle>
<AlternatingItemStyle Height="25px" BorderColor="#5F9FD4"></AlternatingItemStyle>
<ItemStyle Height="25px"></ItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="28px" BackColor="#E8E6EB"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<ItemStyle BackColor="LightYellow"></ItemStyle>
<ItemTemplate>
<input type="checkbox" id="stu_id" runat="server">
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="student_ID" ReadOnly="True" HeaderText="学生学号">
<HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
<ItemStyle Font-Names="Arial" HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="student_name" ReadOnly="True" HeaderText="学生姓名">
<HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" BackColor="LightYellow"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="student_sex" ReadOnly="True" HeaderText="性别">
<HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="college_name" ReadOnly="True" HeaderText="所属学院">
<HeaderStyle Width="100px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" BackColor="LightYellow"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="speciality_name" ReadOnly="True" HeaderText="所属专业">
<HeaderStyle Width="150px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="入学年份">
<ItemStyle HorizontalAlign="Center" BackColor="LightYellow"></ItemStyle>
<ItemTemplate>
<font face="Arial">
<%# DataBinder.Eval(Container, "DataItem.student_enterYear") %>
</font>年
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="学制">
<HeaderStyle Width="40px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<font face="Arial">
<%# DataBinder.Eval(Container, "DataItem.student_stuType") %>
</font>年
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="student_native" ReadOnly="True" HeaderText="籍贯">
<HeaderStyle Width="100px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" BackColor="LightYellow"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle Font-Bold="True" HorizontalAlign="Center" BackColor="#E8E6EB" Mode="NumericPages"></PagerStyle>
</asp:datagrid></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="30"><asp:button id="btnSelect" runat="server" Text=" 查看 " onclick="btnSelect_Click"></asp:button>
<asp:button id="btnInsert" runat="server" Text=" 增加 " onclick="btnInsert_Click"></asp:button>
<asp:Button id="btnUpdate" runat="server" Text=" 修改 " onclick="btnUpdate_Click"></asp:Button>
<asp:Button id="btnDelete" runat="server" Text=" 删除 " onclick="btnDelete_Click"></asp:Button>
<asp:Button id="btnChange" runat="server" Text="异动及奖惩记录" onclick="btnChange_Click"></asp:Button></td>
</tr>
</table>
</td>
<td width="1%"></td>
</tr>
<tr>
<td height="12"></td>
</tr>
</table>
<STUDENTSMIS:FOOTERCONTROL id="FooterControl1" runat="server"></STUDENTSMIS:FOOTERCONTROL></form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -