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: 1200px; }
input { float: right; width: 250px; }
</style>
<head>
<!-- META -->
<title>New Application</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/kickstart.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<!-- Javascript -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/kickstart.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('div.toshow').fadeIn(200);
//$('div.toshow').show(2000);
//$('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="register_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">
<form>
<div class="row">
<div class="col-md-6">
<h1>New Application</h1>
<hr style="height: 1px; color: #008000; width: 100% " />
<h4 style="color: #fff">Account Info</h4><br>
<p style="color: #fff; font-size: 15px">
Username: <input type="text" id="userName" style="color:#000"></input><br><br>
Password: <input type="text" id="password" style="color:#000"></input><br><br>
Confirm Password: <input type="text" id="confirmedPassword" style="color:#000"></input><br><br>
Will Post Jobs: <input type="checkbox" id="isJobPoster" style="color:#000"></input><br><br>
</p>
<hr style="height: 1px; color: #008000; width: 100% " />
<h4 style="color: #fff">Personal Info</h4><br>
<p style="color: #fff; font-size: 15px">
First Name: <input type="text" id="firstName" style="color:#000"></input><br><br>
Last Name: <input type="text" id="lastName" style="color:#000"></input><br><br>
</p>
<hr style="height: 1px; color: #008000; width: 100% " />
<h4 style="color: #fff">Contact Info</h4><br>
<p style="color: #fff; font-size: 15px">
Street Address: <input type="text" id="companyAddress" style="color:#000"></input><br><br>
City: <input type="text" id="City" style="color:#000"></input><br><br>
State: <input type="text" id="State" style="color:#000"></input><br><br>
Zip: <input type="number" id="Zip" style="color:#000"></input><br><br>
Email: <input type="email" id="Email" style="color:#000"></input><br><br>
Phone: <input type="tel" id="Phone" style="color:#000"></input><br><br>
Fax: <input type="tel" id="Fax" style="color:#000"></input><br><br>
</p>
</div>
<div class="col-md-6">
<br><br>
<hr style="height: 1px; color: #008000; width: 100% " />
<h4 style="color: #fff">Required for Job Posters</h4><br>
<p style="color: #fff; font-size: 15px">
Company Name: <input type="text" id="companyName" style="color:#000"></input><br><br>
Company Address: <input type="text" id="companyAddress" style="color:#000"></input><br><br>
City: <input type="text" id="CompanyCity" style="color:#000"></input><br><br>
State: <input type="text" id="CompanyState" style="color:#000"></input><br><br>
Zip: <input type="number" id="CompanyZip" style="color:#000"></input><br><br>
Email: <input type="email" id="CompanyEmail" style="color:#000"></input><br><br>
Phone: <input type="tel" id="CompanyPhone" style="color:#000"></input><br><br>
Fax: <input type="tel" id="CompanyFax" style="color:#000"></input><br><br>
Cell: <input type="tel" id="CompanyCell" style="color:#000"></input><br><br>
Website: <input type="text" id="CompanyWebsite" style="color:#000"></input><br><br>
Will Post Resume: <input type="checkbox" id="isResumePoster"></input><br><br>
</p>
</div>
</div>
<button class="medium blue" onclick="register()"><i class="fa fa-star"></i> Register</button>
<!--
<button type="button" onclick="register()">Register</button>--><br><br>
<form>
</div>
</div>
<div class="learn-more">
<div class="container">
<div class="row">
</div>
</div>
</div>
</div>
<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 herf="">Blog Index</a>
</p>
</nav>
<p>Copyright &#169 2015 UConn</p>
</footer>
</div>
</body>
<head>
<!-- JQuery Reference -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script> <!-- Javascript functions here -->
var q = "";
function queryForm(){
$.ajax({
url: "query.php",
data: {
query: q
},
type: "POST",
dataType: "html",
success: function (data) {
document.getElementById("tableContent").innerHTML = data;
},
error: function (xhr, status) {
alert("There was a problem with the request!");
}
});
}
function register(){
var lastName = document.getElementById("lastName").value;
q = "SELECT DISTINCT UFName, ULName, company.CName, Job.JobID, JListDate, jobtitle FROM seeker, user, company, job, applies "
+ "WHERE seeker.UName = user.UName "
+ "AND job.CName = company.CName "
+ "AND applies.UName = seeker.UName "
+ "AND applies.JobID = job.JobID "
+ "AND user.ULName='" + lastName + "';";
queryForm();
}
</script>
</head>
</html>