GIF89a
<?php
session_start();
include 'db.php';
$cid=intval($_GET['cid']);
$editempid = mysqli_query($db,"SELECT * from p6 where id='$cid'");
$editemp = mysqli_fetch_assoc($editempid);
if(isset($_GET['cid1']))
{
$cid1=intval($_GET['cid1']);
$insert = $db->query("update p6 set file1='' where id='$cid1'");
echo "<script>document.location='Service-view.php?cid=$cid1'</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from thememinister.com/crm/add-customer.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 03 Oct 2019 15:43:24 GMT -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Service</title>
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="assets/dist/img/ico/favicon.png" type="image/x-icon">
<!-- Start Global Mandatory Style
=====================================================================-->
<!-- jquery-ui css -->
<link href="assets/plugins/jquery-ui-1.12.1/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<!-- Bootstrap -->
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<!-- Bootstrap rtl -->
<!--<link href="assets/bootstrap-rtl/bootstrap-rtl.min.css" rel="stylesheet" type="text/css"/>-->
<!-- Lobipanel css -->
<link href="assets/plugins/lobipanel/lobipanel.min.css" rel="stylesheet" type="text/css"/>
<!-- Pace css -->
<link href="assets/plugins/pace/flash.css" rel="stylesheet" type="text/css"/>
<!-- Font Awesome -->
<link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<!-- Pe-icon -->
<link href="assets/pe-icon-7-stroke/css/pe-icon-7-stroke.css" rel="stylesheet" type="text/css"/>
<!-- Themify icons -->
<link href="assets/themify-icons/themify-icons.css" rel="stylesheet" type="text/css"/>
<!-- End Global Mandatory Style
=====================================================================-->
<!-- Start Theme Layout Style
=====================================================================-->
<!-- Theme style -->
<link href="assets/dist/css/stylecrm.css" rel="stylesheet" type="text/css"/>
<!-- Theme style rtl -->
<!--<link href="assets/dist/css/stylecrm-rtl.css" rel="stylesheet" type="text/css"/>-->
<!-- End Theme Layout Style
=====================================================================-->
</head>
<body class="hold-transition sidebar-mini">
<?php include('include/header.php'); ?>
<!-- =============================================== -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="header-icon">
<i class="fa fa-users"></i>
</div>
<div class="header-title">
<h1>Edit Service</h1>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<!-- Form controls -->
<div class="col-sm-12">
<div class="panel panel-bd lobidrag">
<div class="panel-heading">
<div class="btn-group" id="buttonlist">
<a href="#">
<h4>Service</h4>
</a>
</div>
</div>
<div class="panel-body">
<form class="col-sm-6" method="POST" action="employee-service.php" enctype="multipart/form-data">
<div class="form-group">
<label>Edit Service</label>
<input type="text" name="name" class="form-control" value="<?php echo(isset($editemp["name"]))?$editemp["name"]:""; ?>" placeholder="Enter Service">
</div>
<div class="form-group">
<label>Edit Service Details</label>
<textarea type="text" name="name1" class="form-control" placeholder="Enter Service Details"><?php echo(isset($editemp["name1"]))?$editemp["name1"]:""; ?></textarea>
</div>
<div class="form-group">
<label>Edit Service Image</label>
<input type="file" name="file1" class="form-control" placeholder="Upload File">
<?php
$ret=mysqli_query($db,"select * from p6 where id='$cid'");
while($row=mysqli_fetch_array($ret))
{
?>
<img src= "image/Services/<?php echo $row['file1'];?>" style="height:200px;width:200px;">
<a type="button" class="btn btn-danger" href="Service-edit.php?cid1=<?php echo $row['id'];?>">Remove Image</a>
<?php }
?>
</div>
<input type="text" name="id" hidden="" value="<?php echo(isset($editemp['id']))?$editemp['id']:''; ?>">
<input type="text" name="type" hidden="" value="<?php echo(isset($editemp['type']))?$editemp['type']:''; ?>">
<input type="text" name="stat" hidden="" value="<?php echo(isset($editemp['stat']))?$editemp['stat']:''; ?>">
<input type="text" name="file2" hidden="" value="<?php echo(isset($editemp["file1"]))?$editemp["file1"]:""; ?>">
<input type="text" name="file4" hidden="" value="<?php echo(isset($editemp["file2"]))?$editemp["file2"]:""; ?>">
<div class="reset-button">
<button type="submit" name="submit" class="btn btn-success">Save</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php include('include/footer.php'); ?>
</div>
<!-- ./wrapper -->
<!-- Start Core Plugins
=====================================================================-->
<!-- jQuery -->
<script src="assets/plugins/jQuery/jquery-1.12.4.min.js" type="text/javascript"></script>
<!-- jquery-ui -->
<script src="assets/plugins/jquery-ui-1.12.1/jquery-ui.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<script src="assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<!-- lobipanel -->
<script src="assets/plugins/lobipanel/lobipanel.min.js" type="text/javascript"></script>
<!-- Pace js -->
<script src="assets/plugins/pace/pace.min.js" type="text/javascript"></script>
<!-- SlimScroll -->
<script src="assets/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<!-- FastClick -->
<script src="assets/plugins/fastclick/fastclick.min.js" type="text/javascript"></script>
<!-- CRMadmin frame -->
<script src="assets/dist/js/custom.js" type="text/javascript"></script>
<!-- End Core Plugins
=====================================================================-->
<!-- Start Theme label Script
=====================================================================-->
<!-- Dashboard js -->
<script src="assets/dist/js/dashboard.js" type="text/javascript"></script>
<!-- End Theme label Script
=====================================================================-->
<script>
$("#name").select2( {
placeholder: "Select name",
allowClear: true
} );
</script>
<script>
$("#name").select2( {
placeholder: "Select name",
allowClear: true
} );
</script>
<script>
$("#name").select2( {
placeholder: "Select name",
allowClear: true
} );
</script>
</body>
<!-- Mirrored from thememinister.com/crm/add-customer.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 03 Oct 2019 15:43:24 GMT -->
</html>