-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forms done, Processing to be written
- Loading branch information
ramkumar-kr
committed
Dec 31, 2014
1 parent
5dd038e
commit 419e590
Showing
8 changed files
with
523 additions
and
40 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Get Train Number, Name, Starting and Ending Places | ||
SELECT t.number, t.name, s.Name, s2.Name FROM trains as t, Stations as s,Stations as s2 WHERE t.start_stn = s.St_id and t.end_stn = s2.St_id | ||
One way trip - Replace ** by required station Ids | ||
SELECT v.number,t.name,s.Name,v.Days,v.time,s2.Name,v2.Days,v2.time FROM visit as v, visit as v2,trains as t, Stations as s,Stations as s2 where v.St_id=** and v2.St_id=** and v.hop_index<v2.hop_index and v.number=v2.number and v.type=1 and v2.type=0 and t.number=v.number and s.St_id = v.St_id and s2.St_id = v2.St_id | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Get Train Number, Name, Starting and Ending Places | ||
SELECT t.number, t.name, s.Name, s2.Name FROM trains as t, Stations as s,Stations as s2 WHERE t.start_stn = s.St_id and t.end_stn = s2.St_id | ||
One way trip - Replace ** by required station Ids | ||
SELECT v.number,t.name,s.Name,v.Days,v.time,s2.Name,v2.Days,v2.time FROM visit as v, visit as v2,trains as t, Stations as s,Stations as s2 where v.St_id=** and v2.St_id=** and v.hop_index<v2.hop_index and v.number=v2.number and v.type=1 and v2.type=0 and t.number=v.number and s.St_id = v.St_id and s2.St_id = v2.St_id |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: ramu | ||
* Date: 31/12/14 | ||
* Time: 11:43 PM | ||
*/ | ||
$host="localhost"; | ||
$uname="root";//uname => username | ||
$pwd="";//pwd => password | ||
$dbname="trip_planner";//dbname => database name | ||
$connection = mysqli_connect($host,$uname,$pwd,$dbname); | ||
|
||
//check for errors during connection | ||
if(mysqli_connect_error($connection)) { | ||
echo "Failed to establish connection with database. Please try again or contact administrator."; | ||
exit(); | ||
} | ||
else{ | ||
//proceed to display options | ||
|
||
} | ||
?> | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Trip Planner</title> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link href = "bootstrap/css/bootstrap.min.css" rel="stylesheet"/> | ||
|
||
</head> | ||
<body> | ||
<!-- Navigation bar --> | ||
<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | ||
|
||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand " href=".">Trip Planner </a> | ||
</div> | ||
<div id="navbar" class="navbar-collapse collapse" aria-hidden="true"> | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href=".">Home</a></li> | ||
<li><a href="" data-toggle="modal" data-target="#about">About Developer</a></li> | ||
</ul> | ||
</div><!--/.nav-collapse --> | ||
</div> | ||
</nav> | ||
<!-- Navigation bar ends--> | ||
|
||
<!--Main Content --> | ||
<div class="container"> | ||
<div class="row"> | ||
</div> | ||
</div> | ||
<!-- Modal Window for info about me --> | ||
<div class="modal fade" aria-hidden="true" id="about" role="dialog"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button class="close" aria-hidden="true" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> </button> | ||
<h3 class="modal-title">About the developer</h3> | ||
|
||
</div> | ||
<div class="modal-body"> | ||
<div class="well"><h4 class="h4">Ram Kumar K R</h4> Information Science Branch, <br/> R V College of Engineering</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a role="button" href="mailto:[email protected]" class="btn btn-lg btn-info"><span class="glyphicon glyphicon-envelope"></span> Send a message</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Modal Window for info about me ends--> | ||
|
||
<!--jQuery--> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
|
||
<!-- Bootstrap Javascript files--> | ||
<script src="bootstrap/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: ramu | ||
* Date: 31/12/14 | ||
* Time: 11:42 PM | ||
*/ | ||
$host="localhost"; | ||
$uname="root";//uname => username | ||
$pwd="";//pwd => password | ||
$dbname="trip_planner";//dbname => database name | ||
$connection = mysqli_connect($host,$uname,$pwd,$dbname); | ||
|
||
//check for errors during connection | ||
if(mysqli_connect_error($connection)) { | ||
echo "Failed to establish connection with database. Please try again or contact administrator."; | ||
exit(); | ||
} | ||
else{ | ||
//proceed to display options | ||
|
||
} | ||
?> | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Trip Planner</title> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link href = "bootstrap/css/bootstrap.min.css" rel="stylesheet"/> | ||
|
||
</head> | ||
<body> | ||
<!-- Navigation bar --> | ||
<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | ||
|
||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand " href=".">Trip Planner </a> | ||
</div> | ||
<div id="navbar" class="navbar-collapse collapse" aria-hidden="true"> | ||
<ul class="nav navbar-nav"> | ||
<li class="active"><a href=".">Home</a></li> | ||
<li><a href="" data-toggle="modal" data-target="#about">About Developer</a></li> | ||
</ul> | ||
</div><!--/.nav-collapse --> | ||
</div> | ||
</nav> | ||
<!-- Navigation bar ends--> | ||
|
||
<!--Main Content --> | ||
<div class="container"> | ||
<div class="row"> | ||
</div> | ||
</div> | ||
<!-- Modal Window for info about me --> | ||
<div class="modal fade" aria-hidden="true" id="about" role="dialog"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button class="close" aria-hidden="true" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> </button> | ||
<h3 class="modal-title">About the developer</h3> | ||
|
||
</div> | ||
<div class="modal-body"> | ||
<div class="well"><h4 class="h4">Ram Kumar K R</h4> Information Science Branch, <br/> R V College of Engineering</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a role="button" href="mailto:[email protected]" class="btn btn-lg btn-info"><span class="glyphicon glyphicon-envelope"></span> Send a message</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Modal Window for info about me ends--> | ||
|
||
<!--jQuery--> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<!-- Bootstrap Javascript files--> | ||
<script src="bootstrap/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> |