//echo $sql;exit; $dbu->query($sql, $rsbrowse, $nr_browse); include "tmp_browse.php"; exit; } /******************************************************************************* * Action : del *******************************************************************************/ if ($act == "delete") { $admlib->validate('tour_del'); if (!empty($_REQUEST[item])) { $sql = "DELETE FROM " . $app['table']["destinasi_bahasa"] . " WHERE `id` IN (" . $admlib->item_delete($_REQUEST[item]) . ")"; $dbu->qry($sql); $_SESSION['msg'] = "data destinasi_bahasa yang terpilih berhasil dihapus ...."; $_SESSION['alt'] = "danger"; header("location: " . $urlx->get_referer()); } exit; } /******************************************************************************* * Action : single delete *******************************************************************************/ if ($act == "s_delete") { //print_r($_REQUEST);exit; 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");
$admlib->validate('sett_edit,sett_add'); $formix->init(); if ($step == "1") { $admlib->set_aktip("sett_configbhs"); $config = $dbu->get_record("konfig", "id", 1); $form = $config; $formix->populate($form); include "tmp_config.php"; exit; } if ($step == "2") { $formix->serialize_form(); $formix->validate('', 'p_judul,p_judul_cms,p_domain'); if ($formix->is_error()) { $msgx->build_msg(); header("location: index.php?act=update&error=1&referer=" . $urlx->get_referer()); exit; } $data = $dbu->get_record("konfig", "id", 1); $id = rand(1, 999) . date("dmYHis"); $imgx = new SimpleImage(); if ($p_logo_cms_size > 0) { @unlink($app['data_path'] . "/konfig/logo/{$data['logo_cms']}"); $data['logo_cms'] = ""; try { $src_img = $_FILES["p_logo_cms"]['tmp_name']; ## THUMB ############### $imgx->load($src_img); $imgx->save($app['data_path'] . "/konfig/logo/logo_cms_" . $id . ".png"); $data['logo_cms'] = "logo_cms_" . $id . ".png"; } catch (Exception $e) {
//echo $sql;exit; $dbu->query($sql, $rsbrowse, $nr_browse); include "tmp_browse.php"; exit; } /******************************************************************************* * Action : del *******************************************************************************/ if ($act == "delete") { $admlib->validate('community_del'); if (!empty($_REQUEST[item])) { $sql = "DELETE FROM " . $app['table'][komunitas_destinasi] . " WHERE `id` IN (" . $admlib->item_delete($_REQUEST[item]) . ")"; $dbu->qry($sql); $_SESSION['msg'] = "data destinasi komunitas " . $dbu->lookup("nama", $app[table][komunitas], "id ='" . $p_id . "'") . " yang terpilih berhasil dihapus ...."; $_SESSION['alt'] = "danger"; header("location: " . $urlx->get_referer()); } exit; } /******************************************************************************* * Action : single delete *******************************************************************************/ if ($act == "s_delete") { //print_r($_REQUEST);exit; 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");
//echo $sql;exit; $dbu->query($sql, $rsbrowse, $nr_browse); include "tmp_browse.php"; exit; } /******************************************************************************* * Action : del *******************************************************************************/ if ($act == "delete") { $admlib->validate('tour_del'); if (!empty($_REQUEST[item])) { $sql = "DELETE FROM " . $app['table']["transport"] . " WHERE `id` IN (" . $admlib->item_delete($_REQUEST[item]) . ")"; $dbu->qry($sql); $_SESSION['msg'] = "data transport yang terpilih berhasil dihapus ...."; $_SESSION['alt'] = "danger"; header("location: " . $urlx->get_referer()); } exit; } /******************************************************************************* * Action : single delete *******************************************************************************/ if ($act == "s_delete") { //print_r($_REQUEST);exit; 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");
?> <option value="<?php echo $kategori[id]; ?> " ><?php echo $kategori[kategori]; ?> </option> <?php } ?> </select> </label> <input type="hidden" name="act"> <input type="hidden" name="referer" value="<?php echo $urlx->get_referer(); ?> "> <input type="button" class="begin_filter" value="Begin Filter" id="b_filter" onClick="valid(this,'desfilter')" /> </form> </div> </div> </div> </div> <!-- .search_destination --> <?php echo $outnya; ?> <!-- .location_destination --> </div>