<div class="box-header" data-original-title> <h2> <i class="halflings-icon list"></i> <span class="break"></span> <b>Attendance</b> </h2> <div class="box-icon"> <a href="hostelEntry.php"><i class="halflings-icon plus"></i></a> <a href="#" class="btn-minimize"> <i class="halflings-icon chevron-up"></i> </a> </div> </div> <?php $hObj = new dbHostel(); $sObj = new dbStudent(); $result = $hObj->getHostelNames(); ?> <form action ="<?php echo $_SERVER['PHP_SELF']; ?> " method="POST" > <div class="box-content"> <!-- <input type="button" onClick="fetch_r( 'H1', 11 )" value="TEST"></input> --> <table>
<?php include '../../Model/dbHostel.php'; $id = $_GET['id']; $obj = new dbHostel(); $obj->hostelDelete($id); header('location: /schoolNew/View/hostels/hostelList.php');
<?php session_start(); include '../../Model/dbHostel.php'; $id = $_GET['id']; $obj = new dbHostel(); //print_r($row); //echo "<br>".$for; ?> <html lang="en"> <head> <!-- start: Meta --> <meta charset="utf-8"> <title>Hostel Report</title> <!-- end: Meta --> <!-- start: Mobile Specific --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- end: Mobile Specific --> <!-- start: CSS --> <link id="bootstrap-style" href="../../Theme/css/bootstrap.min.css" rel="stylesheet"> <link href="../../Theme/css/bootstrap-responsive.min.css" rel="stylesheet"> <link id="base-style" href="../../Theme/css/style.css" rel="stylesheet"> <link id="base-style-responsive" href="../../Theme/css/style-responsive.css" rel="stylesheet"> <link id="font-awesome" href="../../Theme/css/font-awesome.css" rel="stylesheet"> <link id="font-awesomemin" href="../../Theme/css/font-awesome.min.css" rel="stylesheet"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'>
<?php include '../../Model/dbHostel.php'; $mykey = array(); $myvalue = array(); foreach ($_POST as $key => $value) { if ($key != 'submit') { $mykey[] = $key; $myvalue[] = $value; } } $obj = new dbHostel(); $obj->insertData('tblhostelrooms', $mykey, $myvalue); print_r($mykey); print_r($myvalue); header('location: /schoolNew/View/hostels/hostelList.php');
<?php include '../../Model/dbHostel.php'; $finalArray = array(); foreach ($_POST as $key => $valuesArray) { if ($key != 'submit') { if ($key == 'id') { $id = $valuesArray; } else { $finalArray[] = $key . " = '" . $valuesArray . "'"; } } } $obj = new dbHostel(); $obj->editAnyData('tblhostel', $finalArray, $id); header('location: /schoolNew/View/hostels/hostelList.php');
<?php include '../../Model/dbHostel.php'; $id = $_GET['id']; $obj = new dbHostel(); $result = $obj->hostelViewSingle($id); $row = mysqli_fetch_assoc($result); //print_r($row); ?> <!DOCTYPE html> <html lang="en"> <head> <!-- start: Meta --> <meta charset="utf-8"> <title>Hostel Entry</title> <!-- end: Meta --> <!-- start: Mobile Specific --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- end: Mobile Specific --> <!-- start: CSS --> <link id="bootstrap-style" href="../../Theme/css/bootstrap.min.css" rel="stylesheet"> <link href="../../Theme/css/bootstrap-responsive.min.css" rel="stylesheet"> <link id="base-style" href="../../Theme/css/style.css" rel="stylesheet"> <link id="base-style-responsive" href="../../Theme/css/style-responsive.css" rel="stylesheet"> <link id="font-awesome" href="../../Theme/css/font-awesome.css" rel="stylesheet"> <link id="font-awesomemin" href="../../Theme/css/font-awesome.min.css" rel="stylesheet">
<div class="box-header" data-original-title> <h2><i class="halflings-icon plus"></i><span class="break"></span>Add Hostel</h2> <div class="box-icon"> <a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a> </div> </div> <div class="box-content"> <form class="form-horizontal" action="hostelStudentSavingPage.php" method="GET"> <fieldset> <!-- OBJECT FOR STUDENT & HOSTELS --> <?php $hstObj = new dbHostel(); $stdObj = new dbStudent(); $hostelDetail = $hstObj->getHostelNameFromId($_GET['nHostelId']); $hostelRow = mysqli_fetch_assoc($hostelDetail); extract($hostelRow); $roomDetails = $hstObj->getRoomNameFromId($_GET['nRoomId']); $roomRow = mysqli_fetch_assoc($roomDetails); extract($roomRow); $allStudentData = $stdObj->getAllStudentDatas(); //$allStudent = mysqli_fetch_assoc($allStudentData); //extract($allStudent); ?> <input type = "hidden" name = "nHostelId" value = "<?php echo $_GET['nHostelId']; ?>
<?php include '../../Model/dbHostel.php'; $hostelName = $_POST['hostelname']; $hostelFor = $_POST['hostelfor']; $address = $_POST['hosteladdress']; $capacity = $_POST['hostelcapacity']; $myvalue = array('hostelname' => $hostelName, 'hostelfor' => $hostelFor, 'hosteladdress' => $address, 'hostelcapacity' => $capacity); $obj = new dbHostel(); $obj->insertAnyData('tblhostel', $myvalue); header('location: /schoolNew/View/hostels/hostelList.php');
</ul> <div class="row-fluid sortable"> <div class="box span12"> <div class="box-header" data-original-title> <h2><i class="halflings-icon list"></i><span class="break"></span><b>Hostels</b></h2> <div class="box-icon"> <a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a> </div> </div> <?php $obj = new dbHostel(); $result = $obj->getDataHostelModel1(); ?> <div class="box-content"> <table class="table table-striped table-bordered bootstrap-datatable datatable"> <thead> <tr> <th style="text-align:center">Hostel ID</th> <th style="text-align:center">Hostel Name</th> <th style="text-align:center">Hostel For</th> <th style="text-align:center">Hostel Address</th> <th style="text-align:center">Hostel Capacity</th> </tr> </thead>
<?php session_start(); include '../../Model/dbHostel.php'; if (!isset($_SESSION['username'])) { header('location: /schoolNew/View/user/login.php'); } $id = $_GET['id']; $obj = new dbHostel(); $obj->studentEntryDelete($id); header('location: /schoolNew/View/hostels/hostelStudentEntry.php');
<label class="radio"> <input type="radio" name="standard" value="12" >12 </label> --> <input type="submit" name="getDetails" value="Go !" margin="100px" onClick="fetch_r(hostelList.value,standard.value);" /> <center> <div > <u><b>HOSTEL NAME : <?php echo $hostelName; ?> </b></u> </div> </center> <?php $hObj = new dbHostel(); // if ( $_SERVER['REQUEST_METHOD'] == "POST" ){ // $hostelName = $_POST['hostelList']; // // echo $hostelName; // // echo "<script> alert ('hello'); </script>"; // // $row = mysqli_fetch_assoc(); // } ?> <!-- <input type="radio" name="standard" value="12">12</input> --> <table class="table table-striped table-bordered bootstrap-datatable datatable"> <thead> <tr>