Index . html DOCTYPE HTML PUBLIC -W3CDTD XHTML 0 TransitionalEN Index . php ?php
LISTING PROGRAM
1. Index . html 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=iso-8859-1
titleDistro Rock n Rolltitle style type=textcss
-- body {
background-color: 333333; background-image: urlbk3.gif;
margin-left: 0px; margin-top: 0px;
margin-right: 0px; margin-bottom: 0px;
} --
style link href=style.css rel=stylesheet type=textcss
style type=textcss --
.style3 {color: FF99CC;
font-size: 12px; font-family: Arial, Helvetica, sans-serif;
} a:link {text-decoration: none;}
a:visited {text-decoration: none;} a:hover {text-decoration: none;}
a:active {text-decoration: none;} --
style script type=textJavaScript
— function MM_preloadImages { v3.0
var d=document; ifd.images{ ifd.MM_p d.MM_p=new Array; var i,j=d.MM_p.length,a=MM_preloadImages.arguments; fori=0; ia.length; i++
if a[i].indexOf=0{ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}} --
script
Universitas Sumatera Utara
head body
onload=MM_preloadImagesimagessliced2_06.gif,imagessliced2_08.gif,imagesslic ed2_09.gif
div align=center blockquote
blockquote pnbsp;p
pa href=home.phpimg src=imagesColor-Versions.gif border=0 width=383 height=288br
hr color=FF66CC size=1 span class=headerENTERspanabr
p pnbsp;p
pnbsp;p pnbsp; p
pnbsp;p pnbsp; p
pnbsp;p blockquote
blockquote div
body html
2. Index . php ?php
require_once libraryconfig.php; require_once librarycategory-functions.php;
require_once libraryproduct-functions.php; require_once librarycart-functions.php;
_SESSION[shop_return_url] = _SERVER[REQUEST_URI]; catId = isset_GET[c] _GET[c] = 1 ? _GET[c] : 0;
pdId = isset_GET[p] _GET[p] = ? _GET[p] : 0; require_once includeheader.php;
? table width=780 border=1 align=center cellpadding=0 cellspacing=0
tr td colspan=3
?php require_once includetop.php; ? td
tr tr valign=top
Universitas Sumatera Utara
td width=150 height=400 id=leftnav ?php
require_once includeleftNav.php; ?
td td
?php if pdId {require_once includeproductDetail.php;}
else if catId {require_once includeproductList.php;} else {require_once includecategoryList.php;}
? td
td width=130 align=center?php require_once includeminiCart.php; ?td tr
table ?php
require_once includefooter.php; ?
3. Home . php ?php