Tampilan Data Kategori Tampilan Kode Program

113 Listing Program Keteranngan ?php ob_start; session_start; ifisset_SESSION[onlogin] _SESSION[level] == 1 { ? DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 TransitionalEN http:www.w3.orgTRxhtml1DTDxhtml1- transitional.dtd html xmlns=http:www.w3.org1999xhtml link href=style.css rel=stylesheet type=textcss ?php include lib_func.php; ? ?php include koneksi_db.php;? script type=textjavascript src=hapuskategori.jsscript head meta http-equiv=Content-Type content=texthtml; charset=utf-8 titleData Kategori | PT. AJPtitle head body ?php include_onceheader.php? div id=page hr ?php include navigation.php? div class=navigation align=center ?php include menumaster.php? div div id=contentpage div id=wraper div id=judulhalamanPengolahan Data Kategoridiv hr div class=tombolsubmit width=500pxa href=tambah_kategori.php+ Tambaha ?php link=koneksi_db; sql=select from kategori; ifisset_POST[keyword]{ Tampilan Data Kategori 114 keyword= _POST[keyword];} ifisset_POST[tblcari]{ if _POST[tblcari]==cari{ sql=sql. where nama_kategori like keyword; }} sql.= order by nama_kategori; res = mysql_querysql,link; ifres0{ ? form method=post action=?php echo _SERVER[PHP_SELF];? input type=text class=isian name=keyword input type=submit value=cari class=tombolkirim name=tblcari form div ?php ifisset_GET[proses]{ if _GET[proses]==sukses{ ? div class=suksesData Berhasil Dihapusdiv ?php } else if_GET[proses]==berhasil {? div class=suksesData Berhasil Ditambahdiv ?php } else if_GET[proses]==ubahberhasil {? div class=suksesData Berhasil Diubahdiv ?php }else if _GET[proses]==error isset_SESSION[error] { ? div class=warningProses Gagal : ?php echo _SESSION[error]?div ?php unset _SESSION[error]; } } ? table border=0 id=tabelview align=left 115 tr class=judultable tdNotd tdNama Kategoritd tdDitampilkantd tdAksitd tr ?php no=1; whiledata=mysql_fetch_arrayres{ idkategori= data[id_kategori]; ? tr class=isitabel td ?php echo no ?td td ?php echo data[nama_kategori];?td td ?php ifdata[ditampilkan]==1{echo Y;} else ifdata[ditampilkan]==0{ echo T;} ;?td td a href=ubah_kategori.php?id=?php echo idkategori; ?edita | a onclick=return HapusKategori?php echo data[id_kategori]; ?,?php echo data[nama_kategori]; ? style=cursor:pointer;hapusatd tr ?php no++;} ? table ?php }else{ ? div class=warningData Barang Tidak Ditemukandiv div ?php } ? div 116 div div ?php include_oncefooter.php;? body html ?php } else {header location:index.php;} exit; ob_end_flush;?

4.9.9 Tampilan Data Profinsi

Gambar 4.24 Tampilan Data Provinsi Listing Program Keteranngan ?php ob_start; session_start; ifisset_SESSION[onlogin] _SESSION[level]==1{ ? DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 TransitionalEN http:www.w3.orgTRxhtml1DTDxhtml1- transitional.dtd html xmlns=http:www.w3.org1999xhtml link href=style.css rel=stylesheet type=textcss script type=textjavascript src=includejQuery_v1.6.4.jsscript Tampilan Data Profinsi 117 script type=textjavascript src=hapusprovinsi.jsscript ?php include lib_func.php; ? ?php include koneksi_db.php;? head meta http-equiv=Content-Type content=texthtml; charset=utf-8 titleData Provinsi | PT.AJPtitle head body ?php include_onceheader.php? div id=page hr ?php include navigation.php? div class=navigation align=center ?php include menumaster.php? div div id=contentpage div id=wraper ?php link=koneksi_db; batas =10; ifisset_GET[halaman]{ halaman=_GET[halaman];} ifemptyhalaman{ posisi=0; halaman=1; } else { posisi = halaman-1batas; } sql=select from provinsi ; ifisset_POST[keyword]{ keyword= _POST[keyword];} ifisset_POST[tblcari]{ if _POST[tblcari]==cari{ sql=sql. where nama_provinsi like keyword; sql.= order by nama_provinsi ; }}else{ sql.=LIMIT posisi,batas;} res = mysql_querysql,link; banyakrecord=mysql_num_rowsres; ifbanyakrecord0{ ?