public function invoke($filter) { $AllCustomers = new CustomerView(); if ($filter == "") { if (isset($_SESSION['role']) && $_SESSION['role'] == "Administrator") { $AllCustomers->showCustomers(); } else { $AllCustomers->showCustomersONLY(); } } else { if (isset($_SESSION['role']) && $_SESSION['role'] == "Administrator") { $AllCustomers->showCustomersfiltered($filter); } else { $AllCustomers->showCustomersfilteredONLY($filter); } } }
<td style="width:50%;"> <table> <tr> <td> استعراض زبون </td> </tr> <tr> <td> <?php $ID = $_REQUEST['ID']; $viewCustomer = new CustomerView(); $viewCustomer->showCustomerInfo($ID); ?> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <div id="css_horizontal_menuC"> <a href="CustomerTreatments.php?ID=<?php echo $ID; ?>
<td style="width:50%;"> <table> <tr> <td> استعراض زبون </td> </tr> <tr> <td> <?php $ID = $_REQUEST['ID']; $viewCustomer = new CustomerView(); $viewCustomer->showCustomerInfo($ID); ?> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <?php if (isset($_SESSION['role']) && $_SESSION['role'] == "Administrator") { echo '<div id="css_horizontal_menuC">'; echo '<a href="CustomerTreatments.php?ID=' . $ID . '">المعالجات</a>';
<td style="width:50%;"> <table> <tr> <td> تعديل زبون </td> </tr> <tr> <td> <?php $ID = $_REQUEST['ID']; $editCustomer = new CustomerView(); $editCustomer->editCustomerInfo($ID); ?> </td> </tr> </table> </td> <td style="width:25%;" valign="top"> <?php $loginCtrl->LoggedOrNot(); ?> </td> </tr>