	    <link type="text/css" href="css/jquery-ui-1.8.6.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script>
		<script type="text/javascript">
		jQuery(function($){
		$.datepicker.regional['vi'] = {
			closeText: 'Tutup',
			prevText: 'Sebelum',
			nextText: 'Sesudah',
			currentText: 'Sekarang',
			monthNames: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni',
			'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'],
			monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun',
			'Jul', 'Ags', 'Sep', 'Okt', 'Nov', 'Des'],
			dayNames: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum&acute;at', 'Sabtu'],
			dayNamesShort: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sbt'],
			dayNamesMin: ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sb' ],
			dateFormat: 'yy-mm-dd',
			firstDay: 0,
			isRTL: false,
			showMonthAfterYear: false,
			changeMonth: true,
			changeYear: true,
			yearSuffix: ''};
		$.datepicker.setDefaults($.datepicker.regional['vi']);
	  	$(function(){
				$('#tgl_monev').datepicker({
					inline: true
				});
	    });
		$(function(){
				$('#tgl_tindakan').datepicker({
					inline: true
				});
	    });
       });
</script>
<script type="text/javascript">
var htmlobjek;
$(document).ready(function(){
  //apabila terjadi event onchange terhadap object <select id=propinsi>
  $("#ibbws").change(function(){
    var ibbws = $("#ibbws").val();
    	$.ajax({
        	url: "data/masterlokasi.php",
        	data: "ibbws="+ibbws,
        	cache: false,
        	success: function(msg){$("#id_lokasi").html(msg);}
    	});
	});
});

$(document).ready(function(){
  //apabila terjadi event onchange terhadap object <select id=propinsi>
  $("#id_lokasi").change(function(){
    var id_lokasi = $("#id_lokasi").val();
    	$.ajax({
        	url: "data/cekmonev.php",
        	data: "id_lokasi="+id_lokasi,
        	cache: false,
        	success: function(msg){$("#hasilisimonev").html(msg);}
    	});
	});
});


</script>
<?php
//session_start();
include "../config/conn.php";
//if($_GET['v']=="cu"){

  if($_GET['id_monev']!="undefined") {
 	$sql_monev="SELECT * FROM t_monev WHERE id_monev='".$_GET['id_monev']."'";	
  	$query_monev=mysql_query($sql_monev);
	$redit_detail=mysql_fetch_array($query_monev);
  }

  $sql_bbws="SELECT * FROM m_bbws WHERE 1=1  ";
  if($_GET['id_monev']!="") {
	$sql_bbws.=" AND id_bbws=".$redit_detail['id_bbws']."";
  }
  $query_bbws=mysql_query($sql_bbws);

  $sql_lokasi="SELECT * FROM m_lokasi WHERE 1=1 ";
  if($redit_detail['id_lokasi']!="") {
	  $sql_lokasi.=" AND id_bbws=".$redit_detail['id_bbws']."";
	  }	 
  if($_GET['id_monev']!="") {
	$sql_lokasi.=" AND id_lokasi=".$redit_detail['id_lokasi']."";
  }
	$sql_lokasi.=" ORDER BY nama_lokasi ASC ";
	$query_lokasi=mysql_query($sql_lokasi);

//}
?>
<form id="upload_form" enctype="multipart/form-data" method="post">
<div align="right"><a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">X Tutup</a></div>
<strong><em>INFO MONEV</em></strong><br />
<input type="hidden" id="id_monev" name="id_monev" value="<?php echo $redit_detail['id_monev'];?>" />
<!--strong><em>Form Input Lokasi</em></strong-->
<div class="row">
<table width="100%" border="0" cellpadding="1" cellspacing="2">
  <tr>
    <td >Tanggal</td>
    <td >:
      <?php echo date('d M Y',strtotime($redit_detail['tgl_monev']));?></td>
    </tr>
  <tr>
    <td >Peserta</td>
    <td >:
      <?php echo $redit_detail['peserta_monev'];?></td>
    </tr>
  <tr>
    <td >BBWS</td>
    <td >:      
        <?php 
	$rt=mysql_fetch_array($query_bbws);
	 echo $rt['nama_bbws']; ?>
