Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/pending-measurement-report.php

<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<style>
	/* a{
		color: #232d42 !important;
	} */
	table tbody td {
		font-size: 14px !important;
		padding: 5px 5px 5px 5px!important;
		text-align: center	;
	}
	table thead th {
		font-size: 14px !important;
		padding: 5px 5px 5px 5px!important;
		text-align: center	;

	}
	.header-title{
		padding-left: 30px;
		/* margin-bottom: 0px; */
	}
</style>
<?php
	require_once('lib/functions.php');
	$db		=	new class_functions();
	
	$flag	=	0;
	if(isset($_GET['delete_id']))
	{
		$delete_id	=	$_GET['delete_id'];
		
		if($db->delete_add_measurement($delete_id))
		{
			$flag	=	3;
		}
	}

    if(isset($_GET['delivery_id']))
    {
        $delivery_id = $_GET['delivery_id'];
        $delivery_status = $_GET['delivery_status'];

        if($db->change_delivery_status($delivery_id,$delivery_status))
        {
            $flag = 4;
        }
    }

	$customer_name	= "";
	$mobile_number	= "";
	$from_date	= "";
	$to_date	= "";
	if(isset($_POST['mobile_number']))
	{
		$customer_name 	  		= $_POST['customer_name'];
		$mobile_number 	  		= $_POST['mobile_number'];
		$from_date 	  			= $_POST['from_date'];
		$to_date 	  			= $_POST['to_date'];
		
		$_SESSION['pending_report_from_date'] 			= $from_date;
		$_SESSION['pending_report_to_date'] 			= $to_date;
		$_SESSION['pending_report_customer_name'] 		= $customer_name;
		$_SESSION['pending_report_mobile_number'] 		= $mobile_number;
	}
	else if(isset($_SESSION['pending_report_from_date'])){
		$from_date = $_SESSION['pending_report_from_date'];
		$to_date = $_SESSION['pending_report_to_date'];
		$customer_name = $_SESSION['pending_report_customer_name'];
		$mobile_number = $_SESSION['pending_report_mobile_number'];
	}


?>
<!doctype html>
<html lang="en" dir="ltr">
  <head>
   <?php
		require_once('header-common.php');
   ?>
  </head>
  <body class="  ">
    <!-- loader Start -->
    <!-- <div id="loading">
      <div class="loader simple-loader">
          <div class="loader-body"></div>
      </div>    </div> -->
    <!-- loader END -->
    
    <aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all ">
        <div class="sidebar-header d-flex align-items-center justify-content-start">
            <a href="index.php" class="navbar-brand">
				<img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" />
            </a>
            <div class="sidebar-toggle" data-toggle="sidebar" data-active="true">
                <i class="icon">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                </i>
            </div>
        </div>
        
		<?php
		require_once('left-side.php');
	?>
		<div class="sidebar-footer"></div>
    </aside>   
	<main class="main-content">
    	<?php
			require_once('navbar.php');
		?>
	  
      <div class="conatiner-fluid content-inner mt-n5 py-0">
