-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_property_en.php
221 lines (172 loc) · 6.1 KB
/
view_property_en.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
<?php session_start();?>
<!DOCTYPE HTML><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0 minimal-ui"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Amlacc</title>
<link rel="stylesheet" href="css2/style.css">
<link href="styles/style.css" rel="stylesheet" type="text/css">
<link href="styles/framework.css" rel="stylesheet" type="text/css">
<link href="styles/owl.theme.css" rel="stylesheet" type="text/css">
<link href="styles/swipebox.css" rel="stylesheet" type="text/css">
<link href="styles/font-awesome.css" rel="stylesheet" type="text/css">
<link href="styles/animate.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jqueryui.js"></script>
<script type="text/javascript" src="scripts/framework.plugins.js"></script>
<script type="text/javascript" src="scripts/custom.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!--[if !IE]><!-->
<style>
/*
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
thead tr {
position: absolute;
top: -9999px;
left: -7777px;
}
tr { border: 1px solid #ccc; }
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 85%;
padding-right: 5px;
white-space: nowrap;
}
/*
Label the data
*/
td:nth-of-type(1):before { content: "Sr #"; }
td:nth-of-type(2):before { content: "Property Name"; }
td:nth-of-type(3):before { content: "Property Type"; }
td:nth-of-type(4):before { content: "Year Build"; }
td:nth-of-type(5):before { content: "Block No"; }
td:nth-of-type(6):before { content: "About Him"; }
td:nth-of-type(7):before { content: "Owner Name"; }
td:nth-of-type(8):before { content: "Instrument #"; }
td:nth-of-type(9):before { content: "No of Units"; }
}
}
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
body {
padding: 0;
margin: 0;
width: 420px; }
}
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
body {
width: 495px;
}
}
</style>
</head>
<body>
<div id="preloader">
<div id="status">
<!-- <p class="center-text">
يرجى الانتظار.....
<em>جاري عرض البيانات...</em>
</p>-->
<p class="center-text">
Loading the content...
<em>Loading depends on your connection speed!</em>
</p>
</div>
</div>
<?php include("language_selector.php")?>
<!--<div class="header">
<a href="#" class="main-logo"></a>
<div class="header-controls">
<a href="#" class="open-more"><i class="fa fa-envelope"></i></a>
<a href="#" class="open-slide"><i class="fa fa-star"></i></a>
<a href="#" class="open-menu"><i class="fa fa-navicon"></i></a>
</div>-->
<div class="all-elements">
<div class="snap-drawers">
<!-- Left Sidebar -->
<div class="snap-drawer snap-drawer-left">
<div class="sidebar-divider" align="center" >
Welcome
</div>
<ul class="sidebar-navigation">
<li><a href="en_welcome.php"><i class="fa fa-home"></i>Back to Main Page<i class="fa fa-caret-right"></i></a></li>
</ul>
<?php include("slider.php")?>
</div>
</div>
</div>
</div>
<!-- Page Content-->
<div id="content" class="snap-content">
<div style="margin-top:30px; padding-top:10px; text-align:center; height:40px; background:#27B2B9;Color:#000000;">Property Details </div>
<div style="padding-left:20px;padding-top: 10px;height: 20px;">
<input type="text" id="search" placeholder="Type to search..." />
</div>
<div style="margin-top:5px; padding-top:10px; text-align:center; height:1px; background:#27B2B9;Color:#000000;"></div>
<div id="page-wrap">
<table id="table">
<thead>
</thead>
<tbody>
<?php
$var = $_SESSION['Id'];
$propertyDetail =propertyDetail($var);
for($i=0; $i<count($propertyDetail); $i++)
{
?>
<tr>
<td><?php echo $i+1;?></td>
<td><?php echo $propertyDetail[$i]['propty_name'];?></td>
<td><?php echo propertytype($propertyDetail[$i]['property_type']); ?></td>
<td><?php echo $propertyDetail[$i]['year_build'];?></td>
<td><?php echo $propertyDetail[$i]['block_no'];?></td>
<td><?php echo $propertyDetail[$i]['about_him'];?></td>
<td><?php echo clientDetail($propertyDetail[$i]['owner_id']);?></td>
<td><?php echo $propertyDetail[$i]['inst_no'];?></td>
<td><?php echo viewpropertyUnit($propertyDetail[$i]['owner_id'],$propertyDetail[$i]['id'],$var);?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</div>
<script type="text/javascript">
$("#search").keyup(function(){
_this = this;
// Show only matching TR, hide rest of them
$.each($("#table tbody tr"), function() {
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) === -1)
$(this).hide();
else
$(this).show();
});
});
</script>
</body>