Şuanki Dizin: /home/wwwdreamtechnolo/www/vsacademysolapur.in/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/vsacademysolapur.in/admin/edit-team-report.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['add2'])) { $team_name = $_POST['team_name']; $education = $_POST['education']; $experience = $_POST['experience']; $qualification = $_POST['qualification']; $select_subject = $_POST['select_subject']; if($db->update_team_details($team_name,$education,$experience,$qualification,$select_subject,$edit_id)) { $flag = 1; } } $recorded_data = array(); $recorded_data = $db->get_team_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]; $team_name =$recorded_data[1]; $education =$recorded_data[2]; $experience =$recorded_data[3]; $qualification =$recorded_data[4]; $select_subject =$recorded_data[5]; $date =$recorded_data[6]; $time =$recorded_data[7]; } ?> <!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 Team 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"> Team Details Updated Successfully. </div> <?php } if($flag == 2) { ?> <div class="alert alert-warning"> Team 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 Team 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>Name</b></label> <input type="text" name="team_name" class="form-control form-control-air" placeholder="Enter Name " value="<?php echo $team_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>Education</b></label> <input type="text" name="education" class="form-control form-control-air" placeholder="Enter Education" value="<?php echo $education; ?>" reqired /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="form-group mb-4 set-row label_marg"><b>Experience</b></label> <input type="text" name="experience" class="form-control form-control-air" placeholder=" Enter Experience" value="<?php echo $experience; ?>" reqired /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="form-group mb-4 set-row label_marg"><b>Qualification</b></label> <input type="text" name="qualification" class="form-control form-control-air" placeholder="Enter Qualification" value="<?php echo $qualification; ?>" reqired /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="form-group mb-4 set-row label_marg"><b> Select Subject</b></label> <select name="select_subject" id="select_subject" class="form-control form-control-air" required> <option value="select_subject"> Select Subject</option> <option value="Physics" <?php if($select_subject=="Physics"){?> selected <?php }?>>Physics</option> <option value="Chemistry" <?php if($select_subject=="Chemistry"){?> selected <?php }?>>Chemistry</option> <option value="Maths" <?php if($select_subject=="Maths"){?> selected <?php }?>>Maths</option> <option value="Biology" <?php if($select_subject=="Biology"){?> selected <?php }?>>Biology</option> </select> </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="add2" style="width:50%;">Update Team Details</button> </div> <center><a href="team-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>
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