/home3/vehiclea/public_html/admin-vishnudentalclinic-com/gallery_edit.php
<?php
include('include/header.php');
if(!empty($_GET['editId'])){
$gallery_edit = gallery_edit($_GET['editId']);
$row = mysqli_fetch_array($gallery_edit);
}
if(!empty($_POST['submit'])){
gallery_edit_data();
}
?>
<style type="text/css">
.whiteBg{
background: #e3f2fd;
padding: 10px;
box-shadow: 5px 5px 4px 0px #888888;
}
</style>
<body>
<!-- ======= Header ======= -->
<!-- ======= Sidebar ======= -->
<main id="main" class="main">
<div class="container-fluid pt-4 px-4">
<div class="row g-6">
<div class="col-lg-12">
<div class="whiteBg rounded h-100 p-4">
<div class="pagetitle">
<h1>GALLERY</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Home</a></li>
<li class="breadcrumb-item active">Gallery</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section>
<div class="container">
<h5 class="text-center"><strong>Edit Gallery</strong></h5>
<div class="row">
<?php
if(!empty($_GET['succ']))
{
?>
<div align="center" style="color:green;"> <h4>Data Insert Successfully</h4></div>
<?php
}
?>
<form method="post" enctype="multipart/form-data">
<div class="col-md-12 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">Name</label>
<input type="text" class="form-control" name="name" id="name" value="<?= $row['name']?>">
<div class="error" id="err2" align="center" style="color:red;"></div>
</div>
<div class="col-md-12 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">File Upload</label>
<img src="uploads/gallery/<?= $row['image']?>" width="70px">
<input class="form-control" type="file" id="formFile" name="formFile">
<div class="error" id="err4" align="center" style="color:red;"></div>
<input type="hidden" name="fileimage" id="fileimage" value="<?= $row['image']?>">
</div>
<div class="col-md-12 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">File Upload</label>
<select name="status" id="status" class="form-control">
<option value="1" <?php if($row['status'] == 1){ echo "selected";}?>>Active</option>
<option value="2" <?php if($row['status'] == 2){ echo "selected";}?>>Inactive</option>
</select>
<div class="error" id="err4" align="center" style="color:red;"></div>
</div>
<input type="hidden" name="edit_data" id="edit_data" value="<?= $row['id']?>">
<center>
<div class="col-md-6 mt-4">
<input type="submit" name="submit" value="Submit" class="btn btn-primary">
</div>
</center>
</form>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</main><!-- End #main -->
<?php
include('include/footer.php');
?>
<script src="https://cloud.tinymce.com/5/tinymce.min.js"></script>
<script>
tinymce.init({
selector: '.textarea-tiny',
height: 500,
menubar: false,
width: '100%',
plugins: [
// 'advlist autolink lists link image charmap print preview anchor textcolor',
// 'searchreplace visualblocks code fullscreen',
// 'insertdatetime media table paste code help wordcount'
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc'
],
toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help',
image_advtab: true,
content_css: [
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tiny.cloud/css/codepen.min.css'
]
});
</script>
<style>
div.mce-branding-powered-by{
display: none;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
@LwBee Strong Bypass
Upload File
Create New File