Esempio n. 1
0
        if ($_GET['status'] == "berhasil") {
            $notifikasi_alert = '<div class="alert alert-success">' . $_SESSION['kalimat_status'] . '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>';
        }
        if ($_GET['status'] == "gagal") {
            $notifikasi_alert = '<div class="alert alert-danger">' . $_SESSION['kalimat_status'] . '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>';
        }
        if ($_GET['status'] == "info") {
            $notifikasi_alert = '<div class="alert alert-info">' . $_SESSION['kalimat_status'] . '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>';
        }
        if ($_GET['status'] == "warning") {
            $notifikasi_alert = '<div class="alert alert-warning">' . $_SESSION['kalimat_status'] . '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>';
        }
    }
}
//controller top header
$link_bahasa = LINK_LANJUT . "bahasa=";
$TargetPencarian = AutoLink($link_source, "page", "pencarian", "", "", "");
$link_kontak = AutoLink($link_source, "contact", "", "", "", "");
$link_menu = AutoLink($link_source, "contact", "entry", "", "", "");
$link_login = AutoLink($link_source, "login", "", "", "", "");
$link_logout = $link_source . "?doLogout=true";
$link_filter = false;
if ($level_pengguna) {
    $link_dashboard = AutoLink($link_source, "admin", "", "", "", "");
}
//(link menu pertama)
$array_nav_menu = RowMenu(1, '0', $conn, $bhs_on, $link_source);
$array_menu_kanan = RowMenu(3, '0', $conn, $bhs_on, $link_source);
$alow_type_file = array("pdf", "zip", "rar", "cdr", "jpeg", "jpg", "png", "doc", "docx", "ppt", "pptx", "xls", "xlsx", "pst", "csv", "apk", "sql");
$data_dir = $dir_tema . "site/";
$array_data_dir = RowSite($data_dir);
Esempio n. 2
0
<?php

// tittle
$text_meta_title = "Kontak | " . $text_meta_title;
///keyword tanpa host
//image
// deskripsi
//breadcrumb setting
$breadcrumbs[] = array("text" => "Kontak", "href" => AutoLink($link_source, "", "", "", "", ""));
$sql = "SELECT * FROM banner_detail WHERE id_banner='5'";
$ads_banner_side = RowData($sql, $conn);
$id_menu = 2;
$array_contak_info = RowMenu($id_menu, '0', $conn, $bhs_on, $link_source);
$sql = "SELECT * FROM main_menu WHERE id='{$id_menu}'";
$arraymenu_kontak = TampilData($sql, $conn);
$namamenu_kontak = $arraymenu_kontak['nama'];
$acakkode = acakangkahuruf(5);
if (isset($_POST['kontak'])) {
    if (FormSet($_POST['kode']) == FormSet($_POST['kon-kode'])) {
        $input_nama = FormSet($_POST['nama']);
        $input_email = FormSet($_POST['email']);
        $input_subjek = FormSet($_POST['subjek']);
        $input_pesan = FormSet($_POST['pesan']);
        $nama_pengguna = $input_nama;
        $sql = "INSERT INTO kontak (tanggal, nama, email, subjek, pesan) VALUES ('{$tanggal}', '{$input_nama}','{$input_email}','{$input_subjek}', '{$input_pesan}')";
        if ($conn->query($sql) === TRUE) {
            $log_txt = "{$input_nama} mengisi form kontak\n";
            LogSys($log_txt, "normal");
            $email_to = $web_email;
            $email_subject = $input_subjek;
            $email_pesan = $input_pesan;
Esempio n. 3
0
                }
            }
        }
    }
}
$sql = "SELECT seo, judul_" . $bhs_on . " AS nama, id FROM post ORDER BY isi_" . $bhs_on . " ASC";
$array_postingan_form = RowData($sql, $conn);
//////////////
if ($idpost == "" || $idpost == $querystring) {
    $detailmenu = false;
    $sql = "SELECT * FROM main_menu ORDER BY nama ASC";
    $array_main_menu = RowData($sql, $conn);
    $nama_menu = false;
} else {
    $detailmenu = true;
    $array_menu_form = RowMenu($idpost, 0, $conn, $bhs_on, $link_source);
    $sql = "SELECT * FROM menu WHERE id_menu='{$idpost}' AND parent='0' ORDER BY urutan ASC";
    $array_semuamenu = RowData($sql, $conn);
    if ($array_semuamenu) {
        foreach ($array_semuamenu as $semuamenu) {
            if ($semuamenu) {
                $menuparent[] = array("id" => $semuamenu['id'], "text" => TextMenu($semuamenu['route'], $semuamenu['menu'], $semuamenu['idpost'], $conn, $bhs_on));
                $sql = "SELECT * FROM menu WHERE id_menu='{$idpost}' AND parent='" . $semuamenu['id'] . "' ORDER BY urutan ASC";
                $array_semuamenu_2 = RowData($sql, $conn);
                if ($array_semuamenu_2) {
                    foreach ($array_semuamenu_2 as $semuamenu_2) {
                        if ($semuamenu_2) {
                            $menuparent[] = array("id" => $semuamenu_2['id'], "text" => TextMenu($semuamenu['route'], $semuamenu['menu'], $semuamenu['idpost'], $conn, $bhs_on) . " > " . TextMenu($semuamenu_2['route'], $semuamenu_2['menu'], $semuamenu_2['idpost'], $conn, $bhs_on));
                            $sql = "SELECT * FROM menu WHERE id_menu='{$idpost}' AND parent='" . $semuamenu_2['id'] . "' ORDER BY urutan ASC";
                            $array_semuamenu_3 = RowData($sql, $conn);
                            if ($array_semuamenu_3) {