public function invoke($filter) { $AllHospitals = new HospitalView(); if ($filter == "") { if (isset($_SESSION['role']) && $_SESSION['role'] == "Administrator") { $AllHospitals->showHospitals(); } else { $AllHospitals->showHospitalsONLY(); } } else { if (isset($_SESSION['role']) && $_SESSION['role'] == "Administrator") { $AllHospitals->showHospitalsfiltered($filter); } else { $AllHospitals->showHospitalsfilteredONLY($filter); } } }
<td style="width:50%;"> <table> <tr> <td> تعديل مشفى </td> </tr> <tr> <td> <?php $ID = $_REQUEST['ID']; $viewHospital = new HospitalView(); $viewHospital->showHospitalInfo($ID); ?> </td> </tr> </table> </td> </tr> </table> </td> <td style="width:25%;" valign="top"> <?php $loginCtrl->LoggedOrNot(); ?>
<td style="width:50%;"> <table> <tr> <td> تعديل مشفى </td> </tr> <tr> <td> <?php $ID = $_REQUEST['ID']; $editHospital = new HospitalView(); $editHospital->editHospitalInfo($ID); ?> </td> </tr> </table> </td> <td style="width:25%;" valign="top"> <?php $loginCtrl->LoggedOrNot(); ?> </td> </tr>