ok
Direktori : /proc/thread-self/root/proc/self/root/home/ngwcolle/public_html/LIBRARY-NGWC/admin/ |
Current File : //proc/thread-self/root/proc/self/root/home/ngwcolle/public_html/LIBRARY-NGWC/admin/borrow.php |
<?php session_start(); //DB conncetion include_once('includes/config.php'); //validating Session if (strlen($_SESSION['aid']==0)) { header('location:logout.php'); } else{ // if(isset($_POST['submit'])) // { // $tname=$_POST['teamname']; // $tlname=$_POST['teamleadname']; // $mobno=$_POST['mobilenumber']; // $tmember=$_POST['teammember']; // $query=mysqli_query($con, "insert into tblteams(teamName,teamLeaderName,teamLeadMobno,teamMembers) values('$tname','$tlname','$mobno','$tmember')"); // if ($query) { // echo '<script>alert("Team Created.")</script>'; // echo "<script>window.location.href ='manage-teams.php'</script>"; // }else{ // echo '<script>alert("Something Went Wrong. Please try again.")</script>'; // } // } ?> <!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, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title> Material Issue</title> <link rel="icon" type="image/x-icon" href="../assets/favicon.ico" /> <!-- Custom fonts for this template--> <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet"> <!-- Custom styles for this template--> <link href="css/sb-admin-2.min.css" rel="stylesheet"> <link href="vendor/select2/select2.min.css" rel="stylesheet"> <style type="text/css"> label{ font-size:16px; font-weight:bold; color:#000; } .select2-container .select2-selection--single{ height:34px !important; } .select2-container--default .select2-selection--single{ border: 1px solid #ccc !important; border-radius: 0px !important; } </style> </head> <body id="page-top"> <!-- Page Wrapper --> <div id="wrapper"> <?php include_once('includes/sidebar.php');?> <!-- Content Wrapper --> <div id="content-wrapper" class="d-flex flex-column"> <!-- Main Content --> <div id="content"> <!-- Topbar --> <?php include_once('includes/topbar.php');?> <!-- End of Topbar --> <!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <h1 class="h3 mb-4 text-gray-800">Material Issue to Patron</h1> <form method="post" name="adminprofile" > <div class="row"> <div class="col-lg-8"> <!-- Basic Card Example --> <div class="card shadow mb-4"> <div class="card-body"> <div class="form-group"> <label>Select Patron Type</label> <select name="ptype" id="ptype" class="form-control"> <option value="">--Select Patron Type--</option> <option value="1">Staff</option> <option value="2">Student</option> <option value="3">Alumni</option> <option value="4">Most Valuable Partner</option> </select> </div> <div class="form-group"> <label>Select Roll No/Employee ID</label> <select name="pid" id="pid" class="form-control select2"> <option value="">Select Roll No/Emp ID</option> </select> </div> <div class="form-group"> <input type="submit" class="btn btn-primary btn-user btn-block" name="submit" id="submit" value="Submit"> </div> </div> </div> </div> </div> </form> </div> <!-- /.container-fluid --> </div> <!-- End of Main Content --> <?php include_once('includes/footer.php');?> </div> <!-- End of Content Wrapper --> </div> <!-- End of Page Wrapper --> <!-- Scroll to Top Button--> <?php include('includes/config.php'); if(isset($_POST['submit'])) { $school_number = $_POST['pid']; $sql = mysqli_query($con,"SELECT * FROM tbl_students WHERE rollno = '$school_number' "); $count = mysqli_num_rows($sql); $row = mysqli_fetch_array($sql); if($count <= 0){ echo "<div class='alert alert-success'>".'No match found for the School ID Number'."</div>"; }else{ $school_number = $_POST['pid']; echo ('<script> location.href="borrow_book.php?school_number='.$school_number.'";</script'); } } ?> <?php include_once('includes/footer2.php');?> <!-- Bootstrap core JavaScript--> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="vendor/select2/select2.min.js"></script> <!-- Core plugin JavaScript--> <script src="vendor/jquery-easing/jquery.easing.min.js"></script> <!-- Custom scripts for all pages--> <script src="js/sb-admin-2.min.js"></script> <script> $('.select2').select2(); </script> <script> $(document).ready(function(){ // $("#pid").change(function(){ // var selectedCountry = $(this).children("option:selected").val(); // alert(selectedCountry); // }); // get patrin to select2 $("#ptype").change(function(){ // var selectedCountry = $(this).children("option:selected").val(); if($('#ptype').val()=="") { alert("Select Patron Type"); // $(this).val(""); return false; } else { var clid1 = $('#ptype').val(); } $.ajax({ type:"POST", url: "ajax/getlpatronlist.php", data: {admyear:clid1}, // dataType:'json', success:function(data){ // alert(data); $("#pid").html(data); } }); // $("#nod").val(days); // $('#minage').val(clid); }); //patron addition ends }); </script> </body> </html> <?php } ?>