-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEditorDeleteHousings.aspx
303 lines (299 loc) · 19.8 KB
/
EditorDeleteHousings.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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditorDeleteHousings.aspx.cs"
Inherits="EditorDeleteFurnitures" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script src="Scripts/validatenew.js" type="text/javascript"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
.myclass
{
text-decoration: none;
}
.myclass:hover
{
text-decoration: underline;
}
.modalBackground
{
background-color: #CCCCFF;
filter: alpha(opacity=40);
opacity: 0.5;
}
.ModalWindow
{
border: solid1px#c0c0c0;
background: #f0f0f0;
padding: 0px10px10px10px;
position: absolute;
top: -1000px;
}
.style3
{
width: 160px;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XXXX']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body style="font-family: palatino,palatino linotype, Georgia,Times New Roman,Times,serif">
<form id="form1" runat="server">
<table width="100%" style="border-collapse: collapse">
<tr width="100%" height="120px" bgcolor="#990000">
<td width="100%" style="border-bottom-style: solid; border-width: 1px; border-color: black">
<table width="100%">
<tr width="100%">
<td width="100%" style="padding-left: 25px; color: white">
<a href="Default.aspx" style="text-decoration: none; font-size: 35px; font-family: palatino,palatino linotype, Georgia,Times New Roman,Times,serif;
color: #FFCC00">Trojans List<sub style="font-size: 14px">Beta</sub></a>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 100px; color: white; font-size: 12px">
<label>
For Trojans by Trojans</label>
</td>
</tr>
</table>
</td>
</tr>
<tr width="100%" height="390px">
<td width="100%" valign="top" style="border-bottom-style: solid; border-width: 1px;
border-right-style: solid; border-left-style: solid">
<table width="100%">
<tr width="100%" height="390px">
<td style="border-right-style: solid; border-width: 1px" valign="top" class="style3">
<table width="100%">
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; color: Gray;
width: 100%; font-size: 15px">
General
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; padding-left: 10px;
font-size: 15px">
<a class="myclass" href="Default.aspx"><font color="black">Home</font></a>
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; color: Gray;
width: 100%; font-size: 15px">
Create Ads
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; padding-left: 10px;
font-size: 15px">
<a class="myclass" href="Bykes.aspx"><font color="black">Bikes</font></a>
<br />
<a class="myclass" href="Furnitures.aspx"><font color="black">Furniture</font></a>
<br />
<a class="myclass" href="Gadgets.aspx"><font color="black">Gadgets</font></a>
<br />
<a class="myclass" href="Housing.aspx"><font color="black">Housing</font></a>
<br />
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; color: Gray;
width: 100%; font-size: 15px">
View Ads
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; padding-left: 10px;
font-size: 15px">
<a class="myclass" href="BikesList.aspx"><font color="black">Bikes List</font></a>
<br />
<a class="myclass" href="FurnitureList.aspx"><font color="black">Furniture List</font></a>
<br />
<a class="myclass" href="GadgetList.aspx"><font color="black">Gadgets List</font></a>
<br />
<a class="myclass" href="HousingList.aspx"><font color="black">Housing List</font></a>
</td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-width: 1px; font-weight: bold; padding-left: 10px;
font-size: 15px">
</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: center; font-size: 15px">
<a style="text-decoration: underline" href="EditorDelete.aspx"><font color="Red">Edit/Delete</font></a>
</td>
</tr>
</table>
</td>
<td width="85%" valign="top" style="padding-right: 10px; padding-left: 10px">
<table width="100%">
<tr width="100%">
<td width="100%" align="center" colspan="2">
<h3>
<span style="color: Lime; font-size: 140%">■</span> Edit or Delete your
advertisement for housing here
</h3>
</td>
</tr>
<tr style="width: 100%">
<td style="width: 18%">
<label>
Enter your USC email ID <span style="color: Red">*</span>
</label>
</td>
<td>
<asp:TextBox runat="server" ID="mailTxtBox" MaxLength="50" ForeColor="Blue"></asp:TextBox> <asp:Label
ID="mailErrorLabel" runat="server" Style="color: Red" Text=""></asp:Label>
</td>
</tr>
<tr align="center">
<td colspan="2">
<asp:Button ID="sendCode" runat="server" Text="Proceed" OnClick="sendCode_Click"
Enabled="false" />
</td>
</tr>
<tr style="width: 100%">
<td colspan="2">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<a href="#" style="display: none; visibility: hidden;" onclick="return false" id="dummyLink"
runat="server">dummy</a>
<asp:ModalPopupExtender ID="MyMPE" runat="server" TargetControlID="dummyLink" PopupControlID="PanelCode"
BehaviorID="MyMPE" BackgroundCssClass="modalBackground" CancelControlID="popCancel"
OnCancelScript="onCancelclick()">
</asp:ModalPopupExtender>
<asp:Panel ID="PanelCode" runat="server" Heigt="300px" Width="300px" Style="background-color: #FFCC00;
filter: alpha(opacity=80); opacity: 0.8; -webkit-border-radius: 20px; -moz-border-radius: 20px"
Height="215px" BorderColor="Black" BorderWidth="2px">
<center>
<br />
<asp:Label ID="veriText" Text="A one time verification code which is valid for today has been sent to you via email"
runat="server" Style="vertical-align: middle; color: Blue; font-weight: bold;
margin-left: 5px; margin-top: 40Px"></asp:Label>
<br />
<asp:Label ID="LblEnterCode" runat="server" Style="vertical-align: middle; color: Blue;
font-weight: bold; margin-left: 20px; margin-top: 40Px" Text="Please enter that code to proceed"></asp:Label>
<br />
<asp:Label ID="pop1ErrMsg" runat="server" Style="vertical-align: middle; color: #990000;
font-weight: bold; margin-left: 20px; margin-top: 40Px"></asp:Label>
<br />
<asp:TextBox ID="TxtCode" runat="server" CssClass="textbox1" Style="vertical-align: middle;"></asp:TextBox>
<br />
<br />
<asp:Button ID="BTN" runat="server" OnClick="BTN_Click" Text="OK" Enabled="false" />  <asp:Button
ID="popCancel" runat="server" Text="Cancel" Enabled="false" />
<span id="Span1" runat="server" class="error"></span>
<br />
<br />
</center>
</asp:Panel>
<table width="100%">
<tr>
<td align="center">
<asp:Label ID="descLabel3" runat="server" Style="color: Red; font-weight: bold" Text=""></asp:Label><br />
<asp:Label ID="expectedLabel" runat="server" Style="color: Red; font-weight: bold"
Text=""></asp:Label>
<asp:Label ID="success" runat="server" Style="color: Green; font-weight: bold" Text=""></asp:Label>
</td>
</tr>
</table>
<br />
<asp:Label ID="totalrecordIs" runat="server" Text="Total records :" Font-Bold="true"
Visible="false"></asp:Label> <asp:Label ID="totlReordslbl" ForeColor="Blue"
runat="server" Font-Bold="true" Visible="false"></asp:Label>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="id" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"
OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" AllowPaging="True"
OnPageIndexChanging="grdView_PageIndexChanging" Width="100%" BackColor="White"
BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px">
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<Columns>
<asp:CommandField HeaderText="Edit-Update" ShowEditButton="True">
<ControlStyle Width="90%" />
<FooterStyle Width="15%" />
<HeaderStyle Width="15%" />
<ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
</asp:CommandField>
<asp:BoundField DataField="id" HeaderText="ID" ReadOnly="True">
<ControlStyle Width="90%" />
<FooterStyle Width="5%" />
<HeaderStyle Width="5%" />
<ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="Lookingfor" HeaderText="Looking for" ReadOnly="True">
<ControlStyle Width="10%" />
<FooterStyle Width="10%" />
<HeaderStyle Width="10%" />
<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="descp" HeaderText="Description">
<ControlStyle Width="90%"></ControlStyle>
<FooterStyle Width="45%" />
<HeaderStyle Width="45%" />
<ItemStyle HorizontalAlign="Center" Width="45%"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="gender" ReadOnly="true" HeaderText="Looking for gender">
<FooterStyle Width="15%" />
<HeaderStyle Width="15%" />
<ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
</asp:BoundField>
<asp:CommandField HeaderText="Delete" ShowDeleteButton="True">
<ControlStyle Width="90%" />
<FooterStyle Width="10%" />
<HeaderStyle Width="10%" />
<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
</asp:CommandField>
</Columns>
<RowStyle BackColor="White" ForeColor="#330099" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" style="font-size: small">
<tr>
<td style="width: 30%" align="center">
<span style="color: #990000; font-size: 140%">■</span> Contact us : contact@trojanslist.com
| <span style="color: #990000; font-size: 140%">■</span> <a
href="TNC.aspx" class="myclass">Terms and conditions</a>
</td>
</tr>
<tr>
<td align="center" style="font-size: smaller">
<p>
Copyrights © 2011. All Rights Reserved.
</p>
</td>
</tr>
</table>
</form>
</body>
<script type="text/javascript" id="EnableBtn" language="javascript">
//window.history.forward(1);
document.forms[0].sendCode.disabled = false;
document.forms[0].BTN.disabled = false;
document.forms[0].popCancel.disabled = false;
</script>
</html>