/home3/vehiclea/public_html/admin-kalyanidentalclinics-com/appointment.php
<?php
include "header.php";
$select_services = select_services();
?>
<body>
<!-- ======= Header ======= -->
<!-- ======= Sidebar ======= -->
<main id="main" class="main">
<div class="pagetitle">
<h1>Appointment</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Home</a></li>
<li class="breadcrumb-item active">Appointment</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section>
<?php
if(!empty($_POST['submit'])){
insert_appointment_data();
}
?>
<div class="container">
<h5 class="text-center"><strong>Add Appointment</strong></h5>
<div class="row">
<?php
if(!empty($_GET['succ']))
{
?>
<div align="center" style="color:green;"> <h4>Added Successfully</h4></div>
<?php
}
?>
<form method="post" enctype="multipart/form-data" onsubmit="return appointment_validation()">
<div class="col-md-6 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">ServicesName</label>
<select name="service_name" id="service_name" class="form-control">
<option value="">Select</option>
<?php
while($row = mysqli_fetch_array($select_services)){
?>
<option value="<?= $row['id']?>"><?= $row['name']?></option>
<?php
}
?>
</select>
<div class="error" id="err1" align="center" style="color:red;"></div>
</div>
<div class="col-md-6 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">Time Slot</label>
<select name="time_slot" id="time_slot" class="form-control">
<option value="">Select</option>
<option value="1">Morning</option>
<option value="2">AfterNoon</option>
<option value="2">Evening</option>
</select>
<div class="error" id="err2" align="center" style="color:red;"></div>
</div>
<div class="col-md-6 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">ChooseDate</label>
<input type="text" name="date" id="date" class="form-control">
<div class="error" id="err3" align="center" style="color:red;"></div>
</div>
<div class="col-md-6 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">Status</label>
<select name="status" id="status" class="form-control">
<option value="1">Active</option>
<option value="2">Inactive</option>
</select>
<div class="error" id="err4" align="center" style="color:red;"></div>
</div>
<div class="col-md-6 mt-4">
<input type="submit" name="submit" value="Submit" class="btn btn-primary">
</div>
</form>
</div>
</div>
</section>
</main><!-- End #main -->
<?php
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>
<script>
function appointment_validation(){
if ($('#service_name').val() == '') {
valid_error("service_name", "Select Service Name", "err1");
return false;
}
else if ($('#time_slot').val() == '') {
$('#err1').hide();
valid_error("time_slot", "Select Time Slot", "err2");
return false;
}
else if ($('#date').val() == '') {
$('#err2').hide();
valid_error("date", "Choose Date", "err3");
return false;
}
else
{
return true;
}
}
function valid_error(id, error, err) {
$('.errr').html('');
$('#' + err).show();
$('#' + err).html(error);
$('#' + id).focus();
return false;
}
</script>
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="Stylesheet"
type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="Stylesheet"
type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
$(document).ready(function () {
$("#date").datepicker({
minDate: 0
});
});
</script>
@LwBee Strong Bypass
Upload File
Create New File