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

Merge branch 'IT18500790' into 'master'

last day

See merge request !27
parents 00a9bff6 917c3db1
<div class="x_copyr_main_wrapper float_left" style="margin-top:5%;">
<button onclick="topFunction()" id="myBtn" title="Go to top"> <i class="fa fa-arrow-up"></i></button>
<button onclick="naviFunction();" id="myBtnPlan" title="Create Plan" > <i class="fa fa-calendar"></i> </button>
<button onclick="showChat(); minimizeChat();" id="myBtnChat" title="Chatbot" > <i class="fa fa-envelope"></i> </button>
<div class="container">
<p>Copyright © 2021 SLIIT (Research Project). All rights reserved.</p>
<a href="edit_place.php">aa</a>
</div>
</div>
\ No newline at end of file
<div class="x_copyr_main_wrapper float_left" style="margin-top:5%;">
<button onclick="topFunction()" id="myBtn" title="Go to top"> <i class="fa fa-arrow-up"></i></button>
<button onclick="naviFunction();" id="myBtnPlan" title="Create Plan" > <i class="fa fa-calendar"></i> </button>
<button onclick="showChat(); minimizeChat();" id="myBtnChat" title="Chatbot" > <i class="fa fa-envelope"></i> </button>
<div class="container">
<p>Copyright © 2021 SLIIT (Research Project). All rights reserved.</p>
<!-- <a href="edit_place.php">aa</a> -->
</div>
</div>
\ No newline at end of file
<?php
session_start();
include "db_connect.php";
$logUserid = mysqli_real_escape_string($con,$_POST['logUserid']);
$chatBot = 1100;
$createToday = new DateTime('now', new DateTimeZone('Asia/Colombo'));
$date= $createToday->format('Y-m-d');
$time= $createToday->format('H:i:s');
$datetime = $date." ". $time;
$sql1 = "SELECT * FROM chat_details WHERE logUserid = $logUserid AND chatBot = $chatBot AND `date` = '$date' ORDER BY id";
$result1 = mysqli_query($con,$sql1) or die(mysqli_error($con));
while($row1 = mysqli_fetch_array($result1)){
$type = $row1['type'];
if($type == 's'){
?>
<div class="row msg_container base_sent">
<div class="col-md-10 col-xs-10" style="padding:0;">
<div class="messages msg_sent">
<p><?php echo $row1['msg']; ?></p>
<time datetime="2009-11-13T20:00">User • Today <?php echo $row1['time']; ?></time>
</div>
</div>
<div class="col-md-2 col-xs-2 avatar" style="padding:0;">
<img src="./images/chatMan.png" class="chatimg img-responsive ">
</div>
</div>
<?php
} else if ($type == 'r') {
?>
<div class="row msg_container base_receive">
<div class="col-md-2 col-xs-2 avatar" style="padding:0;">
<img src="./images/chatTrain.png" class="chatimg img-responsive ">
</div>
<div class="col-md-10 col-xs-10" style="padding:0;">
<div class="messages msg_receive">
<p><?php echo $row1['msg']; ?></p>
<time datetime="2009-11-13T20:00">Railbot • Today <?php echo $row1['time']; ?></time>
</div>
</div>
</div>
<?php
}
}
?>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<button onclick="showChat(); minimizeChat();" id="myBtnChat" title="Chatbot" > <i class="fa fa-envelope"></i> </button> <button onclick="showChat(); minimizeChat();" id="myBtnChat" title="Chatbot" > <i class="fa fa-envelope"></i> </button>
<div class="container"> <div class="container">
<p>Copyright © 2021 SLIIT (Research Project). All rights reserved.</p> <p>Copyright © 2021 SLIIT (Research Project). All rights reserved.</p>
<a href="edit_place.php">aa</a> <!-- <a href="edit_place.php">aa</a> -->
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="col-md-10 col-xs-10" style="padding:0;"> <div class="col-md-10 col-xs-10" style="padding:0;">
<div class="messages msg_sent"> <div class="messages msg_sent">
<p><?php echo $row1['msg']; ?></p> <p><?php echo $row1['msg']; ?></p>
<time datetime="2009-11-13T20:00">User • <?php echo $row1['time']; ?></time> <time datetime="2009-11-13T20:00">User • Today <?php echo $row1['time']; ?></time>
</div> </div>
</div> </div>
<div class="col-md-2 col-xs-2 avatar" style="padding:0;"> <div class="col-md-2 col-xs-2 avatar" style="padding:0;">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="col-md-10 col-xs-10" style="padding:0;"> <div class="col-md-10 col-xs-10" style="padding:0;">
<div class="messages msg_receive"> <div class="messages msg_receive">
<p><?php echo $row1['msg']; ?></p> <p><?php echo $row1['msg']; ?></p>
<time datetime="2009-11-13T20:00">Railbot • <?php echo $row1['time']; ?></time> <time datetime="2009-11-13T20:00">Railbot • Today <?php echo $row1['time']; ?></time>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
// Date count // Date count
$date_count = (int) $days + 1; $date_count = (int) $days + 1;
$full_hours = $date_count * 10; $full_hours = $date_count * 11;
$line_no = array(); $line_no = array();
$sql2 = "SELECT * FROM linelist WHERE logUserid = '$logUserid' ORDER BY id "; $sql2 = "SELECT * FROM linelist WHERE logUserid = '$logUserid' ORDER BY id ";
...@@ -588,7 +588,7 @@ ...@@ -588,7 +588,7 @@
$end_train_arrival = trim($end_train_arrival); $end_train_arrival = trim($end_train_arrival);
$end_train_dep = trim($end_train_dep); $end_train_dep = trim($end_train_dep);
if($date_count < 6){ if($date_count < 3){
$end_train_arrival_date_and_time = $end_now_date ." ".$end_train_arrival; // Train Arrival $end_train_arrival_date_and_time = $end_now_date ." ".$end_train_arrival; // Train Arrival
$end_train_dep_date_and_time = $end_now_date ." ".$end_train_dep; // Train Depature $end_train_dep_date_and_time = $end_now_date ." ".$end_train_dep; // Train Depature
} else { } else {
......
...@@ -596,7 +596,7 @@ ...@@ -596,7 +596,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="contect_btn contect_btn_contact"> <div class="contect_btn contect_btn_contact">
<ul> <ul>
<li><a href="#">Confirm Plan <i class="fa fa-arrow-right"></i></a> <li><a href="javascript:void(0)">Confirm Plan <i class="fa fa-arrow-right"></i></a>
</li> </li>
</ul> </ul>
</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