Permalink
Cannot retrieve contributors at this time
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?
340CTResit/result.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73 lines (65 sloc)
1.5 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Movie Theatres Search</title> | |
<link href="css/style.css" rel="stylesheet" type="text/css" /> | |
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | |
<script type="text/javascript" src="js/jquery.js" ></script> | |
<script type="text/javascript"> | |
$(document).ready(function() | |
{ | |
$('.search').keyup(function() | |
{ | |
var location =$(this).val(); | |
var dataString = 'location='+ location; | |
if(location=='') | |
{ | |
$('#display').hide(); | |
} | |
else | |
{ | |
$.ajax({ | |
type: "POST", | |
url: "search.php", | |
data: dataString, | |
cache: false, | |
success: function(html) | |
{ | |
$("#display").html(html).show(); | |
} | |
}); | |
} | |
return false; | |
}); | |
$("#search_result").live("click",function() | |
{ | |
var username=$(this).html(); | |
$(".search").val(username); | |
$("#display").hide(); | |
}); | |
}) | |
</script> | |
</head> | |
<?php | |
include('db/db.php'); | |
//Database connection selection | |
$db=new db(); | |
$db->db_connect(); | |
$db->db_select(); | |
?> | |
<body> | |
<div class="bar"> | |
</div> | |
<img src="images/logo.png" style="margin-left:200px"> | |
<center> | |
<div class="Quote" style="margin-top:70px"> | |
<h1>Discover Great <b>Theatres</b> to Watch around you</h1> | |
</div> | |
</center> | |
<div style="margin-left:440px"> | |
<form class="form-wrapper cf"> | |
<input type="text" placeholder="Search Location..." name="location" class="search" required> | |
<button type="submit">Search</button> | |
<div id="display"></div> | |
</form> | |
</div> | |
<center><span style="color:white;">Note: please search by location name</span></center> | |
</body> |