A-17
p class=priceUkuran : ?php echo prod-getUkURan; ?p p class=priceHarga : span id=hargaprice class=price?php echo number_formatprod-
getHaRGa, 2, ,, .; ?spanp a id=subButt href=addToShoppingcart.php?idprod=?php echo prod-getIdProdUk; ?
class=detailsimg src=imagesorder.gif alt= title= border=0a div
div div class=titleimg src=imagesrecommended_title.gif alt= title= div
a href=img src=imagessp1.gif alt= title= class=sp border=0a a href=img src=imagessp2.gif alt= title= class=sp border=0a
a href=img src=imagessp3.gif alt= title= class=sp border=0 a a href=img src=imagessp1.gif alt= title= class=sp border=0a
a href=img src=imagessp2.gif alt= title= class=sp border=0a a href=img src=imagessp3.gif alt= title= class=sp border=0 a
a href=img src=imagessp1.gif alt= title= class=sp border=0a a href=img src=imagesnext.gif alt= title= class=sp border=0a
div class=titleimg src=imagescenter_divider.gif alt= title= div div class=titleimg src=imagesgift_title.gif alt= title= div
a href=img src=imagesgift1.gif alt= title= class=gifta a href=img src=imagesgift2.gif alt= title= class=gifta
a href=img src=imagesgift3.gif alt= title= class=gifta a href=img src=imagesgift4.gif alt= title= class=gifta
div ?php
include footer.php; ?
13. Finish Checkout
?php include_once controllerCategoryCtrl.php;
include_once controlleruserCtrl.php; include_once header.php;
include_once controllershoppingcart.php; include_once controllerprodukCtrl.php;
include_once controllercheckoutCtrl.php; include_once controllercheckoutDetils.php;
count = 1; session_start;
user = isset_SESSION[memberid] ? _SESSION[memberid] : ; nama = isset_SESSION[nama] ? _SESSION[nama] : ;
alamat = isset_SESSION[alamat] ? _SESSION[alamat] : ; ship = isset_SESSION[ship] ? _SESSION[ship] : ;
today = getdate; idCheckout = intvaluser . . today[mday] . . today[minutes] . . today[seconds];
if user = { controller = new shoppingCtrl;
controllerProd = new produkCtrl; controllerUser = new userCtrl;
contorllerCheckout = new checkoutCtrl; controllerdetils = new detailsCtrl;
userke = controllerUser-findUserByIduser; allProduk = controller-getShoppingcartByIduser;
total = 0; if countallProduk 0 {
foreach allProduk as value { prod = controllerProd-findProdukByIdvalue-getIdProdUk;
total += prod-getHaRGa value-getJUmLaH; }
addCategory = contorllerCheckout-addCategoryidCheckout, alamat, user, total, ship; foreach allProduk as value {
controllerdetils-addCategoryidCheckout, value-getIdProdUk, value-getJUmLaH; controller-deleteProdukvalue-getIdShoppingCart;
} }
} else { headerLocation:loginpage.php;
} ?
A-18
script type=textjavascript function updateshopidshop{
var idku = jumlah-+idshop; var jumk = document.getElementByIdidku.value;
window.location = updateSC.php?shopid=+idshop+jum=+jumk; }
function alamatbaru{ var checkbox2 = document.getElementByIdradio2;
ifcheckbox2.checked{ document.getElementByIdalamat.disabled = false;
}else{ document.getElementByIdalamat.disabled = true;
} }
function milih{ var checkbox = document.getElementByIdradio1
var checkbox2 = document.getElementByIdradio2; ifcheckbox2.checked || checkbox.checked{
return true; }else{
window.alertAnda belum memilih alamat pengiriman; return false;
} }
script div id=center_content
div class=titleimg src=imagescontact_title.gif alt= title= div div class=product_box_big
div p
Terima Kasih ?php echo _SESSION[nama]; ?,br Barang anda akan kami segera kirim setelah anda Melakukan Pembayaran Ke Rek. 210210212210 An
Illong.br
Jika anda telah membayar melalui atm, harap anda konfirmasi ke nomor 081395464094. br
Dengan format : nama anda,nomor rekening anda, tanggal pengiriman, informasi jumlah total belanjaan anda, serta bank yang anda gunakan untuk mengirim ke pihak kami.
p div
div div
?php include_once footer.php;
?
14. Footer