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
div class=cleardiv div id=footer
div class=left_foterimg src=imagesfooter_logo.gif alt= title= div div class=center_footer
a href=Shipping Termsa | a href=Terms amp; Conditionsa | a href=Privacy Policya | a href=Contacta
br By a href= style=color:9e1c50;Illong Storea div
div div
div body
html
15. Get option value
?php include_once controlleroptionProdukCtrl.php;
idOption = isset_GET[id_option] ? _GET[id_option] : ; if idOption = {
controller = new optionProdukCtrl; optionsByID = controller-getOptionsByIDidOption;
image_url = optionsByID[0]-getImgLink; hargaAdded = optionsByID[0]-getHargaAdded;
A-19
warna = optionsByID[0]-getWarna; produkId = optionsByID[0]-getProdukId;
arr = arrayidOption = idOption, image_url = uploads.image_url, harga_add = hargaAdded, warna = warna, produkid = produkId;
echo str_replace\,,json_encodearr; } else {
arr = arrayerror = Data Not Found; echo json_encodearr;
} ?
16. History Order
?php session_start;
count = 1; user = isset_SESSION[memberid] ? _SESSION[memberid] : ;
nama = isset_SESSION[nama] ? _SESSION[nama] : ; if user == {
headerLocation:loginpage.php; }
include_once controllerCategoryCtrl.php; include_once header.php;
include_once controllercheckoutCtrl.php; if user = {
contorllerCheckout = new checkoutCtrl; controllerdetils = new detailsCtrl;
userke = controllerUser-findUserByIduser; allProduk = contorllerCheckout-getAllCheckoutByUseruser;
} ?
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 table class=MYTABLE
CAPTION CLASS=MYTABLE?php echo nama; ?, History OrderCAPTION tr CLASS=MYTABLE
th CLASS=MYTABLENo.th th CLASS=MYTABLENo. Orderth
th CLASS=MYTABLEAlamatth th CLASS=MYTABLEtanggalth
th CLASS=MYTABLETotalth th CLASS=MYTABLEShippingth
tr
A-20
?php Totalbelanja = 0;
if countallProduk 0 { foreach allProduk as value {
echo tr CLASS=MYTABLE; echo td CLASS=MYTABLE . count . td . td CLASS=MYTABLE . value-
getIdCheckout . td . td CLASS=MYTABLE . value-getALamaTShipping . td . td CLASS=MYTABLE . dated-M-Y, strtotimevalue-getTglCheckout . td . td
CLASS=MYTABLERp. . number_formatvalue-getTotal, 2, ,, . . td . td CLASS=MYTABLE . value-getTypeShipping . td;
echo tr; count++;
} } else {
echo tr CLASS=MYTABLE; echo td CLASS=MYTABLE colspan=6 Anda Belum Mempunyai Barang yang sudah di beli.
Silahkan Lakukan Transaksi Terlebih dahulu Terlebih dahulutd; echo tr;
} ?
table div
div div
?php include_once footer.php;
?
17. Login Page