-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetail.php
More file actions
132 lines (113 loc) · 3.87 KB
/
Copy pathdetail.php
File metadata and controls
132 lines (113 loc) · 3.87 KB
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
<?php
require("includes/db.php");
if(isset($_GET["id"])) {
if(!empty($_GET["id"])) {
$id = $_GET["id"];
$sql = "SELECT * FROM job WHERE id = ".$id;
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) > 0 ) {
$row = mysqli_fetch_assoc($result);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php echo $row['title']; ?> | bJob</title>
<link rel="icon" href="img/icon.png" type="image/png" sizes="16x16">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">bJobs</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li><a href="jobs.php">JOBS</a></li>
<li><a href="categories.php">CATEGORIES</a></li>
<li class="active"><a href="about.php">ABOUT</a></li>
<li><a href="contact.php">CONTACT</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="login.php">LOGIN</a></li>
<li><a href="signup.php">SIGNUP</a></li>
</ul>
</div>
</div>
</nav>
<section>
<div class="container">
<br>
<h1><?php echo $row['title']; ?></h1>
<hr>
<ul class="breadcrumb">
<li><a href="index.php">HOME</a></li>
<li><a href="jobs.php">JOBS</a></li>
<li><a href="jobs.php?category=<?php echo $row['category']; ?>"><?php echo $row['category']; ?></a></li>
<li class="active"><?php echo $row['title']; ?></li>
</ul>
</div>
</section>
<section class="detail">
<div class="container">
<div class="col-sm-8 detail-desc">
<h2><?php echo $row['company']; ?></h2>
<a href="<?php echo $row['companyUrl']; ?>"><?php echo $row['companyUrl']; ?></a>
<hr>
<p><?php echo htmlspecialchars_decode($row['des']); ?></p>
<h4><b>Job Requirement:</b></h4>
<p><?php echo htmlspecialchars_decode($row['req']); ?></p>
<br>
</div>
<div class="col-sm-4">
<h2>Overview</h2>
<hr>
<div class="overview-box">
<p>
<i class="fa fa-map-marker"></i> <b>Location:</b> <?php echo $row['location']; ?>
<br><br>
<i class="fa fa-user"></i> <b>Job Title:</b> <?php echo $row['title']; ?>
<br><br>
<i class="fa fa-money"></i> <b>Salary:</b> <?php echo $row['salary']; ?>
<br><br>
<i class="fa fa-calendar"></i> <b>Last Date:</b> <?php echo $row['ldate']; ?>
<br><br>
</p>
<a href="<?php echo $row['applyUrl']; ?>" class="btn btn-block">Apply Job</a>
</div>
</div>
<br>
</div>
</section>
<?php
} else {
echo "<h3>Job not found</h3>";
}
mysqli_close($conn);
}
}
?>
<footer class="container-fluid text-center">
<h4>Follow Us</h4>
<a href="#" title="Follow in Linkedin"><i class="fa fa-linkedin social-box in-bg-shade"></i></a>
<a href="#" title="Connect in Facebook"><i class="fa fa-facebook-f social-box fb-bg-shade"></i></a>
<a href="#" title="Follow on Twitter"><i class="fa fa-twitter social-box tw-bg-shade"></i></a>
<a href="#" title="Subscribe in Youtube"><i class="fa fa-youtube social-box yt-bg-shade"></i></a>
<a href="#" title="See Us on Pinterest"><i class="fa fa-pinterest social-box pn-bg-shade"></i></a>
<br>
© Copyright 2020 by <a href="about.php" class="copy">Basar's Team.</a> All Rights Reserved.
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jobColor.js"></script>
</body>
</html>