You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.7 KiB
PHP

<?php
include "../func_lib.php";
session_start();
if($_SESSION['validAssko'] !== TRUE && $_SESSION['validAdmin'] !== TRUE && $_SESSION['validPemko'] !== TRUE)
{
header("location: ../index.php");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Amigo Group :: Pengadaan Barang</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="../img/haha.ico" />
<link rel="icon" href="../img/haha.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="./style/style.css" />
<link rel="stylesheet" href="style/flora.datepicker.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../style/superfish.css" />
<script type="text/javascript" src="../script/superfish.js"></script>
<script type="text/javascript" src="script/jquery.js"></script>
<script language="javascript" src="script/ui.datepicker.js"></script>
<script type="text/javascript" src="./script/json2.js"></script>
<script type="text/javascript">
$(function(){
function customRange(input) {
return {minDate: (input.id == 'endDate' ? $('#startDate').datepicker('getDate') : null),
maxDate: (input.id == 'startDate' ? $('#endDate').datepicker('getDate') : null)};
}
$('#startDate,#endDate').datepicker({
beforeShow: customRange,
dateFormat: 'dd-mm-yy',
showOn: 'both',
buttonImage: './img/calendar.gif',
buttonImageOnly: true
});
$('#lapak4').bind('click', function(){
var startDate = $('#startDate').val();
var endDate = $('#endDate').val();
if(startDate != '' && endDate != ''){
$('#frm_ak4').submit();
}else{
alert('Masukkan tanggal awal dan tanggal akhir!');
}
});
});
</script>
</head>
<body>
<div id="content">
<div class="headermenu">
<?php include("./hmenu.php");?>
</div>
<div class="c_content">
<div class="exp_content">Rekap Bon dan Titipan (AK.4)</div>
<div id="body_content">
<form action="lapak4.php" name="frm_ak4" id="frm_ak4" method="post">
<center>
<table>
<tr><td>Range Tanggal</td><td>: <input type="text" size="10" value="" id="startDate" name="startDate" readonly /> s/d <input type="text" size="10" value="" id="endDate" name="endDate" readonly /></td>
<td><input type="button" value="Lihat" id="lapak4" /></td></tr>
</table>
</center>
</form>
</div>
</div>
<div class="footer">
<?php include ("../footer.php"); ?>
</div>
</div>
</body>
</html>