OverLord Shell
<?php session_start();
include("db/conn.php");
include_once("header.inc.php");
include("sidebar.php");
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();header("location:login.php");}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){ header("location:404.php");}
$webpagetitle="Update Compamy Location";
$arrinfo = getData('busdir_mst_company_location','location_id',base64_decode($_GET['id']),null,null);
?>
<a href="javascript:void(0)" class="btn btn-info pull-right" onClick="history.back()" style=" margin-right: 4%; margin-top: 1%;margin-bottom: 1%;"><i class="fa fa-angle-left mrm" ></i>Go Back</a>
<!--BEGIN CONTENT-->
<div class="page-content">
<div class="row">
<div class="col-md-8">
<div class="panel">
<div class="panel-body">
<h2 class="wow fadeInRight animated" data-wow-duration="1s" style="color:red"> Edit Location</h2><br>
<form role="form" id="updateform">
<input type="hidden" class="form-control" name="location_id" id="location_id" value="<?php echo $arrinfo['location_id']; ?>">
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<label>Company Address <span class="require">*</span></label>
<div class="input-icon"><i class="fa fa-map-marker"></i>
<input type="text" class="form-control" name="company_address" id="company_address" value="<?php echo $arrinfo['company_address']?>" maxlength="100" data-validation="required" data-validation-error-msg="Invalid Company Address">
</div>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label> State <span class="require">*</span></label>
<?php echo getDropDown('company_state','busdir_states','state','state',null,$arrinfo['company_state'],null,'valid=true','form-control'); ?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<label> City <span class="require">*</span></label>
<input type="text" class="form-control" name="company_district" id="company_district" value="<?php echo $arrinfo['company_district']?>" maxlength="100" data-validation="required" data-validation-error-msg="Invalid City">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label> Pin No <span class="require">*</span></label>
<input type="text" class="form-control" name="company_pinno" id="company_pinno" value="<?php echo $arrinfo['company_pinno']?>" maxlength="100" data-validation="number" data-validation-error-msg="Invalid Pin No">
</div>
</div>
</div>
<div class="note note-danger displaynone"></div>
<button type="submit" class="btn btn-primary" data-loading-text="Submitting...">Save</button>
<button type="reset" class="btn btn-default" onClick="$('.note-danger').hide()">Reset</button>
<a href="javascript:void(0)" class="btn btn-link" onclick="history.back()"><i class="fa fa-angle-left mrm"></i>Go Back</a>
</form>
</div>
</div>
</div>
</div>
</div>
<!--END CONTENT-->
<script src="js/validate.js"></script>
<?php $connection->close();include("footer.php")?>
xRyukZ - Copyright 2k19