Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!-- Authored by Everyone? -->
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<style>
form { width: 400px; }
input[type=text] { float: right; width: 250px; }
body { font: 16px Helvetica, Sans-Serif; line-height: 24px; background: url(images/noise.jpg); }
</style>
<head>
<title>Job Search</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('div.toshow').fadeIn(2000);
//$('div.toshow').show(2200);
//$('div.toshow').slideDown("slow");
});
</script>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
<link rel="stylesheet" href="login_formatting.css">
</head>
<body>
<div class="nav">
<div class="container">
<ul class="pull-left">
<!-- <li><a href=<img><></li> -->
<li><a href="http://localhost/UConnJobSearch/index.php">UConnJobSearch</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/about.php">About</a></li>
</ul>
<ul class="pull-right">
<?php if ($_SESSION): ?>
<?php if ($_SESSION['type'] == "Admin"): ?>
<li><a href="http://localhost/UConnJobSearch/admin_dashboard.php">Dashboard</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/admin.php">My Account</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/logout.php">Log Out</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/faq.php">Help</a></li>
<?php elseif ($_SESSION['type'] == "Poster"): ?>
<li><a href="http://localhost/UConnJobSearch/posterDashboard.php">Dashboard</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/poster.php">My Account</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/logout.php">Log Out</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/faq.php">Help</a></li>
<?php elseif ($_SESSION['type'] == "Seeker"): ?>
<li><a href="http://localhost/UConnJobSearch/dashboard.php">Dashboard</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/seeker.php">My Account</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/logout.php">Log Out</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/faq.php">Help</a></li>
<?php endif; ?> <!-- not logged in -->
<?php else: header("location:error.php"); ?>
<li><a href="http://localhost/UConnJobSearch/register.php">Register</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/login.php">Log In</a></li>
<li>|</li>
<li><a href="http://localhost/UConnJobSearch/faq.php">Help</a></li>
<?php endif; ?>
</ul>
</div>
</div>
<div class="toshow" style="display:none;">
<div class="jumbotron">
<div class="container">
<h1>Job Search</h1>
<hr style="height: 1px; color: #008000; width: 100%"/>
<!--
<form name="form1" method="post" action="checklogin.php">
<p style="color: #fff; font-size: 15px">
Keywords: <input name="keywords" type="text" id="keywords"style="color:#000"></input><br><br>
Location: <input name="location" type="text" id="location"style="color:#000"></input><br><br>
</p>
<input type="submit" name="Submit" value="Search"></input><br><br>
</form>-->
</div>
<div id="page-wrap">
<div class="container">
<div class="row_12">
<div class="col_6">
<p style="color: #fff; font-size: 20px";>
Keywords: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<input type="text" id="keywords" style="color:#000"; size="35px" name="any_name">
</input>
<input type="submit" name="submit">
</input>
</form>
<!--
<input type="text" id="keywords" style="color:#000"; size="35px"></input>-->
<br><br>
</p>
</div>
<!--
<div class="col_6">
<p style="color: #fff; font-size: 20px">
Location: <input type="text" id="location" style="color:#000"; size="35px"></input><br><br>
</p>
</div>
<center>
<button class="medium blue" onclick="search()"><i class="fa fa-star"></i> Search</button>
</center>-->
</div>
</div>
</div>
</div>
<div class="learn-more">
<div class="container">
<div class="row">
<table>
<thead>
</thead>
<tbody>
<?php
if(isset($_POST['submit']))
{
$var = $_POST['any_name'];
#$UName = $_SESSION['myusername'];
$conn = mysqli_connect("localhost", "root", '', "databasesproject") or die(mysql_error());
#mysql_select_db("apploymentdevs");
#$results = mysql_query("SELECT * FROM job WHERE JobTitle='" . $var. "'");
$sql= "SELECT * FROM job WHERE JobTitle= '" . $var . "'";
$result = mysqli_query($conn, $sql);
echo "<table border='1'><tr><th> Job ID </th><th> Job Title </th><th> More Info </tr>";
while($row = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php print_r($row['JobID'])?></td>
<td><?php print_r($row['JobTitle'])?></td>
<td><a href="http://localhost/UConnJobSearch/jobs_post.php?jobid=<?php echo $row['JobID'];?>" style="display:block;">Click Here!&nbsp;</a></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<br>
<div class="credits">
<footer> <!-- site wide footer -->
<nav>
<p><a href="http://localhost/UConnJobSearch/credits.php">Credits</a>
<a>|</a>
<a href="">Terms of Service</a>
<a>|</a>
<a href="">Blog Index</a>
</p>
</nav>
<p>Copyright &#169 2015 UConn</p>
</footer>
</div>
</body>
</html>