Shoping Cart Perancangan Website Untuk Berbelanja Di Butik.

A-30 td tda href= id=date-pickimg src=adminimagesformsicon_calendar.jpg alt= atd tr table td tdtd tr tr th valign=topEmail:th tdinput type=text class=inp-form id=email name=email value=?php echo userku- getEmail; ?td tdtd tr tr thnbsp;th td valign=top input type=hidden value=?php echo userku-getIdUser; ? name=idprod id=idprod input type=submit value=Update name=submit class=form-submit input type=reset value=Reset class=form-reset td tdtd tr table form div id=results div -- end id-form -- div div div ?php include footer.php; ?

21. Shoping Cart

?php count = 1; session_start; 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 controllershoppingcart.php; include_once controllerprodukCtrl.php; include_once controlleroptionProdukCtrl.php; if user = { controller = new shoppingCtrl; controllerProd = new produkCtrl; allProduk = controller-getShoppingcartByIduser; } echo _SESSION[user][name]. ksksk; ? script type=textjavascript function updateshopidshop{ var idku = jumlah-+idshop; var jumk = document.getElementByIdidku.value; window.location = updateSC.php?shopid=+idshop+jum=+jumk; } script div id=center_content div class=titleimg src=imagescontact_title.gif alt= title= div div class=product_box_big div table class=MYTABLE A-31 CAPTION CLASS=MYTABLE?php echo nama; ?, Shopping CartCAPTION tr CLASS=MYTABLE th CLASS=MYTABLENo.th th CLASS=MYTABLEProdukth th CLASS=MYTABLEJumlahth th CLASS=MYTABLEHargath th CLASS=MYTABLESubtotalth th CLASS=MYTABLEToolsth tr ?php Totalbelanja = 0; ctrlOpt = new optionProdukCtrl; if countallProduk 0 { foreach allProduk as value { echo tr CLASS=MYTABLE; addharga = 0; idopttemp = value-getIdOption; if issetidopttemp idopttemp 0 { optionsByID = ctrlOpt-getOptionsByIDidopttemp; addharga = optionsByID[0]-getHargaAdded; } prod = controllerProd-findProdukByIdvalue-getIdProdUk; Totalbelanja += prod-getHaRGa value-getJUmLaH + addharga; echo td CLASS=MYTABLE . count . td . td CLASS=MYTABLE . prod- getNamAProdUk . td . td CLASS=MYTABLEinput id=jumlah- . value-getIdShoppingCart . type=text value= . value-getJUmLaH . maxlength=3 size=3td . td CLASS=MYTABLERp. . number_formatprod-getHaRGa + addharga, 2, ,, . . td . td CLASS=MYTABLERp. . number_formatprod-getHaRGa value-getJUmLaH + addharga, 2, ,, . . td . td CLASS=MYTABLEinput type=button value=Update onclick=updateshop . value-getIdShoppingCart . a href=deleteShoppingCart.php?shopid= . value-getIdShoppingCart . input type=button value=Deleteatd; echo tr; echo tr tdnbsp;tdtdnbsp;tdtdnbsp;tdtd CLASS=MYTABLE align=rightTotal :tdtd CLASS=MYTABLERp. . number_formatTotalbelanja, 2, , , . . tdtdnbsp;tdtr; count++; } } else { echo tr CLASS=MYTABLE; echo td CLASS=MYTABLE colspan=6 Anda Belum Mempunyai Barang yang akan di beli. Silahkan Belanja Terlebih dahulutd; echo tr; } ? tr thLanjut Belanjath tda href=index.phpinput type=button value=Continueatd tr ?php if countallProduk 0 { echo tr thCheckoutth tda href=clientCheckout.phpinput type=button value=Nextatd tr; } ? table div div div ?php include_once footer.php; ?

22. Unit png fix.js