60
Pilih Alat Edit Alat
Simpan
Edit Lagi ya
tidak
selesai
3.7 Perancangan Edit
1. Edit data Alat Edit data digunakan untuk mengedit data alat yang sudah tersimpan di
dalam database.
Gambar 3.18 Flowchart Edit Alat
mulai
61
Gambar 3.19 Tampilan Pilih Data Alat
Script untuk menampilkan pilih data alat yang ingin di buka :
td align=center valign=topnbsp;br table width=95 border=0 cellspacing=0 cellpadding=0
tr td width=50 class=headerReportDisplay Producttd
td align=right = FormatDateTimeNow,1 td tr
tr td colspan=2nbsp;td
tr
62
tr td colspan=2hr width=100 align=center size=1 noshadetd
tr tr
td colspan=2table width=100 border=1 cellpadding=2 cellspacing=0
tr td align=center class=headertextnotd
td align=center class=headertextKodetd td align=center class=headertextNamatd
td align=center class=headertextMerktd td align=center class=headertextOpentd
td align=center class=headertextDeletetd tr
--include file=..stringsstart_display_product.asp-- tr If Odd = True Then Response.Writebgcolor=FFFFDD End
If td align=center = i .td
td = rsProductCode td td = rsProductName td
63
td = rsBrand td td align=centerinput name=btnOpen type=button
class=inputbtn id=btnOpen value=Open onClick=location.href=open_product.asp?productid= = rsProductID
td td align=centerinput name=btnDelete type=button
class=inputbtn id=btnDelete value=Delete onClick=confirm_delete=rsProductIDtd
tr --include file=..stringsend_display_product.asp--
tabletd tr
tr td colspan=2hr width=100 align=center size=1 noshadetd
tr tr align=left
td colspan=2nbsp;td tr
table td
64
Gambar 3.20 Tampilan Editan Data Alat
Script untuk menampilkan edit data alat yang ingin di edit :
td align=center valign=top form name=form method=post
action=do_update_product.asp?productid= response.Writerequest.QueryStringproductid
table width=95 border=0 cellspacing=0 cellpadding=0 tr
td width=50 class=headerReportUpdate Produktd td align=right = FormatDateTimeNow,1 td
tr
65
tr td colspan=2nbsp;td
tr tr
td colspan=2span class=errormsg If request.QueryStringe = 1 Then Response.WriteUpload error end if spantd
tr tr
td colspan=2hr width=100 align=center size=1 noshadetd tr
tr td colspan=2
table width=95 border=0 cellspacing=0 cellpadding=2 tr
td nowrapNamatd td:td
tdinput name=txtProductName type=text class=inputtype id=txtProductName value==strProductNametd
tdnbsp;td td nowrapnbsp;td
66
tdnbsp;td td width=28 valign=topnbsp;td
tr tr
td width=14 nowrapKodetd td width=1:td
td width=37input name=txtProductCode type=text class=inputtype id=txtProductCode value==strProductCodetd
td width=1nbsp;td td width=18 nowrapnbsp;td
td width=1nbsp;td td width=28 valign=topnbsp;td
tr tr
td nowrapMerktd td:td
tdinput name=txtBrand type=text class=inputtype id=txtBrand value==strBrandtd
tdnbsp;td td nowrapnbsp;td
67
tdnbsp;td td width=28 valign=topnbsp;td
tr tr
td nowrapKategoritd td:td
tdselect name=cmbCategory id=cmbCategory option value=Komputer if strKategori = Komputer then
response.Writeselected end if Komputeroption option value=Elektronika if strKategori = Elektronika then
response.Writeselected end if Elektronikaoption option value=Tenaga Listrik if strKategori = Tenaga Listrik
then response.Writeselected end if Tenaga Listrikoption selecttd
tdnbsp;td td nowrapnbsp;td
tdnbsp;td td valign=topnbsp;td
tr tr
td nowrapQtytd
68
td:td tdinput name=txtQty type=text class=inputtype id=txtQty
size=10 value==strQtytd tdnbsp;td
td nowrapnbsp;td tdnbsp;td
td valign=topnbsp;td tr
tabletd tr
tr td colspan=2hr width=100 align=center size=1 noshadetd
tr tr align=right
td colspan=2input name=Submit type=button onClick=checkformdocument.form; class=inputbtn value=Savetd
tr table
form
69
form name=formUpload method=post enctype=multipartform-data action=do_upload.asp?productid=
response.Writerequest.QueryStringproductid table width=95 border=0 cellspacing=0 cellpadding=0
tr tdinput name=FILE1 type=file id=FILE1
input name=cmdSubmit type=submit class=inputbtn id=cmdSubmit value=Upload
max 100kbtd tdimg src=..data=strPhoto width=320 height=240td
tr table
form td
70
Pilih User Edit User
Simpan
Edit Lagi ya
tidak
selesai
3. Edit data User
Gambar 3.21 Flowchart Edit User
Gambar 3.22 Tampilan Pilih Data User
mulai
71
Script untuk menampilkan pilih data user yang ingin di buka :
td align=center valign=topnbsp;br table width=95 border=0 cellspacing=0 cellpadding=0
tr td width=50 class=headerReportDisplay User td
td align=right = FormatDateTimeNow,1 td tr
tr td colspan=2nbsp;td
tr tr
td colspan=2hr width=100 align=center size=1 noshadetd tr
tr td colspan=2table width=100 border=1 cellpadding=2
cellspacing=0 tr
td align=center class=headertextnbsp;td td align=center class=headertextUser Name td
72
td align=center class=headertextFull Name td td align=center class=headertextOpentd
td align=center class=headertextDeletetd tr
--include file=..stringsstart_display_user.asp-- tr If Odd = True Then Response.Writebgcolor=FFFFDD End
If td align=center = i td
td = rsUserName td td = rsFullName td
td align=centerinput name=btnOpen type=button class=inputbtn id=btnOpen value=Open
onClick=location.href=open_user.asp?userid= = rsUserID td td align=centerinput name=btnDelete type=button
class=inputbtn id=btnDelete value=Delete onClick=confirm_delete=rsUserIDtd
tr --include file=..stringsend_display_user.asp--
tabletd tr
tr
73
td colspan=2hr width=100 align=center size=1 noshadetd tr
tr align=left td colspan=2nbsp;td
tr table
td
Gambar 3.23 Tampilan Edit Data User
Script untuk menampilkan edit data user yang ingin di edit : Script untu
td align=center valign=topnbsp;br table width=95 border=0 cellspacing=0 cellpadding=0
tr td width=50 class=headerReportUpdate Usertd
td align=right = FormatDateTimeNow,1 td tr
74
tr td colspan=2nbsp;td
tr tr
td colspan=2hr width=100 align=center size=1 noshadetd tr
tr td colspan=2table width=95 border=0 cellspacing=0
cellpadding=2 tr
td width=14 nowrapUser Name td td width=1:td
td width=37input name=txtUserName type=text class=inputtype id=txtUserName size=15 maxlength=15 disabled
value= = strUserName td td width=1nbsp;td
td width=18 nowrapAccount Full Name td td width=1:td
td width=28input name=txtFullName type=text class=inputtype id=txtFullName size=30 value= = strFullName
td
75
tr tr
td nowrapUser Password td td:td
tdinput name=txtPassword type=password class=inputtype id=txtPassword size=15 maxlength=15 value= = strPassword
td tdnbsp;td
td nowrapTypetd td:td
tdselect name=cmbType id=cmbType option value=customer if strType = customer then
response.Writeselected end ifCustomeroption option value=staff if strType = staff then
response.Writeselected end ifStaffoption selecttd
tr tabletd
tr tr
td colspan=2hr width=100 align=center size=1 noshadetd
76
Pilih alat proses
Hasilnya
Delete lagi ya
tidak
mulai
tr tr align=right
td colspan=2input name=Submit type=button onClick=checkformdocument.form; class=inputbtn value=Savetd
tr table
td
3.8 Perancangan Delete Alat