<div class="row">
    <div class="col-sm-12">
        <div class="card">
		
			<?php
				if($flag ==3)
				{
			?>
				<div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;">
					<span>Measurement Record Deleted Successfully</span>
					<button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button>
				</div>
			<?php
				}
			?>

            <?php
				if($flag ==4)
				{
			?>
				<div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;">
					<span>Work Completed Successfully</span>
				</div>
			<?php
				}
			?>
			
			<div class="header-title">
				<br>
				<h4 class="card-title mb-0">Payment Report</h4>
				<!--<a href="print-pending-measurement-report.php"><button type="submit" style="float: right !important; margin-top: -35px; margin-right: 60px;" class="btn btn-primary" name="add_btn">View Print</button></a>-->	

				<form action="<?php echo $_SERVER['PHP_SELF']; ?>"  method="POST">
				<div class="row" style="margin-top: 20px; margin-bottom: -30px;">
								
								 <!--		<div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">Customer Name</label>
                                    <input type="text" name="customer_name" class="form-control" value="<?php echo $customer_name; ?>" placeholder=" " >
                                    </div>
                                 </div>	
								 <div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">Mobile Number</label>
                                    <input type="text" name="mobile_number" class="form-control" value="<?php echo $mobile_number; ?>" placeholder=" " >
                                    </div>
                                 </div>	
								 <div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">From Date</label>
                                    <input type="date" name="from_date" class="form-control" value="<?php echo $from_date; ?>" placeholder=" " >
                                    </div>
                                 </div>	
								 <div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">To Date</label>
                                    <input type="date" name="to_date" class="form-control" value="<?php echo $to_date; ?>" placeholder=" " >
                                    </div>
                                 </div>	
								 <div class="col-lg-2">
								 <div class="d-flex justify-content-center">
                                 <button type="submit" id="submit" style="margin-left:-100px; margin-top: 30px;" class="btn btn-primary">Search</button>
                              	</div>
								 </div>
				</div>-->
			<!-- </div> -->
			</form>
            <div class="card-header d-flex justify-content-between flex-wrap">
                
				
			    <div class="card-body" >
                <div class="table-responsive">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
								<th>Sr No</th>
                                <th>Status</th>
								<th>Customer Name</th>
								<th>Customer Address</th>

								<th>Mobile Number</th>
								<th>Delivery Date</th>
				
								<th>Delivery Status</th>
								<!-- <th>Payment Method</th> -->
								<th>Date</th>
								<th>Time</th>
                                <th class="text-center">Edit</th>
                                <th class="text-center">Delete</th>
                            </tr>
                        </thead>
                        <tbody>
							<?php
								$data	=	array();
								$data	=	$db->get_all_pending_measurements_from_dates($customer_name,$mobile_number,$from_date,$to_date);
								$counter = 0;
								if(!empty($data))
								{
									foreach($data as $record)
									{
										$res_id				=	$record[0];
										// $measurement_for	=	"";
										$customer_name		=	$record[1];
										$address			=	$record[2];
										$shirt1				=	$record[3];
										$shirt2				=	$record[4];
										$shirt3				=	$record[5];
										$shirt4				=	$record[6];
										$shirt5				=	$record[7];
										$shirt6				=	$record[8];
										$shirt7				=	$record[9];
										$shirt8				=	$record[10];
										$shirt9				=	$record[11];
										$shirt10			=	$record[12];
										$shirt11			=	$record[13];
										$shirt12			=	$record[14];
										$shirt13			=	$record[15];
										$shirt14			=	$record[16];
										$shirt15			=	$record[17];
										$shirt16			=	$record[18];
										$shirt17			=	$record[19];
										$shirt18			=	$record[20];
										$cup_size			=	$record[21];
										$cup_style			=	$record[22];
										$shirt_style		=	$record[23];
										$shirt_size			=	$record[24];
										$patti				=	$record[25];
										$shirt_design		=	$record[26];
										$collar 			=	$record[27];
										$shirt_remark		=	$record[28];
										$pant1				=	$record[29];
										$pant2				=	$record[30];
										$pant3				=	$record[31];
										$pant4				=	$record[32];
										$pant5				=	$record[33];
										$pant6				=	$record[34];
										$pant7				=	$record[35];
										$pant8				=	$record[36];
										$pant9				=	$record[37];
										$pant10				=	$record[38];
										$pant11				=	$record[39];
										$pant12				=	$record[40];
										$pocket_size		=	$record[41];
										$back_pocket		=	$record[42];
										$watch_pocket		=	$record[43];
										$mobile_pocket		=	$record[44];
										$bottom_style		=	$record[45];
										$plate				=	$record[46];
										$pocket				=	$record[47];
										$iron				=	$record[48];
										$stitching			=	$record[49];
										$pant_remark		=	$record[50];
										$mobile_number			=	$record[51];
										$delivery_date		=	$record[52];										
										$total_amount		=	$record[53];
										$discount			=	$record[54];
										$payable_amount		=	$record[55];
										$paid_amount		=	$record[56];
										$balance_amount		=	$record[57];
										$delivery_status	=	$record[58];
										$payment_method		=	$record[59];
										$date				=	$record[60];
										$time				=	$record[61];
																		
										$cup_size = $db->get_title_from_category_id($cup_size);
										$cup_style = $db->get_title_from_category_id($cup_style);
										$shirt_size	 = $db->get_title_from_category_id($shirt_size);
										$patti = $db->get_title_from_category_id($patti);
										$shirt_style = $db->get_title_from_category_id($shirt_style);
										$shirt_design = $db->get_title_from_category_id($shirt_design);
										$back_pocket = $db->get_title_from_category_id($back_pocket);
										$watch_pocket = $db->get_title_from_category_id($watch_pocket);
										$pocket_size = $db->get_title_from_category_id($pocket_size);
										$mobile_pocket = $db->get_title_from_category_id($mobile_pocket);
										$bottom_style = $db->get_title_from_category_id($bottom_style);
										$plate = $db->get_title_from_category_id($plate);
										$pocket = $db->get_title_from_category_id($pocket);
										$iron = $db->get_title_from_category_id($iron);
										$stitching = $db->get_title_from_category_id($stitching);
										$collar = $db->get_title_from_category_id($collar);
										
										
										
							?>
							

                            <tr class="">
                                <td class="" style="text-align: center;"><?php echo $counter+1; ?></td>
								<td class="" style="text-align: left;"><i class="fas fa-receipt" style="color: #007AAE; font-size: 15px;" ></i>
								<i class="fas fa-rupee" style="color: #7030A0; font-size: 15px;"></i><a style="color: #7030A0;" href="add-next-payment.php?var_receipt_id=<?php echo $res_id; ?>">&nbsp;&nbsp;pay payment</a>
								<!--<a style="color: #007AAE;" href="receipt.php?view_id=<?php echo $res_id; ?>">&nbsp;&nbsp;View Receipt</a>-->
								<br><i class="fas fa-tasks" style="color: #FF7F27; font-size: 15px;"></i>
								<!--<a style="color: #FF7F27;" href="assign-work.php?view_id=<?php echo $res_id; ?>">&nbsp;&nbsp;Assign Work</a>-->
								<br>
								
								<br><i class="fas fa-check" style="color: #22B14C; font-size: 15px;"></i>
								<!--<a style="color: #22B14C;" href="<?php echo $_SERVER['PHP_SELF']."?delivery_id=".$res_id."&delivery_status=Completed"; ?>" onclick="return confirm('Are You Sure To Complete?');">&nbsp;&nbsp;Delivery Completed</a>-->
								</td>
								<td class="" style="text-align: left;"><?php echo $customer_name; ?></td>
								<td class="" style="text-align: left;"><?php echo $address; ?></td>
								<!-- <td class=""><?php echo $shirt1; ?></td>
								<td class=""><?php echo $shirt2; ?></td>
								<td class=""><?php echo $shirt3; ?></td>
								<td class=""><?php echo $shirt4; ?></td>
								<td class=""><?php echo $shirt5; ?></td>
								<td class=""><?php echo $shirt6; ?></td>
								<td class=""><?php echo $shirt7; ?></td>
								<td class=""><?php echo $shirt8; ?></td>
								<td class=""><?php echo $shirt9; ?></td>
								<td class=""><?php echo $shirt10; ?></td>
								<td class=""><?php echo $shirt11; ?></td>
								<td class=""><?php echo $shirt12; ?></td>
								<td class=""><?php echo $shirt13; ?></td>
								<td class=""><?php echo $shirt14; ?></td>
								<td class=""><?php echo $shirt15; ?></td>
								<td class=""><?php echo $shirt16; ?></td>
								<td class=""><?php echo $shirt17; ?></td>
								<td class=""><?php echo $shirt18; ?></td>
								<td class=""><?php echo $cup_size; ?></td>
								<td class=""><?php echo $cup_style; ?></td>
								<td class=""><?php echo $shirt_style; ?></td>
								<td class=""><?php echo $shirt_size; ?></td>								
								<td class=""><?php echo $patti; ?></td>
								<td class=""><?php echo $shirt_design; ?></td>
								<td class=""><?php echo $collar; ?></td>
								<td class=""><?php echo $shirt_remark; ?></td>
								<td class=""><?php echo $pant1; ?></td>
								<td class=""><?php echo $pant2; ?></td>
								<td class=""><?php echo $pant3; ?></td>
								<td class=""><?php echo $pant4; ?></td>
								<td class=""><?php echo $pant5; ?></td>
								<td class=""><?php echo $pant6; ?></td>
								<td class=""><?php echo $pant7; ?></td>
								<td class=""><?php echo $pant8; ?></td>
								<td class=""><?php echo $pant9; ?></td>
								<td class=""><?php echo $pant10; ?></td>
								<td class=""><?php echo $pant11; ?></td>
								<td class=""><?php echo $pant12; ?></td>
								<td class=""><?php echo $pocket_size; ?></td>
								<td class=""><?php echo $back_pocket; ?></td>
								<td class=""><?php echo $watch_pocket; ?></td>
								<td class=""><?php echo $mobile_pocket; ?></td>
								<td class=""><?php echo $bottom_style; ?></td>
								<td class=""><?php echo $plate; ?></td>
								<td class=""><?php echo $pocket; ?></td>
								<td class=""><?php echo $iron; ?></td>
								<td class=""><?php echo $stitching; ?></td>
								<td class=""><?php echo $pant_remark; ?></td> -->
								<td class=""><?php echo $mobile_number; ?></td>
								<td class=""><?php echo $delivery_date; ?></td>
								<!-- <td class=""><?php echo $total_amount; ?></td>
								<td class=""><?php echo $discount; ?></td>
								<td class=""><?php echo $payable_amount; ?></td>
								<td class=""><?php echo $paid_amount; ?></td>
								<td class=""><?php echo $balance_amount; ?></td> -->
								<td class=""><?php echo $delivery_status; ?></td>
								<!-- <td class=""><?php echo $payment_method; ?></td> -->
								<td class=""><?php echo $date; ?></td>
								<td class=""><?php echo $time; ?></td>
                                <td class="text-center">
                                    <a class="btn btn-sm btn-icon text-primary flex-end" data-bs-toggle="tooltip" title="Edit Measurement" href="edit-measurement.php?edit_id=<?php echo $res_id; ?>">
                                            <span class="btn-inner">
                                                <svg class="icon-20" width="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" >
                                                    <path d="M11.4925 2.78906H7.75349C4.67849 2.78906 2.75049 4.96606 2.75049 8.04806V16.3621C2.75049 19.4441 4.66949 21.6211 7.75349 21.6211H16.5775C19.6625 21.6211 21.5815 19.4441 21.5815 16.3621V12.3341" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                    <path fill-rule="evenodd" clip-rule="evenodd" d="M8.82812 10.921L16.3011 3.44799C17.2321 2.51799 18.7411 2.51799 19.6721 3.44799L20.8891 4.66499C21.8201 5.59599 21.8201 7.10599 20.8891 8.03599L13.3801 15.545C12.9731 15.952 12.4211 16.181 11.8451 16.181H8.09912L8.19312 12.401C8.20712 11.845 8.43412 11.315 8.82812 10.921Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                    <path d="M15.1655 4.60254L19.7315 9.16854" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                </svg>
                                            </span>
                                        </a>
                                </td>
                                <td class="text-center">
                                    <a class="btn btn-sm btn-icon text-danger "  data-bs-toggle="tooltip" onclick="return confirm('Are You Sure To Delete?');" title="Delete project" href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$res_id; ?>">
                                            <span class="btn-inner">
                                                <svg class="icon-20" width="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor">
                                                    <path d="M19.3248 9.46826C19.3248 9.46826 18.7818 16.2033 18.4668 19.0403C18.3168 20.3953 17.4798 21.1893 16.1088 21.2143C13.4998 21.2613 10.8878 21.2643 8.27979 21.2093C6.96079 21.1823 6.13779 20.3783 5.99079 19.0473C5.67379 16.1853 5.13379 9.46826 5.13379 9.46826" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                    <path d="M20.708 6.23975H3.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                    <path d="M17.4406 6.23973C16.6556 6.23973 15.9796 5.68473 15.8256 4.91573L15.5826 3.69973C15.4326 3.13873 14.9246 2.75073 14.3456 2.75073H10.1126C9.53358 2.75073 9.02558 3.13873 8.87558 3.69973L8.63258 4.91573C8.47858 5.68473 7.80258 6.23973 7.01758 6.23973" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                                                </svg>
                                            </span>
                                        </a>
                                </td>
                            </tr>
							
							<?php
							$counter++;
									}
								}
							?>
						</tbody>
                    </table>
                  
                </div>
            </div>
	</div>
