Initial commit
This commit is contained in:
commit
b0762db4e0
|
@ -0,0 +1,301 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Waktu pembuatan: 20 Jun 2020 pada 09.01
|
||||
-- Versi server: 10.3.16-MariaDB
|
||||
-- Versi PHP: 7.3.6
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `db_penyakitginjal`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `gejala`
|
||||
--
|
||||
|
||||
CREATE TABLE `gejala` (
|
||||
`id_gejala` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`gejala` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id_gejala`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `gejala`
|
||||
--
|
||||
|
||||
INSERT INTO `gejala` (`id_gejala`, `gejala`) VALUES
|
||||
(1, 'Nyeri pinggang hebat(kolik)'),
|
||||
(2, 'Kencing sakit'),
|
||||
(3, 'Demam'),
|
||||
(4, 'Kencing Sedikit'),
|
||||
(5, 'Kencing merah/darah'),
|
||||
(6, 'Sering kencing'),
|
||||
(7, 'Hilang nafsu makan'),
|
||||
(8, 'Lelah dan lemah'),
|
||||
(9, 'Bermasalah dalam tidur'),
|
||||
(10, 'Otot terkedutdan kejang'),
|
||||
(11, 'Bengkak pada area kaki'),
|
||||
(12, 'Timbul rasa gatal'),
|
||||
(13, 'Nyeri pada saat buang air kecil'),
|
||||
(14, 'Urin berwarna pink, merah atau coklat'),
|
||||
(15, 'Mual dan muntah'),
|
||||
(16, 'Sering buang air kecil'),
|
||||
(17, 'Nyeri punggung, pinggul atau pangkal paha'),
|
||||
(18, 'Nyeri pada perut'),
|
||||
(19, 'Nanah atau darah pada urin'),
|
||||
(20, 'Tubuh terasa sangat lelah sekali tanpa sebab apapun'),
|
||||
(21, 'Rasa nyeri pada sisi yang tidak hilang'),
|
||||
(22, 'Adanya darah dalam urin'),
|
||||
(23, 'Tekanan darah tinggi'),
|
||||
(24, 'Darah dalam air kencing'),
|
||||
(25, 'Rasa lemah serta sulit tidur'),
|
||||
(26, 'Sakit kepala'),
|
||||
(27, 'Sesak nafas');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `penyakit`
|
||||
--
|
||||
|
||||
CREATE TABLE `penyakit` (
|
||||
`id_penyakit` int(11) NOT NULL,
|
||||
`penyakit` varchar(100) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `penyakit`
|
||||
--
|
||||
|
||||
INSERT INTO `penyakit` (`id_penyakit`, `penyakit`) VALUES
|
||||
(1, 'Gagal Ginjal Akut'),
|
||||
(2, 'Gagal Ginjal Kronis'),
|
||||
(3, 'Batu Ginjal'),
|
||||
(4, 'Infeksi Ginjal'),
|
||||
(5, 'Kanker Ginjal'),
|
||||
(6, 'Gagal Ginjal');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `relasi`
|
||||
--
|
||||
|
||||
CREATE TABLE `relasi` (
|
||||
`id_relasi` int(11) NOT NULL,
|
||||
`id_gejala` int(11) DEFAULT NULL,
|
||||
`id_penyakit` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `relasi`
|
||||
--
|
||||
|
||||
INSERT INTO `relasi` (`id_relasi`, `id_gejala`, `id_penyakit`) VALUES
|
||||
(1, 1, 1),
|
||||
(2, 2, 1),
|
||||
(3, 3, 1),
|
||||
(4, 4, 1),
|
||||
(5, 5, 1),
|
||||
(6, 6, 1),
|
||||
(7, 7, 2),
|
||||
(8, 8, 2),
|
||||
(9, 9, 2),
|
||||
(10, 10, 2),
|
||||
(11, 11, 2),
|
||||
(12, 12, 2),
|
||||
(13, 13, 3),
|
||||
(14, 14, 3),
|
||||
(15, 15, 3),
|
||||
(16, 16, 3),
|
||||
(17, 17, 3),
|
||||
(18, 18, 4),
|
||||
(19, 19, 4),
|
||||
(20, 20, 5),
|
||||
(21, 21, 5),
|
||||
(22, 22, 5),
|
||||
(23, 23, 6),
|
||||
(24, 24, 6),
|
||||
(25, 25, 6),
|
||||
(26, 26, 6),
|
||||
(27, 27, 6);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `solusi`
|
||||
--
|
||||
|
||||
CREATE TABLE `solusi` (
|
||||
`id_solusi` int(11) NOT NULL,
|
||||
`id_penyakit` int(11) NOT NULL,
|
||||
`solusi` varchar(100) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `solusi`
|
||||
--
|
||||
|
||||
INSERT INTO `solusi` (`id_solusi`, `id_penyakit`, `solusi`) VALUES
|
||||
(1, 1, 'Menjaga kesehatan ginjal'),
|
||||
(2, 1, 'Ikuti petunjuk pada kemasan obat, jika anda menggunakan obat tanpa resep yang dijual bebas'),
|
||||
(3, 1, 'Ikuti petunjuk dokter, jika anda memiliki penyakit ginjal atau kondisi lain yang meningkatkan resiko'),
|
||||
(4, 1, 'Lakukan teknik pernafasan dengan diafragma untuk membuat anda lebih tenang'),
|
||||
(5, 2, 'Menjalani cuci darah'),
|
||||
(6, 2, 'Transplantasi ginjal'),
|
||||
(8, 2, 'Menjalankan diet khusus, yaitu dengan mengurangi konsumsi garam, serta membatasi asupan protein dan '),
|
||||
(9, 2, 'Berkonsultasi dan senantiasa mengamati kondisi kesehatan dengan memeriksakan diri ke dokter secara t'),
|
||||
(10, 3, 'Minum air putih sebanyak 6-8 gelas air setiap hari.'),
|
||||
(11, 3, 'Mengonsumsi obat pereda nyeri, karena keluarnya batu ginjal melalui urine dapat menimbulkan rasa sak'),
|
||||
(12, 4, 'Perbanyak minum air putih untuk membuang bakteri dari ginjal, serta untuk mencegah dehidrasi.'),
|
||||
(13, 4, 'Gunakan bantal hangat pada perut, punggung, atau pinggang untuk mengurangi rasa nyeri.'),
|
||||
(14, 4, 'Khusus pasien wanita, jangan buang air kecil dalam posisi jongkok, melainkan dalam posisi duduk di a'),
|
||||
(15, 4, 'Istirahat yang cukup.'),
|
||||
(16, 5, 'Berhenti merokok.'),
|
||||
(17, 5, 'Selalu menjaga tekanan darah.'),
|
||||
(18, 5, 'Menjaga berat badan ideal untuk menghindari obesitas dengan perbanyak konsumsi buah dan sayur, serta'),
|
||||
(19, 5, 'Gunakan alat pelindung diri di lingkungan kerja yang rentan terhadap paparan zat-zat berbahaya.'),
|
||||
(20, 6, 'Memperbanyak konsumsi air putih, yaitu sekitar 2 liter per hari'),
|
||||
(21, 6, 'Membatasi konsumsi alkohol'),
|
||||
(22, 6, 'Menghentikan kebiasaan merokok'),
|
||||
(23, 6, 'Menerapkan pola makan yang sehat dan bergizi seimbang'),
|
||||
(24, 6, 'Melakukan operasi.'),
|
||||
(25, 6, 'Cuci darah secara berkala.');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `user`
|
||||
--
|
||||
|
||||
CREATE TABLE `user` (
|
||||
`id_user` int(11) NOT NULL,
|
||||
`role` int(11) NOT NULL,
|
||||
`nama` varchar(50) NOT NULL,
|
||||
`email` varchar(50) NOT NULL,
|
||||
`alamat` varchar(100) NOT NULL,
|
||||
`tgl_lahir` date NOT NULL,
|
||||
`password` varchar(300) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `user`
|
||||
--
|
||||
|
||||
INSERT INTO `user` (`id_user`, `role`, `nama`, `email`, `alamat`, `tgl_lahir`, `password`) VALUES
|
||||
(1, 1, 'Bayu Adi', 'bayu@gmail.com', 'Belayu', '2020-04-15', '$2y$10$QxzfxQ6eAAfr48pne8ZX0OvPTRrvD/xPa8qEElpby.6O0LYEW2FFm'),
|
||||
(2, 0, 'admin', 'admin@gmail.com', 'Tabanan', '2020-04-17', '$2y$10$ASS50col3niwOOku4Zkky.HpmF18hiPWL9pi2DnE8CS7jTDSD4ufe'),
|
||||
(4, 2, 'Dokter Budi', 'budi@gmail.com', 'Badung', '2020-04-09', '$2y$10$n2nS/Rg7Zvjdv.q1mrv7TOJYrzf18LVQQzsWuDWqPf5Ieos/OIWiG'),
|
||||
(5, 1, 'adi', 'adi@gmail.com', 'Badung', '2020-05-21', '$2y$10$ge9myh0TIg1tGwsOm6KZ5eriUxWhYswmHFx84dEsrwxpYbXdijKGC'),
|
||||
(6, 2, 'Dokter Jaya', 'jaya@gmail.com', 'Denpasar', '2020-05-12', '$2y$10$Hb0Q.SpDMZ1m34GlQSnB4.GkKM9wBRwWsrHUIFwn4sV6M7JGNPIV.'),
|
||||
(7, 2, 'Dokter Sally', 'sally@gmail.com', 'Kuta', '2020-05-28', '$2y$10$xP98m86lQdD8oE/dpTyvh.7.4oAsbcj0.H5Ekw0UhGFCoyaqc49W2'),
|
||||
(10, 1, 'test', 'test@gmail.com', 'asjadja', '2020-06-15', '$2y$10$KIVNLDg1RABhFvjKmfwR4eDUb90lCthb5/ZgNW8GNFvhL3L5ju0qO');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `gejala`
|
||||
--
|
||||
ALTER TABLE `gejala`
|
||||
ADD PRIMARY KEY (`id_gejala`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `penyakit`
|
||||
--
|
||||
ALTER TABLE `penyakit`
|
||||
ADD PRIMARY KEY (`id_penyakit`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `relasi`
|
||||
--
|
||||
ALTER TABLE `relasi`
|
||||
ADD PRIMARY KEY (`id_relasi`),
|
||||
ADD KEY `id_gejala` (`id_gejala`),
|
||||
ADD KEY `id_penyakit` (`id_penyakit`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `solusi`
|
||||
--
|
||||
ALTER TABLE `solusi`
|
||||
ADD PRIMARY KEY (`id_solusi`),
|
||||
ADD KEY `id_penyakit` (`id_penyakit`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `user`
|
||||
--
|
||||
ALTER TABLE `user`
|
||||
ADD PRIMARY KEY (`id_user`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel yang dibuang
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `gejala`
|
||||
--
|
||||
ALTER TABLE `gejala`
|
||||
MODIFY `id_gejala` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `penyakit`
|
||||
--
|
||||
ALTER TABLE `penyakit`
|
||||
MODIFY `id_penyakit` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `relasi`
|
||||
--
|
||||
ALTER TABLE `relasi`
|
||||
MODIFY `id_relasi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `solusi`
|
||||
--
|
||||
ALTER TABLE `solusi`
|
||||
MODIFY `id_solusi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `user`
|
||||
--
|
||||
ALTER TABLE `user`
|
||||
MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
||||
|
||||
--
|
||||
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
|
||||
--
|
||||
|
||||
--
|
||||
-- Ketidakleluasaan untuk tabel `relasi`
|
||||
--
|
||||
ALTER TABLE `relasi`
|
||||
ADD CONSTRAINT `relasi_ibfk_1` FOREIGN KEY (`id_gejala`) REFERENCES `gejala` (`id_gejala`),
|
||||
ADD CONSTRAINT `relasi_ibfk_2` FOREIGN KEY (`id_penyakit`) REFERENCES `penyakit` (`id_penyakit`);
|
||||
|
||||
--
|
||||
-- Ketidakleluasaan untuk tabel `solusi`
|
||||
--
|
||||
ALTER TABLE `solusi`
|
||||
ADD CONSTRAINT `solusi_ibfk_1` FOREIGN KEY (`id_penyakit`) REFERENCES `penyakit` (`id_penyakit`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
@ -0,0 +1,115 @@
|
|||
.btn-primary {
|
||||
background: #008cc1;
|
||||
border: 0px;
|
||||
padding: 15px 41px 15px 41px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #047eaa;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: none;
|
||||
border: 1px solid #bcd0e5;
|
||||
padding: 15px 41px 15px 41px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #173a56;
|
||||
}
|
||||
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: none;
|
||||
border: 1px solid #047eaa;
|
||||
color: #173a56;
|
||||
}
|
||||
|
||||
.heroBWA {
|
||||
padding-top: 70px;
|
||||
padding-bottom: 200px;
|
||||
}
|
||||
|
||||
|
||||
.heroBWA h1 {
|
||||
font-family: "Poppins";
|
||||
font-weight: 700;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.heroBWA p {
|
||||
font-family: "Poppins";
|
||||
font-weight: 400;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.test {
|
||||
padding-top: 65px;
|
||||
}
|
||||
|
||||
.test h2 {
|
||||
font-family: "Poppins";
|
||||
font-weight: 400;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.test p {
|
||||
font-family: "Poppins";
|
||||
font-weight: 400;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: max-content;
|
||||
margin: auto;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
padding: 25px;
|
||||
border: 1px;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.card-title h1 {
|
||||
font-family: "Poppins";
|
||||
font-weight: 700;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.col label {
|
||||
font-family: "Poppins";
|
||||
font-weight: 400;
|
||||
color: #2f281e;
|
||||
}
|
||||
|
||||
.registerbtn {
|
||||
background: #008cc1;
|
||||
border: 0px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 5px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.papan {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.card-title{
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.btn-primary,
|
||||
.btn-secondary,
|
||||
.card {
|
||||
margin-top: 10px;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,472 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-default/default.css">
|
||||
<?php
|
||||
$koneksi = mysqli_connect('localhost', 'root', '', 'cekgigitest');
|
||||
|
||||
if (mysqli_connect_errno()) {
|
||||
echo "Koneksi Database Gagal : " . mysqli_connect_error();
|
||||
}
|
||||
|
||||
session_start();
|
||||
if (isset($_GET["act"])) {
|
||||
$act = $_GET["act"];
|
||||
if ($act == "register") {
|
||||
register();
|
||||
} else if ($act == "login") {
|
||||
login();
|
||||
} else if ($act == "registerPakar") {
|
||||
registerPakar();
|
||||
} else if ($act == "tambahGejala") {
|
||||
tambahGejala();
|
||||
} else if ($act == "tambahPenyakit") {
|
||||
tambahPenyakit();
|
||||
} else if ($act == "tambahSolusi") {
|
||||
tambahSolusi();
|
||||
} else if ($act == "hapusGejala") {
|
||||
$id_gejala = $_GET["id_gejala"];
|
||||
hapusGejala($id_gejala);
|
||||
} else if ($act == "hapusPenyakit") {
|
||||
$id_penyakit = $_GET["id_penyakit"];
|
||||
hapusPenyakit($id_penyakit);
|
||||
} else if ($act == "hapusPasien") {
|
||||
$id_user = $_GET["id_user"];
|
||||
hapusPasien($id_user);
|
||||
} else if ($act == "hapusPakar") {
|
||||
$id_user = $_GET["id_user"];
|
||||
hapusPakar($id_user);
|
||||
} else if ($act == "hapusSolusi") {
|
||||
$id_solusi = $_GET["id_solusi"];
|
||||
hapusSolusi($id_solusi);
|
||||
} else if ($act == "ubahGejala") {
|
||||
$id_gejala = $_GET["id_gejala"];
|
||||
ubahGejala($id_gejala);
|
||||
} else if ($act == "ubahPasien") {
|
||||
$id_user = $_GET["id_user"];
|
||||
ubahPasien($id_user);
|
||||
} else if ($act == "ubahPakar") {
|
||||
$id_user = $_GET["id_user"];
|
||||
ubahPakar($id_user);
|
||||
} else if ($act == "ubahPenyakit") {
|
||||
$id_penyakit = $_GET["id_penyakit"];
|
||||
ubahPenyakit($id_penyakit);
|
||||
} else if ($act == "ubahSolusi") {
|
||||
$id_solusi = $_GET["id_solusi"];
|
||||
ubahSolusi($id_solusi);
|
||||
} else if($act == "ulang"){
|
||||
ulang();
|
||||
}
|
||||
}
|
||||
|
||||
function ulang(){
|
||||
session_unset();
|
||||
session_destroy();
|
||||
header("location: test.php");
|
||||
}
|
||||
|
||||
function register()
|
||||
{
|
||||
global $koneksi;
|
||||
$nama = htmlspecialchars($_POST['nama']);
|
||||
$email = htmlspecialchars($_POST['email']);
|
||||
$password = password_hash(htmlspecialchars($_POST['password']), PASSWORD_DEFAULT);
|
||||
$alamat = htmlspecialchars($_POST['alamat']);
|
||||
$tgl_lahir = $_POST['tgl_lahir'];
|
||||
$query_user = "INSERT INTO user VALUES ('','1','$nama', '$email', '$alamat', '$tgl_lahir','$password')";
|
||||
$exe = mysqli_query($koneksi, $query_user);
|
||||
|
||||
if (!$exe) {
|
||||
die('Query Error : ' . mysqli_errno($koneksi) . '-' . mysqli_error($koneksi));
|
||||
} else {
|
||||
// echo "<script type='text/javascript'> success(); </script>";
|
||||
echo "<script>
|
||||
alert('Berhasil Registrasi! Silahkan Login');
|
||||
document.location.href = 'index.php';
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
|
||||
function registerPakar()
|
||||
{
|
||||
global $koneksi;
|
||||
$nama = htmlspecialchars($_POST['nama']);
|
||||
$email = htmlspecialchars($_POST['email']);
|
||||
$password = password_hash(htmlspecialchars($_POST['password']), PASSWORD_DEFAULT);
|
||||
$alamat = htmlspecialchars($_POST['alamat']);
|
||||
$tgl_lahir = $_POST['tgl_lahir'];
|
||||
$query_pakar = "INSERT INTO user VALUES ('','2','$nama', '$email', '$alamat', '$tgl_lahir','$password')";
|
||||
$exe = mysqli_query($koneksi, $query_pakar);
|
||||
|
||||
if (!$exe) {
|
||||
die('Query Error : ' . mysqli_errno($koneksi) . '-' . mysqli_error($koneksi));
|
||||
} else {
|
||||
// echo "<script type='text/javascript'> success(); </script>";
|
||||
echo "<script>
|
||||
alert('Berhasil Registrasi Pakar! Segera beritahu pakar Login');
|
||||
document.location.href = 'indexPakar.php';
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
|
||||
function login() {
|
||||
global $koneksi;
|
||||
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
$nama = htmlspecialchars($_POST["nama"]);
|
||||
$input_pass = htmlspecialchars($_POST['password']);
|
||||
|
||||
// Check if username and password are provided
|
||||
if (empty($nama) || empty($input_pass)) {
|
||||
echo "<script>
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Error!',
|
||||
text: 'Username atau password kosong!',
|
||||
confirmButtonText: 'OK'
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
window.location = 'index.php';
|
||||
}
|
||||
});
|
||||
</script>";
|
||||
return;
|
||||
}
|
||||
|
||||
// Debugging: Check if the POST data is received
|
||||
var_dump($nama, $input_pass);
|
||||
|
||||
// Execute query
|
||||
$query = mysqli_query($koneksi, "SELECT * FROM user WHERE nama = '$nama'");
|
||||
|
||||
// Debugging: Check if the query executed
|
||||
if (!$query) {
|
||||
die('Query Failed: ' . mysqli_error($koneksi));
|
||||
}
|
||||
|
||||
// Check if query returned a result
|
||||
if (mysqli_num_rows($query) > 0) {
|
||||
$data = mysqli_fetch_assoc($query);
|
||||
$password = $data['password'];
|
||||
$role = $data['role'];
|
||||
|
||||
// Verify password
|
||||
if (password_verify($input_pass, $password)) {
|
||||
$_SESSION['role'] = $role;
|
||||
if ($role == "1") {
|
||||
echo "<script>
|
||||
window.location.href = 'index4.php';
|
||||
</script>";
|
||||
} elseif ($role == "0") {
|
||||
echo "<script>
|
||||
window.location.href = 'indexAdmin.php';
|
||||
</script>";
|
||||
} elseif ($role == "2") {
|
||||
echo "<script>
|
||||
window.location.href = 'indexAdmin.php';
|
||||
</script>";
|
||||
}
|
||||
} else {
|
||||
// Incorrect password
|
||||
echo "<script>
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Error!',
|
||||
text: 'Password salah!',
|
||||
confirmButtonText: 'OK'
|
||||
}).then((result) => {
|
||||
window.location.href = 'index.php';
|
||||
});
|
||||
</script>";
|
||||
}
|
||||
} else {
|
||||
// Username not found
|
||||
echo "<script>
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Error!',
|
||||
text: 'Username atau Password salah!',
|
||||
confirmButtonText: 'OK'
|
||||
}).then((result) => {
|
||||
window.location.href = 'index.php';
|
||||
});
|
||||
</script>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function tambahGejala()
|
||||
{
|
||||
global $koneksi;
|
||||
$gejala = htmlspecialchars($_POST['namaGejala']);
|
||||
$id_penyakit = htmlspecialchars($_POST['id_penyakit']);
|
||||
$queryGejala = "INSERT INTO gejala VALUES ('','$gejala')";
|
||||
|
||||
$exe = mysqli_query($koneksi, $queryGejala);
|
||||
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
$id_gejala = mysqli_insert_id($koneksi);
|
||||
$queryRelasi = "INSERT INTO relasi VALUES ('', '$id_gejala', '$id_penyakit')";
|
||||
$ex = mysqli_query($koneksi, $queryRelasi);
|
||||
|
||||
if(!$ex){
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Gejala berhasil ditambahkan');
|
||||
document.location.href = 'indexGejala.php'</script>";
|
||||
}
|
||||
|
||||
|
||||
function tambahPenyakit()
|
||||
{
|
||||
global $koneksi;
|
||||
$penyakit = htmlspecialchars($_POST['namaPenyakit']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$queryPenyakit = "INSERT INTO penyakit VALUES ('','$penyakit')";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $queryPenyakit);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Penyakit berhasil ditambahkan');
|
||||
document.location.href = 'indexPenyakit.php'</script>";
|
||||
}
|
||||
|
||||
function tambahSolusi()
|
||||
{
|
||||
global $koneksi;
|
||||
$solusi = htmlspecialchars($_POST['namaSolusi']);
|
||||
$id_penyakit = htmlspecialchars($_POST['id_penyakit']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$querySolusi = "INSERT INTO solusi VALUES ('', '$id_penyakit', '$solusi')";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $querySolusi);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Solusi berhasil ditambahkan');
|
||||
document.location.href = 'indexSolusi.php'</script>";
|
||||
}
|
||||
|
||||
function ubahGejala($id_gejala)
|
||||
{
|
||||
global $koneksi;
|
||||
$id_penyakit = htmlspecialchars($_POST['id_penyakit']);
|
||||
$gejala = htmlspecialchars($_POST['namaGejala']);
|
||||
$queryGejala = "UPDATE gejala SET gejala = '$gejala' WHERE id_gejala = '$id_gejala'";
|
||||
$exe = mysqli_query($koneksi, $queryGejala);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
$queryRelasi = "UPDATE relasi SET id_gejala = '$id_gejala', id_penyakit = '$id_penyakit' WHERE id_gejala = '$id_gejala'";
|
||||
$ex = mysqli_query($koneksi, $queryRelasi);
|
||||
if(!$ex){
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Data Gejala berhasil diubah');
|
||||
document.location.href = 'indexGejala.php'</script>";
|
||||
}
|
||||
|
||||
function ubahSolusi($id_solusi)
|
||||
{
|
||||
global $koneksi;
|
||||
$solusi = htmlspecialchars($_POST['namaSolusi']);
|
||||
$id_penyakit = htmlspecialchars($_POST['id_penyakit']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$querySolusi = "UPDATE solusi SET solusi = '$solusi', id_penyakit = '$id_penyakit' WHERE id_solusi = '$id_solusi'";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $querySolusi);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Data Solusi berhasil diubah!');
|
||||
document.location.href = 'indexSolusi.php'</script>";
|
||||
}
|
||||
|
||||
function ubahPenyakit($id_penyakit)
|
||||
{
|
||||
global $koneksi;
|
||||
$penyakit = htmlspecialchars($_POST['namaPenyakit']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$queryPenyakit = "UPDATE penyakit SET penyakit = '$penyakit' WHERE id_penyakit = '$id_penyakit'";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $queryPenyakit);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Data Penyakit berhasil diubah!');
|
||||
document.location.href = 'indexPenyakit.php'</script>";
|
||||
}
|
||||
|
||||
function ubahPasien($id_user)
|
||||
{
|
||||
global $koneksi;
|
||||
$nama = htmlspecialchars($_POST['nama']);
|
||||
$email = htmlspecialchars($_POST['email']);
|
||||
$alamat = htmlspecialchars($_POST['alamat']);
|
||||
$tgl_lahir = htmlspecialchars($_POST['tgl_lahir']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$queryUser = "UPDATE user SET nama = '$nama', email = '$email', alamat = '$alamat', tgl_lahir = '$tgl_lahir' WHERE id_user = '$id_user'";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $queryUser);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Data Pasien berhasil diubah!');
|
||||
document.location.href = 'indexAdmin.php'</script>";
|
||||
}
|
||||
|
||||
function ubahPakar($id_user)
|
||||
{
|
||||
global $koneksi;
|
||||
$nama = htmlspecialchars($_POST['nama']);
|
||||
$email = htmlspecialchars($_POST['email']);
|
||||
$alamat = htmlspecialchars($_POST['alamat']);
|
||||
$tgl_lahir = htmlspecialchars($_POST['tgl_lahir']);
|
||||
// $penyakit = $_POST['id_penyakit'];
|
||||
$queryUser = "UPDATE user SET nama = '$nama', email = '$email', alamat = '$alamat', tgl_lahir = '$tgl_lahir' WHERE id_user = '$id_user'";
|
||||
// $queryRelasi = "INSERT INTO relasi VALUES ('', '')"
|
||||
$exe = mysqli_query($koneksi, $queryUser);
|
||||
if (!$exe) {
|
||||
die('Error pada database');
|
||||
}
|
||||
echo "<script>
|
||||
alert('Data Pakar berhasil diubah!');
|
||||
document.location.href = 'indexPakar.php'</script>";
|
||||
}
|
||||
|
||||
|
||||
function hapusGejala($id_gejala)
|
||||
{
|
||||
global $koneksi;
|
||||
mysqli_query($koneksi, "DELETE FROM gejala WHERE id_gejala = $id_gejala");
|
||||
$result = mysqli_affected_rows($koneksi);
|
||||
if ($result > 0) {
|
||||
echo "
|
||||
<script>
|
||||
alert('Gejala berhasil dihapus!');
|
||||
document.location.href = 'indexGejala.php';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('Gejala gagal dihapus, karena masih terikat dengan penyakit!');
|
||||
document.location.href = 'indexGejala.php';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
function hapusPasien($id_user)
|
||||
{
|
||||
global $koneksi;
|
||||
mysqli_query($koneksi, "DELETE FROM user WHERE id_user = $id_user");
|
||||
$result = mysqli_affected_rows($koneksi);
|
||||
if ($result > 0) {
|
||||
echo "
|
||||
<script>
|
||||
alert('Akun Pasien berhasil dihapus!');
|
||||
document.location.href = 'indexAdmin.php';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('Akun Pasien gagal dihapus!');
|
||||
document.location.href = 'indexAdmin.php';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
function hapusPakar($id_user)
|
||||
{
|
||||
global $koneksi;
|
||||
mysqli_query($koneksi, "DELETE FROM user WHERE id_user = $id_user");
|
||||
$result = mysqli_affected_rows($koneksi);
|
||||
if ($result > 0) {
|
||||
echo "
|
||||
<script>
|
||||
alert('Akun Pakar berhasil dihapus!');
|
||||
document.location.href = 'indexPakar.php';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('Akun Pakar gagal dihapus!');
|
||||
document.location.href = 'indexPakar.php';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
function hapusPenyakit($id_penyakit)
|
||||
{
|
||||
global $koneksi;
|
||||
mysqli_query($koneksi, "DELETE FROM penyakit WHERE id_penyakit = $id_penyakit");
|
||||
$result = mysqli_affected_rows($koneksi);
|
||||
if ($result > 0) {
|
||||
echo "
|
||||
<script>
|
||||
alert('Penyakit berhasil dihapus!');
|
||||
document.location.href = 'indexPenyakit.php';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('Penyakit gagal dihapus, karena masih terikat dengan gejala!');
|
||||
document.location.href = 'indexPenyakit.php';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
function hapusSolusi($id_solusi)
|
||||
{
|
||||
global $koneksi;
|
||||
mysqli_query($koneksi, "DELETE FROM solusi WHERE id_solusi = $id_solusi");
|
||||
$result = mysqli_affected_rows($koneksi);
|
||||
if ($result > 0) {
|
||||
echo "
|
||||
<script>
|
||||
alert('Solusi berhasil dihapus!');
|
||||
document.location.href = 'indexSolusi.php';
|
||||
</script>
|
||||
";
|
||||
} else {
|
||||
echo "
|
||||
<script>
|
||||
alert('Solusi gagal dihapus!');
|
||||
document.location.href = 'indexSolusi.php';
|
||||
</script>
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
function gejala($id_penyakit){
|
||||
global $koneksi;
|
||||
$query = "SELECT relasi.id_gejala as id_gejala FROM relasi INNER JOIN gejala ON relasi.id_gejala = gejala.id_gejala INNER JOIN penyakit ON relasi.id_penyakit = penyakit.id_penyakit WHERE relasi.id_penyakit = '$id_penyakit' ";
|
||||
$data = mysqli_query($koneksi, $query);
|
||||
// var_dump($data);
|
||||
$row = mysqli_fetch_assoc($data);
|
||||
|
||||
return $row['id_gejala'];
|
||||
// echo "hasil". $row['id_gejala'];
|
||||
}
|
||||
|
||||
|
||||
?>
|
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,182 @@
|
|||
<?php
|
||||
include 'function.php';
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 0) {
|
||||
header("location: indexAdmin.php");
|
||||
} else if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$gejala = mysqli_query($koneksi, "SELECT * FROM gejala");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="custom.css" />
|
||||
<title>Cek Gigi Yuk!</title>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar py-2 navbar-expand-lg navbar-light">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#"
|
||||
><img src="gambar/logo_gigi.png" width="147" alt="logo"
|
||||
/></a>
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li>
|
||||
<a class="btn px-2 py-2 btn-success ml-2" href="function.php?act=ulang" role="button">Cek Ulang</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn px-2 py-2 btn-primary ml-2" href="logout.php" role="button"
|
||||
>Log Out</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section class="hasil mt-4">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col align-self-center">
|
||||
<h3 class="mb-4">Penyakit yang anda alami : </h3>
|
||||
<?php
|
||||
if(isset($_SESSION)) {
|
||||
|
||||
|
||||
?>
|
||||
<h5 class="mb-4">
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Gagal Ginjal Akut = <?= $_SESSION['ginjalAkut']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Gagal Ginjal Kronis = <?= $_SESSION['ginjalKronis']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Batu Ginjal = <?= $_SESSION['batuGinjal']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Infeksi Ginjal = <?= $_SESSION['infeksiGinjal']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Kanker Ginjal = <?= $_SESSION['kankerGinjal']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
<div class="py-1">
|
||||
<strong>
|
||||
Gagal Ginjal = <?= $_SESSION['gagalGinjal']; ?>%
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
</h5>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 class="mb-4">Solusi untuk penyakit anda adalah : </h3>
|
||||
<form action="" method="post" enctype="multipart/form-data" role="form">
|
||||
<?php
|
||||
function maximum($a, $b, $c, $d, $e, $f)
|
||||
{
|
||||
$max = $a;
|
||||
$kode =1;
|
||||
if ($b> $max) {
|
||||
$max = $b;
|
||||
$kode = 2;
|
||||
}
|
||||
if ($c > $max) {
|
||||
$max = $c;
|
||||
$kode = 3;
|
||||
}
|
||||
if ($d > $max) {
|
||||
$max = $d;
|
||||
$kode = 4;
|
||||
}
|
||||
if ($e > $max) {
|
||||
$max = $e;
|
||||
$kode = 5;
|
||||
}
|
||||
if ($f > $max) {
|
||||
$max = $f;
|
||||
$kode = 6;
|
||||
}
|
||||
return $kode;
|
||||
}
|
||||
$id_penyakit = maximum($_SESSION['ginjalAkut'], $_SESSION['ginjalKronis'], $_SESSION['batuGinjal'], $_SESSION['infeksiGinjal'], $_SESSION['kankerGinjal'], $_SESSION['gagalGinjal']);
|
||||
$query = "SELECT * FROM solusi WHERE id_penyakit = '$id_penyakit'";
|
||||
$data = mysqli_query($koneksi, $query);
|
||||
while ($row = mysqli_fetch_array($data)) {
|
||||
|
||||
echo '<p>' . $row['solusi'] . '</p>';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<div class="col d-none d-sm-block">
|
||||
<img width="500" src="gambar/hasil.png" alt="hero" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
||||
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
||||
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
</html>
|
|
@ -0,0 +1,169 @@
|
|||
<?php
|
||||
include 'function.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="custom.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-default/default.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<title>Cek Gigi Yuk!</title>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar py-2 navbar-expand-lg navbar-light">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#"
|
||||
><img src="gambar/logo_gigi.png" width="147" alt="logo"
|
||||
/></a>
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item align-self-center active">
|
||||
<a class="nav-link" href="index.php"
|
||||
>Home <span class="sr-only">(current)</span></a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item align-self-center active">
|
||||
<a class="nav-link" href="#alur">Alur Kerja <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item ">
|
||||
<!-- Button trigger modal -->
|
||||
<button type="button" class="btn px-4 btn-secondary ml-5 logintombol" data-toggle="modal" data-target="#exampleModal">Log In</button>
|
||||
</button>
|
||||
|
||||
<!-- Login -->
|
||||
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Log In</h5>
|
||||
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button> -->
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="login-form" action="function.php?act=login" method="POST" >
|
||||
<div class="form-group">
|
||||
<div id="result"></div>
|
||||
<label for="nama" class="col-form-label">Username :</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama" rows="3" placeholder="Username" required>
|
||||
<label for="pass" class="col-form-label">Password :</label>
|
||||
<input type="password" class="form-control" id="password" name="password" rows="3" placeholder="Password" required>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input type="submit" name="login_btn" id="login" class="btn btn-primary" value="Login">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn px-4 btn-primary ml-2" href="register.php" role="button"
|
||||
>Register</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section class="heroBWA mt-5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col align-self-center">
|
||||
<h1 class="mb-4">Cek Gigi Yuk!</h1>
|
||||
<p class="mb-4">
|
||||
Cek Gigi Yuk! Merupakan sistem informasi berbasis Web Based yang memanfaatkan teknologi Sistem Pakar didalamnya. Dengan menggunakan sistem pakar ini pengguna dapat mengenali atau memeriksakan keluhan terhadap gigi pasien hanya dengan menjawab pertanyaan yang diberikan oleh sistem, dan kemudian pengguna dapat melihat hasil Test dengan hasil yang direpresentasikan dalam bentuk persentase.
|
||||
|
||||
</p>
|
||||
<a class="btn btn-primary" href="register.php" role="button">Ayo Mulai!</a>
|
||||
</div>
|
||||
<div class="col d-none d-sm-block">
|
||||
<img width="500" src="gambar/hero.png" alt="hero" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="alur">
|
||||
<!--Content2-->
|
||||
<div id="konten2" class="container konten">
|
||||
<h2 style="font-weight: bold;text-align: center;">Alur Kerja Sistem Pakar Cek Gigi Yuk!</h2>
|
||||
<div class="card-deck">
|
||||
<div class="card">
|
||||
<h5 class="card-title">Login</h5>
|
||||
<img src="gambar/login.png" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
|
||||
<p class="card-text">Pengguna harus melakukan login sebelum melangkah ke tahap selanjutnya, dan jika belum memiliki akun akan diarahkan ke menu registrasi.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h5 class="card-title">Test Gejala Pasien</h5>
|
||||
<img src="gambar/jawab.png" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<p class="card-text">Dalam tahap ini pengguna akan diberikan beberapa pertanyaan terkait dengan gejala yang dialami.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h5 class="card-title">Hasil dan Solusi</h5>
|
||||
<img src="gambar/hasil.png" class="card-img-top" alt="...">
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<p class="card-text">Tahap ini merupakan tahap akhir dimana setelah melaksanakan test gejala pengguna akan diberikan hasil test berupa nama penyakit dan solusinya.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</sect>
|
||||
|
||||
</body>
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
||||
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
||||
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
</html>
|
|
@ -0,0 +1,89 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Disease Diagnosis</title>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mt-5">
|
||||
<h2>Disease Diagnosis</h2>
|
||||
<form method="post" action="">
|
||||
<div class="form-group">
|
||||
<label for="fever">Symptom A</label>
|
||||
<select name="fever" id="fever" class="form-control">
|
||||
<option value="1">Yes</option>
|
||||
<option value="0.5">Maybe</option>
|
||||
<option value="0">No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cough">Symptom B</label>
|
||||
<select name="cough" id="cough" class="form-control">
|
||||
<option value="1">Yes</option>
|
||||
<option value="0.5">Maybe</option>
|
||||
<option value="0">No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="soreThroat">Symptom C</label>
|
||||
<select name="soreThroat" id="soreThroat" class="form-control">
|
||||
<option value="1">Yes</option>
|
||||
<option value="0.5">Maybe</option>
|
||||
<option value="0">No</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Calculate CF</button>
|
||||
<br>
|
||||
<a href="index.php">Back To Dashboard</a>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
// Function to calculate CF
|
||||
function calculateCF($symptomValues, $rules) {
|
||||
$combinedCF = 0;
|
||||
foreach ($rules as $rule) {
|
||||
$cfRule = $rule['cf'];
|
||||
foreach ($rule['symptoms'] as $symptom => $weight) {
|
||||
$cfRule *= $symptomValues[$symptom] * $weight;
|
||||
}
|
||||
$combinedCF = $combinedCF + $cfRule * (1 - $combinedCF);
|
||||
}
|
||||
return $combinedCF;
|
||||
}
|
||||
|
||||
// Get symptom values from the form
|
||||
$symptomValues = [
|
||||
'fever' => (float)$_POST['fever'],
|
||||
'cough' => (float)$_POST['cough'],
|
||||
'soreThroat' => (float)$_POST['soreThroat'],
|
||||
];
|
||||
|
||||
// Define the rules for DiseaseA
|
||||
$rules = [
|
||||
[
|
||||
'symptoms' => [
|
||||
'fever' => 1,
|
||||
'cough' => 1,
|
||||
],
|
||||
'cf' => 0.8,
|
||||
],
|
||||
[
|
||||
'symptoms' => [
|
||||
'fever' => 1,
|
||||
'soreThroat' => 1,
|
||||
],
|
||||
'cf' => 0.6,
|
||||
],
|
||||
];
|
||||
|
||||
// Calculate CF for DiseaseA
|
||||
$cfDiseaseA = calculateCF($symptomValues, $rules);
|
||||
echo "<div class='alert alert-info mt-3'>Certainty Factor for Disease X: " . $cfDiseaseA . "</div>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,199 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$queryPasien = mysqli_query($koneksi, "SELECT * FROM user WHERE role = '1'");
|
||||
|
||||
$jumlahPasien = mysqli_query($koneksi, "SELECT COUNT('id_user') as jml_pasien FROM user WHERE role='1'");
|
||||
$pasien = mysqli_fetch_assoc($jumlahPasien);
|
||||
|
||||
$jumlahPenyakit = mysqli_query($koneksi, "SELECT COUNT('id_penyakit') as jml_penyakit FROM penyakit");
|
||||
$penyakit = mysqli_fetch_assoc($jumlahPenyakit);
|
||||
|
||||
$jumlahGejala = mysqli_query($koneksi, "SELECT COUNT('id_gejala') as jml_gejala FROM gejala");
|
||||
$gejala = mysqli_fetch_assoc($jumlahGejala);
|
||||
|
||||
$jumlahSolusi = mysqli_query($koneksi, "SELECT COUNT('id_solusi') as jml_solusi FROM solusi");
|
||||
$solusi = mysqli_fetch_assoc($jumlahSolusi);
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Data Pasien</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $pasien['jml_pasien']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Penyakit</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $penyakit['jml_penyakit']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Gejala</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $gejala['jml_gejala']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Solusi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $solusi['jml_solusi']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow ml-3 mb-12">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Tabel Data Pasien</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" encytpe="multipart/form-data">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php if($_SESSION['role'] == 1) {
|
||||
echo'<th>Aksi</th>';
|
||||
}?>
|
||||
<th>Aksi</th>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>Alamat</th>
|
||||
<th>Tgl Lahir</th>
|
||||
<th>Username</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while ($data = mysqli_fetch_assoc($queryPasien)) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="badge badge-pill badge-primary" href="ubahPasien.php?id_user=<?php echo $data["id_user"]; ?>">edit</a> |
|
||||
<a href="function.php?act=hapusPasien&id_user=<?= $data["id_user"]; ?>" onclick="return confirm('Yakin ingin menghapus data?');" class="badge badge-pill badge-danger">hapus</a>
|
||||
</td>
|
||||
<td><?= $data['nama']; ?></td>
|
||||
<td><?= $data['email']; ?></td>
|
||||
<td><?= $data['alamat']; ?></td>
|
||||
<td><?= $data['tgl_lahir']; ?></td>
|
||||
<td><?= $data['nama']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,197 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$queryGejala = mysqli_query($koneksi, "SELECT * FROM gejala");
|
||||
|
||||
$jumlahPasien = mysqli_query($koneksi, "SELECT COUNT('id_user') as jml_pasien FROM user WHERE role='1'");
|
||||
$pasien = mysqli_fetch_assoc($jumlahPasien);
|
||||
|
||||
$jumlahPenyakit = mysqli_query($koneksi, "SELECT COUNT('id_penyakit') as jml_penyakit FROM penyakit");
|
||||
$penyakit = mysqli_fetch_assoc($jumlahPenyakit);
|
||||
|
||||
$jumlahGejala = mysqli_query($koneksi, "SELECT COUNT('id_gejala') as jml_gejala FROM gejala");
|
||||
$gejala = mysqli_fetch_assoc($jumlahGejala);
|
||||
|
||||
$jumlahSolusi = mysqli_query($koneksi, "SELECT COUNT('id_solusi') as jml_solusi FROM solusi");
|
||||
$solusi = mysqli_fetch_assoc($jumlahSolusi);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Data Pasien</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $pasien['jml_pasien']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Penyakit</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $penyakit['jml_penyakit']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Gejala</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $gejala['jml_gejala']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Solusi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $solusi['jml_solusi']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-12">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Tabel Data Gejala</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" encytpe="multipart/form-data">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Aksi</th>
|
||||
<th>Id Gejala</th>
|
||||
<th>Nama Gejala</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while ($data = mysqli_fetch_assoc($queryGejala)) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="badge badge-pill badge-primary" href="ubahGejala.php?id_gejala=<?php echo $data["id_gejala"]; ?>">edit</a> |
|
||||
<a href="function.php?act=hapusGejala&id_gejala=<?= $data['id_gejala']; ?>" onclick="return confirm('Yakin ingin menghapus data?');" class="badge badge-pill badge-danger">hapus</a>
|
||||
</td>
|
||||
<td><?= $data['id_gejala']; ?></td>
|
||||
<td><?= $data['gejala']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<a href="tambahGejala.php" class="btn btn-primary my-2 px-2">Tambah Data Gejala</a>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,201 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$queryPasien = mysqli_query($koneksi, "SELECT * FROM user WHERE role = '2'");
|
||||
|
||||
$jumlahPasien = mysqli_query($koneksi, "SELECT COUNT('id_user') as jml_pasien FROM user WHERE role='1'");
|
||||
$pasien = mysqli_fetch_assoc($jumlahPasien);
|
||||
|
||||
$jumlahPenyakit = mysqli_query($koneksi, "SELECT COUNT('id_penyakit') as jml_penyakit FROM penyakit");
|
||||
$penyakit = mysqli_fetch_assoc($jumlahPenyakit);
|
||||
|
||||
$jumlahGejala = mysqli_query($koneksi, "SELECT COUNT('id_gejala') as jml_gejala FROM gejala");
|
||||
$gejala = mysqli_fetch_assoc($jumlahGejala);
|
||||
|
||||
$jumlahSolusi = mysqli_query($koneksi, "SELECT COUNT('id_solusi') as jml_solusi FROM solusi");
|
||||
$solusi = mysqli_fetch_assoc($jumlahSolusi);
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Data Pasien</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $pasien['jml_pasien']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Penyakit</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $penyakit['jml_penyakit']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Gejala</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $gejala['jml_gejala']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Solusi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $solusi['jml_solusi']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow ml-3 mb-12">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Tabel Data Pakar</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" encytpe="multipart/form-data">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php if($_SESSION['role'] == 0) {
|
||||
echo'<th>Aksi</th>';
|
||||
}?>
|
||||
<th>Nama</th>
|
||||
<th>Email</th>
|
||||
<th>Alamat</th>
|
||||
<th>Tgl Lahir</th>
|
||||
<th>Username</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while ($data = mysqli_fetch_assoc($queryPasien)) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="badge badge-pill badge-primary" href="ubahPakar.php?id_user=<?php echo $data["id_user"]; ?>">edit</a> |
|
||||
<a href="function.php?act=hapusPakar&id_user=<?= $data["id_user"]; ?>" onclick="return confirm('Yakin ingin menghapus data?');" class="badge badge-pill badge-danger">hapus</a>
|
||||
</td>
|
||||
<td><?= $data['nama']; ?></td>
|
||||
<td><?= $data['email']; ?></td>
|
||||
<td><?= $data['alamat']; ?></td>
|
||||
<td><?= $data['tgl_lahir']; ?></td>
|
||||
<td><?= $data['nama']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<?php if($_SESSION['role'] == 0) {
|
||||
echo'<a href="register_pakar.php" class="btn btn-primary my-2 px-2">Tambah Data Pakar</a>';
|
||||
}?>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,197 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
|
||||
$jumlahPasien = mysqli_query($koneksi, "SELECT COUNT('id_user') as jml_pasien FROM user WHERE role='1'");
|
||||
$pasien = mysqli_fetch_assoc($jumlahPasien);
|
||||
|
||||
$jumlahPenyakit = mysqli_query($koneksi, "SELECT COUNT('id_penyakit') as jml_penyakit FROM penyakit");
|
||||
$penyakit = mysqli_fetch_assoc($jumlahPenyakit);
|
||||
|
||||
$jumlahGejala = mysqli_query($koneksi, "SELECT COUNT('id_gejala') as jml_gejala FROM gejala");
|
||||
$gejala = mysqli_fetch_assoc($jumlahGejala);
|
||||
|
||||
$jumlahSolusi = mysqli_query($koneksi, "SELECT COUNT('id_solusi') as jml_solusi FROM solusi");
|
||||
$solusi = mysqli_fetch_assoc($jumlahSolusi);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Data Pasien</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $pasien['jml_pasien']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Penyakit</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $penyakit['jml_penyakit']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Gejala</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $gejala['jml_gejala']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Solusi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $solusi['jml_solusi']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-12">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Tabel Data Penyakit</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" encytpe="multipart/form-data">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Aksi</th>
|
||||
<th>Id Penyakit</th>
|
||||
<th>Nama Penyakit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while ($data = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<a class="badge badge-pill badge-primary" href="ubahPenyakit.php?id_penyakit=<?php echo $data["id_penyakit"]; ?>">edit</a> |
|
||||
<a href="function.php?act=hapusPenyakit&id_penyakit=<?= $data['id_penyakit']; ?>" onclick="return confirm('Yakin ingin menghapus data?');" class="badge badge-pill badge-danger">hapus</a>
|
||||
</td>
|
||||
<td><?= $data['id_penyakit']; ?></td>
|
||||
<td><?= $data['penyakit']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<a href="tambahPenyakit.php" class="btn btn-primary my-2 px-2">Tambah Data Penyakit</a>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,201 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$querySolusi = mysqli_query($koneksi, "SELECT id_solusi, penyakit, solusi FROM solusi INNER JOIN penyakit ON solusi.id_penyakit = penyakit.id_penyakit");
|
||||
|
||||
$jumlahPasien = mysqli_query($koneksi, "SELECT COUNT('id_user') as jml_pasien FROM user WHERE role='1'");
|
||||
$pasien = mysqli_fetch_assoc($jumlahPasien);
|
||||
|
||||
$jumlahPenyakit = mysqli_query($koneksi, "SELECT COUNT('id_penyakit') as jml_penyakit FROM penyakit");
|
||||
$penyakit = mysqli_fetch_assoc($jumlahPenyakit);
|
||||
|
||||
$jumlahGejala = mysqli_query($koneksi, "SELECT COUNT('id_gejala') as jml_gejala FROM gejala");
|
||||
$gejala = mysqli_fetch_assoc($jumlahGejala);
|
||||
|
||||
$jumlahSolusi = mysqli_query($koneksi, "SELECT COUNT('solusi') as jml_solusi FROM solusi");
|
||||
$solusi = mysqli_fetch_assoc($jumlahSolusi);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-primary shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Data Pasien</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $pasien['jml_pasien']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-success shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Penyakit</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $penyakit['jml_penyakit']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-info shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Gejala</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $gejala['jml_gejala']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-3 col-md-6 mb-4">
|
||||
<div class="card border-left-warning shadow h-100 py-2">
|
||||
<div class="card-body">
|
||||
<div class="row no-gutters align-items-center">
|
||||
<div class="col mr-2">
|
||||
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Data Solusi</div>
|
||||
<div class="h5 mb-0 font-weight-bold text-gray-800"><?= $solusi['jml_solusi']; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-12" style="width: 80%">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Tabel Data Solusi</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<a href="tambahSolusi.php" class="btn btn-primary my-2 mt-2">Tambah Data Solusi</a>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr class="d-flex">
|
||||
<th class="col-2">Aksi</th>
|
||||
<th class="col-1">Id Solusi</th>
|
||||
<th class="col-3">Penyakit</th>
|
||||
<th class="col-6">Solusi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while ($data = mysqli_fetch_assoc($querySolusi)) { ?>
|
||||
<tr class="d-flex">
|
||||
<td class="col-2">
|
||||
<a class="badge badge-pill badge-primary" href="ubahSolusi.php?id_solusi=<?php echo $data["id_solusi"]; ?>">edit</a> |
|
||||
<a href="function.php?act=hapusSolusi&id_solusi=<?= $data['id_solusi']; ?>" onclick="return confirm('Yakin ingin menghapus data?');" class="badge badge-pill badge-danger">hapus</a>
|
||||
</td>
|
||||
<td class="col-1"><?= $data['id_solusi']; ?></td>
|
||||
<td class="col-3"><?= $data['penyakit']; ?></td>
|
||||
<td class="col-6"><?= $data['solusi']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
include "function.php";
|
||||
$_SESSION = [];
|
||||
session_unset();
|
||||
session_destroy();
|
||||
header("location: index.php");
|
Binary file not shown.
|
@ -0,0 +1,141 @@
|
|||
<?php
|
||||
include 'function.php';
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 0) {
|
||||
header("location: indexAdmin.php");
|
||||
} else if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
} else if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="custom.css" />
|
||||
|
||||
<!--Font-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"rel="stylesheet"/>
|
||||
<script src="https://kit.fontawesome.com/yourcode.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
|
||||
|
||||
<title>Cek Gigi Yuk!</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="card text-center">
|
||||
<div class="card-title">
|
||||
<h1 class="card-title">Halaman Registrasi</h1>
|
||||
</div>
|
||||
<div class="card-body ">
|
||||
<form id="registrationForm" method="POST" action="function.php?act=register" class="needs-validation" novalidate>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="nama">Nama Pasien</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama" placeholder="Nama" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Nama tidak boleh kosong
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Email" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Email tidak valid
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="password">Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" minlength="8" placeholder="Password" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Password min. 8 karakter
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="alamat">Alamat</label>
|
||||
<input type="text" class="form-control" id="alamat" name="alamat" placeholder="Alamat" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Alamat tidak boleh kosong
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" required>
|
||||
<div class="invalid-feedback">
|
||||
Masukkan Tahun Lahir
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" name="submitButton" id="submitButton" class="registerbtn btn btn-primary">Register</button>
|
||||
<br>
|
||||
<div class="container signin">
|
||||
<p>Sudah punya akun? <a href="index.php">Log In</a></p>
|
||||
<!-- Modal -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
'use strict';
|
||||
window.addEventListener('load', function() {
|
||||
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
||||
var forms = document.getElementsByClassName('needs-validation');
|
||||
// Loop over them and prevent submission
|
||||
var validation = Array.prototype.filter.call(forms, function(form) {
|
||||
form.addEventListener('submit', function(event) {
|
||||
if (form.checkValidity() === false) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
form.classList.add('was-validated');
|
||||
}, false);
|
||||
});
|
||||
}, false);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,134 @@
|
|||
<?php
|
||||
include 'function.php';
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
} else if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="custom.css" />
|
||||
|
||||
<!--Font-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"rel="stylesheet"/>
|
||||
<script src="https://kit.fontawesome.com/yourcode.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
|
||||
|
||||
<title>Cek Gigi Yuk!</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="card text-center">
|
||||
<div class="card-title">
|
||||
<h1 class="card-title">Halaman Registrasi</h1>
|
||||
</div>
|
||||
<div class="card-body ">
|
||||
<form id="registrationForm" method="POST" action="function.php?act=registerPakar" class="needs-validation" novalidate>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="nama">Nama Pakar</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama" placeholder="Nama" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Nama tidak boleh kosong
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" placeholder="Email" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Email tidak valid
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="password">Password</label>
|
||||
<input type="password" class="form-control" id="password" name="password" minlength="8" placeholder="Password" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Password min. 8 karakter
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="alamat">Alamat</label>
|
||||
<input type="text" class="form-control" id="alamat" name="alamat" placeholder="Alamat" required>
|
||||
<div class="valid-feedback">
|
||||
Bagus!
|
||||
</div>
|
||||
<div class="invalid-feedback">
|
||||
Alamat tidak boleh kosong
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label class="papan" for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" required>
|
||||
<div class="invalid-feedback">
|
||||
Masukkan Tahun Lahir
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" name="submitButton" id="submitButton" class="registerbtn btn btn-primary">Register</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
'use strict';
|
||||
window.addEventListener('load', function() {
|
||||
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
||||
var forms = document.getElementsByClassName('needs-validation');
|
||||
// Loop over them and prevent submission
|
||||
var validation = Array.prototype.filter.call(forms, function(form) {
|
||||
form.addEventListener('submit', function(event) {
|
||||
if (form.checkValidity() === false) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
form.classList.add('was-validated');
|
||||
}, false);
|
||||
});
|
||||
}, false);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,72 @@
|
|||
body {
|
||||
margin: 0;
|
||||
font-family: 'Franklin Gothic Medium';
|
||||
}
|
||||
|
||||
.kiri {
|
||||
margin: 1%;
|
||||
margin-top: auto;
|
||||
width: 15%;
|
||||
height: auto;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
float: left;
|
||||
|
||||
}
|
||||
|
||||
.kanan {
|
||||
margin: 1%;
|
||||
margin-top: auto;
|
||||
width: 75%;
|
||||
height: auto;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
|
||||
.teks {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
#tess {
|
||||
font-size: xx-large;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.isi {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
color: #4183D7;
|
||||
}
|
||||
.isi:hover {
|
||||
background-color: rgb(35, 87, 155);
|
||||
color: #ffff;
|
||||
}
|
||||
|
||||
.sidebar-heading {
|
||||
color: #ffff;
|
||||
background-color: #4183D7;
|
||||
padding-left: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.isi:hover a {
|
||||
background-color: rgb(35, 87, 155);
|
||||
color: #ffff;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 20px 80px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between ml-4 py-5">
|
||||
<h1 class="h3 mb-0 text-gray-800 " id="tess">Form Tambah Gejala</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row ml-4">
|
||||
|
||||
<form action="function.php?act=tambahGejala" id="tambah" method="POST" >
|
||||
<div class="form-group">
|
||||
<label for="namaGejala">Gejala</label>
|
||||
<input type="text" class="form-control" id="namaGejala" name="namaGejala" placeholder="Masukkan gejala">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_penyakit" class="form-label">Nama Penyakit</label>
|
||||
<select name="id_penyakit" id="id_penyakit" class="form-control">
|
||||
<option value="">Pilih Penyakit dari Gejala</option>
|
||||
<?php while ($penyakit = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<option value="<?= $penyakit["id_penyakit"]; ?>"><?= $penyakit["penyakit"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" name="tambah_btn" id="tambah" class="btn btn-primary" value="Tambah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,118 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
// $queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
// $query = mysqli_query($koneksi, "SELECT * FROM relasi INNER JOIN gejala ON relasi.id_gejala = gejala.id_gejala INNER JOIN penyakit ON relasi.id_penyakit = penyakit.id_penyakit WHERE id_gelaja = 1");
|
||||
// $data = mysqli_fetch_assoc($query);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between ml-4 py-5">
|
||||
<h1 class="h3 mb-0 text-gray-800 " id="tess">Form Tambah Penyakit</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row ml-4">
|
||||
|
||||
<form action="function.php?act=tambahPenyakit" id="tambah" method="POST" >
|
||||
<div class="form-group">
|
||||
<label for="namaGejala">Penyakit</label>
|
||||
<input type="text" class="form-control" id="namaPenyakit" name="namaPenyakit" placeholder="Masukkan penyakit">
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<label for="id_universitas" class="form-label">Nama Penyakit</label>
|
||||
<select name="id_penyakit" id="id_penyakit" class="form-control">
|
||||
<option value="">Pilih Penyakit Untuk Gejala</option>
|
||||
|
||||
<?php while ($penyakit = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<option value="<?= $penyakit["id_penyakit"]; ?>"><?= $penyakit["penyakit"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div> -->
|
||||
<input type="submit" name="tambah_btn" id="tambah" class="btn btn-primary" value="Tambah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,116 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between ml-4 py-5">
|
||||
<h1 class="h3 mb-0 text-gray-800 " id="tess">Form Tambah Solusi</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row ml-4">
|
||||
|
||||
<form action="function.php?act=tambahSolusi" id="tambah" method="POST" >
|
||||
<div class="form-group">
|
||||
<label for="namaSolusi">Solusi</label>
|
||||
<input type="text" class="form-control" id="namaSolusi" name="namaSolusi" placeholder="Masukkan Solusi">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_penyakit" class="form-label">Nama Penyakit</label>
|
||||
<select name="id_penyakit" id="id_penyakit" class="form-control">
|
||||
<option value="">Pilih Penyakit dari Solusi</option>
|
||||
<?php while ($penyakit = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<option value="<?= $penyakit["id_penyakit"]; ?>"><?= $penyakit["penyakit"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" name="tambah_btn" id="tambah" class="btn btn-primary" value="Tambah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,241 @@
|
|||
<?php
|
||||
include 'function.php';
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 0) {
|
||||
header("location: indexAdmin.php");
|
||||
} else if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($_SESSION['persentase'])){
|
||||
$_SESSION['persentase'] = [];
|
||||
}
|
||||
|
||||
|
||||
$gejala = mysqli_query($koneksi, "SELECT * FROM gejala");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="custom.css" />
|
||||
<title>Cek Gigi Yuk!</title>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar py-2 navbar-expand-lg navbar-light">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#"
|
||||
><img src="gambar/logo_gigi.png" width="147" alt="logo"
|
||||
/></a>
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li>
|
||||
<a class="btn px-4 btn-primary ml-2" href="logout.php" role="button"
|
||||
>Log Out</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- <section class="test mt-5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col align-self-center">
|
||||
<h2 class="mb-4">Pertanyaan : </h2>
|
||||
<form action="" method="post" enctype="multipart/form-data" role="form">
|
||||
<?php
|
||||
$id_penyakit=1;
|
||||
// if(!isset($_SESSION['id_penyakit'])){
|
||||
// $_SESSION['id_penyakit'] = $id_penyakit;
|
||||
// }else{
|
||||
// $id_penyakit = $_SESSION['id_penyakit'];
|
||||
// }
|
||||
$id = gejala($id_penyakit);
|
||||
$id_gejala = intval($id);
|
||||
if(!isset($_SESSION['id_gejala'])){
|
||||
$_SESSION['id_gejala'] = $id_gejala;
|
||||
}else{
|
||||
$id_gejala = $_SESSION['id_gejala'];
|
||||
}
|
||||
$data = mysqli_query($koneksi, "SELECT gejala FROM gejala WHERE id_gejala = '$id_gejala'");
|
||||
// var_dump($data);
|
||||
$row = mysqli_fetch_assoc($data);
|
||||
?>
|
||||
<p class="mb-4">
|
||||
Apakah anda mengalami <?= $row['gejala']; ?> ?
|
||||
</p>
|
||||
<?php
|
||||
echo'<input type="submit" class="btn btn-primary mr-2 px-4 py-2" name="ya" value="Ya">';
|
||||
echo'<input type="submit" class="btn btn-danger px-3 py-2" name="tidak" value="Tidak">';
|
||||
$persentase = $_SESSION['persentase'];
|
||||
$temp = 0;
|
||||
$_SESSION['id_gejala'] = $id_gejala;
|
||||
$next_gejala = $_SESSION['id_gejala'];
|
||||
// $next_penyakit = $_SESSION['id_penyakit'];
|
||||
if(isset($_POST['ya'])){
|
||||
if(isset($id_gejala)){
|
||||
$temp = $id_gejala;
|
||||
array_push($persentase, $temp);
|
||||
}
|
||||
$_SESSION['persentase'] = $persentase;
|
||||
$next_gejala = $id_gejala + 1;
|
||||
$_SESSION['id_gejala'] = $next_gejala;
|
||||
}
|
||||
else if(isset($_POST['tidak'])){
|
||||
$next_gejala = $id_gejala + 1;
|
||||
$_SESSION['id_gejala'] = $next_gejala;
|
||||
// $next_penyakit = $id_penyakit += 1;
|
||||
// $_SESSION['id_penyakit'] = $next_penyakit;
|
||||
}
|
||||
if($_SESSION['id_gejala'] > 27) {
|
||||
|
||||
$ginjalAkut = array(1,2,3,4,5,6);
|
||||
$ginjalKronis = array(7,8,9,10,11,12);
|
||||
$batuGinjal = array(13,14,15,16,17);
|
||||
$infeksiGinjal = array(18,19);
|
||||
$kankerGinjal = array(20,21,22);
|
||||
$gagalGinjal = array(23,24,25,26,27);
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $ginjalAkut)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$GinjalAkut = $nilai/count($ginjalAkut);
|
||||
$Akut = number_format($GinjalAkut,3);
|
||||
$hasilGinjalAkut = $Akut *100;
|
||||
// echo $hasilGinjalAkut;
|
||||
// echo '<br>';
|
||||
$_SESSION['ginjalAkut'] = $hasilGinjalAkut;
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $ginjalKronis)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$GinjalKronis = $nilai/count($ginjalKronis);
|
||||
$Kronis = number_format($GinjalKronis,3);
|
||||
$hasilGinjalKronis = $Kronis *100;
|
||||
// echo $hasilGinjalKronis;
|
||||
// echo '<br>';
|
||||
$_SESSION['ginjalKronis'] = $hasilGinjalKronis;
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $batuGinjal)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$BatuGinjal = $nilai/count($batuGinjal);
|
||||
$Batu = number_format($BatuGinjal,3);
|
||||
$hasilBatuGinjal = $Batu *100;
|
||||
// echo $hasilBatuGinjal;
|
||||
// echo '<br>';
|
||||
$_SESSION['batuGinjal'] = $hasilBatuGinjal;
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $infeksiGinjal)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$InfeksiGinjal = $nilai/count($infeksiGinjal);
|
||||
$Infeksi = number_format($InfeksiGinjal,3);
|
||||
$hasilInfeksiGinjal = $Infeksi *100;
|
||||
// echo $hasilInfeksiGinjal;
|
||||
// echo '<br>';
|
||||
$_SESSION['infeksiGinjal'] = $hasilInfeksiGinjal;
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $kankerGinjal)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$KankerGinjal = $nilai/count($kankerGinjal);
|
||||
$Kanker = number_format($KankerGinjal,3);
|
||||
$hasilKankerGinjal = $Kanker *100;
|
||||
// echo $hasilKankerGinjal;
|
||||
// echo '<br>';
|
||||
$_SESSION['kankerGinjal'] = $hasilKankerGinjal;
|
||||
$nilai = 0;
|
||||
foreach ($persentase as $value) {
|
||||
if (in_array($value, $gagalGinjal)) {
|
||||
$nilai += 1;
|
||||
}else{
|
||||
$nilai += 0;
|
||||
}
|
||||
}
|
||||
$GagalGinjal = $nilai/count($gagalGinjal);
|
||||
$Gagal = number_format($GagalGinjal,3);
|
||||
$hasilGagalGinjal = $Gagal *100;
|
||||
// echo $hasilGagalGinjal;
|
||||
// echo '<br>';
|
||||
$_SESSION['gagalGinjal'] = $hasilGagalGinjal;
|
||||
header('Location:hasil.php');
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<div class="col d-none d-sm-block">
|
||||
<img width="500" src="gambar/jawab.png" alt="hero" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</body> -->
|
||||
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.js"
|
||||
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
|
||||
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
||||
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
|
||||
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
</html>
|
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$id_gejala = $_GET["id_gejala"];
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
|
||||
$query = mysqli_query($koneksi, "SELECT * FROM relasi INNER JOIN penyakit ON relasi.id_penyakit = penyakit.id_penyakit INNER JOIN gejala ON relasi.id_gejala = gejala.id_gejala WHERE relasi.id_gejala = '$id_gejala'");
|
||||
$data = mysqli_fetch_assoc($query);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Ubah Data Gejala</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
<form action="function.php?act=ubahGejala&id_gejala=<?= $data['id_gejala']; ?>" id="ubah" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="namaGejala">Nama Gejala</label>
|
||||
<input type="text" class="form-control" id="namaGejala" name="namaGejala" value="<?= $data['gejala']; ?>"">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_penyakit" class="form-label">Nama Penyakit</label>
|
||||
<select name="id_penyakit" id="id_penyakit" class="form-control">
|
||||
<option value="<?= $data['id_penyakit']; ?>"><?= $data['penyakit']; ?></option>
|
||||
<?php while ($penyakit = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<option value="<?= $penyakit["id_penyakit"]; ?>"><?= $penyakit["penyakit"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" name="ubah_btn" id="ubah" class="btn btn-primary" value="Ubah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
} else if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$id_user = $_GET["id_user"];
|
||||
|
||||
$queryUser = mysqli_query($koneksi, "SELECT * FROM user WHERE id_user = '$id_user'");
|
||||
$user = mysqli_fetch_assoc($queryUser);
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Ubah Data Pasien</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
<form action="function.php?act=ubahPakar&id_user=<?= $user['id_user']; ?>" id="ubah" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Pakar</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama" value="<?= $user['nama']; ?>"">
|
||||
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?= $user['email']; ?>"">
|
||||
|
||||
<label for="alamat">Alamat</label>
|
||||
<input type="text" class="form-control" id="alamat" name="alamat" value="<?= $user['alamat']; ?>"">
|
||||
|
||||
<label for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" value="<?= $user['tgl_lahir']; ?>"">
|
||||
</div>
|
||||
|
||||
<input type="submit" name="ubah_btn" id="ubah" class="btn btn-primary" value="Ubah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
} else if ($_SESSION['role'] == 2) {
|
||||
header("location: indexPakar.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$id_user = $_GET["id_user"];
|
||||
|
||||
$queryUser = mysqli_query($koneksi, "SELECT * FROM user WHERE id_user = '$id_user'");
|
||||
$user = mysqli_fetch_assoc($queryUser);
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Ubah Data Pasien</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
<form action="function.php?act=ubahPasien&id_user=<?= $user['id_user']; ?>" id="ubah" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="nama">Nama Pasien</label>
|
||||
<input type="text" class="form-control" id="nama" name="nama" value="<?= $user['nama']; ?>"">
|
||||
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" id="email" name="email" value="<?= $user['email']; ?>"">
|
||||
|
||||
<label for="alamat">Alamat</label>
|
||||
<input type="text" class="form-control" id="alamat" name="alamat" value="<?= $user['alamat']; ?>"">
|
||||
|
||||
<label for="tgl_lahir">Tanggal Lahir</label>
|
||||
<input type="date" class="form-control" id="tgl_lahir" name="tgl_lahir" value="<?= $user['tgl_lahir']; ?>"">
|
||||
</div>
|
||||
|
||||
<input type="submit" name="ubah_btn" id="ubah" class="btn btn-primary" value="Ubah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,108 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$id_penyakit = $_GET["id_penyakit"];
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit WHERE id_penyakit = '$id_penyakit'");
|
||||
$penyakit = mysqli_fetch_assoc($queryPenyakit);
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Ubah Data Penyakit</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
<form action="function.php?act=ubahPenyakit&id_penyakit=<?= $penyakit['id_penyakit']; ?>" id="ubah" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="namaPenyakit">Nama Penyakit</label>
|
||||
<input type="text" class="form-control" id="namaPenyakit" name="namaPenyakit" value="<?= $penyakit['penyakit']; ?>"">
|
||||
</div>
|
||||
|
||||
<input type="submit" name="ubah_btn" id="ubah" class="btn btn-primary" value="Ubah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,118 @@
|
|||
<?php
|
||||
|
||||
|
||||
include "function.php";
|
||||
if (isset($_SESSION['role'])) {
|
||||
if ($_SESSION['role'] == 1) {
|
||||
header("location: test.php");
|
||||
}
|
||||
} else {
|
||||
header("location:index.php");
|
||||
}
|
||||
|
||||
$id_solusi = $_GET["id_solusi"];
|
||||
|
||||
$queryPenyakit = mysqli_query($koneksi, "SELECT * FROM penyakit");
|
||||
|
||||
$query = mysqli_query($koneksi, "SELECT * FROM solusi INNER JOIN penyakit ON solusi.id_penyakit = penyakit.id_penyakit WHERE id_solusi = '$id_solusi'");
|
||||
$data = mysqli_fetch_assoc($query);
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dashboard Admin</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
||||
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
||||
crossorigin="anonymous"/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Poppins:300,400,700&display=swap"
|
||||
rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<body >
|
||||
<div class="kiri">
|
||||
<section class="logo">
|
||||
<img src="gambar/logo_gigi.png" alt="logo" height="70px" />
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Data User</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexAdmin.php">
|
||||
<span>Data Pasien</span></a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPakar.php">
|
||||
<span>Data Pakar</span></a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Gejala & Penyakit</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexPenyakit.php">
|
||||
<span>Data Penyakit</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexGejala.php">
|
||||
<span>Data Gejala</span>
|
||||
</a>
|
||||
</section>
|
||||
<div class="sidebar-heading">
|
||||
<h5 class="font-weight-bold text-white text-uppercase teks">Solusi</h5>
|
||||
</div>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="indexSolusi.php">
|
||||
<span>Data Solusi</span>
|
||||
</a>
|
||||
</section>
|
||||
<section class="isi">
|
||||
<a class="nav-link" href="logout.php">
|
||||
<span>Logout</span>
|
||||
</a>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="kanan">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Ubah Data Gejala</h1>
|
||||
</div>
|
||||
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
|
||||
<form action="function.php?act=ubahSolusi&id_solusi=<?= $data['id_solusi']; ?>" id="ubah" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="namaSolusi">Solusi</label>
|
||||
<input type="text" class="form-control" id="namaSolusi" name="namaSolusi" value="<?= $data['solusi']; ?>"">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_penyakit" class="form-label">Nama Penyakit</label>
|
||||
<select name="id_penyakit" id="id_penyakit" class="form-control">
|
||||
<option value="<?= $data['id_penyakit']; ?>"><?= $data['penyakit']; ?></option>
|
||||
<?php while ($penyakit = mysqli_fetch_assoc($queryPenyakit)) { ?>
|
||||
<option value="<?= $penyakit["id_penyakit"]; ?>"><?= $penyakit["penyakit"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" name="ubah_btn" id="ubah" class="btn btn-primary" value="Ubah">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,11 @@
|
|||
Pasien
|
||||
Username = adi
|
||||
Password = adi12345
|
||||
|
||||
Pakar
|
||||
Username = Dokter Budi
|
||||
Password = budi12345
|
||||
|
||||
Admin
|
||||
Username = admin
|
||||
Password = admin12345
|
Loading…
Reference in New Issue