Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vahtuksanghatana.com/vahtuk_society/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vahtuksanghatana.com/vahtuk_society/item-master.php

<?php 
require_once('lib/functions.php');
$db		=	new login_function();

if(isset($_SESSION['current_login_admin']))
{
	$current_login_admin	=	$_SESSION['current_login_admin'];
}
$success_msg=0;
 $succ_msg=0;
  $invoice_msg=0;
$title="";$date_to="";$date_from="";

	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_POST['item_name']))
	{
		
		$item_name	      	= $_POST['item_name'];

			if($db->insert_item_master($item_name))
			{
				$success_msg=1;

			}

		}

	if(isset($_GET['delete_id']))
	{
		 $del_id	=	$_GET['delete_id'];
		 $db->delete_item_master($del_id);
		 $success_msg	=	2;
	}
			
	
  if(isset($_POST['add_btn1']))
    {

        // $title                 = $_POST['title'];
        $date_from              = $_POST['date_from'];
        $date_to                  = $_POST['date_to'];

        // $_SESSION['filter_title']          = $title;
        $_SESSION['filter_date_from']       = $date_from;
        $_SESSION['filter_date_to']                = $date_to;    
    }   

    else if(isset($_SESSION['filter_date_from'])){
       
        // $title     = $_SESSION['filter_title'];
        $date_from  = $_SESSION['filter_date_from'];
        $date_to      = $_SESSION['filter_date_to'];

    }
?>
<!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>Expense Category</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">
  
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	<link href="datatable/datatables.min.css" rel="stylesheet" />

	<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
	<script src="js/wow.min.js"></script>
	<script>
	function validateForm() {
	  var a = document.forms["myForm"]["customer_name"].value;
	  var b = document.forms["myForm"]["service"].value;
	  var d = document.forms["myForm"]["actual_amount"].value;
	  var e = document.forms["myForm"]["discount_amount"].value;
	 
	 if (a == "Select Customer") {
		alert("Please Select Customer Name");
		return false;
	  }
	 
	  if (b == "Select Service") {
		alert("Please Select Services");
		return false;
	  }
	  
	 
	  
	  if (d == "") {
		alert("Enter Actual Amount");
		return false;
	  }
	  
	  if (e == "") {
		alert("Enter Discount Amount");
		return false;
	  }
	  
	}
	</script>
	<style>
	.tbl-design
	{
		border:1px dashed #6BD089 !important;
		background:#C8EFD4;
		padding:7px;
		color:#B21016;
		font-weight:bold;
		margin:5px;
		font-size:13px;
		font-family:arial;
		display:inline-table;
	}
	.tbl-design:hover{
		color:#000000;
		border:1px dashed #6BD089 !important;
		background:#005174;
		color:#FFFFFF;
	}
	.active_table
	{
		color:#000000;
		border:1px dashed #6BD089 !important;
		background:#005174;
		color:#FFFFFF;
	}
	.active_table_exist
	{
		background:orangered;
	}
	</style>


</head>
<body class="fixed-navbar">
  
<div class="page-wrapper" style="min-height:900px;width: 100%">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper">
<div class="row" style="padding:0px; margin:0px; margin-top:15px; border-radius:15px;">
<?php
	if($success_msg == 1)
	{?>
	<div class="alert alert-success" style="width:100%; text-align:center;font-weight:bold; font-size:16px;">

	Item Master Added Successfully.
	</div>
	<?php
	}
	?>
	<?php
	if($succ_msg == 1)
	{
	?>
	<div class="alert alert-danger" style="width:100%; text-align:center;font-weight:bold; font-size:16px;">
		<span style="color:red">Item Master Deleted Successfully.
	</div>
	<?php
	}
	?>
	<?php
	if($invoice_msg == 1)
	{
	?>
	<div class="alert alert-success" style="width:100%; text-align:center;font-weight:bold; font-size:16px;">
		Item Master Successfully <a href="show-foodies-bill.php?c_id=<?php echo $insert_id; ?>" target="_blank"> View </a><a href="show-foodies-bill.php?c_id=<?php echo $insert_id; ?>" target="_blank">Print</a>
	</div>
	<?php
	}
	?>
</div>
<div class="ibox" style="border-radius:5px; padding:7px; width: 100%;">
<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
<div class="ibox-head">
<div class="ibox-title"><i class="fas fa-plus" style="margin-right:10px;"></i>Add Expense Category</div>
</div>
<div class="ibox-body">
<div>
	
<div class="row">
	
	
	<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
		<label class="form-group mb-4 set-row label_marg"><b>Expense Category Name</b></label>
		<div class="input-group-icon input-group-icon-left  set-row">
			<input type="text" class="form-control form-control-air" placeholder="Enter Category Name" name="item_name" />
	</div>
	
	
	
	</div>
	<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6" style="text-align:center; padding-left:0px; padding-right:0px; margin-top:30px;">
		<button class="btn btn-pink btn-air" type="submit" name="add_btn" style="width:40%; font-weight:bold;">Add </button>
	</div>
</div>
</div>
</form>
</div>

<div class="page-content fade-in-up" style="min-height:800px ! Important;">

