-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader2.php
212 lines (184 loc) · 7.92 KB
/
header2.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
<?php
session_start();
include 'admin/json/settings.php';
$assets=$base_url."assets/";
if(basename($_SERVER['REQUEST_URI'])=='notification.php')
{
if(isset($_SESSION['user_id']))
{
$obj2 = new commonFunctions();
$dbh2 = $obj2->dbh;$k=0;
$query2 = $dbh2->prepare("update pig_notification set status=1 where `user_id`='" .$_SESSION['user_id']. "' and status=0");
$query2->execute();
}
}
?>
<!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>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Property Pig - Property Investment Group</title>
<!-------Bootstrap Plugin---------->
<link rel="stylesheet" href="<?php echo $assets; ?>css/bootstrap.min.css" />
<!-------UI Developers Costimised Css Tool------>
<link rel="stylesheet" href="<?php echo $assets; ?>css/break_bs_v_1_2.css" />
<!------- font awsome / font css ------>
<link rel="stylesheet" href="<?php echo $assets; ?>css/font-awesome.min.css" />
<link href="https://fonts.googleapis.com/css?family=Nunito:400,700,900" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhaina" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oxygen:700" rel="stylesheet"/>
<!------Styles css-------->
<link rel="stylesheet" href="<?php echo $assets; ?>css/style_property_pig.css" />
<link rel="stylesheet" href="<?php echo $assets; ?>css/custom.css" />
<style>
#wait{overflow-x: hidden;width: 100%;min-height: 2000px;background-color: rgba(0, 0, 0, 0.29);z-index: 9998;position: absolute;}
#wait img{padding-left: 43%;padding-top: 20%;}
/*.home-icon-holder.active { background-color: #3a0256;}*/
.topnav{
font-family: Arial, Helvetica, sans-serif;
font-size:15px;
font-weight:bold;
color:#fff;
}
.topnav:hover{
color:#f9e400;
}
.topnav-active{
color:#f9e400 !important;
}
</style>
</head>
<body>
<div id="wait" style="display: none;"><img src="gif.gif"></div>
<div class="ndiv page-holder">
<!-----header section---->
<div class="ndiv header-section">
<div class="ndiv primary-center-holder">
<div class="ndiv primary-center-in">
<a href="<?php echo $base_url; ?>">
<div class="ndiv logo-holder">
<img class="imgres logoclass" src="<?php echo $assets; ?>image/logo.png" alt="property pig logo" />
</div>
</a>
<div class="ndiv top-menu-holder">
<ul class="menu-ul top-menu">
<li class="yello-menu" style="visibility: hidden;">
Start Posting
</li>
<?php
$set_url='';
if(isset($_SESSION['user_id']))
{
$set_url ='dashboard.php';
}
?>
<li class="home-icon-holder">
<a href="<?php echo $base_url.$set_url; ?>">
<?php
if(!isset($_SESSION['user_id']))
{
?>
<?php
}
else
{
if(basename($_SERVER['PHP_SELF'])=="dashboard.php")
{
?>
<?php
}
else
{
?>
<?php
}
}
?>
</a>
</li>
<?php
if(isset($_SESSION['user_id']))
{
$obj2 = new commonFunctions();
$user_id=$_SESSION['user_id'];
$dbh2 = $obj2->dbh;
$query2 = $dbh2->prepare("select count(id) as count from pig_notification where `user_id`=:user_id and status=0");
$query2->bindParam(":user_id",$user_id,PDO::PARAM_INT);
$query2->execute();
if ($query2->rowCount() > 0) {
$rows2 = $query2->fetch(PDO::FETCH_ASSOC);
if($rows2['count']!=0)
{
$not_count= $rows2['count'];
}
else
{
$not_count='';
}
}
else
{
$not_count='';
}
?>
<li class="already-member" style="color:#FFF;">
<?php
if(basename($_SERVER['PHP_SELF'])=="profile.php")
{
?>
<?php
}
else
{
?>
<?php
}
?>
</li>
<?php
if(basename($_SERVER['PHP_SELF'])=="notification.php")
{
?>
</span>
<?php
}
else
{
?>
</span>
<?php
}
?>
</a>
</li>
<li class="already-member" style="color:#fff;">
<a class="topnav" href="logout.php">Signout</a>
</li>
<?php } else{
?>
<li class="already-member">
Already Register? <button id="login">Login</button>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
<!----/header section----->
<!----------popup--------->
<div class="ndiv popup-holder">
<div class="ndiv popup-center"><!---------sst the width of popup panel------->
<div class="ndiv popup-in">
<div class="ndiv popup-single sample1" id="target-id"><!--for call pop up use the functiomn $"target-id").popup('closeit');-->
<p class="popup-header"></p><!------popup header----->
<p class="popup-message"></p><!------popup message----->
<div class="popupbuttonholder">
<button class="popup-button close-it">ok</button>
</div>
</div>
</div>
</div>
</div>
<!----------popup--------->