</div>
</div>
 
    <!-- Library Bundle Script -->
    <script src="../assets/js/core/libs.min.js"></script>
    
    <!-- External Library Bundle Script -->
    <script src="../assets/js/core/external.min.js"></script>
    
    <!-- Widgetchart Script -->
    <script src="../assets/js/charts/widgetcharts.js"></script>
    
    <!-- mapchart Script -->
    <script src="../assets/js/charts/vectore-chart.js"></script>
    <script src="../assets/js/charts/dashboard.js" ></script>
    
    <!-- fslightbox Script -->
    <script src="../assets/js/plugins/fslightbox.js"></script>
    
    <!-- Settings Script -->
    <script src="../assets/js/plugins/setting.js"></script>
    
    <!-- Slider-tab Script -->
    <script src="../assets/js/plugins/slider-tabs.js"></script>
    
    <!-- Form Wizard Script -->
    <script src="../assets/js/plugins/form-wizard.js"></script>
    
    <!-- AOS Animation Plugin-->
    <script src="../assets/vendor/aos/dist/aos.js"></script>
    
    <!-- App Script -->
    <script src="../assets/js/hope-ui.js" defer></script>
     <style>
	.sidebar.sidebar-default .nav-link:not(.static-item).active , .sidebar.sidebar-default .nav-link:not(.static-item).active, .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true]
	{
		background-color:#FE6600 !important;
	}
	</style>
  </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