<div class="templatepopcentering" style="width:350px;margin-top: 1%;">
    <div id='pop' style="border: 1px solid #ffffff;">
    <div class="detil" style="padding: 2px;background-color: white;">           
		<form id="frm_bht" action='<?php echo base_url('detil_perkara_mil/validation_tgl_bht/'.$act.'/'.$enc);?>' method='POST'>
			<table id="tableDetilPerkara" style="font-size:14px;" border="0">				
				<tbody>
					<tr>
						<td colspan="1" style='text-align:center;background:#fff;color:#5fb85c;border:2px solid #fff;margin-bottom:10px;font-size: 20px;'>Tambah / Edit Tanggal BHT
						<hr class="thick-line" style="clear:both;"></td>
					</tr>
					<tr>						
						<td style="padding:0px;padding-left:5px;background:white;text-align:center">							
							
							<input style="height:50px;width:150px;font-size:15pt;text-align:center" id="tgl_bht" name="tgl_bht" value="<?php echo (!empty($tgl_bht) ? $this->tanggalhelper->convertToInputDate($tgl_bht) : '');?>" class="datepicker" maxlength="10" placeholder="tgl/bln/tahun">
							<br><br>
						</td>						
					</tr>
					<tr>
						<td colspan="1" class="buttongroup">
							<input type="hidden" name="enc" value="<?php echo $enc;?>">
							<input type="button" id='close_form_bht' value="Kembali" class="btn">
							<?php if(!empty($tgl_bht)){ ?>
								<input type="submit" id="hapus" value="Hapus" class="btn btn-danger" onclick="return false;">
							<?php } ?>
							<input type="submit"  value="Simpan" class="btn">
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
	</div>
</div>
<script type="text/javascript">
$("#ttp_pop_bht").click(function() {
	$('#popup_form').fadeOut();
    $("body").css({overflow: 'hidden'});    
});
$('#frm_bht').SubmitHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'#close_form_bht',
	whenStatus:1,
	next_step:1
});
$('#hapus').ButtonClickHandling({
	refresh:'1',
	setRefresh:1,
	divRef:'#konten',
	clicked:1,
	btnClicked:'#close_form_bht',
	whenStatus:1,
	actions:'<?php echo base_url("detil_perkara_mil/hapus_bht")."/".$enc;?>',
	formName:'#frm_bht',
	actionName:'Hapus Bht'
});
$('#close_form_bht').closingFormWin();
$('#tgl_bht').datepicker({
            inline: true,
            showOtherMonths: true,
            dateFormat: 'dd/mm/yy',
            dayNamesMin: ['Ming', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
            beforeShowDay:$.datepicker.noWeekends,
            onSelect: function(dateText, inst) {

        	}
      	});
$('.datepicker').ValidateDateInput();
</script>