AddBook.aspx
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:6k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" MasterPageFile="~/SysAdmin/sysAdminMasterPage.Master" AutoEventWireup="true" CodeBehind="AddBook.aspx.cs" Inherits="Web.SysAdmin.AddBook" Title="添加图书" %>
  2. <%@ Register Src="~/SysAdmin/AdminLeft.ascx" TagName="adminleft" TagPrefix="uc1" %> 
  3. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  4.   <div>
  5.     
  6.     <table style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " width="400" border="1" borderColor="#2c6ed5" cellspacing="0" cellpadding="0" align="left
  7.     " id="TABLE1" language="javascript" onclick="return TABLE1_onclick()">
  8. <tr>
  9. <td align="center" colspan="2">
  10. <font size="5" face="隶书">添加图书</font>
  11. </td>
  12. </tr>
  13. <tr>
  14. <td>
  15. ISBN号:
  16. </td>
  17. <td >
  18. <asp:TextBox id="txtISBN" runat="server" Width="192px"></asp:TextBox>*
  19. <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtISBN"></asp:RequiredFieldValidator><BR>
  20. <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="d{1,}-d{1,}-d{1,}-d{1,}" ControlToValidate="txtISBN"></asp:RegularExpressionValidator></td>
  21. </tr>
  22. <tr>
  23. <td>
  24. 书名:
  25. </td>
  26. <td>
  27. <asp:TextBox id="txtName" runat="server" Width="193px"></asp:TextBox>*
  28. <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td style="height: 23px">
  33. 索取号:
  34. </td>
  35. <td style="height: 23px">
  36. <asp:TextBox id="txtIndex" runat="server" Width="192px"></asp:TextBox>*
  37. <asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ControlToValidate="txtIndex" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
  38. </tr>
  39. <tr>
  40. <td>
  41. 图书类型:
  42. </td>
  43. <td>
  44.                                         <asp:RadioButtonList ID="rblClassify" runat="server" Font-Size="9pt" RepeatDirection="Horizontal">
  45.                                             <asp:ListItem Value="0" Selected="True">社会科学</asp:ListItem>
  46.                                             <asp:ListItem Value="1">自然科学</asp:ListItem>
  47.                                             <asp:ListItem Value="2">综合性图书</asp:ListItem>
  48.                                             <asp:ListItem Value="3">哲学</asp:ListItem>
  49.                                         </asp:RadioButtonList></td>
  50. </tr>
  51. <tr>
  52. <td>
  53. 作者名:
  54. </td>
  55. <td>
  56. <asp:TextBox id="txtAuthor" runat="server" Width="192px"></asp:TextBox>*
  57. <asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtAuthor"></asp:RequiredFieldValidator></td>
  58. </tr>
  59. <tr>
  60. <td>
  61. 出版社:
  62. </td>
  63. <td>
  64. <asp:TextBox id="txtPublish" runat="server" Width="192px"></asp:TextBox>*
  65. <asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPublish"></asp:RequiredFieldValidator></td>
  66. </tr>
  67. <tr>
  68. <td>
  69. 定价(元):
  70. </td>
  71. <td>
  72. <asp:TextBox id="txtPrice" runat="server" Width="192px"></asp:TextBox>*
  73. <asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPrice"></asp:RequiredFieldValidator><BR>
  74. <asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="(d{1,}.d*)|(d{1,})" ControlToValidate="txtPrice"></asp:RegularExpressionValidator></td>
  75. </tr>
  76. <tr>
  77. <td>
  78. 出版时间:
  79. </td>
  80. <td>
  81.                                         <asp:DropDownList ID="ddlYear" runat="server">
  82.                                         </asp:DropDownList>年
  83.                                         <asp:DropDownList ID="ddlMonth" runat="server">
  84.                                         </asp:DropDownList>月
  85.                                         <asp:DropDownList ID="ddlDay" runat="server">
  86.                                         </asp:DropDownList>日</td>
  87. </tr>
  88. <tr>
  89. <td>
  90. 主题词:
  91. </td>
  92. <td >
  93. <asp:TextBox id="txtSubject" runat="server" Width="192px"></asp:TextBox>*
  94. <asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="txtSubject" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
  95. </tr>
  96. <tr>
  97. <td>
  98. 说明:
  99. </td>
  100. <td>
  101. <asp:TextBox id="txtDescription" runat="server" Width="337px" 
  102.                                             TextMode="MultiLine" Height="64px"></asp:TextBox>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td colspan=2 align=center>
  107.                         <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />                        
  108.                         <asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="imgBtnAdd_Click" />
  109.                         &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
  110.                         <asp:ImageButton ID="imgBtnReturn" runat="server" ImageUrl="~/Images/RETURN.GIF" /></td>
  111. </tr>
  112. </table>
  113.     </div>
  114. </asp:Content>