<?php
ob_start();
session_start();
?>
<?php
if(isset($_SESSION['user_liwwan_admin_2023930']) AND ($_SESSION['type'] == "manager_session_alliwan") ){
$pageTitle = 'project details';
include 'init.php';
?>
<?php
$id = $_POST['id'];
// adds info to the database
$sql = "SELECT * FROM projects WHERE pid = ".$id." LIMIT 1";
$result = $conn->query($sql);
while($row = $result->fetch()) {
?>
<section>
<div class="my_info">
<div class="container">
<h2 class="admin_tittle">Details for : <?php echo $row['code'] ?></h2>
<hr class="w-50 m-auto py-1 bg-primary rounded-pill">
<div class="row mt-4">
<div class="col-4">
<p class="text-muted text-center px-3 fw-bold fs-5"><?php echo $row['donedate']?></p>
</div>
<div class="col-4">
<?php if ($row['showinmain'] == 0) { ?>
<span class="text-dark py-2 px-4 mx-5 rounded fw-bold text-white bg-danger border border-2 border-muted ">غير معروض في الرئيسية</span>
<?php }?>
<?php if ($row['showinmain'] == 1) { ?>
<span class="text-light py-2 px-4 mx-5 rounded fw-bold text-white bg-success border border-2 border-muted">معروض في الرئيسية</span>
<?php }?>
</div>
<div class="col-4">
<?php if ($row['showinhead'] == 0) { ?>
<span class="text-dark py-2 px-4 mx-5 rounded fw-bold text-white bg-danger border border-2 border-muted ">غير معروض في صفحة الحاسبة</span>
<?php }?>
<?php if ($row['showinhead'] == 1) { ?>
<span class="text-light py-2 px-4 mx-5 rounded fw-bold text-white bg-success border border-2 border-muted">معروض في صفحة الحاسبة</span>
<?php }?>
</div>
</div>
<table class="main-table text-center table table-bordered show_table">
<tr class="tshow_head">
<td>نوع المشروع</td>
<td>العنوان</td>
<td>إسم الشركة</td>
<td>التفاصيل</td>
<td>البلد</td>
<td>اللغة</td>
</tr>
<tr>
<td>
<?php
if ($row['type'] == 1) {
echo 'ديكور داخلي';
}elseif ($row['type'] == 2) {
echo 'تصميم خارجي';
}elseif ($row['type'] == 3) {
echo 'مكاتب شركات';
}elseif ($row['type'] == 4) {
echo 'تنسيق حدائق';
}elseif ($row['type'] == 5) {
echo 'تصميم فيلا';
}elseif ($row['type'] == 6) {
echo 'تصميم & تنفيذ';
}
?>
</td>
<td><?php echo $row['ar_tittle'] ?></td>
<td><?php echo $row['ar_compname'] ?></td>
<td><?php echo $row['ar_description'] ?></td>
<td><?php echo $row['ar_country'] ?></td>
<td><img src="../img/flags/ar.png" alt=""><img src="../img/flags/eg.png" alt=""></td>
</tr>
</table>
<hr class="w-50 m-auto py-1 bg-dark rounded-pill my-4">
<table class="main-table text-center table table-bordered show_table">
<tr class="tshow_head">
<td>type</td>
<td>tittle</td>
<td>compname</td>
<td>desc</td>
<td>country</td>
<td>language</td>
</tr>
<tr>
<td>
<?php
if ($row['type'] == 1) {
echo 'interior decoration';
}elseif ($row['type'] == 2) {
echo 'Exterior design';
}elseif ($row['type'] == 3) {
echo 'Corporate offices';
}elseif ($row['type'] == 4) {
echo 'landscape';
}elseif ($row['type'] == 5) {
echo 'villa designs';
}elseif ($row['type'] == 6) {
echo 'Design & Execution';
}
?>
</td>
<td><?php echo $row['tittle'] ?></td>
<td><?php echo $row['compname'] ?></td>
<td><?php echo $row['description'] ?></td>
<td><?php echo $row['country'] ?></td>
<td><img src="../img/flags/en.png" alt=""><img src="../img/flags/usa.png" alt=""></td>
</tr>
</table>
<hr class="w-75 m-auto py-1 bg-dark rounded-pill my-4">
</div>
</div>
</section>
<?php
$strlenimg1 = strlen( $row['img1']);
$strlenimg2 = strlen( $row['img2']);
$strlenimg3 = strlen( $row['img3']);
$strlenimg4 = strlen( $row['img4']);
$strlenimg5 = strlen( $row['img5']);
$strlenimg6 = strlen( $row['img6']);
$strlenimg7 = strlen( $row['img7']);
$strlenimg8 = strlen( $row['img8']);
$strlenimg9 = strlen( $row['img9']);
$strlenimg10 = strlen( $row['img10']);
?>
<section>
<h2 class="admin_tittle">صور المشروع</h2>
<div class="container">
<div class="row">
<?php if($strlenimg1 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img1']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg2 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img2']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg3 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img3']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg4 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img4']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg5 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img5']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg6 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img6']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg7 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img7']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg8 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img8']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg9 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img9']; ?>" alt="as">
</div>
</div>
<?php }?>
<?php if($strlenimg10 > 10 ){?>
<div class="col-lg-6 col-sm-12">
<div>
<img class="img-fluid my_imgshow" src="images/uploads/projects/<?php echo $row['img10']; ?>" alt="as">
</div>
</div>
<?php }?>
</div>
</div>
</section>
<?php }?>
<?php
include 'assets/includes/template/footer.php';
?>
<?php
}else{
header('Location:index.php');
exit;
}
?>
<?php
ob_end_flush();| 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 |
|