📄 bookadd.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookAdd.aspx.cs" Inherits="BookManage_BookAdd" %>
<!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>
<script language="javascript" type="text/javascript">
<!--
function TABLE1_onclick() {
}
// -->
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " width=400 border="1" borderColor="#2c6ed5" cellspacing="0" cellpadding="0" align="center" id="TABLE1" language="javascript" onclick="return TABLE1_onclick()">
<tr>
<td align=center colspan=2>
<FONT size="5" face=隶书>添加图书</FONT>
</td>
</tr>
<tr>
<td>
书名:
</td>
<td>
<asp:TextBox id="txtName" runat="server" Width="193px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
ISBN号:
</td>
<td >
<asp:TextBox id="txtISBN" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtISBN"></asp:RequiredFieldValidator><BR>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="\d{1,}\-\d{1,}\-\d{1,}\-\d{1,}" ControlToValidate="txtISBN"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td>
作者名:
</td>
<td>
<asp:TextBox id="txtAuthor" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtAuthor"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
出版社:
</td>
<td>
<asp:TextBox id="txtPublish" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPublish"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
出版时间:
</td>
<td>
<asp:DropDownList ID="ddlYear" runat="server">
</asp:DropDownList>年
<asp:DropDownList ID="ddlMonth" runat="server">
</asp:DropDownList>月
<asp:DropDownList ID="ddlDay" runat="server">
</asp:DropDownList>日</td>
</tr>
<tr>
<td>
图书类型:
</td>
<td>
<asp:RadioButtonList ID="rblClassify" runat="server" Font-Size="9pt" RepeatDirection="Horizontal">
<asp:ListItem Value="2" Selected="True">中文图书</asp:ListItem>
<asp:ListItem Value="3">西文图书</asp:ListItem>
<asp:ListItem Value="4">中文期刊</asp:ListItem>
<asp:ListItem Value="5">西文期刊</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
<tr>
<td>
主题词:
</td>
<td >
<asp:TextBox id="txtSubject" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="txtSubject" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
索取号:
</td>
<td>
<asp:TextBox id="txtIndex" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ControlToValidate="txtIndex" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
定价(元):
</td>
<td>
<asp:TextBox id="txtPrice" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPrice"></asp:RequiredFieldValidator><BR>
<asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="(\d{1,}\.\d*)|(\d{1,})" ControlToValidate="txtPrice"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td>
页数:
</td>
<td>
<asp:TextBox id="txtPageNum" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator8" runat="server" ControlToValidate="txtPageNum" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
从书名:
</td>
<td>
<asp:TextBox id="txtSeries" runat="server" Width="190px"></asp:TextBox></td>
</tr>
<tr>
<td>
说明:
</td>
<td>
<asp:TextBox id="txtDescription" runat="server" Width="203px" TextMode="MultiLine" Height="64px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />
<asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="ImageButton1_Click" />
<asp:ImageButton ID="imgBtnReturn" runat="server" ImageUrl="~/Images/RETURN.GIF" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -