<?php
ob_start();
session_start();
?>
<?php
if(isset($_SESSION['user_liwwan_admin_2023930']) AND ($_SESSION['type'] == "manager_session_alliwan") ){
$pageTitle = 'city Controll';
include 'init.php';
?>
<section class="my-5 custom_table con-benfs">
<div class="container-xxl con-benfs">
<h3 class="text-center text-muted m-auto fw-bold py-3"> المدن وتكاليف الزيادة </h3>
<form action="ac_citycalc.php" method="POST" class="my-2">
<button type="submit" name="addcitycalc" class="btn p-2 btn-add w-25 rounded border-0 shadow fw-bold px-3 text-white my-btn-sys-color"><span ><i class="fa-solid fa-person-circle-plus fs-5 text-light px-3"></i></span>إضافة مدينة جديدة +</button>
</form>
<div class="table-responsive">
<table class="table table-Light fw-bolder table-hover table-bordered border-dark border-5 text-center">
<thead>
<tr class="table-dark text-light ">
<th>تسلسل</th>
<th>المدينة</th>
<th>المدينة عربي</th>
<th>طريقة الحساب</th>
<th>مقدار الزيادة</th>
<th>حالة النشاط</th>
<th>ترتيب</th>
<th>تحكم</th>
</tr>
</thead>
<tbody>
<?php $i=0;?>
<?php foreach (getcitycalc() as $info ) { ?>
<tr class="custom_table_my fs-7">
<th class="px-2 py-3"><?php $i+=1;echo $i;?></th>
<td><?php echo $info['citcalc_name']; ?></td>
<td><?php echo $info['citcalc_arname']; ?></td>
<td><?php if($info['citcalc_type'] == 1){echo 'جمع';}elseif($info['citcalc_type'] == 2){echo 'ضرب (نسبة)';} ?></td>
<td><?php echo $info['citcalc_plusnumber']; ?></td>
<td><?php if($info['citcalc_active'] == 0){echo 'متوقف';}elseif($info['citcalc_active'] == 1){echo 'نشط';} ?></td>
<td><?php echo $info['citcalc_ordernum']; ?></td>
<td>
<div class="row g-0 w_controll">
<div class="col-4">
<form action="ac_citycalc.php" method="POST">
<input type="hidden" value="<?php echo $info['citcalc_id']; ?>" name="citycalc_id">
<?php if($info['citcalc_active'] == 1){?>
<button type="submit" name="pendcitycalc" class="bg-secondary p-2 rounded mx-2 d-inline border-0 shadow" onclick="return confirm(' متأكد من حظر المدينة ؟ (لن تظهر كخيار بالحاسبة) ');"><span class="fw-bold text-white"> حظر</span></button>
<?php }elseif($info['citcalc_active'] == 0){?>
<button type="submit" name="activecitycalc" class="bg-success p-2 rounded mx-2 d-inline border-0 shadow" onclick="return confirm(' متأكد من تنشيط المركز ؟ ( ستظهر كخيار بالحاسبة) ');"><span class="fw-bold text-white"> تفعيل</span></button>
<?php }?>
</form>
</div>
<div class="col-4">
<form action="ac_citycalc.php" method="POST">
<input type="hidden" value="<?php echo $info['citcalc_id']; ?>" name="citycalc_id">
<button type="submit" name="delcitycalc" class="bg-danger p-2 rounded mx-2 d-inline border-0 shadow" onclick="return confirm('متأكد من حذف المدينة المحددة ؟');"><span class="fw-bold text-white"> حذف</span></button>
</form>
</div>
<div class="col-4">
<form action="ac_citycalc.php" method="POST">
<input type="hidden" value="<?php echo $info['citcalc_id']; ?>" name="citcalc_id">
<button type="submit" name="editcitycalc" class="bg-success p-2 rounded mx-2 d-inline border-0 shadow" onclick="return confirm('متأكد من الذهاب لتعديل المدينة المحددة ؟');"><span class="fw-bold text-white"> تعديل</span></button>
</form>
</div>
</div>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</div>
</section>
<hr style="margin-bottom :200px;">
<?php
ob_end_flush();
include 'assets/includes/template/footer.php';
?>
<?php
}else{
header('Location:index.php');
exit;
}
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0755 |
|
|
| images | Folder | 0755 |
|
|
| ac_citycalc.php | File | 15.27 KB | 0644 |
|
| ac_edit_admin.php | File | 2.67 KB | 0644 |
|
| ac_edit_admininfo.php | File | 4.36 KB | 0644 |
|
| ac_edit_imgs.php | File | 34.27 KB | 0644 |
|
| ac_edit_pr.php | File | 10.72 KB | 0644 |
|
| ac_projects.php | File | 5.24 KB | 0644 |
|
| ac_workshops.php | File | 18.62 KB | 0644 |
|
| add_admin.php | File | 4.32 KB | 0644 |
|
| add_customer_template.php | File | 11.1 KB | 0644 |
|
| add_project.php | File | 17.22 KB | 0644 |
|
| add_workshop.php | File | 5.15 KB | 0644 |
|
| admins.php | File | 4.81 KB | 0644 |
|
| citycalc.php | File | 5.01 KB | 0644 |
|
| cons_orders.php | File | 4.51 KB | 0644 |
|
| custommer_templates.php | File | 4.59 KB | 0644 |
|
| dashboard.php | File | 4.11 KB | 0644 |
|
| edit_cus_template.php | File | 11.74 KB | 0644 |
|
| editadminpassword.php | File | 5.17 KB | 0644 |
|
| error_log | File | 309.84 KB | 0644 |
|
| imgs.php | File | 18.17 KB | 0644 |
|
| index.php | File | 3.19 KB | 0644 |
|
| init.php | File | 183 B | 0644 |
|
| logout.php | File | 186 B | 0644 |
|
| newsletter.php | File | 3.13 KB | 0644 |
|
| projects.php | File | 13.89 KB | 0644 |
|
| projects_card.php | File | 13.29 KB | 0644 |
|
| show.php | File | 8.81 KB | 0644 |
|
| workshop_details.php | File | 12.08 KB | 0644 |
|
| workshops.php | File | 4.63 KB | 0644 |
|