div div class=nav
?php menu=_GET[menu];
if menu==if{ echo pFORM INPUT DATA FAKULTASp;
} elseif menu==lf { echo pTABEL DATA FAKULTASp;
} elseif menu==ig { echo pFORM INPUT DATA GEDUNGp;
} elseif menu==lg { echo pTABEL DATA GEDUNGp;
} elseif menu==ir { echo pFORM INPUT DATA RUANGANp;
} elseif menu==lr { echo pTABEL DATA RUANGANp;
} ?
div div class=map
div class=mc ?php
if menu==if{ includefilemenu.php;
} elseif menu==lf { includefilemenu.php;
} elseif menu==ig { includefilemenu.php;
} elseif menu==lg { includefilemenu.php;
} elseif menu==ir { includefilemenu.php;
} elseif menu==lr { includefilemenu.php;
} ?
div div
div div
div div class=footerdiv
div body
html ?php
} ?
b. logout.php
?php session_start;
session_destroy; headerlocation:..index.php;
?
Universitas Sumatera Utara
c. Input.php
?php include....filekoneksi.php;
menu=_GET[menu]; nama=_POST[nama];
keterangan=_POST[keterangan]; fakultas=_POST[fakultas];
gedung=_POST[gedung]; lantai=_POST[lantai];
gambar=_FILES[gambar][name]; tmpGambar=_FILES[gambar][tmp_name];
dir=....images; ifmove_uploaded_filetmpGambar, dir.gambar{
ifmenu==fakultas{ q=INSERT INTO `fakultas`
VALUES,nama,keterangan,gambar; ifmysql_queryq{
headerlocation:..home.php?menu=ifkonfirmasi=sukes; } else{
headerlocation:..home.php?menu=ifkonfirmasi=gagal; }
} elseifmenu==gedung{ q=INSERT INTO `gedung`
VALUES,fakultas,nama,keterangan,gambar; ifmysql_queryq{
headerlocation:..home.php?menu=igkonfirmasi=sukes; } else{
headerlocation:..home.php?menu=igkonfirmasi=gagal; }
} elseifmenu==ruangan{ q=INSERT INTO `ruangan`
VALUES,fakultas,gedung,nama,lantai,keterang an,gambar;
ifmysql_queryq{ headerlocation:..home.php?menu=irkonfirmasi=sukes;
} else{ headerlocation:..home.php?menu=irkonfirmasi=gagal;
} }
} else{ headerlocation:..home.php?konfirmasi=gagal-muf;
} ?
Universitas Sumatera Utara
d. Hapus.php
?php include....filekoneksi.php;
menu=_GET[menu]; nama=_POST[nama];
keterangan=_POST[keterangan]; fakultas=_POST[fakultas];
gedung=_POST[gedung]; lantai=_POST[lantai];
gambar=_FILES[gambar][name]; tmpGambar=_FILES[gambar][tmp_name];
dir=....images; ifmove_uploaded_filetmpGambar, dir.gambar{
ifmenu==fakultas{ q=INSERT INTO `fakultas`
VALUES,nama,keterangan,gambar; ifmysql_queryq{
headerlocation:..home.php?menu=ifkonfirmasi=sukes; } else{
headerlocation:..home.php?menu=ifkonfirmasi=gagal; }
} elseifmenu==gedung{ q=INSERT INTO `gedung`
VALUES,fakultas,nama,keterangan,gambar; ifmysql_queryq{
headerlocation:..home.php?menu=igkonfirmasi=sukes; } else{
headerlocation:..home.php?menu=igkonfirmasi=gagal; }
} elseifmenu==ruangan{ q=INSERT INTO `ruangan`
VALUES,fakultas,gedung,nama,lantai,keterang an,gambar;
ifmysql_queryq{ headerlocation:..home.php?menu=irkonfirmasi=sukes;
} else{ headerlocation:..home.php?menu=irkonfirmasi=gagal;
} }
} else{ headerlocation:..home.php?konfirmasi=gagal-muf;
} ?
e. If.php