Halaman Hapus Hotel Aplikasi informasi wisata dan hotel di Kabupaten Tabanan dengan Google Map Api

d. Halaman Hapus Hotel

Tampilan berikut ini adalah tampilan hapus data hotel yang dilihat oleh admin. Pada halaman ini admin dapat melakukan proses hapus data wisata. Gambar 4. 4 Halaman Hapus Data Hotel. listing program untuk menampilkan data dan menghapus data pada tabel data hotel 1. div class=col-md-12 2. h1Tabel Data Hotelh1 3. div 4. div 5. div class=row 6. div class=col-md-12 7. table class=table border=1 8. thead 9. tr 10. thId Wisatath 11. thNama Tempat wisatath 12. thKategori Hotelth 13. thAlamatth 14. thHargath 15. thTlp Pengelolath 16. thKeteranganth 17. thLongtitudeth 18. thLatitudeth 19. tr 20. ?php 21. include ..KoneksiConeksi.php; 22. query = mysql_queryselect from Hotel; 23. while row = mysql_fetch_arrayquery { 24. echo tr; 25. echo thspan . row[Id_Hotel] . th; 26. echo thspan . row[Nama_Hotel] . th; 27. echo thspan . row[Kategori] . th; 28. echo thspan . row[Alamat] . th; 29. echo thspan . row[Harga] . th; 30. echo thspan . row[No_tlp] . th; 31. echo thspan . row[Keterangan] . th; 32. echo thspan . row[Longtitude] . th; 33. echo thspan . row[Latitude] . th; 34. echo tddiv align=centera href=HapusHotel.php?Idhotel= . row[Id_Hotel] . class=delbutton title=Click To Deletedeleteadivtd; 35. echo tr; 36. } 37. ? 38. thead 39. table 40. div 1. if _GET[Idhotel] { 2. idwisata = _GET[Idhotel]; 3. sql = Delete from Hotel 4. Where Id_hotel=idwisata; 5. hasil = mysql_querysql; 6. ? 7. pcoba2p 8. pcoba3p 9. ?php 10. if hasil { 11. ? 12. pcoba3p 13. ?php 14. echo script language=javascriptalertData Berhsil Dihapusscript; 15. echo script language=javascriptwindow.location = Lihat_datahotel.php script; 16. } else { 17. echo script language=javascriptalertData Gagal Dihapusscript; 18. echo script language=javascriptwindow.location = Hapus_datahotel.php script; 19. } 20. }

4.2.2.2 Pengelola

a. Halaman Login Pengelola