37 lines
976 B
PHP
Executable File
37 lines
976 B
PHP
Executable File
<?php
|
|
require_once('../../../fixed/config/go_con.php');
|
|
|
|
$tretment_id = mysqli_real_escape_string($db, $_POST['tretment_id']);
|
|
$emp_id = mysqli_real_escape_string($db, $_POST['emp']);
|
|
|
|
if (!empty($tretment_id)) {
|
|
$get_bundle_services_sql = mysqli_query($db, "SELECT
|
|
`id`,
|
|
`name`
|
|
FROM `bundle_services`
|
|
WHERE `tretment_id` = $tretment_id
|
|
AND `emplyee_id` = $emp_id
|
|
AND `use_it_id` = 1
|
|
");
|
|
if (mysqli_num_rows($get_bundle_services_sql) > 0) {
|
|
?>
|
|
<option value="0" selected>المرجو الاختيار</option>
|
|
<?php
|
|
while ($bundle_services_row = mysqli_fetch_assoc($get_bundle_services_sql)) {
|
|
?>
|
|
|
|
<option value="<?= $bundle_services_row['id'] ?>"><?= $bundle_services_row['name'] ?></option>
|
|
|
|
<?php
|
|
}
|
|
} else {
|
|
?>
|
|
<option value="0">لا يوجد خدمات مجمعة للعميل</option>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
}
|
|
?>
|