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/qnt-qlty.php

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

    if(isset($_GET['del_id']))
	{
		$del_id	=	$_GET['del_id'];
		$file = $_GET['file'];
		
		$db->delete_detail($del_id);
		unlink('../docs_pdf/'.$file);
	}	
	
					$table="";
					$serial_no="";
					$title="";
					$cfile="";
					$msg="";
					if(isset($_POST['submit']))
					{
						$table		=	$_POST['table'];
						$serial_no	=	$_POST['serial_no'];
						$title		=	$_POST['title'];
						$sequence   =   $_POST['sequence'];
						$year       =   $_POST['year'];
						
						$Make_Dir = "../docs_pdf/";
						
						if(!file_exists($Make_Dir))
						{
							mkdir($Make_Dir);
						}
						
						$cfile = $_FILES['cfile']['name'];
						if($cfile!="")
						{
					    	$target = "../docs_pdf/".basename($cfile);
						
							if (move_uploaded_file($_FILES['cfile']['tmp_name'], $target)) 
							{
									$error_message = "file uploaded successfully";
							}
							else
							{
									$error_message = "Failed to upload file";
							}
						}
						
						$data_template = $_FILES['data_template']['name'];
						if($data_template!="")
						{
					    	$target = "../docs_pdf/".basename($data_template);
						
							if (move_uploaded_file($_FILES['data_template']['tmp_name'], $target)) 
							{
									$error_message = "file uploaded successfully";
							}
							else
							{
									$error_message = "Failed to upload file";
							}
						}
						
						$supportive_doc = $_FILES['supportive_doc']['name'];
						if($supportive_doc!="")
						{
					    	$target = "../docs_pdf/".basename($supportive_doc);
						
							if (move_uploaded_file($_FILES['supportive_doc']['tmp_name'], $target)) 
							{
									$error_message = "file uploaded successfully";
							}
							else
							{
									$error_message = "Failed to upload file";
							}
						}
  
						if($db->insert_details($table,$serial_no,$title,$cfile,$sequence,$year,$data_template,$supportive_doc))
						{
		
							$msg=1;
						}
						else
						{
								$msg=2;
						}
					}

?>
<?php
	require_once('header.php');
