menambah.php mengubah.php out.php peminjaman.php pinjam.php

?php session_start; include koneksi.php; if_POST[id] == 240894 { q = select from admin where id= _POST[id] and pass= _POST[pass]; result = mysql_queryq; ifmysql_num_rowsresult0 { _SESSION[admin] = _POST[id]; } headerlocation:admin.php;} else { q = select from polisi where id= _POST[id] and pass= _POST[pass]; result = mysql_queryq; ifmysql_num_rowsresult0 { _SESSION[user] = _POST[id]; } headerlocation:akun.php;} ?

13. menambah.php

?php include koneksi.php; no = _POST[nama_senjata]; a = _POST[no_senjata]; b = _POST[ket]; name = _FILES [pic] [name]; lok = sjt; temb = _FILES [pic] [tmp_name]; v = move_uploaded_filetemb, lok.name; ifv { xxx = mysql_queryinsert into senjata valuesno,a,b,name; ifxxx { echo script alertsukses; script ; headerlocation:admin.php; } Universitas Sumatera Utara else echo gagal meminjam : ; } ?

14. mengubah.php

?php include koneksi.php; no = _POST[id]; d = _POST[st]; v = mysql_queryupdate pinjam set status = d where no = no; ifv { echo script alertsukses; script ; headerlocation:admin.php; } else echo gagal meminjam : ; ?

15. out.php

?php session_start; session_destroy; headerlocation:index.html; ?

16. peminjaman.php

?php include koneksi.php; no = _POST[id]; a = _POST[user]; b = _POST[barang]; c = _POST[tgl]; d = _POST[st]; e = _POST[pel]; Universitas Sumatera Utara v = mysql_queryinsert into pinjam valuesno,a,b,c,d,e; ifv{ echo script alertsukses; script ; headerlocation:akun.php;} else echo gagal meminjam : ; ?

17. pinjam.php

?php session_start; ifisset_SESSION[user]{ headerlocation:login.php?login-GAGAl;} ? 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 titlepinjamtitle meta name=keywords content= meta name=description content= link href=default.css rel=stylesheet type=textcss media=screen head body div id=header h1nbsp;h1 pnbsp;p div div id=menu ul Universitas Sumatera Utara li class=current_page_itema href=Akun ID : ?php echo _SESSION[user] ?ali li a href=akun.php Back ali ul div div id=page div id=content div class=post div class=title h2 align=centerMeminjamh2 div div class=entry table width=100 border=1 cellspacing=2 cellpadding=4 tr td width=18Tanggaltd td width=20Senjatatd td Amunisitd td width=20Statustd tr ?php include koneksi.php; a=mysql_queryselect from pinjam where id_user=_SESSION[user]; whileini=mysql_fetch_arraya{ ? tr td?php echo ini[tgl] ?td td?php echo ini[nama_senjata] ?td td?php echo ini[amunisi] ?td td?php echo ini[status] ?td tr ?php } ? table div div div div id=sidebar Universitas Sumatera Utara div id=search h2Searchh2 form id=searchform method=get action=hasil.php fieldset input type=text name=s id=s value= 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- validatorcheckreferer class=css title=This page validates as CSSValid abbr title=Cascading Style SheetsCSSabbra p div html

18. plus.php