div id=extra style=clear: both;nbsp;div div
div id=footer p class=legal copy;2007 Newsprint. All Rights
Reserved. nbsp;nbsp;bull;nbsp;nbsp;
Design by a href=http:www.freecsstemplates.orgFree CSS
Templatesa p
p class=links a href=http:validator.w3.orgcheckreferer
class=xhtml title=This page validates as XHTMLValid abbr title=eXtensible HyperText Markup
LanguageXHTMLabbra nbsp;bull;nbsp; a href=http:jigsaw.w3.orgcss-
validatorcheckreferer class=css title=T his page validates as CSSValid abbr title=Cascading Style
SheetsCSSabbra p
div html
6. delete.php
?php include koneksi.php;
a = _GET[id]; v = mysql_querydelete from senjata where
nama_senjata=a; ifv
{
echo script
alertsukses; document.location.hrefadmin.php;
script
Universitas Sumatera Utara
; }
else echo gagal menghapus ;
?
7. hasil.php
style .user { visibility:hidden }
.non { visibility:visible } style
?php error_reporting0;
session_start; include koneksi.php;
q=mysql_queryselect from polisi where id = _SESSION[user];
whilea=mysql_fetch_arrayq {
ifa[id]==_SESSION[user] { ? style
.user { visibility:visible } .non { visibility:hidden }
style ?php
} } ?
DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 StrictEN http:www.w3.orgTRxhtml1DTDxhtml1 -
strict.dtd html xmlns=http:www.w3.org1999xhtml
head meta http-equiv=content-type content=texthtml;
charset=utf-8 titleHasil cari : ?php echo _GET[s] ?title
meta name=keywords content= meta name=description content=
link href=default.css rel=stylesheet type=textcss media=screen
head body
Universitas Sumatera Utara
div id=header h1nbsp;h1
pnbsp;p div
div id=menu ul
li class=current_page_itema href=index.htmlBerandaali
lia href=masuk.phpMasukali lia href=about.htmlAboutali
lia href=list.phpDaftar Peralatanali
ul div
div id=page div id=content
div class=post div class=title
?php include koneksi.php; a=mysql_queryselect from senjata where
id=_GET[s];
ini=mysql_fetch_arraya; ?
h2?php echo ini[nama_senjata] ?h2
div div class=entry
form action=peminjaman.php method=post table width=100 border=1 cellspacing=2
cellpadding=4 tr
input type=hidden name=id td align=centerimg src=sjt?php echo
ini[pic] ? width=150 height=150 tdinput type=hidden name=senjata
value=?php echo ini[nama_senjata] ? td?php echo ini[ket] ?tdinput
type=hidden name=user value=?php echo _SESSION[user] ?
tr input type=hidden name=tgl value=?php echo
dateYmd h:i:s ? input type=hidden name=st value=dipinjam
Universitas Sumatera Utara
tr td class=user Amunisi : input type=number
name=pel td td valign=middlediv class=userbutton
type=submitPinjambuttondiv
div class=non Peminjaman dilakukan setelah login div
td tr
tableform pnbsp;p
div div
div div id=sidebar
div id=search h2Searchh2
form id=searchform method=get action=hasil.php
fieldset input type=text name=s id=s
value= placeholder=ID SEnjata... input type=submit id=x
value=Search fieldset
form div
div div id=extra style=clear: both;nbsp;div
div div id=footer
p class=legal copy;2007 Newsprint. All Rights Reserved.
nbsp;nbsp;bull;nbsp;nbsp; Design by a
href=http:www.freecsstemplates.orgFree CSS Templatesa p
p class=links a href=http:validator.w3.orgcheckreferer
class=xhtml title=This page validates as XHTMLValid abbr title=eXtensible HyperText
Markup LanguageXHTMLabbra nbsp;bull;nbsp; a href=http:jigsaw.w3.orgcss-
Universitas Sumatera Utara
validatorcheckreferer class=css title=This page validates as CSSValid abbr title=Cascading
Style SheetsCSSabbra p div
html
8. index.php