home.php isi.php reg.php

14. home.php

div ?php a[1]=kuning; a[2]=biru; a[3]=hijau; a[4]=kuning; a[5]=biru; a[6]=hijau; no=0; qry=mysql_queryselect from tblpaketjenis order by RAND limit 6; while data=mysql_fetch_arrayqry{ no++; ? div class=produkhome ?php echo a[no]; ? h2 align=centera href=index.php?page=detailkode=?php echo data[kodeproduk]; ? class=linkdepan?php echo data[kodeproduk]; ?ah2 table width=100 border=0 cellspacing=0 cellpadding=0 class=table tbody tr td align=center?php echo data[produk]; ?td tr tr Universitas Sumatera Utara td align=center?php echo data[keterangan]; ?td tr tr td align=center?php echo number_formatdata[harga],0; ?td tr tr tda href=index.php?page=pilihkode=?php echo data[kodeproduk]; ? class=btn btn-danger btn- blockORDERatd tr tbody table div ?php } ? div

15. isi.php

?php page=_GET[page]; if page=={ include home.php; } elseif page==produk{ Universitas Sumatera Utara include produk.php; } elseif page==reg{ include reg.php; } elseif page==regsukses{ include regsukses.php; } elseif page==testimonial{ include testimonial.php; } elseif page==testimonialtambah{ include testimonailtambah.php; } elseif page==login{ include login.php; } elseif page==order{ include order.php; } elseif page==pilih{ include pilih.php; } elseif page==riwayatorder{ include riwayatorder.php; } elseif page==eo{ Universitas Sumatera Utara include eo.php; } elseif page==galeri{ include galeri.php; } elseif page==contactus{ include contactus.php; } elseif page==detail{ include detail.php; } elseif page==carabayar{ include carabayar.php; } ?

16. reg.php

div class=col-md-12 div class=panel panel-info div class=panel-headingRegistrasidiv div class=panel-body table width=100 border=0 cellspacing=0 cellpadding=0 class=table tbody tr td width=13Emailtd Universitas Sumatera Utara td width=87input type=text name=txtemail id=txtemail class=form-controltd tr tr tdNamatd tdinput type=text name=txtnama id=txtnama class=form-controltd tr tr tdJ. Kelamintd tdselect name=txtjk id=txtjk class=form-control option value=PriaPriaoption option value=WanitaWanitaoption selecttd tr tr tdAlamattd tdinput type=text name=txtalamat id=txtalamat class=form-controltd tr tr tdPasswordtd tdinput type=password name=txtpwd id=txtpwd class=form-controltd tr tr tdnbsp;td Universitas Sumatera Utara tdinput type=button name=cmdreg id=cmdreg value=Registrasi class=btn btn-primary input type=button name=cmdbatal id=cmdbatal value=Batal class=btn btn- defaulttd tr tbody table div div div script document.readyfunctione { cmdreg.clickfunctione { var email=txtemail.val; if email=={ .alert{content:Email pengguna tidak boleh kosong}; return false; } var nama=txtnama.val; if nama=={ .alert{content:Nama tidak boleh kosong}; return false; } var alamat=txtalamat.val; Universitas Sumatera Utara if alamat=={ .alert{content:Alamat tidak boleh kosong}; return false; } var pwd=txtpwd.val; if pwd=={ .alert{content:Password tidak boleh kosong}; return false; } .postregsimpan.php, { email:txtemail.val, nama:txtnama.val, jk:txtjk.val, alamat:txtalamat.val, pwd:txtpwd.val }, function data, status{ if data=={ document.location.href=index.php?page=regsukses; } else{ .alert{content:data}; } }; }; }; Universitas Sumatera Utara script

17. regsimpan.php