A-30
div script type=textjavascript
-- var
MenuBar1 =
new Spry.Widget.MenuBarMenuBar1,
{imgDown:..SpryAssetsSpryMenuBarDownHover.gif, imgRight:..SpryAssetsSpryMenuBarRightHover.gif};
-- script
body html
14. Tampil_barang.php
?php server = localhost;
pemakai = root; password = ;
id_mysql = mysql_connectserver, pemakai, password; db_autozone = mysql_select_dbautozone, id_mysql;
Bagian untuk membaca data
sql =
SELECT idpenjualan,namabarang,deskripsi,foto,harga
FROM penjualan;
hasil = mysql_querysql, id_mysql; while baris = mysql_fetch_rowhasil
{ idpenjualan = baris[0];
namabarang = baris[1]; deskripsi = baris[2];
foto = baris[3]; harga = baris[4];
echo br ; echo br ;
echo br ; echo br ;
echo br ; echo div style = margin-right: 100px;
echo img src= TAfoto_barang.foto. width=150 height=150 align=left ;
echo div;
echo div style = margin-left: 20px;
A-31
echo Nama barang : namabarang; echo br ;
echo br ; echo deskripsi : deskripsi;
echo br ; echo br ;
echo harga : harga; echoa
href=\edit_tampil_barang.php?idpenjualan=idpenjualan\Editatd\n; echo div;
echo hr; }
echo br ; echo br ;
echo br ; Akhir pembacaan data
mysql_closeid_mysql; ?
15. Register1.php
DOCTYPE html
PUBLIC -W3CDTD
XHTML 1.0
TransitionalEN http:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd
html xmlns=http:www.w3.org1999xhtml head
meta http-equiv=Content-Type content=texthtml; charset=utf-8 titleAutoZonetitle
style type=textcss --
form{
position:absolute; left:0;
right:0; margin-left:auto;
margin-right:auto; width:987px;
height:900px; z-index:1;
top: 17px; left: 11px;
color: FFF; }
Menu{ position:absolute;
width:516px; height:41px;
z-index:2; left: 242px;
top: 235px; color: F00;
}
A-32
Footer { position:absolute;
width:986px; height:38px;
z-index:2; left: 1px;
top: 858px; text-align: center;
color: F00; }
-- style
script src=..SpryAssetsSpryMenuBar.js type=textjavascriptscript link href=..SpryAssetsSpryMenuBarHorizontal.css rel=stylesheet type=textcss
style type=textcss --
Header {
position:absolute; width:983px;
height:192px; z-index:3;
left: 4px; top: 25px;
} form Footer {
color: F00; }
banner atas { position:absolute;
width:976px; height:33px;
z-index:2; left: 8px;
top: 2px; }
body { background-color: C90;
} apDiv1 {
position:absolute; width:581px;
height:484px; z-index:4;
left: 243px; top: 296px;
f }
form center apDiv1 form h1 { color: 000;
} form center apDiv1 form table tr td {
color: 000; }
A-33
-- style
head body bgcolor=000000
div id=form div id=FooterHome About Us div
div id=Menu center ul id=MenuBar1 class=MenuBarHorizontal
lia href=Index.phpstrongHOMEstronga li lia href= class=MenuBarItemSubmenustrongTIPSstronga
ul lia href=tips.phpMASALAH SEPUTAR MOBILali
ul li
lia href= class=MenuBarItemSubmenustrongFORUMstronga ul
lia href=tips.htmlUntitled Itemali ul
li lia
href= class=MenuBarItemSubmenustrongPENJUALANstronga
ul lia href=aksesoris.phpAKSESORIS MOBILali
ul li
ul center
div div id=Banner atas
marqueeSelamat datang di Auto Zone. Sebuah website informasi mengenai masalah seputar mobil dan tips-tips seputar mobil, disertai penjualan aksesoris untuk
mobil.marqueediv center div id=apDiv1
form method=post action=register_konek.php name=form_mhsonSubmit=return cek_data
h1Data Pribadih1 table
width=100 height=391
border=1 bordercolor=666666
bgcolor=CCFF66 tr
tdNamatd td:
input type=text name=nama rows=2 size=40 maxlength=40 tr
tr td height=48Alamattd
td: textarea name=alamat rows=3 size=35 maxlength=35textareatdtr
tr tdTempat Lahirtd
A-34
td: input type=text name=tempatlahir size=35 maxlength=35td
tr tr
tdTanggal Lahirtd td:
input name=tanggallahir value= maxlength=2 width=25input select name=bln_lahir
option value=1Januarioption option value=2Februarioption
option value=3Maretoption option value=4Apriloption
option value=5Meioption option value=6Junioption
option value=7Julioption option value=8Agustusoption
option value=9Septemberoption option value=10Oktoberoption
option value=11Novemberoption option value=12Desemberoption
select input type=text name=tahunlahir maxlength=4input
td tr
tr tdTelepontd
td : input type=text name=telepon size=35 maxlength=35
td tr
tr tdUsernametd
td : input type=text name=username size=35 maxlength=35
td tr
tr tdPasswordtd
td : input type=password name=password size=35 maxlength=35
td tr
tr tdJenis Kelamintd
td : input type=text name=jeniskelamin size=35 maxlength=35
td tr
tr td align=center
td height=28colspan=2input type = submit name=submit value=Daftar input type=reset name=reset value=Reset input
td
A-35
tr table
formdivcenter div id=Headerimg src=Head.jpg width=983 height=192 div
div script type=textjavascript
-- var
MenuBar1 =
new Spry.Widget.MenuBarMenuBar1,
{imgDown:..SpryAssetsSpryMenuBarDownHover.gif, imgRight:..SpryAssetsSpryMenuBarRightHover.gif};
-- script
body html
16. Admin.php