<div class="ibox" >
</div>
<div class="ibox-body" style="padding:7px; padding-top:0px;margin:20px;">
<?php
				if(isset($_POST['add_btn1']))
				{
					// $title = $_POST['title'];
					$date_from = $_POST['date_from'];

					$date_to = $_POST['date_to'];
				}
				if($date_to == "")
				{
					$date_to 	=	Date("Y-m-d");
				}
				if($date_from == "")
				{
					$date_from 	=	Date("Y-m-d");
				}
		?>	
<!-- 		<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
		 -->
		 <form class="form-pink" method="post" action="">
      
		<div class="ibox-body" >
			<div class="row">
				
				<!-- <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Title</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
						<input type="text" name="title" id="expenses" class="form-control form-control-air" value="<?php echo $title; ?>" placeholder="Enter Title" />
					</div>
				</div> -->
				<div class="col-sm-3 col-md-3 col-lg-3 form-group mb-3">
					<label class="form-group mb-4 set-row label_marg"><b>From Date</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
						<input type="date" name="date_from" id="date_from" class="form-control form-control-air" value="<?php echo $date_from; ?>" placeholder="Enter Service"  />
					</div>
				</div>
				<div class="col-sm-3 col-md-3 col-lg-3 form-group mb-3">
					<label class="form-group mb-4 set-row label_marg"><b>To Date</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
						<input type="date" name="date_to" id="date_to" class="form-control form-control-air" value="<?php echo $date_to; ?>" placeholder="Enter Service"  />
					</div>	
				</div>
			
				<!-- <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:23px;">
				<button class="btn btn-pink btn-air" type="submit" name="add_btn1" >Search</button> -->
			<div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:23px;">
            <button class="btn btn-pink btn-air" type="submit" name="add_btn1">Search</button>
			<button name="search_page" type="button" class="btn btn-pink btn-air" onclick="redirectToPrintPage()">View Print</button>

        </div>
			</div>
			</div>
			
		</div>
	
			
			      <!--   <button name="search_page" type="button" style="margin-top: 15px; margin-right: 60px;width: 150px" class="btn btn-pink btn-air"> View Print</button> -->
			        <!-- <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-2" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:23px;">
        <button name="search_page" type="button" style="margin-top: 15px; margin-right: 60px; width: 150px" class="btn btn-pink btn-air" onclick="redirectToPrintPage()">View Print</button>
    </div> -->

			
</form>
<div class="flexbox mb-8">
<script>
        function redirectToPrintPage() {
            window.location.href = 'print-disha-item-master.php';
        }
    </script>
</div>
<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" autocomplete="off" enctype="multipart/form-data">
<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.No</th>
		<th>Expense Category</th>
		<th>Date</th>
		<th>Time</th>
		<th>Edit</th>
		<th>Delete</th>
		 
	</tr>
</thead>
<tbody>
<?php
	$total=0;$total1=0;
	$report_details = $db->get_item_master_data_for_search($title,$date_from,$date_to);
	if(!empty($report_details))
	{
		$counter =0;
		foreach($report_details as $record)
		{
			$id					=	$report_details[$counter][0];
			$item_name			=	$report_details[$counter][1];
			$date				=	$report_details[$counter][2];
			$time				=	$report_details[$counter][3];
						
			$counter++;
?>
	<tr>
		<td><?php echo $counter+1; ?></td>
		<td><?php echo $item_name; ?></td>
		<td><?php echo $date; ?></td>
		<td><?php echo $time; ?></td>
		<td class="center"><a href="update-item-master.php?update_id=<?php echo $id;?>"><i class="far fa-edit" style="color:blue;margin-left:20px;"></a></td>
		<td class="contenter"><a href="disha-item-master.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	
}
	}
   ?>
</tbody>
</table>
</div>
 <!--<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
<label class="form-group mb-4 set-row label_marg"><b></b></label>
<br /> <br />
<label style="font-size:18px; font-weight:bold; margin-right:100px;"><input type="checkbox" name="bill_type" value="gst" class="gst_check" style="width:20px; height:20px; margin-right:10px;">GST BILL	</label>
</div>-->
 <div class="col-sm-12 col-md-12 col-lg-12 form-group mb-12">
 <center>

</center>
</div>
</form>
</div>
	
</div>
</div>
</div>
</div>
</div>
</form>
                        
<?php include('footer.php'); ?>
<?php //include('search.php'); ?>
   
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    
    <script src="js/jquery.min.js"></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>
	<script src="datatable/datatables.min.js"></script>
    <script src="js/app.min.js"></script>
<script type="text/javascript">
		$(document).ready(function(){
		   $('#service_name1').on('change', function() {
			 //alert(service_name1);  
            var product_name_val = this.value;
			//alert(product_name_val);
            $.ajax({
                url: "api/food-product-price.php",
                type: "POST",
                data: {
                    product_id_val: product_name_val
                },
                cache: false,
                success: function(result){
                    $("#single_price").val(result);
                }
            });
         
        });  
    }); 
	</script>
	
	<script type="text/javascript">
	$(document).ready(function(){
	$("#quantity_txt").keyup(function(){
	var single_price = $("#single_price").val();
	var current_quantity = $("#quantity_txt").val();
	
	$("#actual_amount1").val(parseFloat(single_price) * parseFloat(current_quantity));
});  
		  
    }); 
	</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