        <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_sampling').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/cekpublikasi.php",

        	data: "id_lokasi="+id_lokasi,

        	cache: false,

        	success: function(msg){$("#hasilisipublikasi").html(msg);}

    	});

	});

});





</script>

<?php

session_start();

include "../config/conn.php";
//if($_GET['v']=="cu"){
  if($_GET['id_kegiatan']!="undefined") {
 	$sql_kegiatan="SELECT * FROM t_kegiatan WHERE id_ka='".$_GET['id_kegiatan']."'";	
  	$query_kegiatan=mysql_query($sql_kegiatan);
	$redit_detail=mysql_fetch_array($query_kegiatan);
  }

  $sql_bbws="SELECT * FROM m_das WHERE 1=1 AND id_bbws=".$_SESSION['id_bbws']." ORDER BY nama_das ASC";
  $query_bbws=mysql_query($sql_bbws);

  $sql_lokasi="SELECT * FROM m_lokasi WHERE 1=1 AND id_type='PDA'";
  if($redit_detail['id_lokasi']!="") {
	  $sql_lokasi.=" AND id_bbws=".$_SESSION['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_kegiatan" name="id_kegiatan" value="<?php echo $redit_detail['id_kegiatan'];?>" />
<input type="hidden" id="id_bbws" name="id_bbws" value="<?php echo $_SESSION['id_bbws'];?>" />
<!--strong><em>Form Input Lokasi</em></strong-->
<div class="row">
<table width="100%" border="0" cellpadding="3" cellspacing="3">
  <tr>
    <td valign="top">Kategori Kegiatan</td>
    <td valign="top">:      
      <select id="kategori" name="kategori">
      	<option value="">--Pilih Kategori--</option>
      	<option value="1">Pengukuran Debit</option>
      	<option value="2">Pemeliharaan Rutin</option>
      	<option value="3">Survey</option>
      	<option value="4">Pengukuran Kualitas Air</option>
      </select>
    </td>
    </tr>
  <tr>
  <tr>
    <td valign="top">Nama Kegiatan</td>
    <td valign="top">:      
      <input type="text" id="nama_kegiatan" name="nama_kegiatan" style="width:58%;" />
    </td>
    </tr>
  <tr>
  <tr>
    <td valign="top">Waktu</td>
    <td valign="top">:
      <!--input type="text" id="tgl_publikasi" name="tgl_publikasi" value="<?php echo $redit_detail['tgl_publikasi'];?>" style="width:48%;" /></td-->
      <input type="text" id="tgl_sampling" name="tgl_sampling" value="yyyy-mm-dd" />  
  </tr>
  <tr>
    <td valign="top">File</td>
    <td valign="top">: 
      <input type="file" id="filepublikasi" name="filepublikasi" /></td>
    </tr>
  <tr>
    <td valign="top">Keterangan</td>
    <td valign="top">:      
      <textarea id="catatan" name="catatan" cols="100" rows="5"></textarea>
    </td>
    </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td 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>