Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/rpcollege.edu.in/879_dfdf7_sdddadmin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/rpcollege.edu.in/879_dfdf7_sdddadmin/student-report.php

<?php
	require_once("lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$actual_image_name="";
	$success_msg = 0;
	$image_error="";
	$department = "";
	$semester = "";
	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']) AND ($_GET['image']))
	{
		 $del_id	=	$_GET['delete_id'];
		 $name 	 	=   $_GET['image'];
		 $db->delete_student_data_info($del_id);
		 unlink('../profile-picture/'.$name);
		 header("Location:/admin/student-report.php");

		 $success_msg	=	2;
	}
?>
<?php
	require_once('header.php');
?>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Student Report</h1>
					
					<?php
					if($success_msg == 2)
					{?>
						Information Deleted Successfully.
					<?php
					}
					?>
					
					
                </div>
                
            </div>
           
               <div class="row">
			   <?php
					if(isset($_POST['search_btn']))
					{	
						$department		= $_POST['department'];
						$semester		= $_POST['semster'];
					}
				?>
				<form method="post">
                 <div class="col-lg-12">
				 <div class="col-lg-3">
                                            <select class="form-control" name="department">
												<?php
													if($department != "")
													{
												?>
												<option value="<?php echo $department; ?>"> <?php echo $department; ?> </option>
												<?php
													}
												?>
												<option value="Select Department">Select Department</option>
											<?php
									
												$report_details = $db->get_all_department();
												if(!empty($report_details))
												{
													$counter =0;
													foreach($report_details as $record)
													{
														$id				=	$report_details[$counter][0];
														$department_name=	$report_details[$counter][1];
											?>
												<option value="<?php echo $department_name; ?>"><?php echo $department_name; ?></option>
											<?php
													$counter++;
													}
												}
											?>
											</select>
									   </div>
										<div class="col-lg-3">
                                            <select class="form-control" name="semster">
											<?php
													if($semester != "")
													{
											?>
												<option value="<?php echo $semester; ?>"> <?php echo $semester; ?> </option>
											<?php
													}
											?>
											<option value="Select Semester">Select Semester</option>
											<?php
									
												$report_details = $db->get_all_semester();
												if(!empty($report_details))
												{
													$counter =0;
													foreach($report_details as $record)
													{
														$id				=	$report_details[$counter][0];
														$semester_name  =	$report_details[$counter][1];
											?>
												<option value="<?php echo $semester_name; ?>"><?php echo $semester_name; ?></option>
											<?php
													$counter++;
													}
												}
											?>
											</select>
									   </div>
									   <div class="col-lg-3">
									  
									    <button type="submit" class="btn btn-success" name="search_btn"> Search </button><br />
										</div>
										</form>
				<div class="col-lg-12">
				<br /><br />
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          Student 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 width="20">PRN</th>
                                            <th>First Name</th>
											<th>Last Name</th>
											<th>Department</th>
                                            <th width="50">Semester</th>
											<th width="50">Division</th>
											<th width="50">Email id</th>
                                            <th width="50">Roll No</th>
											<th width="50">Gender</th>
                                            <th>Address</th>
											<th width="50">DOB</th>
											<th>C. No</th>
											<th>Password</th>
											<th>Profile</th>
											<th width="50">Action</th>
											<th width="50">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php
									
										$report_details = $db->get_all_student_info($department,$semester);
										if(!empty($report_details))
										{
											$counter =0;
											foreach($report_details as $record)
											{
												$id				=	$report_details[$counter][0];
												$prn			=	$report_details[$counter][1];
												$full_name		=	$report_details[$counter][2];
												$last_name		=	$report_details[$counter][3];
												$department		=	$report_details[$counter][4];
												$semster		=	$report_details[$counter][5];
												$division		=	$report_details[$counter][6];
												$roll_no		=	$report_details[$counter][7];
												$email_id		=	$report_details[$counter][8];
												$gender			=	$report_details[$counter][9];
												$address		=	$report_details[$counter][10];
												$dob			=	$report_details[$counter][11];
												$contact_no		=	$report_details[$counter][12];
												$image			=	$report_details[$counter][13];
												$password       =	$report_details[$counter][14];
												
									?>
                                        <tr>
                                            <td><?php echo $counter+1; ?></td>
											<td><?php echo $prn; ?></td>
											<td><?php echo $full_name; ?></td>
											<td><?php echo $last_name; ?></td>
											<td><?php echo $department; ?></td>
											<td><?php echo $semster; ?></td>
											<td><?php echo $division; ?></td>
											<td><?php echo $email_id; ?></td>
											<td><?php echo $roll_no; ?></td>
											
											<td><?php echo $gender; ?></td>
											<td><?php echo $address; ?></td>
											<td><?php echo $dob; ?></td>
											<td><?php echo $contact_no; ?></td>
											<td><?php echo $password; ?></td>
											<?php
											if($image != "")
											{
											?>
                                            <td><a href="/profile-picture/<?php echo $image; ?>" target="_blank"><img src="/profile-picture/<?php echo $image; ?>" height="50px" width="50px"></a></td>

											<?php
											}else
											{
											?>
											 <td><img src="/images/no_image_available.png" height="50px" width="50px"></td>

											<?php
											}
											?>
											<td><a href="edit-student-panel.php?up_id=<?php echo $id; ?>"> Edit </a></td>
                                            <td><a href="/admin/student-report.php?delete_id=<?php echo $id;?>&image=<?php echo $image;?>" onclick="return confirm('Are you sure?');">Delete</a></td>
										</tr>
                                       <?php
										$counter ++;
											}
										}else
										{
										?>
										<td colspan="20">No Data Found...</td>
										<?php
										}
									   
									   
									   ?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                       
                                
                                   
                               
                                
                            </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