321
2.71 Gerak Hapus
Halaman Gerak Hapus akan muncul ketika admin menekan button “Hapus” pada data yang akan dihapus. Pada halaman ini sistem akan
menampilkan pesan “Isyarat Gerak berhasil dihapus”.
Gambar Halaman Gerak Hapus
Berikut ini potongan listing program bagian proses hapus data Isyarat Gerakan.
Query tampilGerakan
: public void tampilGerakan
throws SQLException { if conn == null {
conn = getConnection; }
stmt = OraclePreparedStatement conn.prepareStatement select from video where jenis_vi in Gerakan;
rset = OracleResultSet stmt.executeQuery; }
String id = request.getParameterid_vi; try {
album. selectTable
; album.
hapusGerak id;
int rowCount = 0; while album.fetch {
rowCount++; }
String dbConnErrMsg = null; }
catch SQLException sqle { dbConnErrMsg = sqle.getMessage;
} finally { album.release;
} div
meta http-equiv=refresh content=2;url=GerakTampil.jsp center p
font size=3 color=000000
322
2.72 Video Detail
Halaman Gerak Detail adalah halaman untuk menampilkan detail keterangan bunyi dari data di kolom video yang kita pilih atau kita akan
tampilkan.
Gambar Halaman Video Detail
Berikut ini potongan listing program bagian proses Gerakan Detail
bIsyarat Gerakan berhasil dihapusbbr img src=imageshap.png width=100 height=100
fontp center
Query selectTabel
: public void selectTable
throws SQLException { if conn == null {
conn = getConnection; }
stmt = OraclePreparedStatement conn.prepareStatement select from video order by jenis_vi;
rset = OracleResultSet stmt.executeQuery; }
Query
hapusGerak :
public void hapusGerakString selectId throws SQLException {
if conn == null { conn = getConnection;
} stmt = OraclePreparedStatement conn.prepareStatement
delete from video where id_vi = ?; stmt.setString1, selectId;
rset = OracleResultSet stmt.executeQuery; }
String id = request.getParameterid; if id == null {
pMalformed URL, no id parameterp return;
} try {
album.selectRowByIdid;
323
2.73 Video Perbesar
Halaman Video Perbesar adalah halaman yang berfungsi untuk memproses suara tampil dalam ukuran lebih besar.
Gambar Halaman Video Perbesar
Berikut ini potongan listing program halaman bunyi perbesar :
if album.fetch { pEntry not found: = idp
return; }
font style=arial color=black table summary=Lihat detail audio
centerfont color=blackh1Detail Videoh1fontcenter brtable align=center width=60
tr td scope=col font color=blackh5bNamabh5fonttd
td scope=col font color=blackh5b:bh5fonttd td scope=col font color=blackh5
= VideoQuery.escapeHtmlStringalbum.getNama_vih5fonttdtr
trtd scope=col font color=blackh5bDiskripsibh5fonttd td scope=col font color=blackh5b:bh5fonttd
td scope=col font color=blackh5 = VideoQuery.escapeHtmlStringalbum.getDes_vih5fonttdtr
tr bgcolor=ffffff td scope=col valign=toptd
td scope=col valign=toptd td scope=col
video width==album.getVi.getWidth height==album.getVi.getHeight autoplay controls
source src=VideoPerbesar.jsp?id==album.getId_vi
-- type==album.getVideo.getMimeType -- Your browser does not support the video tag.
videotdtrtablefont
324
2.74 Gerak Edit Form