<?php
include_once(dirname(__FILE__) . '/../class/include.php');
include_once(dirname(__FILE__) . '/auth.php');
$id = '';
if (isset($_GET['id'])) {
$id = $_GET['id'];
}
$DIS = new District($id);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Edit District </title>
<!-- Favicon-->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<!-- Bootstrap Core Css -->
<link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Waves Effect Css -->
<link href="plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Animation Css -->
<link href="plugins/animate-css/animate.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="css/style.css" rel="stylesheet">
<!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-red">
<?php
include './navigation-and-header.php';
?>
<section class="content">
<div class="container-fluid">
<!-- Body Copy -->
<?php
$vali = new Validator();
$vali->show_message();
?>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
Edit District
</h2>
<ul class="header-dropdown">
<li class="">
<a href="manage-district.php">
<i class="material-icons">list</i>
</a>
</li>
</ul>
</div>
<div class="body row">
<form class="form-horizontal col-sm-9 col-md-9" method="post" action="post-and-get/district.php" enctype="multipart/form-data">
<div class="row clearfix">
<div class="col-lg-2 col-md-2 hidden-sm hidden-xs form-control-label">
<label for="name">Name</label>
</div>
<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12">
<div class="form-group">
<div class="form-line">
<label for="name" class="hidden-lg hidden-md">Name</label>
<input type="text" id="name" class="form-control" placeholder="Enter name" value="<?php echo $DIS->name; ?>" name="name" required="TRUE">
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-2 col-md-2 hidden-sm hidden-xs form-control-label">
<label for="name">Delivery Charge (Rs.)</label>
</div>
<div class="col-lg-10 col-md-10 col-sm-12 col-xs-12">
<div class="form-group">
<div class="form-line">
<label for="name" class="hidden-lg hidden-md">Delivery Charge (Rs.)</label>
<input type="text" id="delivery_charge" class="form-control" placeholder="Enter delivery charge" value="<?php echo $DIS->delivery_charge; ?>" name="delivery_charge" required="TRUE">
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-offset-2 col-md-offset-2 col-sm-offset-4 col-xs-offset-5">
<input type="hidden" id="id" value="<?php echo $DIS->id; ?>" name="id"/>
<input type="hidden" id="authToken" value="<?php echo $_SESSION["authToken"]; ?>" name="authToken"/>
<button type="submit" class="btn btn-primary m-t-15 waves-effect" name="update" value="submit">Save Changes</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Jquery Core Js -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap Core Js -->
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<!-- Select Plugin Js -->
<script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
<!-- Slimscroll Plugin Js -->
<script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="plugins/node-waves/waves.js"></script>
<!-- Custom Js -->
<script src="js/admin.js"></script>
<!-- Demo Js -->
<script src="js/demo.js"></script>
</body>
</html> |