Private
Server IP : 192.124.249.33  /  Your IP : 66.248.200.33
Web Server : Apache
System : Linux 141.134.66.148.host.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els6.x86_64 #1 SMP Fri Sep 13 13:42:20 UTC 2024 x86_64
User : tarangglobal ( 1001)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tarangglobal/public_html/cyber/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/tarangglobal/public_html/cyber/my_studio_booking.php
<?php 
	require_once('pdoconfig.php'); 
	$usr_id=$_SESSION['poster_id'];

  
?>

<div class="col-md-12" style="background: #f2f2f2;padding: 10px 10px 6px 0px;margin-bottom: 20px;">
<div class="col-md-2">
<label class="ui-radio-inline" onclick="mybookings()" style="margin-top: 8px;"><input type="radio" checked="" name="radioEg"> &nbsp; <span>My bookings</span>
</label>
</div>
<div class="col-md-2">
<label class="ui-radio-inline" onclick="approved()" style="margin-top: 8px;"><input type="radio" name="radioEg"> &nbsp; <span>Approved</span>
</label>
</div>
<div class="col-md-2">
<label class="ui-radio-inline" onclick="cancel()" style="margin-top: 8px;"><input type="radio" name="radioEg"> &nbsp; <span>Cancel</span>
</label>
</div>
<div class="col-md-2" style="float:right;text-align:right;">
	<label><a href="https://www.tarangglobal.com/wp/studio-booking/?act=add" class="btn btn-xs" style="margin-bottom: 0px;">Book New Slot</a></label>
</div>
</div>
<div class="col-md-12" id="div-1" style="padding:0px;margin-bottom:5px;">
<table class="table table-bordered table-hover">
<thead>
<tr style="background:#efcf4f;font-weight: bold;">
<td class="text-left" style="background:#efcf4f;">#</td>
<td class="text-left" style="background:#efcf4f;">Book Date</td>

<td class="auto-style1" style="background:#efcf4f;">Service Names</td>
<td class="auto-style1" style="background:#efcf4f;">From</td>
<td class="auto-style1" style="background:#efcf4f;">To</td>
<td class="auto-style1" style="background:#efcf4f;">Fee</td>
<td style="width:50px;background:#efcf4f;">Action</td></tr>
</thead>
<tbody>
<?php 
$i=1;
$sql="select *,aa_booking_studio.date d1 from aa_booking_studio,aa_user_master,aa_studio_master 
where 1=1
and aa_booking_studio.user_id=aa_user_master.usr_id 
and aa_booking_studio.std_actid=aa_studio_master.std_id 
and aa_booking_studio.active=0 and aa_booking_studio.user_id='$usr_id' order by aa_booking_studio.std_bookid desc ";
//echo $sql;
$resb=$action->select($sql);
foreach($resb as $id=>$row)		
{
$date=$row['d1'];
$newDate = date("d-m-Y", strtotime($date));

$fdate=$row['from_date'];
$newfdate = date("d-m-Y", strtotime($fdate));

$todate=$row['to_date'];
$newtodate = date("d-m-Y", strtotime($todate));


?>						
<tr >
<td class="text-left"><?=$i++;?></td>
<td class="text-left"><?=$newDate;?></td>

<td class="text-left"><?=$row['crs_name'];?></td>
<td class="text-left"><?=$newfdate;?></td>
<td class="text-left"><?=$newtodate;?></td>
<td class="text-left"><?=$row['fee'];?></td>
<td style="white-space: nowrap;text-align:center;"><a class="btn btn-xs" href="https://www.tarangglobal.com/wp/studio-booking/?std_bookid=<?=$row['std_bookid']?>&act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td>
</tr>
<?php } ?>


</tbody>
</table>
</div>
<div class="col-md-12" id="div-2" style="padding:0px;margin-bottom:5px;display:none;">
<table class="table table-bordered table-hover">
<thead>
<tr style="background:#efcf4f;font-weight: bold;">
<td class="text-left" style="background:#efcf4f;">#</td>
<td class="text-left" style="background:#efcf4f;">Book Date</td>

