<?PHP
include("index.db.php");
$table = "tp4";
$tid1 = $_GET["id"];
$query = "Select * from $table where tid = '$tid1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?><table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td><form action="inc/intel_tp4editadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="91%"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><div align="right">No Agenda yang Di Edit
                    <input name="a0" type="text" id="a0" value="<?PHP echo $agenda = $_GET["id"]; ?>" size="5" readonly>
                  </b></div></td>
            </tr>
            <tr>
              <td><input name="do" type="hidden" id="do" value="edit"></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="9%">&nbsp;</td>
              <td width="91%"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td colspan="4"><strong>ISIAN DATA </strong>
                    <hr size="1"></td>
                </tr>
                <tr>
                  <td colspan="2"> Kegiatan</td>
                  <td width="2%">:</td>
                  <td width="73%"><textarea name="a1" cols="60" rows="3" wrap="VIRTUAL" id="a1"><?PHP echo htmlspecialchars($row['tkegiatan']); ?></textarea></td>
                </tr>
                <tr>
                  <td colspan="2"> K/L/D/I </td>
                  <td>:</td>
                  <td><input name="a2" type="text" id="a2" value="<?PHP echo htmlspecialchars($row['tkldi']); ?>" size="30"></td>
                </tr>
                <tr>
                  <td colspan="2"> Jenis Pekerjaan/Proyek</td>
                  <td>:</td>
                  <td><input name="a3" type="text" id="a3" value="<?PHP echo htmlspecialchars($row['tjenisproyek']); ?>" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Pagu Anggaran </td>
                  <td>:</td>
                  <td>Rp.
                    <input name="a4" type="text" id="a4" value="<?PHP echo htmlspecialchars($row['tpagu']); ?>"> 
                    contoh : Masukan dalam juta contoh 5 </td>
                </tr>
                <tr>
                  <td colspan="2"> Sumber Dana </td>
                  <td>:</td>
                  <td><select name="a5" id="a5">
                    <option value="1">APBN</option>
                    <option value="2">APBD</option>
                    <option value="" selected>--PILIH--</option>
                  </select></td>
                </tr>
                <tr>
                  <td colspan="2"> Tahapan Proyek </td>
                  <td>:</td>
                  <td><input name="a6" type="text" id="a6" value="<?PHP echo htmlspecialchars($row['ttahapan']); ?>" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Tahapan Pengawalan </td>
                  <td>:</td>
                  <td><input name="a7" type="text" id="a7" value="<?PHP echo htmlspecialchars($row['tkawal']); ?>" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> No &amp; Tanggal Sprint </td>
                  <td>:</td>
                  <td><input name="a8" type="text" id="a8" value="<?PHP echo htmlspecialchars($row['tsprint']); ?>" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Penyerapan Anggaran </td>
                  <td>:</td>
                  <td><input name="a9" type="text" id="a9" value="<?PHP echo htmlspecialchars($row['tserap']); ?>">
                    dalam (%) </td>
                </tr>
                <tr>
                  <td colspan="2"> Keterangan </td>
                  <td>:</td>
                  <td><textarea name="a10" cols="60" rows="6" wrap="VIRTUAL" id="a10"><?PHP echo htmlspecialchars($row['tket']); ?></textarea></td>
                </tr>
                <tr>
                  <td width="4%">&nbsp;</td>
                  <td width="21%">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><div align="center">
                      <input type="reset" name="Submit2" value="Reset">
                      <input type="submit" name="Submit" value="Simpan">
  * Cukup Sekali Tekan tombol simpan dan tunggu proses </div></td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<? } ?>