<html>
<head>
<title>Tran Jurnal Umum</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="smart.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body bgcolor=#def>	

<?


session_start();
if (empty($_SESSION['user']))
{ 	echo "User Kosong"; header( 'Location: index.html' ); }
//echo "Selamat datang : ".$_SESSION['user'];
?>
<h3>Transaksi Jurnal Umum</h3>
<hr>
<table>
 <form action="jurnalumump.php" method="post">
<tr>
<td> Tgl</td>
<td> <input type="date" name="tgl1" value="<? echo date("Y-m-d"); ?>" style="height:35px; width:140px; font-size:14pt;"></td>
</tr>
 
 <tr>
<td> Debet</td>
<td><select name="debet" style="height:35px; font-size:12pt;">
<?
include "db.inc";
$strsql3="select * from rekening where kelompok='komunitas' and k=1 order by nama_rekening asc";
$result3 = mysqli_query($con,$strsql3);
while($row = mysqli_fetch_array($result3))
{
?>
  <option name="debet" value="<? echo $row['rekening'];?>"><? echo $row['nama_rekening'];?></option>
<?
}
  
?>
 </select>
</td>
</tr>
<tr>
<td>  Kredit</td><td><select name="kredit" style="height:35px; font-size:12pt;">
<?

$strsql3="select * from rekening where  kelompok='komunitas' and k=1 order by nama_rekening asc";
$result3 = mysqli_query($con,$strsql3);
while($row = mysqli_fetch_array($result3))
{
?>
  <option name="kredit" value="<? echo $row['rekening'];?>"><? echo $row['nama_rekening'];?></option>
<?
}
  
?>
 </select>
</td>
</tr>
<tr>
<td>
 Rp. </td><td><input type="Number" name="rp" style="height:35px; font-size:14pt;">
</td>
</tr>

<tr>
<td>
 Ket. </td><td><input type="text" size=40 name="reff" style="height:35px; font-size:14pt;">
</td>
</tr>
<tr>
<td>
Voucher </td><td><input type="text" size=40 name="voucher" style="height:35px; font-size:14pt;">
</td>
</tr> 



<tr>
<td></td><td>
 
 <input type=submit value="SIMPAN" style="height:35px; font-size:14pt;">
</td>
</tr>
 </form>
</table>
<br><br>
<a href="halamanutama.php"><input style="height:35px; font-size:14pt;"type="submit" value="<<< Batal"></a>
 </body>
</html>