-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditPublisher.aspx
271 lines (268 loc) · 21.1 KB
/
EditPublisher.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditPublisher.aspx.cs" Inherits="EditPublisher" %>
<!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>Library Management System.</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table cellpadding="1" cellspacing="1" style="border-left-color: #ffcccc; border-bottom-color: #ffcccc;
width: 976px; border-top-style: groove; border-top-color: #ffcccc; border-right-style: groove;
border-left-style: groove; height: 542px; border-right-color: #ffcccc; border-bottom-style: groove">
<tr>
<td bgcolor="#ffffcc" rowspan="3" style="width: 115px">
<br />
<br />
<div style="text-align: left">
<asp:Panel ID="Panel1" runat="server" BorderStyle="Double" ForeColor="PowderBlue"
Height="40px" HorizontalAlign="Center" Width="110px">
<table>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HHPage" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/Home.aspx">Home Page</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HEditProfile" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/EditProfile.aspx">Edit Profile</asp:HyperLink></td>
</tr>
</table>
<asp:HyperLink ID="HSearch" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/Search.aspx">Search Book</asp:HyperLink></asp:Panel>
<asp:Panel ID="Panel2" runat="server" BorderColor="PowderBlue" BorderStyle="Double"
Height="20px" HorizontalAlign="Center" Width="110px">
<asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/CheckedIn.aspx">Cheked In Books</asp:HyperLink></asp:Panel>
</div>
<asp:Panel ID="Panel3" runat="server" BorderColor="PowderBlue" BorderStyle="Double"
Height="40px" HorizontalAlign="Center" Width="110px">
<table>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HAddCategory" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/AddCategory.aspx">Add Category</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HEditCategory" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/Category.aspx">Edit Category</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HAddPublisher" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/AddPublisher.aspx">Add Publisher</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HAddSupplier" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/AddSupplier.aspx">Add Supplier</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HEditSupplier" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/EditSupplier.aspx">Edit Supplier</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HAddNook" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/AddBook.aspx">Add Book</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HEditBooks" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/EditBook.aspx">Edit Book</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HAddAuthor" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/AddAuthor.aspx">Add Author</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HEditAuthor" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/EditAuthor.aspx">Edit Author</asp:HyperLink></td>
</tr>
<tr>
<td style="width: 100px">
<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/IssueBook.aspx">Issue Book</asp:HyperLink></td>
</tr>
</table>
<asp:HyperLink ID="HRBook" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" NavigateUrl="~/ReturnBook.aspx">Return Book</asp:HyperLink></asp:Panel>
<br />
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Book3.JPG" Width="113px" /><br />
</td>
<td align="center" colspan="2" style="font-weight: bolder; vertical-align: super;
color: #cc00ff; font-family: 'Times New Roman'; height: 56px; background-color: pink;
text-align: center" valign="middle">
<asp:Image ID="Image3" runat="server" Height="70px" ImageUrl="~/Images/Book4.JPG"
Width="60px" />LIBRARY MANAGEMENT SYSTEM<asp:Image ID="Image2" runat="server" Height="70px"
ImageUrl="~/Images/Search1.jpeg" Width="60px" /></td>
</tr>
<tr>
<td align="center" colspan="2" style="height: 403px">
<table cellpadding="1" cellspacing="1">
<tr>
<td align="center" colspan="3" style="font-weight: bold; vertical-align: middle;
color: #00ff99; border-top-style: outset; font-family: 'Times New Roman'; border-right-style: outset;
border-left-style: outset; background-color: #663333; text-align: center; border-bottom-style: outset">
Edit Publisher</td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label10" runat="server" Text="Publisher ID:"></asp:Label></td>
<td align="left" style="width: 192px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:DropDownList ID="lstid" runat="server" AutoPostBack="True" CausesValidation="True"
OnSelectedIndexChanged="lstid_SelectedIndexChanged"
Width="205px">
</asp:DropDownList></td>
<td style="width: 207px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc" align="left">
</td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="UserNameLabel" runat="server">Publisher Name:</asp:Label></td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc">
<asp:TextBox ID="txtPName" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="50"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtPName"
ToolTip="Publisher Name is required." ValidationGroup="Login1">Publisher Name is required.</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label4" runat="server" Text="Publishing Year:"></asp:Label>
</td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc">
<asp:TextBox ID="txtPYear" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="8"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPYear"
ToolTip="Publishing Year is required." ValidationGroup="Login1">Publishing Year is required.</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label5" runat="server" Text="Publishing House:"></asp:Label></td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc">
<asp:TextBox ID="txtPHouse" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="50"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPHouse"
ToolTip="Publishing House is required." ValidationGroup="Login1">Publishing House is required.</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label6" runat="server" Text="Publisher Edition:"></asp:Label></td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc">
<asp:TextBox ID="txtPEdition" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="10"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPEdition"
ToolTip="Publisher Edition is required." ValidationGroup="Login1">Publisher Edition is required.</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="PasswordLabel" runat="server">Publisher Address:</asp:Label></td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; background-color: #ffffcc">
<asp:TextBox ID="txtAdd" runat="server" TextMode="MultiLine" ValidationGroup="Login1"
Width="200px" MaxLength="200"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtAdd"
ToolTip="Publisher Address is required." ValidationGroup="Login1">Publisher Address is required.</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label1" runat="server" Text="Phone#: "></asp:Label></td>
<td align="left" style="width: 192px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:TextBox ID="txtPhone" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="10"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone"
Display="Dynamic" ErrorMessage="RegularExpressionValidator" ValidationExpression="\d[0-9]*"
ValidationGroup="Login1">Please enter valid Phone#.</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label2" runat="server" Text="Fax:"></asp:Label></td>
<td align="left" style="width: 192px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:TextBox ID="txtFax" runat="server" ToolTip="Login1" Width="200px" MaxLength="10"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
</td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="Label3" runat="server" Text="E Mail ID"></asp:Label></td>
<td align="left" style="width: 192px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:TextBox ID="txtemail" runat="server" ValidationGroup="Login1" Width="200px" MaxLength="20"></asp:TextBox></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtemail"
Display="Dynamic" ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ValidationGroup="Login1">Enter a Valid E-mail.</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="ConfirmPasswordLabel" runat="server">Status:</asp:Label></td>
<td align="left" style="width: 192px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:CheckBox ID="chkStatus" runat="server" Checked="True" Text="Status" ValidationGroup="Login1" /></td>
<td align="left" style="width: 207px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
</td>
</tr>
<tr>
<td align="center" colspan="3" style="width: 187px; color: #0000cc; font-family: 'Times New Roman';
background-color: #ffffcc">
<asp:Label ID="lblEMsg" runat="server" Font-Bold="False" Font-Names="Times New Roman"
Font-Size="Medium" ForeColor="Red" Visible="False" Width="562px"></asp:Label></td>
</tr>
<tr>
<td align="right" style="width: 153px; color: #0000cc; font-family: 'Times New Roman';
height: 26px; background-color: #ffffcc">
</td>
<td style="width: 192px; color: #0000cc; font-family: 'Times New Roman'; height: 26px;
background-color: #ffffcc">
<asp:Button ID="btnUpdate" runat="server" Font-Bold="True" Font-Names="Times New Roman"
Font-Size="Small" ForeColor="Blue" OnClick="btnUpdate_Click" Text="Update" /><asp:Button
ID="btnDelete" runat="server" Font-Bold="True" Font-Names="Times New Roman" Font-Size="Small"
ForeColor="Blue" OnClick="btnDelete_Click" Text="Delete" /> <asp:Button ID="btnClear"
runat="server" Font-Bold="True" Font-Names="Times New Roman" Font-Size="Small"
ForeColor="Blue" OnClick="btnClear_Click" Text="Clear" /></td>
<td style="width: 207px; color: #0000cc; font-family: 'Times New Roman'; height: 26px;
background-color: #ffffcc">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100px; height: 123px">
</td>
<td style="width: 755px; height: 123px">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>