Advertisement
dhiforester

Routing Js Pengaturan

Dec 18th, 2023 (edited)
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | Source Code | 0 0
  1. <?php
  2.     //Routing File JS Berdasarkan Halaman
  3.     if(empty($_GET['Page'])){
  4.         echo '<script type="text/javascript" src="_Page/Beranda/Beranda.js"></script>';
  5.     }else{
  6.         $Page=$_GET['Page'];
  7.         if($Page=="Akses"){
  8.             echo '<script type="text/javascript" src="_Page/Akses/Akses.js"></script>';
  9.         }else{
  10.             if($Page=="Pasien"){
  11.                 echo '<script type="text/javascript" src="_Page/Pasien/Pasien.js"></script>';
  12.             }else{
  13.                 if($Page=="Pengaturan"){
  14.                     echo '<script type="text/javascript" src="_Page/Pengaturan/Pengaturan.js"></script>';
  15.                 }else{
  16.                     echo '<script type="text/javascript" src="_Page/Beranda/Beranda.js"></script>';
  17.                 }
  18.             }
  19.         }
  20.     }
  21. ?>
Tags: simrs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement