<LINK href="images/index.css" rel="stylesheet" type="text/css">
<? 
$ukey1 = $_GET['ukey'];
$t1 = $_GET['t'];
$bidang1 = $_GET['bidang'];
$day = date("d");
$month = date("m");
$year = date("Y");
include("index.db.php");
mysql_connect("$server", "$username", "$password");
mysql_select_db("$database");
//if ($bidang1 == "pdm") {
$mytable = "$tahun_now";
//}
//elseif ($bidang1 == "pds") {
//$mytable = "$tahun_nowpidsus";
//}
$sql=mysql_query("select * from $mytable where UKEY ='$ukey1'");
if($row=mysql_fetch_array($sql)){

?>
<table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
  <tr>
    <td>TAHAPAN BARANG BUKTI <b><? echo $row['TERDAKWA']; ?></b> | Pasal : <b><? echo $row['PASAL']; ?></b></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><? if ($t1 == "kembali"){ ?>
		<br>
		<form name="form1" method="post" action="index.tahapan.add.php">
		  <table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td colspan="3">TAHAP PENGEMBALIAN BARANG </td>
            </tr>
            <tr>
              <td width="12%">Diproses Tanggal</td>
              <td width="1%">:</td>
              <td width="87%"> <?PHP echo $day; ?>/<?PHP echo $month; ?>/<?PHP echo $year; ?> </td>
            </tr>
            <tr>
              <td>Dikembalikan Kepada </td>
              <td>:</td>
              <td><input name="nama" type="text" id="nama" size="40"></td>
            </tr>
            <tr>
              <td>Alamat</td>
              <td>:</td>
              <td><input name="alamat" type="text" id="alamat" size="60"></td>
            </tr>
            <tr>
              <td>No Telp </td>
              <td>:</td>
              <td><input name="notelp" type="text" id="notelp"></td>
            </tr>
            <tr>
              <td>Berupa</td>
              <td>:</td>
              <td><b><? echo $row['NAMABARANG']; ?></b></td>
            </tr>
            <tr>
              <td>
                <input name="day" type="hidden" id="day" value="<?PHP echo $day; ?>">
                <input name="month" type="hidden" id="month" value="<?PHP echo $month; ?>">
                <input name="year" type="hidden" id="year" value="<?PHP echo $year; ?>">
              <input name="do" type="hidden" id="do" value="kembali">
              <input name="id" type="hidden" id="id" value="<? echo $row['ID']; ?>"></td>
              <td>&nbsp;</td>
              <td><input type="submit" name="Submit3" value="Simpan"></td>
            </tr>
          </table>
		</form>
        <?
}
?>
        <? if ($t1 == "lelang"){ ?>		<br>
		<br>
		<form name="form1" method="post" action="index.tahapan.add.php">
		  <table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td height="23"><strong>TAHAPAN PENYERAHAN KE PEMBINAAN UNTUK PELELANGAN/DISETOR KE KAS NEGARA. lakukan tekan tombol simpan hanya 1 kali.</strong></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                  <tr>
                    <td bgcolor="#FFFF99">Apabila proses ini sudah dilakukan agar segera diserahkan kepada bagian pembinaan pada hari itu juga. Berupa <b><? echo $row['NAMABARANG']; ?></b></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td>
                <input name="day2" type="hidden" id="day6" value="<?PHP echo $day; ?>">
                <input name="month2" type="hidden" id="month4" value="<?PHP echo $month; ?>">
                <input name="year2" type="hidden" id="year4" value="<?PHP echo $year; ?>">
				  <input name="do" type="hidden" id="do" value="lelang">
              <input name="id" type="hidden" id="id" value="<? echo $row['ID']; ?>">
      Diproses Tanggal <?PHP echo $day; ?>/<?PHP echo $month; ?>/<?PHP echo $year; ?>
      <input type="submit" name="Submit2" value="Simpan"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
		</form>
        <?
}
?> <? if ($t1 == "musnah"){ ?>		<br>
		<br>
		<form name="form1" method="post" action="index.tahapan.add.php">
          <table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><strong>TAHAPAN UNTUK DIMUSNAHKAN lakukan tekan tombol simpan hanya 1 kali.</strong></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                  <tr>
                    <td bgcolor="#FFFF99">Apabila proses ini sudah dilakukan agar segera barang disisihkan dalam kelompok tersendiri untuk proses pemusnahan lebih lanjut. Berupa <b><? echo $row['NAMABARANG']; ?></b></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td> <input name="day" type="hidden" id="day" value="<?PHP echo $day; ?>">
          <input name="month" type="hidden" id="month" value="<?PHP echo $month; ?>">
          <input name="year" type="hidden" id="year" value="<?PHP echo $year; ?>">   
		    <input name="do" type="hidden" id="do" value="musnah">
              <input name="id" type="hidden" id="id" value="<? echo $row['ID']; ?>">           
          Diproses Tanggal <?PHP echo $day; ?>/<?PHP echo $month; ?>/<?PHP echo $year; ?>
          <input type="submit" name="Submit" value="Simpan"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>             
        </form>
        <?
}
?>

<? if ($t1 == "rampas"){ ?>		<br>
		<br>
		<form name="form1" method="post" action="index.tahapan.add.php">
          <table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><strong>TAHAPAN UNTUK DIRAMPAS UNTUK NEGARA lakukan tekan tombol simpan hanya 1 kali.</strong></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                  <tr>
                    <td bgcolor="#FFFF99">Apabila proses ini sudah dilakukan agar segera barang disisihkan dalam kelompok tersendiri untuk proses penyerahan kepada bagian keuangan untuk disetor kedalam kas negara sesegera mungkin Berupa <b><? echo $row['NAMABARANG']; ?></b></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td> <input name="day" type="hidden" id="day" value="<?PHP echo $day; ?>">
          <input name="month" type="hidden" id="month" value="<?PHP echo $month; ?>">
          <input name="year" type="hidden" id="year" value="<?PHP echo $year; ?>">   
		    <input name="do" type="hidden" id="do" value="rampas">
              <input name="id" type="hidden" id="id" value="<? echo $row['ID']; ?>">           
          Diproses Tanggal <?PHP echo $day; ?>/<?PHP echo $month; ?>/<?PHP echo $year; ?>
          <input type="submit" name="Submit" value="Simpan"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>             
        </form>
        <?
}
?>
<? if ($t1 == "delete"){ ?>		<br>
		<br>
		<form name="form1" method="post" action="index.tahapan.add.php">
          <table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><strong>TAHAP HAPUS DARI REGISTER DIGITAL</strong></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                  <tr>
                    <td bgcolor="#FFFF99">Apabila proses ini PASTIKAN ANDA TIDAK MELAKUKAN KESALAHAN <b>Menghapus BB bernama &quot; <? echo $row['NAMABARANG']; ?> &quot; No Register <? echo $row['RB']; ?></b></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td> <input name="day" type="hidden" id="day" value="<?PHP echo $day; ?>">
          <input name="month" type="hidden" id="month" value="<?PHP echo $month; ?>">
          <input name="year" type="hidden" id="year" value="<?PHP echo $year; ?>">   
		    <input name="do" type="hidden" id="do" value="delete">
              <input name="id" type="hidden" id="id" value="<? echo $row['ID']; ?>">           
          Diproses Tanggal <?PHP echo $day; ?>/<?PHP echo $month; ?>/<?PHP echo $year; ?>
          <input type="submit" name="Submit" value="Simpan"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>             
        </form>
        <?
}
} 

?>