</td>
    </tr>
  <tr>
    <td width="16%" >Nama Lokasi</td>
    <td width="20%" >:
       <?php 
	while($rl=mysql_fetch_array($query_lokasi)){
	echo $rl['nama_lokasi']; 
	}
   ?>
   </td>
    </tr>
  <tr>
    <td  colspan="2"><strong><em><br />
      DETAIL PERBAIKAN PERANGKAT</em></strong></td>
  </tr>
  <tr>
    <td >Tanggal</td>
    <td >: 
      <input type="text" id="tgl_tindakan" name="tgl_tindakan" value="<?php echo $redit_detail['tgl_tindakan'];?>" style="width:40%;" /></td>
    </tr>
  <tr style="background-color:#CCC;"">
    <td >GPA</td>
    <td >: <?php echo $redit_detail['note_gpa'];?></td>
    <td width="14%" >Tindakan Perbaikan </td>
    <td width="26%" ><input type="text" id="tindakan" name="tindakan" value="<?php echo $redit_detail['tindakan'];?>" style="width:95%;" /> </td>
    <td width="13%" align="right"> Hasil Tindakan</td>
    <td width="11%" ><select id="gpa" name="gpa">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['gpa']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['gpa']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
</tr>
  <tr style="background-color:#CCC;"">
    <td >Sensor</td>
    <td >: <?php echo $redit_detail['note_sensor'];?></td>
    <td width="14%" >Tindakan Perbaikan </td>
   <td width="26%" ><input type="text" id="tindakan_sensor" name="tindakan_sensor" value="<?php echo $redit_detail['tindakan_sensor'];?>" style="width:95%;" /> </td>
    <td width="13%" align="right"> Hasil Tindakan</td>
    <td width="11%" ><select id="sensor" name="sensor">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['sensor']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['sensor']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
</tr>
  <tr style="background-color:#CCC;"">
    <td >Solarcell</td>
    <td >: <?php echo $redit_detail['note_solarcell'];?></td>
    <td width="14%" >Tindakan Perbaikan </td>
   <td width="26%" ><input type="text" id="tindakan_solarcell" name="tindakan_solarcell" value="<?php echo $redit_detail['tindakan_solarcell'];?>" style="width:95%;" /> </td>
    <td width="13%" align="right"> Hasil Tindakan</td>
    <td width="11%" ><select id="solarcell" name="solarcell">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['solarcell']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['solarcell']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
</tr>
  <tr style="background-color:#CCC;"">
    <td >Solarcharger</td>
    <td >: <?php echo $redit_detail['note_solarcharger'];?></td>
    <td width="14%" >Tindakan Perbaikan </td>
   <td width="26%" ><input type="text" id="tindakan_solarcharger" name="tindakan_solarcharger" value="<?php echo $redit_detail['tindakan_solarcharger'];?>" style="width:95%;" /> </td>
    <td width="13%" align="right"> Hasil Tindakan</td>
    <td width="11%" ><select id="solarcharger" name="solarcharger">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['solarcharger']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['solarcharger']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
</tr>
  <tr style="background-color:#CCC;">
    <td >Baterai</td>
    <td >: <?php echo $redit_detail['note_solarcharger'];?></td>
    <td width="14%" >Tindakan Perbaikan </td>
   <td width="26%" ><input type="text" id="tindakan_baterai" name="tindakan_baterai" value="<?php echo $redit_detail['tindakan_baterai'];?>" style="width:95%;" /> </td>
    <td width="13%" align="right"> Hasil Tindakan</td>
    <td width="11%" ><select id="baterai" name="baterai">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['baterai']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['baterai']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
</tr>
<tr style="background-color:#CCC;">
    <td >Keterangan </td>
    <td align="left" colspan="5" ><textarea id="keterangan" name="keterangan" rows="2" cols="100%"><?php echo $redit_detail['keterangan'];?></textarea></td>
    </tr>
<tr style="background-color:#CCC;">
    <td >Status  </td>
    <td align="left" >: 
    <select id="status" name="status">
    	<option value="Open" <?php if($redit_detail['status']==="Open") { echo 'selected="selected"'; } ?>>Open</option>
    	<option value="Progress" <?php if($redit_detail['status']==="Progress") { echo 'selected="selected"'; } ?>>Progress</option>
    	<option value="Close" <?php if($redit_detail['status']==="Close") { echo 'selected="selected"'; } ?>>Close</option>
    </select>
    </td>
	<td colspan="4"></td>
    </tr>
<tr style="background-color:#CCC;">
    <td colspan="2">File Hasil Perbaikan </td>
	<td colspan="4"><input type="file" id="fileperbaikan" name="fileperbaikan" /></td>
    </tr>
  <tr>
    <td align="right" colspan="6" ><input type="submit" id="simpan" name="simpan" class="simpan" value="Simpan" /></td>
  </tr>
</table>
</div>
</form>