?>
<style>
.form-group
{
	margin:auto;
	height:300px; 
	width:500px;
	margin-top:50px;
	
}
</style>
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">AQAR Documents</h1>
                </div>
            </div>
            
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                             AQAR Documents
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form autocomplete="off" method="post" enctype="multipart/form-data">
				<div class="form-group">
					<?php
									if($msg==1)
									{
								?>
									<div class="alert alert-success">
									<span class="alert-link">Success! </span>Your Details Added  Successfully.
									</div>	
								<?php
									}
								?>
										
								<?php
								if($msg==2)
									{
								?>
									
									<div class="alert alert-danger">
									<span class="alert-link">Failed! </span> Your Details failed to add.
									</div>	
								<?php
									}
	?>
	
                
                    <input type = "text" name = "year" placeholder ="Enter Year" class="form-control" value="SSR Documents" required readonly>
                    
					<label for="sel1">Select Table:</label>
					<select class="form-control" id="di" name="table">
					<option value="select tabel">Select Table</option>
					<option value="8">COLLEGE PROFILE</option>
					<option value="0">EXTENDED PROFILE</option>
					<option value="1">CRITERION 1 – CURRICULAR ASPECTS</option>
					<option value="2">CRITERION 2 - TEACHING- LEARNING AND EVALUATION</option>
					<option value="3">CRITERION 3 - RESEARCH, INNOVATIONS AND EXTENSION</option>
					<option value="4">CRITERION 4 - INFRASTRUCTURE AND LEARNING RESOURCES</option>
					<option value="5">CRITERION 5 - STUDENT SUPPORT AND PROGRESSION</option>
					<option value="6">CRITERION 6- GOVERNANCE, LEADERSHIP AND MANAGEMENT</option>
					<option value="7">CRITERION 7 – INSTITUTIONAL VALUES AND BEST PRACTICES</option>
					</select><br>

					<input type = "text" name = "serial_no" placeholder ="Enter Serial No" class="form-control" required><br>
				
					<input type = "text" name ="title" placeholder="Enter Title" class="form-control" required><br>
					
					<input type = "number" name ="sequence" placeholder="Enter Sequence No" class="form-control" required ><br>

					<input type = "file" name="cfile" ><br>
					
					<input type = "file" name="data_template" ><br>
					
					<input type = "file" name="supportive_doc" ><br>
					
					<input type="submit" name="submit" value="Submit" class="btn btn-primary col-sm-6" style="margin-left:100px;;" />
				
				</div>	
				</form>
            </div>
            
                                
                <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                           Quantitative  / Qualitative :
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive">
                                
                                <div class="about-grids" style="width:1300px;">
		
		<table class="table table-bordered" border="1">
  <thead>
    <tr>
		<th scope="col" width="50">Sr.</th>
		<th scope="col">Year</th>
		<th scope="col">Table</th>
		<th scope="col">Serial No</th>
		<th scope="col">Title</th>
		<th scope="col">File</th>
		<th scope="col">Sequence No</th>
		<th scope="col">Date</th>
		<th scope="col">Time</th>
		<th scope="col">Delete</th>
		<th scope="col">Edit</th>
    </tr>
  </thead>
  <tbody>
  
  <?php
            $year = "-";
			$select_data	=	array();
			$select_data	=	$db->get_details($year);
			
			if(!empty($select_data))
			{
				$counter = 0;
				foreach($select_data as $record)
				{
					$res_id			=	$record[0];
					$table			=	$record[1];
					$serial_no		=	$record[2];
					$title			=	$record[3];
					$cfile			=	$record[4];
					$date			=	$record[5];
					$time			=	$record[6];
					$sequence       =   $record[7];
					$year           =   $record[8];
					
					if($table=="0")
					{
					    $table = "EXTENDED PROFILE";
					}
					else if($table=="1")
					{
					    $table = "CRITERION 1 – CURRICULAR ASPECTS";
					}
					else if($table=="2")
					{
					    $table = "CRITERION 2 - TEACHING- LEARNING AND EVALUATION";
					}
					else if($table=="3")
					{
					    $table = "CRITERION 3 - RESEARCH, INNOVATIONS AND EXTENSION";
					}
					else if($table=="4")
					{
					    $table = "CRITERION 4 - INFRASTRUCTURE AND LEARNING RESOURCES";
					}
					else if($table=="5")
					{
					    $table = "CRITERION 5 - STUDENT SUPPORT AND PROGRESSION";
					}
					else if($table=="6")
					{
					    $table = "CRITERION 6- GOVERNANCE, LEADERSHIP AND MANAGEMENT";
					}
					else if($table=="7")
					{
					    $table = "CRITERION 7 – INSTITUTIONAL VALUES AND BEST PRACTICES";
					}
					else if($table=="8")
					{
					    $table = "COLLEGE PROFILE";
					}
					
					
					
			?>
			<tr>
				<td scope="row"><?php echo $counter+1; ?></td>
				<td scope="row"><?php echo $year ?></td>
				<td scope="row"><?php echo $table ?></td>
				<td scope="row"><?php echo $serial_no ?></td>
				<td scope="row" style="text-align:left;"><?php echo $title ?></td>
				<td scope="row">
				    <a href="../docs_pdf/<?php echo $cfile; ?>">
				        <img src="images/file.jpg" class="img-responsive"style="height:20px; width:20px;" />
				    </a>
				    
			    </td>
				<td scope="row"><?php echo $sequence ?></td>
				<td scope="row"><?php echo $date ?></td>
				<td scope="row"><?php echo $time?></td>
				<td scope="row"><a href="<?php echo $_SERVER['PHP_SELF']."?del_id=".$res_id; ?>&file=<?php echo $cfile; ?>" onclick="return confirm('Are you sure you want to delete this record?');">Delete</a></td>
				<td scope="row"><a href="edit-details.php?edit_id=<?php echo $res_id;?>">Edit</a></td

			</tr>
			<?php
					$counter++;	
				}
			}
	?>
  </tbody>
</table>

		<div class="clearfix"></div>
		</div>
                                
                            </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