Beispiel #1
0
</style>
<?php 
include "../../inc/inc.koneksi.php";
include "../../inc/fungsi_tanggal.php";
include "../../inc/fungsi_koperasi.php";
$kode1 = $_GET['kode1'];
$kode2 = $_GET['kode2'];
$pilih = $_GET['pilih'];
$judul_H = "Laporan Anggota <br>";
if ($pilih == 'pilih') {
    $where = " WHERE noanggota BETWEEN '{$kode1}' AND '{$kode2}'";
    $judul_H .= "Berdasarkan Nomor {$kode1} s/d {$kode2} <br>";
} else {
    $where = "";
}
$profil = "<span class='koperasi'>" . namakoperasi(1) . "</span><br>";
$profil .= alamatkoperasi(1);
$query = "select * from nasabah\n\t\t{$where}\n\t\torder by noanggota";
//echo $query;
$data = mysql_query($query);
function myheader($profil, $judul_H)
{
    echo "<div class='profil'>" . $profil . "\n\t\t</div>\n\t\t<br>\n\t\t<div class='header'>\n\t\t  <h2>" . $judul_H . "</h2>\n\t\t  </div>\n\t\t<table class='grid' >\n\t\t<tr>\n\t\t\t<th width='5%'>No</th>\n\t\t\t<th >Nomor Anggota</th>\n\t\t\t<th >No Identitas</th>\n\t\t\t<th >Nama Anggota</th>\n\t\t\t<th >L/P</th>\n\t\t\t<th >Tempat, Tanggal Lahir</th>\n\t\t\t<th >Alamat</th>\n\t\t\t<th >HP</th>\n\t\t\t<th >Simpanan</th>\n\t\t\t<th >Pinjaman</th>\n\t\t</tr>";
}
//echo $query;
function myfooter()
{
    echo "</table>";
}
$no = 1;
$page = 1;
Beispiel #2
0
<?php

include "inc/inc.koneksi.php";
include "inc/fungsi_koperasi.php";
$mod = $_GET['module'];
if ($mod == 'home') {
    $nama = namakoperasi(1);
    echo "<h2>Selamat Datang</h2>";
    echo "Hai, <b>{$_SESSION['namauser']} </b> [ {$_SESSION['level']} ] Selamat datang  di Sistem Informasi Koperasi <b>{$nama}</b>";
    echo "<br><br>";
    if ($_SESSION['level'] == 'super admin') {
        echo "<table class='list'><thead>\n\t\t<td class='center' colspan=5><center>Control Panel</center></td></thead>\n\t\t<tr>\n\t\t  <td width=120 align=center><a href=media.php?module=jenis><img src=images/jenis.png border=none><br /><b>Jenis Simpanan</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=anggota><img src=images/anggota.png border=none><br /><b>Anggota</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=users><img src=images/users.png border=none><br /><b>Pengguna / Users</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=profil><img src=images/profil.png border=none><br /><b>Profil Koperasi</b></a></td>\n    </tr>\n\t\t<tr>\n\t\t  <td width=120 align=center><a href=media.php?module=simpanan><img src=images/simpanan.png border=none><br /><b>Simpanan</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=penarikan><img src=images/penarikan.png border=none><br /><b>Tarik Tunai</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=pinjaman><img src=images/pinjaman.png border=none><br /><b>Pinjaman</b></a></td>\n\t\t  <td width=120 align=center><a href=media.php?module=bayar><img src=images/kredit.png border=none><br /><b>Bayar Pinjaman</b></a></td>\n    </tr>\n    </table>";
    }
} elseif ($mod == 'edit_profil') {
    include "modul/edit_profil/profil.php";
} elseif ($mod == 'profil') {
    include "modul/profil/profil.php";
} elseif ($mod == 'jenis') {
    include "modul/jenis/jenis.php";
} elseif ($mod == 'anggota') {
    include "modul/anggota/anggota.php";
} elseif ($mod == 'users') {
    include "modul/pengguna/pengguna.php";
} elseif ($mod == 'simpanan') {
    include "modul/simpanan/simpanan.php";
} elseif ($mod == 'penarikan') {
    include "modul/penarikan/penarikan.php";
} elseif ($mod == 'pinjaman') {
    include "modul/pinjaman/pinjaman.php";
} elseif ($mod == 'bayar') {
    include "modul/bayar/bayar.php";