booking/procedures_book_details.php

99 lines
3.7 KiB
PHP
Executable File

<?php
require_once('fixed/config/go_con.php');
access(78);
?>
<!DOCTYPE html>
<html lang="en" dir="rtl">
<?php require_once('fixed/head/go.php'); ?>
<body class="rtl">
<?php require_once('fixed/loader/go.php'); ?>
<!-- page-wrapper Start-->
<div class="page-wrapper" id="pageWrapper">
<?php require_once('fixed/header/go.php'); ?>
<!-- Page Body Start-->
<div class="page-body-wrapper">
<?php require_once('fixed/sidebar/go.php'); ?>
<div class="page-body">
<!-- Container-fluid starts-->
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-12">
<h1 class="text-center">
تفاصيل الحجز
</h1>
<hr class="hrline">
</div>
</div>
<h4 class="mt-0 header-title">معلومات البحث</h4>
<div class="form-group row">
<div class="col-8 col-sm-6 col-lg-2 ">
<label for="" class="col-form-label text-right">رقم الحجز</label>
<input id="number" name="tretment_number" class="form-control clickfun" type="number" value="<?php if (!empty($_GET['number'])) {echo $_GET['number'];}?>" required>
</div>
<div class="col-4 col-sm-6 col-lg-1 ">
<label style="visibility: hidden;" for="" class="col-form-label text-right">..</label>
<div class="form-control" style="background-color: #086367; color:white; text-align:center; cursor: pointer;" id="search">بحث</div>
</div>
</div>
<div class="table-responsive" id="get_data" style="vertical-align: middle;">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Container-fluid Ends-->
</div>
<?php require_once('fixed/footer/go.php'); ?>
</div>
</div>
<?php require_once('fixed/js/go.php'); ?>
<script>
$(function() {
$("#search").click(function() {
booking_d();
});
});
$('.clickfun').keypress(function (e) {
var key = e.which;
if(key == 13) {
booking_d();
}
});
click = 0;
function booking_d() {
let number = parseInt($("#number").val());
if (number <= 0) {
swalfun("تنبيه", "يرجى ادخال رقم حجز صحيح", "error");
return false;
}
if (click == 0) {
click++
$.post("work/order/ajax/procedures_book_ajax.php", {
number
}, function(get_data) {
$("#get_data").html(get_data);
})
} else {
swalfun("يرجى الانتظار", "تم بالفعل الضعط علية", "warning");
}
}
<?php
if (!empty($_GET['number'])) {
echo "booking_d()";
}
?>
</script>
</body>
</html>