<td class="auto-style1" style="background:#efcf4f;">Service Names</td>
<td class="auto-style1" style="background:#efcf4f;">From</td>
<td class="auto-style1" style="background:#efcf4f;">To</td>
<td class="auto-style1" style="background:#efcf4f;">Fee</td>
<td style="width:50px;background:#efcf4f;">Action</td></tr>
</thead>
<tbody>
<?php 
$s=1;
$sql="select *,aa_booking_studio.date d1,(SELECT GROUP_CONCAT(crs_name) FROM aa_studio_master where std_id in (aa_booking_studio.std_actid)) ss from aa_booking_studio,aa_user_master,aa_studio_master 
where 1=1
and aa_booking_studio.user_id=aa_user_master.usr_id 
and aa_booking_studio.std_actid=aa_studio_master.std_id 
and aa_booking_studio.active=1 and aa_booking_studio.user_id='$usr_id' order by aa_booking_studio.std_bookid desc ";
//	echo $sql;
$resb=$action->select($sql);
foreach($resb as $id=>$row)		
{
$date=$row['d1'];
$newDate = date("d-m-Y", strtotime($date));
?>						
<tr>
<td class="text-left"><?=$s++;?></td>
<td class="text-left"><?=$newDate;?></td>

<td class="text-left"><?=$row['ss'];?></td>
<td class="text-left"><?=$row['from_date'];?></td>
<td class="text-left"><?=$row['to_date'];?></td>
<td class="text-left"><?=$row['fee'];?></td>
<td style="white-space: nowrap;text-align:center;"><a class="btn btn-xs" href="https://www.tarangglobal.com/wp/studio-booking/?std_bookid=<?=$row['std_bookid']?>&act1=<?=$row['active']?>&amp;act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td>
</tr>
<?php } ?>


</tbody>
</table>
</div>

<div class="col-md-12" id="div-3" style="padding:0px;margin-bottom:5px;display:none;">
<table class="table table-bordered table-hover">
<thead>
<tr style="background:#efcf4f;font-weight: bold;">
<td class="text-left" style="background:#efcf4f;">#</td>
<td class="text-left" style="background:#efcf4f;">Book Date</td>

<td class="auto-style1" style="background:#efcf4f;">Service Names</td>
<td class="auto-style1" style="background:#efcf4f;">From</td>
<td class="auto-style1" style="background:#efcf4f;">To</td>
<td class="auto-style1" style="background:#efcf4f;">Fee</td>
<td style="width:50px;background:#efcf4f;">Action</td></tr>
</thead>
<tbody>
<?php 
$p=1;
$sql="select *,aa_booking_studio.date d1 from aa_booking_studio,aa_user_master,aa_studio_master 
where 1=1
and aa_booking_studio.user_id=aa_user_master.usr_id 
and aa_booking_studio.std_actid=aa_studio_master.std_id 
and aa_booking_studio.active=2 and aa_booking_studio.user_id='$usr_id' order by aa_booking_studio.std_bookid desc ";
//	echo $sql;
$resb=$action->select($sql);
foreach($resb as $id=>$row)		
{
$date=$row['d1'];
$newDate = date("d-m-Y", strtotime($date));
?>						
<tr>
<td class="text-left"><?=$p++;?></td>
<td class="text-left"><?=$newDate;?></td>

<td class="text-left"><?=$row['crs_name'];?></td>
<td class="text-left"><?=$row['from_date'];?></td>
<td class="text-left"><?=$row['to_date'];?></td>
<td class="text-left"><?=$row['fee'];?></td>
<td style="white-space: nowrap;text-align:center"><a class="btn btn-xs" href="https://www.tarangglobal.com/wp/join_academy.php?booking_id=<?=$row['booking_id']?>&amp;act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td>
</tr>
<?php } ?>


</tbody>
</table>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<script>

    function mybookings()
    {          
         $('#div-1').show();
         $('#div-2').hide();
		 $('#div-3').hide();
    }
    function approved()
    {        
         $('#div-2').show();
         $('#div-1').hide();
		$('#div-3').hide();
    }
	 function cancel()
    {        
         $('#div-3').show();
         $('#div-1').hide();
		$('#div-2').hide();
    }
</script>
Private