        <link rel="stylesheet" href="Highcharts/nesw2/images/style.css" type="text/css">
	    <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(){
				$('#tglf').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 AND id_bbws=".$_SESSION['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']."";
	  }	 
  $sql_lokasi.=" ORDER BY nama_lokasi ASC ";
	$query_lokasi=mysql_query($sql_lokasi);

//}
?>
<form id="upload_form" enctype="multipart/form-data" method="post">
<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="3" cellspacing="3">
  <tr>
    <td valign="top"><strong>Tanggal Monev</strong></td>
    <td valign="top">:
      <input type="text" id="tgl_monev" name="tgl_monev" value="<?php echo $redit_detail['tgl_monev'];?>" style="width:48%;" /></td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"><strong>Peserta Monev</strong></td>
    <td valign="top" colspan="2">:
      <input type="text" id="peserta_monev" name="peserta_monev" value="<?php echo $redit_detail['peserta_monev'];?>" style="width:90%;" /></td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"><strong>BBWS</strong></td>
    <td valign="top">:      
      <select id="ibbws" name="ibbws">
        <option value="">-Pilih BBWS-</option>
        <?php 
	while($rt=mysql_fetch_array($query_bbws)){
	?>
        <option value="<?php echo $rt['id_bbws']; ?>" <?php if ($redit_detail['id_bbws']==$rt['id_bbws']) { echo 'selected="selected"';} ?>> <?php echo $rt['nama_bbws']; ?></option>
        <?php } ?>
      </select>
</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" valign="top"><strong>Nama Lokasi</strong></td>
    <td width="24%" valign="top">:
      <select id="id_lokasi" name="id_lokasi">
        <option value="">-Pilih Lokasi-</option>
        <?php 
	while($rl=mysql_fetch_array($query_lokasi)){
	?>
        <option value="<?php echo $rl['id_lokasi']; ?>" <?php if ($redit_detail['id_lokasi']==$rl['id_lokasi']) { echo 'selected="selected"';} ?>> <?php echo $rl['nama_lokasi']; ?></option>
        <?php } ?>
      </select>
	</td>
    <td width="19%" valign="top">&nbsp;</td>
    <td width="14%" valign="top">&nbsp;</td>
    <td width="26%" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2"><strong><em>KONDISI PERANGKAT</em></strong></td>
</td>
  <tr>
    <td valign="top"><strong>GPA</strong></td>
    <td valign="top">:
      <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>
      <td>Catatan Status GPA :</td>
    <td colspan="2" valign="top"><input type="text" id="note_gpa" name="note_gpa" value="<?php echo $redit_detail['note_gpa'];?>" style="width:80%;" /></td>
    </tr>
  <tr>
    <td valign="top"><strong>Sensor</strong></td>
    <td valign="top">:
      <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>
      <td>Catatan Status Sensor :</td>
    <td colspan="3" valign="top"><input type="text" id="note_sensor" name="note_sensor" value="<?php echo $redit_detail['note_sensor'];?>" style="width:80%;" /></td>
    </tr>
  <tr>
    <td valign="top"><strong>Solarcell</strong></td>
    <td valign="top">:
      <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>
      <td>Catatan Status Solarcell :</td>
    <td colspan="3" valign="top"><input type="text" id="note_solarcell" name="note_solarcell" value="<?php echo $redit_detail['note_solarcell'];?>" style="width:80%;" /></td>
    </tr>
  <tr>
    <td valign="top"><strong>Solar Charger</strong></td>
    <td valign="top">:
      <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>
      <td>Catatan Status Solar Charger :</td>
    <td colspan="2" valign="top"><input type="text" id="note_solarcharger" name="note_solarcharger" value="<?php echo $redit_detail['note_solarcharger'];?>" style="width:80%;" /></td>
    </tr>
  <tr>
    <td valign="top"><strong>Baterai</strong></td>
    <td valign="top">:
      <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>
      <td>Catatan Status Baterai :</td>
    <td colspan="2" valign="top"><input type="text" id="note_baterai" name="note_baterai" value="<?php echo $redit_detail['note_baterai'];?>" style="width:80%;" /></td>
    </tr>
  <tr>
    <td valign="top"><strong>Lainnya-(Kabel/Konektor)</strong></td>
    <td valign="top">:
      <select id="lainlian" name="lainlian">
      	<option value="">--Status--</option>
      	<option value="Baik" <?php if ($redit_detail['lainlian']=="Baik") { echo 'selected="selected"';} ?>>Baik</option>
      	<option value="Rusak" <?php if ($redit_detail['lainlian']=="Rusak") { echo 'selected="selected"';} ?>>Rusak</option>
      </select></td>
      <td>Catatan Status lainnya :</td>
    <td colspan="2" valign="top"><input type="text" id="note_lainlain" name="note_lainlain" value="<?php echo $redit_detail['note_lainlain'];?>" style="width:80%;" /></td>
 </tr>
  <!--tr>
    <td valign="top"><strong>Tindakan Perbaikan</strong></td>
    <td valign="top"><textarea id="tindakan" name="tindakan" cols="30" rows="3"><?php echo $row_detail['tindakan'];?></textarea></td>
      <td valign="top">Hasil Tindakan :</td>
    <td colspan="2" valign="top"><textarea id="hasil_tindakan" name="hasil_tindakan" cols="48" rows="3"><?php echo $row_detail['hasil_tindakan'];?></textarea></td>
  </tr-->
  <tr style="background-color:#CCC;">
    <td colspan="2">File Hasil Perbaikan </td>
	<td colspan="4"><input type="file" id="filemonev" name="filemonev" /></td>
    </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td align="right" valign="top"></td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td align="left" valign="top"><input type="submit" id="batal" name="batal" class="batal" value="Batal" />
      <input type="submit" id="simpan" name="simpan" class="simpan" value="Simpan" /></td>
  </tr>
</table>
<br />
</div>
<br />
<div class="modal-footer" align="right"></div>
</form>