<?PHP
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_pidsus");
$mytable = "p_perkara";
$uid1 = $_GET["id"];
$query = "Select * from $mytable where uid = '$uid1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?>
<style type="text/css">
<!--
.style1 {color: #999999}
-->
</style>
<table width="100%"  border="0" cellspacing="4" cellpadding="4">
  <tr>
    <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td bgcolor="#FFFFFF">            <table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td width="100%"><div align="center"><b> </b></div></td>
              </tr>
              <tr>
                <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                    <tr>
                      <td width="78" rowspan="2">&nbsp;</td>
                      <td width="38" rowspan="2"><div align="center"> </div></td>
                      <td colspan="2">PENCATATAN PROSES TAHAP 2 </td>
                    </tr>
                    <tr>
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td><div align="center">I.</div></td>
                      <td colspan="2">Nama Tersangka </td>
                    </tr>
                    <tr>
                      <td rowspan="2">&nbsp;</td>
                      <td rowspan="2">
                        <div align="center"></div></td>
                      <td colspan="2"><b><?PHP print (''.$row['spdp_namatsk'].''); ?></b></td>
                    </tr>
                    <tr>
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td><div align="center">II.</div></td>
                      <td colspan="2">Pasal Sangkaan </td>
                    </tr>
                    <tr>
                      <td rowspan="2">&nbsp;</td>
                      <td rowspan="2"><div align="center"></div></td>
                      <td colspan="2"><b><?PHP print (''.$row['spdp_pasal'].''); ?></b></td>
                    </tr>
                    <tr>
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td width="968"><form name="form1" method="post" action="inc/pidsus_spdpadd.php">
                          <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                            <tr>
                              <td>Tanggal Tahap 2 </td>
                            </tr>
                            <tr>
                              <td><select name="day" id="day">
                                <option value="01" <? IF($day == "1"){ echo "selected"; } ?>>01</option>
                                <option value="02" <? IF($day == "2"){ echo "selected"; } ?>>02</option>
                                <option value="03" <? IF($day == "3"){ echo "selected"; } ?>>03</option>
                                <option value="04" <? IF($day == "4"){ echo "selected"; } ?>>04</option>
                                <option value="05" <? IF($day == "5"){ echo "selected"; } ?>>05</option>
                                <option value="06" <? IF($day == "6"){ echo "selected"; } ?>>06</option>
                                <option value="07" <? IF($day == "7"){ echo "selected"; } ?>>07</option>
                                <option value="08" <? IF($day == "8"){ echo "selected"; } ?>>08</option>
                                <option value="09" <? IF($day == "9"){ echo "selected"; } ?>>09</option>
                                <option value="10" <? IF($day == "10"){ echo "selected"; } ?>>10</option>
                                <option value="11" <? IF($day == "11"){ echo "selected"; } ?>>11</option>
                                <option value="12" <? IF($day == "12"){ echo "selected"; } ?>>12</option>
                                <option value="13" <? IF($day == "13"){ echo "selected"; } ?>>13</option>
                                <option value="14" <? IF($day == "14"){ echo "selected"; } ?>>14</option>
                                <option value="15" <? IF($day == "15"){ echo "selected"; } ?>>15</option>
                                <option value="16" <? IF($day == "16"){ echo "selected"; } ?>>16</option>
                                <option value="17" <? IF($day == "17"){ echo "selected"; } ?>>17</option>
                                <option value="18" <? IF($day == "18"){ echo "selected"; } ?>>18</option>
                                <option value="19" <? IF($day == "19"){ echo "selected"; } ?>>19</option>
                                <option value="20" <? IF($day == "20"){ echo "selected"; } ?>>20</option>
                                <option value="21" <? IF($day == "21"){ echo "selected"; } ?>>21</option>
                                <option value="22" <? IF($day == "22"){ echo "selected"; } ?>>22</option>
                                <option value="23" <? IF($day == "23"){ echo "selected"; } ?>>23</option>
                                <option value="24" <? IF($day == "24"){ echo "selected"; } ?>>24</option>
                                <option value="25" <? IF($day == "25"){ echo "selected"; } ?>>25</option>
                                <option value="26" <? IF($day == "26"){ echo "selected"; } ?>>26</option>
                                <option value="27" <? IF($day == "27"){ echo "selected"; } ?>>27</option>
                                <option value="28" <? IF($day == "28"){ echo "selected"; } ?>>28</option>
                                <option value="29" <? IF($day == "29"){ echo "selected"; } ?>>29</option>
                                <option value="30" <? IF($day == "30"){ echo "selected"; } ?>>30</option>
                                <option value="31" <? IF($day == "31"){ echo "selected"; } ?>>31</option>
                              </select>
                                <select name="month" id="month">
                                  <option value="01" <? IF($month == "1"){ echo "selected"; } ?>>01</option>
                                  <option value="02" <? IF($month == "2"){ echo "selected"; } ?>>02</option>
                                  <option value="03" <? IF($month == "3"){ echo "selected"; } ?>>03</option>
                                  <option value="04" <? IF($month == "4"){ echo "selected"; } ?>>04</option>
                                  <option value="05" <? IF($month == "5"){ echo "selected"; } ?>>05</option>
                                  <option value="06" <? IF($month == "6"){ echo "selected"; } ?>>06</option>
                                  <option value="07" <? IF($month == "7"){ echo "selected"; } ?>>07</option>
                                  <option value="08" <? IF($month == "8"){ echo "selected"; } ?>>08</option>
                                  <option value="09" <? IF($month == "9"){ echo "selected"; } ?>>09</option>
                                  <option value="10" <? IF($month == "10"){ echo "selected"; } ?>>10</option>
                                  <option value="11" <? IF($month == "11"){ echo "selected"; } ?>>11</option>
                                  <option value="12" <? IF($month == "12"){ echo "selected"; } ?>>12</option>
                                </select>
                                <select name="year" id="year">
                                  <option value="2016" <? IF($year == "2016"){ echo "selected"; } ?>>2016</option>
                                  <option value="2017" <? IF($year == "2017"){ echo "selected"; } ?>>2017</option>
                                  <option value="2018" <? IF($year == "2018"){ echo "selected"; } ?>>2018</option>
                                  <option value="2019" <? IF($year == "2019"){ echo "selected"; } ?>>2019</option>
                                  <option value="2020" <? IF($year == "2020"){ echo "selected"; } ?>>2020</option>
                                </select></td>
                            </tr>
                            <tr>
                              <td>Jaksa P16A
                                <input name="uid" type="hidden" id="uid" value="<?PHP print (''.$row['uid'].''); ?>">
                                <input name="key" type="hidden" id="key" value="tahap2"></td>
                            </tr>
                            <tr>
                              <td><textarea name="jaksa" cols="100" rows="4" wrap="VIRTUAL" id="jaksa"></textarea></td>
                            </tr>
                            <tr>
                              <td>Apakah dalam perkara ini ditahan? jika ya isikan dibawah ini mulai tanggal berapa. jika tidak abaikan. </td>
                            </tr>
                            <tr>
                              <td><input name="tahan" type="text" id="tahan" value="..... s/d.........."></td>
                            </tr>
                            <tr>
                              <td><input type="submit" name="Submit" value="SIMPAN"></td>
                            </tr>
                          </table>
                      </form></td>
                      <td width="168">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<? } ?>