OverLord Shell
<?php session_start();
include("db/conn.php");
include_once("headerdash.inc.php");
include("sidebar.php");
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();header("location:login.php");}
$loggedin = (!empty($_SESSION['loggedin'])) ? $_SESSION['loggedin'] : null;
$companyid = (!empty($_SESSION['company_id'])) ? $_SESSION['company_id'] : null;
$companyname = (!empty($_SESSION['company_name'])) ? $_SESSION['company_name'] : null;
isAuthorized($companyid ,$companyname,$loggedin);
$editrow = getData('busdir_mst_all_company','company_id',$companyid,null,'and active="y" and deleted="n"');
if(empty($editrow))header("location:404.php");
$webpagetitle="Add";
?>
<!--BEGIN CONTENT-->
<section>
<div class="second-page-container" style="padding-top: 30px;ba">
<div class="container">
<div class=" row " >
<div class="col-md-8">
<div class=" well col-lg-6 col-sm-6" style="width: 121%; padding-top:3%;
border-top-color: red;
border-top-width: 7px;">
<fieldset><legend> <h4 class="wow fadeInRight animated" data-wow-duration="1s" style="color:red; padding-top:2%;"><?php echo"$webpagetitle"; ?></h4></legend><br>
<form role="form" id="addform">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>Sender Name: <span class="require">*</span></label>
<?php
$listq1="SELECT * FROM busdir_mst_company where active='y' ";
//echo $listq1;exit;
$listr1=$connection->query($listq1);
?>
<div class="form-group ">
<select class="form-control" name="company_id" id="company_id">
<option value="">Select</option>
<?php
while($listrow1=$listr1->fetch_assoc()){
?>
<option style="width: 98%;"value="<?php echo $listrow1['company_name'];?>"><?php echo $listrow1['company_name'];?>
</option>
<?php
}?></select>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label>Name <span class="require">*</span></label>
<div class="input-icon"><i class="fa fa-map-marker"></i>
<input type="text" class="form-control" name="client_name" id="client_name" maxlength="100" data-validation="required" data-validation-error-msg="Invalid Name">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label> Email <span class="require">*</span></label>
<div class="input-icon"><i class="fa fa-map-envelope"></i>
<input type="text" class="form-control" name="client_email" id="client_email" maxlength="50" data-validation="email" data-validation-error-msg="Invalid Email" >
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label> Mobile <span class="require">*</span></label>
<input type="text" class="form-control" name="client_phone" id="client_phone" maxlength="15" data-validation="required number" data-validation-error-msg="Invalid Mobile number">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10">
<div class="form-group">
<label> Address<span class="require">*</span></label>
<textarea class="form-control" name="client_address" id="client_address" maxlength="500" data-validation-error-msg="Invalid review"></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10">
<div class="form-group">
<label>Comments<span class="require">*</span></label>
<textarea class="form-control" name="comment" id="comment" maxlength="2000" data-validation-error-msg="Invalid review"></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10">
<div class="form-group">
<label>Level<span class="require">*</span></label><br>
<input type="radio" name="level" value="1" checked>1
<input type="radio" name="level" value="2"> 2
<input type="radio" name="level" value="3"> 3
<input type="radio" name="level" value="4">4
<input type="radio" name="level" value="5">5
</div>
</div>
</div>
<div class="note note-danger displaynone"></div>
<div style="float:right;">
<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></div>
</form>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<!--END CONTENT-->
<script src="js/validate.js"></script>
<?php include_once("footer.inc.php");connClose();?>
xRyukZ - Copyright 2k19