Saturday, November 30, 2013


DATA GAJI
________________

<?php
$SW=0;
$AP=0;
$BNG=0;
$total=0;
if (isset($_POST['CARI']))
{
                $a=$_POST['JUMLAH'];
                $b=$_POST['SB'];
                $c=$_POST['JW'];
                $d=$_POST['GOLI'];
                $e=$_POST['GOLII'];
                $f=$_POST['GOLII'];
                $g=$_POST['GOLIV'];
               
                if ($d=12500000){
                $SW=$d;
                $AP=$a*$c;
                $BNG=$AP*$b;
                $total=$AP+$BNG;
                }else if($e=1500000){
                $SW=$d;
                $AP=$a*$c;
                $BNG=$AP*$b;
                $total=$AP+$BNG;
                }else if($f=1750000)
                {
                $SW=$d;
                $AP=$a*$c;
                $BNG=$AP*$b;
                $total=$AP+$BNG;
                }
                else if($g=2000000){
               
                $SW=$d;
                $AP=$a*$c;
                $BNG=$AP*$b;
                $total=$AP+$BNG;
}
                               
                               
                               

                                if (isset($_POST['reset'])){
                                                $_POST['NO_ANGG']="";
                                                $_POST['NAMA']="";
                                                $_POST['GOL']="";
                                                $_POST['JUMLAH']="";
                                                $_POST['JW']="";
                                                $_POST['SB']="";
                                                $_POST['AP']="";
                                                $_POST['BNG']="";
                                                $_POST['total']="";
                                                $_POST['TGL']="";
                                                $_POST['SW']="";
                                }
                               
}

                                ?>
                               


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <p>DATA KREDIT ANGGOTA (Endra Saputra)</p>
  <p>&nbsp;</p>
  <table width="90%" border="0">
    <tr>
      <td width="23%">NO.ANGGOTA</td>
      <td width="25%"><label for="NO_ANGG"></label>
      <input name="NO_ANGG" type="text" id="NO_ANGG" value="<?php echo $_POST['NO_ANGG'];?>" /></td>
      <td width="20%">TGL DAFTAR</td>
      <td width="32%"><label for="TGL"></label>
      <input name="TGL" type="text" id="TGL" value="<?php echo $_POST['TGL'];?>" /></td>
    </tr>
    <tr>
      <td>NAMA ANGGOTA</td>
      <td colspan="3"><label for="NAMA"></label>
      <input name="NAMA" type="text" id="NAMA" value="<?php echo $_POST['NAMA'];?>" /></td>
    </tr>
    <tr>
      <td>GOLONGAN</td>
      <td><label for="select"></label>
        <select name="select" id="select">
          <option value="I">GOL 1</option>
          <option value="II">GOL 2</option>
          <option value="III">GOL 3</option>
          <option value="IV">GOL 4</option>
      </select></td>
      <td>SUKU BUNGA</td>
      <td><label for="SB"></label>
      <input name="SB" type="text" id="SB" value="<?php echo $_POST['SB'];?>" />
      %</td>
    </tr>
    <tr>
      <td>JUMLAH PINJAMAN</td>
      <td><label for="JUMLAH"></label>
      <input name="JUMLAH" type="text" id="JUMLAH" value="<?php echo $_POST['JUMLAH'];?>" /></td>
      <td>JANGKA WAKTU</td>
      <td><label for="JW"></label>
      <input name="JW" type="text" id="JW" value="<?php echo $_POST['JW'];?>" />
      BULAN</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="CARI" id="CARI" value="CARI" />
      <input type="submit" name="RESSET" id="RESSET" value="RESSET" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>SIMPANAN WAJIB</td>
      <td colspan="2"><label for="SW"></label>
      <input name="SW" type="text" id="SW" value="<?php echo $SW;?>" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>ANGSURAN POKOK</td>
      <td colspan="2"><label for="AP"></label>
      <input name="AP" type="text" id="AP" value="<?php echo $AP;?>" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>BUNGA</td>
      <td colspan="2"><label for="BNG"></label>
      <input name="BNG" type="text" id="BNG" value="<?php echo $BNG;?>" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>TOTAL ANGGSURAN</td>
      <td colspan="2"><label for="total"></label>
      <input name="total" type="text" id="total" value="<?php echo $total;?>" /></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</form>
</body>

</html>