📄 regclass.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Regclass.aspx.cs" Inherits="Default2" %>
<%@ Register Src="LeadHead.ascx" TagName="LeadHead" TagPrefix="uc2" %>
<!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 id="Head1" runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
// <div id="dek" class="dek"> </div> <div id="mytips" style="position:absolute;background-color:#ffffff;width:121;height:16;border:1px solid gray;display:none; left:0; top:5; z-index: 100;"> lkjlj</div>
//more javascript /////////////////////////////////////
var obj;
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
function overTip(msg,boxObj ) {
if (ie) {
var content="<TABLE id=\"tab\" BORDER=0 Bgcolor=#A9Dccc CELLPADDING=3 CELLSPACING=1 ><td style=\"font-weight: bold; font-size: 20px; width: 100px; color: #ff00cc; font-family: 华文行楷\">"+msg+" "+"</TD></TABLE>";
boxObj.innerHTML=content;
}
}
function outTip(boxObj ) {
// boxObj.innerHTML=content;
var content=" <img alt=\"\" src=\"PICTURE/list.gif\" style=\"width: 37px; height: 33px\" />";
boxObj.innerHTML=content;
alert(content);
}
function outtable()
{
var pic=document.getElementById('span');
var content=" <img alt=\"\" src=\"PICTURE/list.gif\" style=\"width: 37px; height: 33px\" />";
pic.innerHTML=content;
}
</script>
</head>
<body style="text-align: center; background-image: url(PICTURE/back.gif);">
<form id="form1" runat="server">
<div id="first" style="text-align: center;">
<uc2:LeadHead ID="LeadHead1" runat="server" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 930px; background-color: #f4faed">
<tr>
<td style="width: 737px">
<asp:Label ID="Label5" runat="server" Width="482px"></asp:Label></td>
<td style="width: 331px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 737px; text-align: left; height: 12px;">
<asp:Label ID="Label1" runat="server" Text=" 1.您的班级是下面班级列表中的哪一个? " Width="322px"></asp:Label></td>
<td style="width: 331px; height: 12px;">
</td>
<td style="width: 100px; height: 12px;">
</td>
</tr>
<tr>
<td style="width: 737px; text-align: left; height: 19px;">
<asp:Label ID="Label2" runat="server" Text=" 可输入班级名称关键字查找,比如:" Width="316px"></asp:Label>
<asp:Label ID="Label3" runat="server" ForeColor="#C000C0" Text="软、软件、04软件工程" Width="164px"></asp:Label></td>
<td style="width: 331px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
</tr>
<tr>
<td style="width: 737px; text-align: left;">
<asp:Label ID="Label4" runat="server" Width="106px"></asp:Label>
<asp:TextBox ID="classname" runat="server"></asp:TextBox>
<asp:Button ID="SerchClass" runat="server" Text=" 搜索 " Width="62px" OnClick="SerchClass_Click" /></td>
<td style="width: 331px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 737px; height: 22px; text-align: right;">
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Large" Text="入学年份:"
Width="100px"></asp:Label></td>
<td style="width: 331px; height: 22px; text-align: left;">
<asp:DropDownList ID="ETRTime" runat="server" Width="96px" AutoPostBack="True" OnSelectedIndexChanged="ETRTime_SelectedIndexChanged">
</asp:DropDownList></td>
<td style="width: 100px; height: 22px;">
</td>
</tr>
</table>
</div>
<table border="0" cellpadding="0" cellspacing="0" style="width: 922px; background-color: #f4faed;">
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
<asp:GridView ID="GridView1" runat="server" Width="889px" AllowPaging="True" BorderColor="#A9D46D" CellPadding="0" CellSpacing="1" Height="123px" PageSize="20" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" DataKeyNames="ClassNum" DataSourceID="SqlDataSource1" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
<PagerSettings Mode="NextPreviousFirstLast" Position="TopAndBottom" />
<FooterStyle BackColor="#A9D46D" />
<RowStyle BackColor="#E3F1D1" BorderColor="#A9D46D" />
<HeaderStyle BackColor="#A9D46D" />
<AlternatingRowStyle BackColor="#F4FAED" />
<Columns>
<asp:TemplateField HeaderText="班级名称" SortExpression="ClassName">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ClassName") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" Width="150px" />
<ItemTemplate>
<asp:Label ID="classlab" runat="server" Text='<%# Bind("ClassName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="班级格言">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" />
<ItemTemplate >
<span onmouseover="overTip( '<%#Eval("Gyuan")%>' ,this)" onmouseout= "outTip(this ) " >
<img alt="" src="PICTURE/list.gif" style="width: 37px; height: 33px" /></span>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Teacher" HeaderText="班主任" SortExpression="Teacher" >
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" />
</asp:BoundField>
<asp:BoundField DataField="Monitor" HeaderText="班长" SortExpression="Monitor" >
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" />
</asp:BoundField>
<asp:BoundField DataField="classyear" HeaderText="年份" SortExpression="classyear" >
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" />
</asp:BoundField>
<asp:TemplateField ShowHeader="False" HeaderText="加入班级">
<ItemStyle BorderColor="#A9D46D" BorderStyle="Dotted" Width="150px" />
<ItemTemplate>
<asp:Button ID="addbtn" runat="server" CommandName="addclass" Text="加入该班" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
</tr>
<tr>
<td style="width: 100px; height: 1px;">
</td>
<td style="width: 100px; height: 1px;">
</td>
<td style="width: 100px; height: 1px;">
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ChinaRenConnectionString %>"
SelectCommand="SELECT [ClassName], [Teacher], [Monitor], [classyear], [ClassNum], [Gyuan] FROM [ClassInfo]">
</asp:SqlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -