-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
418 lines (355 loc) · 16.2 KB
/
home.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
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<?php
require 'session.php';
init();
company_restricted();
aunthenticate();
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="img/log3.png"/>
<meta name="viewport" content="width=1024">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous">
<link href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="home/css/loader.css">
<link rel ="stylesheet" href="home/css/services.css" type="text/css">
<link href="home/css/myshops.css" rel="stylesheet">
<link href="./menu_files/style-24.css" rel="stylesheet">
<link href="bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet">
<link href="home/css/animate.css" rel="stylesheet">
<script src="home/js/jquery-2.1.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="home/js/constants.js"></script>
<script type="text/javascript" src="home/js/navigation-drawer.js"></script>
<script type="text/javascript" src="home/js/company_home.js"></script>
<script type="text/javascript" src="home/js/like.js"></script>
<script type="text/javascript" src="home/js/broadcasts.js"></script>
<script type="text/javascript" src="home/js/friends.js"></script>
<script type="text/javascript" src="home/js/comment.js"></script>
<script type="text/javascript" src="home/js/companies.js"></script>
<script type="text/javascript" src="home/js/main_init.js"></script>
<script src="bootstrap3-editable/js/bootstrap-editable.js"></script>
<script type="text/javascript" src="home/js/bootstrap-notify.min.js"></script>
<script type="text/javascript" src="home/js/croppic.js"></script>
</head>
<!-- <body onload="main_init()" style="background-image:url(https://s3.eu-central-1.amazonaws.com/userinterface-scripts/Scripts/img/cloud.png);background-size:cover;background-repeat:no-repeat;background-attachment:fixed;">> -->
<body onload="init_company()" style="background-color:#F2F2F2;overflow-y:auto;">
<div id="nav" class="navbar-fixed-top">
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
<div class="col-sm-2">
<a href="home.php"><img src="img/log3.png" height="50px" width="50px"/></a>
</div>
</div>
<div class="col-sm-offset-1 col-sm-4">
<div class="input-group" style="margin-top:3%;width:150%;">
<input type="text" class="form-control" placeholder="Search for Broadcasts in Mr Price">
<span class="input-group-btn">
<button class="btn btn-default" type="button">search</button>
</span>
</div><!-- /input-group -->
</div>
<div id="nav_content" style="margin-right:3%;">
<ul class="nav navbar-nav navbar-right style_font" >
<li class="home" style="color:white;font-weight:900;font-size:150%;margin-top:15px;"><i class="icon ion-ios-home-outline" style="font-size:30px;color:#004A6E"><label style="font-size:13px;font-weight:400;"> Home </label></i></li>
<!-- <li style="color:white;font-weight:900;font-size:150%;margin-top:15px;"><span class="glyphicon glyphicon-bell" ><label style="font-size:13px;"> Notifications </label></span></li> -->
<li style="cursor:pointer;"><span class="input-group" style="color:white;font-weight:900;font-size:150%;margin-top:15px;">
<i class="icon ion-ios-locked-outline dropdown-toggle" id="account" data-toggle="dropdown" aria-expanded="true" style="font-size:30px;color:#004A6E"><label style="font-size:13px;font-weight:400;"> Account</label></i>
<ul class="dropdown-menu" role="menu" aria-labelledby="account">
<li role="presentation" class="dropdown-header"><center>Chaddy</center></li>
<li role="presentation" class="divider"></li>
<li role="presentation" data-toggle="modal" data-target="#edit_ac"><a role="menuitem" tabindex="-1" style="text-align:left;"><span class="glyphicon glyphicon-cog"></span> settings</a></li>
<li role="presentation"><a href="logout.php" role="menuitem" tabindex="-1" style="text-align:left;"><span class="glyphicon glyphicon-off"></span> logout</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" style="text-align:left;"><span class="glyphicon glyphicon-info-sign"></span> about us</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" style="text-align:left;"><span class="glyphicon glyphicon-question-sign"></span> help</a></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="wall" class="wall" style="background-image:url('img/bk-freeze-ga.jpg');z-index:1;position:absolute;height:320px;background-size: cover;">
</div>
<span data-toggle="tooltip" title="change wallpaper" class="glyphicon glyphicon-edit pictures" style="cursor:pointer; position: absolute; margin-left: 15px; margin-top: 100px;z-index: 2; font-size: 18px; color: white;"></span>
<input class="filechooser" type="file" id="wall-pic" name="pic1" style="display:none" onchange="change_wall(this,'wall');" accept="image/*"/>
<div style="cursor:pointer; background-color:white;height:170px;width:170px;border-radius:4px;margin-top:180px;position:absolute;margin-left:100px;border-color:white;border-width:5px;border-style:solid;z-index:2;">
<img data-toggle="tooltip" title="change profile picture" id="profile-pic" class="pictures" src="img/companyprof.png" height="160" width="160" accept="image/gif, image/jpeg, image/png" />
<input class="filechooser" type="file" id="prof-pic" name="pic1" style="display:none" onchange="readURL2(this,'profile-pic');" accept="image/*" />
</div>
<div style="margin-top:155px;position:absolute;margin-left:350px;z-index:2;">
<h3 id="company_name" data-type="text" data-pk="1" data-title="Enter Company Name" style="color: #F2F2F2 "></h3>
<h5 id="categories" data-type="text" data-pk="1" data-title="Enter Categories" style="color: #F2F2F2 " ><span class="glyphicon glyphicon-tag"></span></h5>
<h5 id="email" data-type="text" data-pk="1" data-title="Enter email address" style="color: #F2F2F2 " ><span class="glyphicon glyphicon-envelope"></span></h5>
<h5 id="contact" data-type="text" data-pk="1" data-title="Enter telephone number" style="color: #F2F2F2 "><span class="glyphicon glyphicon-earphone"></span></h5>
<h5 id="website" data-type="text" data-pk="1" data-title="Enter website url" style="color: #F2F2F2 "><span class=" glyphicon glyphicon-link"></span></h5>
</div>
<div id="header" style="height:50px;width:100%;position:absolute;z-index:1;margin-top:320px;background-color:white;">
<div >
<div class="col-sm-offset-2 col-sm-2" align="right">
<center class="tab" ><h4 data-toggle="tab" href="#about">About us</h4></center>
</div>
<div class="col-sm-2">
<center class="active_tab tab active"><h4 data-toggle="tab" href="#broadcasts">Broadcasts</h4></center>
</div>
<div class="col-sm-2">
<center class="tab"><h4 data-toggle="tab" href="#services">Services</h4> </center>
</div>
<div class="col-sm-2">
<center class="tab"><h4>Online Shop</h4> </center>
</div>
<div class="col-sm-2">
<button class="btn btn-md" style="margin-top:3px;background-color: #004A6E;color:white;width: 60%"><span id="num_followers" style="margin-top:19px;margin-right:10px; background-color:white;color: #000" class="badge"></span>Following</button>
</div>
</div>
</div>
<br><br>
<?php
echo nav_drawer_company();
echo create_ad();
echo edit_account_modal();
echo ad_detail();
echo post_broadcast();
?>
<div class="tab-content">
<div id="about" class="tab-pane fade" style="margin-top:350px;">
<div class="col-sm-3">
<div class="panel-group category-products" id="accordian" style="margin-top: 7px;"><!--category-productsr-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a >Branch 1</a></h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a >Branch 2</a></h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a >Branch 3</a></h4>
</div>
</div>
</div><!--/category- products-->
</div>
<div class="col-offset-1 col-sm-8">
<div style="background-color:white;width:600px;border-radius: 2px;">
<h4 align="center">who we are?</h4>
<hr>
<p>We are a very good company serving people throught the country</p>
</div>
<div style="background-color:white;width:600px;border-radius: 2px;">
<h4 align="center">Category</h4>
<hr>
<p>clothing store </p>
</div>
<div style="background-color:white;width:600px;border-radius: 2px;">
<h4 align="center">Hours</h4>
<hr>
<p> Monday <i>08:00 - 17:00</i> </p>
<p> Tuesday <i>08:00 - 17:00</i> </p>
<p> Wednesday <i>08:00 - 17:00</i> </p>
<p> Thursday <i>08:00 - 17:00</i> </p>
<p> Friday <i>08:00 - 16:00</i> </p>
</div>
<div style="background-color:white;width:600px;border-radius: 2px;">
<h4 align="center">Links</h4>
<hr>
<a href="https://www.mrp.com">www.mrp.com</a>
</div>
<div style="background-color:white;width:600px;border-radius: 2px;">
<h4 align="center">Address</h4>
<hr>
<p>5 Hope road, Rosebank, Cape Town, 7700</p>
</div>
</div>
</div>
<div id="broadcasts" class="tab-pane fade in active" style="width:100%;margin-top:290px;position:absolute;overflow-y:auto;">
<div style="margin-top:5%;">
<div class="col-sm-4" id="left" style="width:400px; height:10px;">
</div>
<div class="col-sm-5" >
<?php
echo post_interface();
?>
<br>
<div id="loader" class="loader loader2 col-sm-offset-3" style="margin-top:40%">
<center>
<div class="throbber-loader">
</div>
</center>
</div>
<div id="center-main">
</div>
</div>
<div class="col-sm-3" id="right">
</div>
</div>
</div>
<div id="services" class="tab-pane fade" style="width:100%;margin-top:290px;position:absolute;overflow-y:auto;">
<div style="margin-top:5%;">
<div class="ui-249">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-ils bg-red"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Web Designing</a></h3>
<!-- Para -->
<p>this is our first service</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-desktop bg-green"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Graphic Designing</a></h3>
<!-- Para -->
<p>our second servics</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-cloud bg-lblue"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>PHP Scripts</a></h3>
<!-- Para -->
<p>We love our services</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a ><i class="fa fa-gift bg-blue"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Java Apps</a></h3>
<!-- Para -->
<p>we love our services</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-code bg-orange"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>iOS Apps</a></h3>
<!-- Para -->
<p>our services are too good please</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-bug bg-yellow"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Android Apps</a></h3>
<!-- Para -->
<p>you will definitely love our services</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-bullhorn bg-rose"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Game Engine</a></h3>
<!-- Para -->
<p>we have perfect services</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<!-- Item -->
<div class="item">
<!-- Icon -->
<div class="icon">
<!-- Icon -->
<a><i class="fa fa-automobile bg-purple"></i></a>
</div>
<!-- Content -->
<div class="details">
<!-- Heading -->
<h3><a>Web Development</a></h3>
<!-- Para -->
<p>The best service you will ever see in your lifetime</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo nav_drawer_company();
echo create_ad();
echo edit_account_modal();
echo ad_detail();
echo post_broadcast();
?>
</body>
<script>
$(document).ready(function(){
$(".tab").click(function(){
$(".tab").removeClass("active_tab");
$(this).addClass("active_tab");
});
});
</script>
</html>