if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["provinsi"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('sett_edit'); $dbu->set_status("konfig_bahasa", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status konfig bahasa berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("sett_conbhs"); $formix->init(); $page = $dbu->get_record("provinsi", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["destinasi_bahasa"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data destinasi_bahasa berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_bahasa", "id", $p_id, $status, "status"); $_SESSION['msg'] = "status destinasi_bahasa berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kota"); $formix->init(); $page = $dbu->get_record("destinasi_bahasa", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["destinasi_kategori"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_kategori", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status destinasi_kategori berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kategori"); $formix->init(); $page = $dbu->get_record("destinasi_kategori", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["berita_kategori"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("berita_kategori", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status berita_kategori berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_kategori"); $formix->init(); $page = $dbu->get_record("berita_kategori", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["berita"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("berita", "id", $p_id, $status, "status"); $akt = $status; if ($akt == "aktif") { $akt = "nonaktif"; } else { $akt = "aktif"; } $sql = "UPDATE " . $app[table][berita] . " SET id_user = '******' WHERE id ='" . $p_id . "'"; $dbu->qry($sql); $_SESSION['msg'] = "status destinasi berhasil di " . $akt . "kan ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : set_hot *******************************************************************************/
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["transport"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data transport berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("transport", "id", $sub, $status, "status"); $_SESSION['msg'] = "status rute berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["negara"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("negara", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status negara berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_edit'); $admlib->set_aktip("geocms_negara"); $formix->init(); $page = $dbu->get_record("negara", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
//print_r($_REQUEST);exit; if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']['pengguna'] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data pengguna berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $dbu->set_status("pengguna", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status user berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->set_aktip("usercms_mana"); $formix->init(); $page = $dbu->get_record("pengguna", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit;
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["destinasi_keg"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data kegiatan destinasi berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_keg", "id", $sub, $status, "status"); $_SESSION['msg'] = "status kegiatan berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["kota"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data kota berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("kota", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status kota berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("geocms_kota"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["komunitas_destinasi"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data destinasi berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('community'); $dbu->set_status("komunitas_destinasi", "id", $sub, $status, "status"); $_SESSION['msg'] = "status biaya berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["provinsi"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('geol_edit'); $dbu->set_status("provinsi", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status provinsi berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('geol_view'); $admlib->set_aktip("geocms_provinsi"); $formix->init(); $page = $dbu->get_record("provinsi", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["komunitas"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data komunitas berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('community_edit'); $dbu->set_status("komunitas", "id", $p_id, $status, "status"); $_SESSION['msg'] = "status komunitas \"" . $dbu->lookup("nama", "komunitas", "id='" . $p_id . "'") . "\" berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('community_view'); $admlib->set_aktip("communitycms_master"); $formix->init(); $page = $dbu->get_record("komunitas", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']["destinasi_biaya"] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data kota berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $admlib->validate('tour_edit'); $dbu->set_status("destinasi_biaya", "id", $sub, $status, "status"); $_SESSION['msg'] = "status biaya berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->validate('tour_view'); $admlib->set_aktip("tourcms_destinasi"); $formix->init(); $page = $dbu->get_record("kota", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php";
//print_r($_REQUEST);exit; if (!empty($p_id)) { $sql = "DELETE FROM " . $app['table']['action'] . " WHERE id = '" . $p_id . "'"; //echo $sql;exit; $dbu->qry($sql); $_SESSION['msg'] = "data action berhasil dihapus ...."; $_SESSION['alt'] = "warning"; header("location: index.php?act=browse"); } exit; } /******************************************************************************* * Action : set_status *******************************************************************************/ if ($act == "set_status") { $dbu->set_status("action", "id", $p_id, $status, "status", "id"); $_SESSION['msg'] = "status user berhasil di update ...."; $_SESSION['alt'] = "info"; header("location: " . $urlx->get_referer()); } /******************************************************************************* * Action : view *******************************************************************************/ if ($act == "view") { $admlib->set_aktip("sett_action"); $formix->init(); $page = $dbu->get_record("action", "id", $p_id); $form = $page; $formix->populate($form); include "tmp_view.php"; exit;