Example #1
0
<?php

ikutkan("head.php");
ikutkan("menu.php");
if (isset($_POST['idiuran'])) {
    $db->exec("update t_iuran set jumlah_iuran=" . $_POST['jumlah'] . " where id_iuran=" . $_POST['idiuran'] * 1);
}
if (isset($_GET['add'])) {
    $idwarga = $_POST['idWarga'] * 1;
    $jumlah = $_POST['jumlah'] * 1;
    $kategori = $_POST['kategori'] * 1;
    $catatan = $_POST['catatan'];
    $tanggal = $_POST['tanggal'];
    $_REQUEST['bulan'] = date("m", strtotime($tanggal));
    $_REQUEST['tahun'] = date("Y", strtotime($tanggal));
    if (!empty($idwarga)) {
        $saldo = $db->querySingle("select saldo_kategori from t_kategori where id_kategori=1") * 1;
        if ($db->exec("insert into t_iuran(`id_warga`,`jumlah_iuran`,`id_kategori`,`tanggal_iuran`)\n\t\t\t\t\tvalues({$idwarga},{$jumlah},1," . strtotime($tanggal) . ")")) {
            if ($db->exec("insert into t_keuangan(`id_warga`,`jumlah_uang`,`tipe_transaksi`,\n\t\t\t\t\t\t`keterangan`,`id_kategori`,`tanggal_transaksi`)\n\t\t\t\t\t\tvalues({$idwarga},{$jumlah},'MASUK','{$catatan}',1," . time() . ")")) {
                //tambahkan ke Saldo
                $db->exec("update t_kategori SET saldo_kategori=(saldo_kategori+{$jumlah}) where id_kategori=1");
                ?>
<div class="alert alert-success" role="alert"><b>SUKSES!</b> Transaksi berhasil ditambahkan.<?php 
                echo $_REQUEST['cari'];
                ?>
 <?php 
                echo number_format($jumlah);
                ?>
 </div><?php 
            } else {
                ?>
Example #2
0
    } else {
        if (file_exists("phar://waruga.phar/{$apa}")) {
            readfile("phar://waruga.phar/{$apa}");
        } else {
            echo "not exists";
        }
    }
    die;
} else {
    //cek apakah diluar
    if (file_exists("include/{$apa}.php")) {
        include "include/{$apa}.php";
        //cek apakah di phar
    } else {
        if (file_exists("phar://waruga.phar/include/{$apa}.php")) {
            include "phar://waruga.phar/include/{$apa}.php";
        } else {
            ikutkan("include/home.php");
        }
    }
}
ikutkan("footer.php");
function ikutkan($file)
{
    global $apa, $_GET, $_POST, $config, $db, $KELUARGA, $bulanArray;
    if (file_exists($file)) {
        include $file;
    } else {
        include 'phar://waruga.phar/' . $file;
    }
}
Example #3
0
" placeholder="Masih menempati<?php 
    } else {
        echo date("Y-m-d", $row['tgl_keluar']);
    }
    ?>
">
                <span class="help-block">Isikan saat KK mulai meninggalkan Rumah, data akan di arsipkan</span>
                </div>
                
                <?php 
    if ($config->Gunakan_Label == 'true') {
        ?>
                <style>
				<?php 
        ikutkan("css/bootstrap-tokenfield.min.css");
        ikutkan("css/tokenfield-typeahead.min.css");
        ?>
				</style>

                <label>Label / Tag / Tanda:</label><br>
                <input class="form-control input-sm" id="label" type="text" style="width:100%" name="label" value="<?php 
        echo $row['label_warga'];
        ?>
">
				<script src="?file&apa=js/bootstrap-tokenfield.min.js"></script>                
				<?php 
        $tags = getTags();
        $warna = array('warning', 'primary', 'success', 'info', 'danger');
        $tgs = "";
        for ($n = 0; $n < count($tags); $n++) {
            if (!empty($tags[$n])) {
Example #4
0
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title><?php 
echo $config->Judul_Aplikasi;
?>
</title>
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="./?file&apa=images/waruga-icon-2x.png">
<link rel="manifest" href="manifest.json">
<style>
<?php 
ikutkan("css/bootstrap.min.css");
ikutkan("css/jquery.datetimepicker.css");
?>
.hoverTable tr:hover {
  	background-color: #CC6666;
}
.hoverTable tr{
	cursor:crosshair;
}
a:link {
	text-decoration: none;
	color: #000;
}
a:visited {
	text-decoration: none;
	color: #000;
}