<?php
if(isset($_POST['token'])){

		include_once('../../../db_connect/db.php');
		$campus_id = $_POST["token"];

		$sqlmg=mysqli_query($conn_1, "select * from hostel_campuses where  id='$campus_id' ") or die(mysqli_error());


									if($sqlmg){
										$sqlmg_row=mysqli_num_rows($sqlmg);
											if($sqlmg_row >0){

												while($row=mysqli_fetch_assoc($sqlmg)){

													$id=$row['id'];
													$title=$row['title'];
													$description=$row['description'];
													$date_added=$row['date_added'];
													$added_by=$row['added_by'];
													$modified_by=$row['modified_by'];
													$campus_status=$row['status'];



												}
											}
									}



}



?>
<form method="POST" id="edit_form_faculty" >

				<input id="faculty_id" name="campus_id" type="hidden" class="form-control required" value="<?=$id;?>" required />

				<div class="form-group row">
				<label for="title" class="col-sm-3 col-form-label text-right">Title : (*)
				</label>
					<div class="col-sm-9">
						<input id="title" name="title" type="text"
						placeholder="Title " class="form-control required" value="<?=$title;?>" required />
					</div>
             </div>
						 <div class="form-group row">
	 										<label class="col-sm-3 col-form-label text-right"> Description</label>
	 							<div class="col-sm-9">
	 								<textarea class="form-control" rows="2" name="description" id="comment"><?=$description;?></textarea>
	 							</div>
	 					</div>





						 <div class="form-group row">
						 <label for="Phone Number" class="col-sm-3 col-form-label text-right">Status
						 </label>
							 <div class="col-sm-9">
								 <select class="form-control select21" name="status" id="status">
										<option value="">----- Select ----</option>
										<option value="0">Block</option>
										<option value="1">Unblock</option>
									</select>
							 </div>
									 </div>




						<div id="button_edit">
							<center>
														<button class="button button-3d button-primary button-rounded btn_3d" type="submit">Update
												</button>
						</div>
             </form>

			 <center>
				<div id="output_error_edit">

				</div>
			</center>
