forked from beisong7/career
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompanyprofile.php
78 lines (68 loc) · 2.98 KB
/
companyprofile.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
<?php
$active = null;
include_once ('config/director.php');
include_once('layout/header.php');
include_once ('core/alldata.php');
include_once ('core/functionality.php');
?>
<br>
<div class="">
<div class="">
<div class="banner text-center" >
<h2>Company Profiles <span id="cname"></span></h2>
</div>
</div>
<br>
<?php
$companys = getAll('company');
?>
<div style="min-height: 680px">
<div>
<div class="panel panel-default">
<div class="panel-body">
<div>
<?php foreach ($companys as $comp){ ?>
<?php
$cid = $comp['id'];
$jobs = getAll('jobs', "com_id = '$cid'");
?>
<li class="list-group-item hover">
<div class="mli">
<i class="fa fa-building"></i>
<span><?php echo $comp['cname']; ?>
<a href="view_company.php?id=<?php echo $comp['id']?>&table=company" class="btn btn-xs btn-primary">View</a>
</span>
<span class="pull-right">
<i class="fa fa-map-marker"></i> <span> <?php echo $comp['location'] ?> </span>
</span>
<hr>
<div class="row pbox">
<div class="col-md-6">
<i class="fa fa-info-circle"></i>
<?php if($comp['c_info']!== ''){
echo $comp['c_info'];}else{
echo "No Detail Available at the moment.";
} ?>
<hr>
<i class="fa fa-briefcase"></i>
<?php echo count($jobs) . " Job(s) publications";?>
</div>
<div class="col-md-6" id="odainfo">
<i class="fa fa-phone"></i><span> <?php echo $comp['phone'] ?></span>
<hr><i class="fa fa-envelope-o"></i>
<span> <?php echo $comp['email'] ?></span>
<hr>
</div>
</div>
</div>
</li>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include_once 'layout/footer.php';
?>