Current File : /home/inlingua/public_html/sensoriumpsychologists.com/meeting/list.php |
<?php
session_start();
//echo $_SESSION['access_token'];
/*
if(!isset($_SESSION['access_token'])) {
header('Location: google-login.php');
exit();
}
*/
//echo '<pre>';print_r($_SESSION);echo '</pre>';
include('include/header.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.1.9/jquery.datetimepicker.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.1.9/jquery.datetimepicker.min.js"></script>
<style type="text/css">
#form-container {
margin: 100px 100px;
}
input[type="text"] {
border: 1px solid rgba(0, 0, 0, 0.15);
font-family: inherit;
font-size: inherit;
padding: 8px;
border-radius: 0px;
outline: none;
display: block;
margin: 0 0 20px 0;
width: 100%;
box-sizing: border-box;
}
select {
border: 1px solid rgba(0, 0, 0, 0.15);
font-family: inherit;
font-size: inherit;
padding: 8px;
border-radius: 2px;
display: block;
width: 100%;
box-sizing: border-box;
outline: none;
background: none;
margin: 0 0 20px 0;
}
.input-error {
border: 1px solid red !important;
}
#event-date {
display: none;
}
#create-update-event {
background: none;
width: 100%;
display: block;
margin: 0 auto;
border: 2px solid #2980b9;
padding: 8px;
background: none;
color: #2980b9;
cursor: pointer;
}
#delete-event {
background: none;
width: 100%;
display: block;
margin: 20px auto 0 auto;
border: 2px solid #2980b9;
padding: 8px;
background: none;
color: #2980b9;
cursor: pointer;
}
.xdsoft_datetimepicker .xdsoft_datepicker{
width:auto;
}
.site-btns {
position: relative;
display: inline-block;
text-transform: uppercase;
background: #f6783a;
color: #fff;
padding: 10px 0px;
font-size: 14px;
font-weight: 500;
line-height: 14px;
border-radius: 50px;
min-width: 90px;
text-align: center;
border: none;
cursor: pointer;
}
.post-list ul li{
padding: 5px 15px;
background: #eae9e9;
margin-bottom: 5px;
float: left;
list-style: none;
margin-right: 10px;
}
</style>
<section class="blog-page-section">
<div class="container">
<div class="section-title pt-30">
<h3>Appointment Schedule List</h3>
</div>
<div class="row">
<div class="col-lg-12 post-list">
<ul>
<li>
<a href="https://www.sensoriumpsychologists.com/meeting/list.php">Appointment </a></li>
<li><a href="https://www.sensoriumpsychologists.com/meeting/home.php"> Schedule </a></li>
<li><a href="https://www.sensoriumpsychologists.com/meeting/mycalender.php">Calender </a></li>
<li><a href="https://www.sensoriumpsychologists.com/meeting/logout.php">Log Out </a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-lg-12 post-list">
<div class="card-body table-responsive p-0">
<table class="table table-hover text-nowrap">
<tr>
<th>Sr.No.</th>
<th>Action</th>
<th>Title</th>
<th>Start Date - Time</th>
<th>End Date- Time</th>
<th>Name</th>
<th>Email</th>
<th>Concerns</th>
<th>TXN ID</th>
<th>Amount</th>
<th>TXN Status</th>
<th>Requested On</th>
</tr>
<?php
$sql="SELECT * FROM shristi_book_appointment WHERE dr_id='".$_SESSION['shristi_dr']."' order by id desc";
$result = $conn->query($sql);
$i=1;
$totalcount=$result->num_rows;
if($totalcount>0){
while($rows = $result->fetch_assoc()){
$app="SELECT * FROM shristi_appointment_shadule WHERE id='".$rows['appointment_id']."' limit 0,1";
$allresult = $conn->query($app);
$tcount=$allresult->num_rows;
if($tcount>0){
$row = $allresult->fetch_assoc();
$startdate=date('Y-m-d H:i',strtotime($row['sdate']));
$enddate=date('Y-m-d H:i',strtotime($row['edate']));
$sqlss="SELECT * FROM shristi_attendent WHERE id='".$rows['attendent_id']."' ";
$results = $conn->query($sqlss);
$count=$results->num_rows;
$getrow = $results->fetch_assoc();
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php if($rows['appointment_status']==0)
{ ?>
<a class="site-btns" href="approve.php?appointment_id=<?php echo $rows['appointment_id'].'&attendent_id='.$rows['attendent_id']?> ">Approve</a>
<?php }else { ?>
<a class="site-btns" style="background:green;" href="javascript:;">Approved</a>
<?php } ?>
</td>
<td><?php echo $row['title']; ?></td>
<td><?php echo $startdate; ?></td>
<td><?php echo $enddate; ?></td>
<td><?php echo $getrow['name']; ?></td>
<td><?php echo $getrow['email']; ?></td>
<td><?php echo $rows['concerns']; ?></td>
<td><?php echo $rows['txn_id']; ?></td>
<td><?php echo $rows['txn_amount']; ?></td>
<td><?php echo $rows['txn_status']; ?></td>
<td><?php echo $rows['add_date']; ?></td>
</tr>
<?php } $i++;
}
}
?>
</table>
</div>
</div>
</div>
</div>
</section>
<br/><br/>
<?php include('include/footer.php');?>