Commit e81406de authored by Mihiranga G.L.V - IT18500790's avatar Mihiranga G.L.V - IT18500790

Merge branch 'IT18500790' into 'master'

Finish Create trip plan

See merge request !9
parents 6941d901 2d01e32f
images/36972092396_312b70283e_k.jpg

1.02 MB | W: | H:

images/36972092396_312b70283e_k.jpg

1.02 MB | W: | H:

images/36972092396_312b70283e_k.jpg
images/36972092396_312b70283e_k.jpg
images/36972092396_312b70283e_k.jpg
images/36972092396_312b70283e_k.jpg
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
<?php <?php
include "db_connect.php";
if(isset($_POST['logUserid'])){ if(isset($_POST['logUserid'])){
$logUserid = $_POST['logUserid']; $logUserid = $_POST['logUserid'];
...@@ -227,14 +227,25 @@ ...@@ -227,14 +227,25 @@
<h3>Railway Line</h3> <h3>Railway Line</h3>
<div class="x_slider_select" style="width: 100%; margin-top: 0px;"> <div class="x_slider_select" style="width: 100%; margin-top: 0px;">
<select class="myselect form-control"> <select class="myselect form-control">
<option>Select Line</option> <?php
<option>Main Line</option> $sql1 = "SELECT * FROM linelist WHERE logUserid = $logUserid ORDER BY `priority` ASC";
<option>Puththalam Line</option> $result1 = mysqli_query($con,$sql1) or die(mysqli_error($con));
<option>Mathale Line</option> ?>
<option>Nothern Line</option> <option value="select">Select Line</option>
<option>Trincomalee Line</option> <?php
<option>Coast Line</option> while($row1 = mysqli_fetch_array($result1)){
<option>Kelani Valley Line</option>
$slected_line_no = $row1['lineNo'];
$sql2 = "SELECT * FROM railway_line WHERE id = $slected_line_no";
$result2 = mysqli_query($con,$sql2) or die(mysqli_error($con));
$row2 = mysqli_fetch_assoc($result2)
?>
<option value="<?php echo $slected_line_no ?>"><?php echo $row2['line'] ?></option>
<?php
}
?>
</select> </select>
</div> </div>
</div> </div>
...@@ -495,6 +506,11 @@ ...@@ -495,6 +506,11 @@
</div> </div>
</div> </div>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<div class="accordion" id="accordionExample" style="width: 100%; "> <div class="accordion" id="accordionExample" style="width: 100%; ">
<div class="card"> <div class="card">
<div class="card-header" id="headingOne" style="background-color: #4f5dec;"> <div class="card-header" id="headingOne" style="background-color: #4f5dec;">
...@@ -506,105 +522,11 @@ ...@@ -506,105 +522,11 @@
</div> </div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample"> <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
<!-- <div class="card-body"> <!-- Content Add -->
<table class="table table-bordered"> <!-- Content Add -->
<thead class="thead-light"> <!-- Content Add -->
<tr> <!-- Content Add -->
<th>Train</th> <!-- Content Add -->
<th scope="col">Start</th>
<th scope="col">Start Time</th>
<th scope="col">End</th>
<th scope="col"> Arrival </th>
<th scope="col"> Departure </th>
<th scope="col">More</th>
</tr>
</thead>
<tbody>
<tr>
<td> Podi Manike </td>
<td>Colombo Fort</td>
<td>08/25/2021 <br> 05:55</td>
<td>Haputale</td>
<td>08/25/2021 <br> 15:00</td>
<td>08/25/2021 <br> 19:00</td>
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Locations
</button>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Location List</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<table class="table table-bordered">
<thead class="thead-light">
<tr>
<th>Location</th>
<th scope="col">Category</th>
<th scope="col">Estimate Time</th>
<th scope="col">Google Map</th>
</tr>
</thead>
<tbody>
<tr>
<td> Adisham Bungalow </td>
<td>Mountain</td>
<td>2 hour</td>
<td><button class="btn btn-primary"> Map <i class="fa fa-map-marker" style="font-size:18px; margin-left: 3%;"></i></button></td>
</tr>
<tr>
<td> Lipton's Seat </td>
<td>Mountain</td>
<td>2 hour</td>
<td><button class="btn btn-primary"> Map <i class="fa fa-map-marker" style="font-size:18px; margin-left: 3%;"></i></button></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div> -->
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Trip Plan Suggestion 1 - <b>Mathale Line </b>
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
<div class="card-body">
Some placeholder content for the second accordion panel. This panel is hidden by default.
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingThree">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Trip Plan Suggestion 2 - <b>Northern Line </b>
</button>
</h2>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
<div class="card-body">
And lastly, the placeholder content for the third and final accordion panel. This panel is hidden by default.
</div>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment