-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharea.php
245 lines (229 loc) · 7.63 KB
/
area.php
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
<?php
include("header.php"); ?>
<?php /* FOR GREYBOX USE
<script type="text/javascript" src="javascript/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="greybox/gb_styles.css" media="screen" />
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=greybox]').greybox({
loading_image : 'greybox/indicator.gif',
close_image : 'greybox/g_close.gif'
})
})
</script>
<link type="text/css" href="themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript" src="ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="ui/jquery.ui.accordion.js"></script>
<link type="text/css" href="demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
$("#accordion").accordion();
});
</script>*/?>
<style type="text/css">
<!--
@import url("css/template.css");
.style3 {color: #000000}
.style15 {font-size: 18px}
-->
</style>
<div id="content">
<div class="clear">
<!--right-->
<!--left-->
<div id="left">
<div class="left-indent"><div class="clear">
<div class="wrapper-box module_menu"><div class="border-top"><div class="border-bottom">
<div class="border-left"><div class="border-right"><div class="corner-top-left">
<div class="corner-top-right"><div class="corner-bottom-left">
<div class="corner-bottom-right clear">
<div class="wrapper-box-indent">
<div class="box-title">
<div class="border1-top">
<div class="border1-bottom">
<div class="border1-left">
<div class="border1-right">
<div class="corner1-top-left">
<div class="corner1-top-right">
<div class="corner1-bottom-left">
<div class="corner1-bottom-right clear">
<h3>Main menu</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="main-box">
<div class="clear">
<ul class="menu">
<li id="current" class="active item1"> <a href=""><span>Home</span></a></li>
<li class="item2"><a href=""><span>Get Crime Alert </span></a></li>
<li class="item59"><a href="">Register Your FIR </a></li>
<li class="item60"><a href="">Police Station </a></li>
<li class="item61"><a href=""><span>Contact Us</span></a></li>
<li class="item62"><a href=""><span>Search</span></a></li>
<li class="item63"><a href=""><span>What's New? </span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrapper-box module s1">
<div class="border-top">
<div class="border-bottom">
<div class="border-left">
<div class="border-right">
<div class="corner-top-left">
<div class="corner-top-right">
<div class="corner-bottom-left">
<div class="corner-bottom-right clear">
<div class="wrapper-box-indent">
<div class="box-title">
<div class="border1-top">
<div class="border1-bottom">
<div class="border1-left">
<div class="border1-right">
<div class="corner1-top-left">
<div class="corner1-top-right">
<div class="corner1-bottom-left">
<div class="corner1-bottom-right clear">
<h3>Popular</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="main-box">
<div class="clear">
<ul class="mostread s1">
<li class="mostread s1"><a href="" class="mostread s1">FIR Registration Guidelines</a></li>
<li class="mostread s1"><a href="" class="mostread s1">Joomla! Overview</a></li>
<li class="mostread s1"><a href="" class="mostread s1">Extensions</a></li>
<li class="mostread s1"><a href="" class="mostread s1">What's New in 1.5?</a></li>
<li class="mostread s1"><a href="" class="mostread s1">Welcome to Joomla!</a></li>
<li class="mostread s1"><a href="" class="mostread s1">Content Layouts</a></li>
<li class="mostread s1"><a href="5" class="mostread s1">Joomla! Features</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="container" class="wrapper-container">
<div class="corner-top-left">
<div class="corner-top-right">
<div class="corner-bottom-left">
<div class="corner-bottom-right">
<html>
<body>
<form action="chkarea.php" method="post" enctype="multipart/form-data" name="form1">
<div>
<h2> </h2>
</div>
<p class="componentheading"><em>Add Area Details: </em></p>
<table width="70%" border="0" bgcolor="#FFFFFF">
<tr>
<td colspan="6" height="79" align="left" valign="middle" class="rowBorder">
<img src="images/view.png" align="absbottom"/><span class="highlight"> Add Area</span></td><td width="1%"></span><td width="1%"></td>
</tr>
<tr>
<td height="20" colspan="4"></td>
</tr>
<tr>
<td height="37"> </td>
<td class="formField">City Name: </td>
<td ><span class="style15 style3">
<select name="city" size="1" id="city" >
<option>-----select-----</option>
<?php
$cityQuery = "select *from mstr_city";
$rsCity = mysql_query($cityQuery);
while($rowCity = mysql_fetch_array($rsCity))
{
?>
<option value="<?php echo $rowCity['city_id']?>"><?php echo $rowCity['city_name']?></option>
<?php }?>
<script type="text/javascript">
var f1 = new LiveValidation('city');
f1.add(Validate.Presence,{failureMessage: "Please enter city name"});
</script>
</select>
</span></td>
<td> </td>
</tr>
<tr>
<td width="1%"> </td>
<td width="27%" class="formField"><span class="style4 tableHeading style2">Area Name</span>:</td>
<td width="23%" ><input type="text" id="area" name="area" />
<script type="text/javascript">
var f1 = new LiveValidation('area');
f1.add(Validate.Presence,{failureMessage: "\n It cannot be empty"});
f1.add(Validate.Format,{pattern: /^[a-zA-Z\s]+$/i ,failureMessage: "It allows only characters"});
f1.add(Validate.Format,{pattern: /^[a-zA-Z][a-zA-Z\s]{0,}$/,failureMessage: "Invalid Area Full Name"});
</script> </td>
<td width="45%"><font color="#FF0000"><div id="messageSecond"></div></font></td>
</tr>
<tr>
<td width="1%"> </td>
<td width="27%" class="formField"> </td>
<td width="23%" ><script type="text/javascript">
var f1 = new LiveValidation('txtDesignationShortName');
f1.add(Validate.Presence,{failureMessage: "It cannot be empty"});
f1.add(Validate.Format,{pattern: /^[a-zA-Z\s]+$/i ,failureMessage: "It allows only characters"});
f1.add(Validate.Format,{pattern: /^[a-zA-Z][a-zA-Z\s]{0,}$/,failureMessage: "Invalid Designation Shortname"});
</script> </td>
<td width="45%"> </td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
<tr>
<td width="1%"> </td>
<td width="27%"></td>
<td colspan="2" ><input name="next" type="submit" class="header-button" id="next" value="Save"/></td>
</tr>
<tr>
<td height="5" colspan="4"></td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
<!--footer-->
<div class="footer clear">
<span>Business © 2009 | <a href="#">Privacy Policy</a></span>
<a href="http://www.joomla.org/">Joomla!</a> is Free Software
released under the GNU/GPL License. <!--{%FOOTER_LINK} -->
</div>
<!--osc3.template-help.com -->
</body></html>