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.

71 lines
2.8 KiB
PHP

<!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>Cleopatra</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/css.css" />
<link rel="stylesheet" type="text/css" href="css/jqModal.css" />
<link rel="stylesheet" type="text/css" href="css/dialogcustom.css" />
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen">
<link rel="stylesheet" href="css/flora.datepicker.css" type="text/css" />
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jqModal.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.visibility.js"></script>
<script language="javascript" src="js/ui.datepicker.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: './images/calendar.gif',
buttonImageOnly: true
});
$('#profitperjnspekerjaan').bind('click', function(){
var startDate = $('#startDate').val();
var endDate = $('#endDate').val();
if(startDate != '' && endDate != ''){
$('#frm_profitperjnspekerjaan').submit();
}else{
alert('Masukkan tanggal awal dan tanggal akhir!');
}
});
});
</script>
</head>
<body>
<div id="content">
<div class="headermenu">
<p id="top">Cleopatra Minimarket</p>
</div>
<div class="c_content">
<?php include("./menu.php");?>
<div id="body_content">
<form action="lap_profitperjnspekerjaan.php" name="frm_profitperjnspekerjaan" id="frm_profitperjnspekerjaan" 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="profitperjnspekerjaan" /></td></tr>
</table>
</center>
</form>
</div>
</div>
<div class="footer">
<?php include 'footer.php'; ?>
</div>
</div>
</body>
</html>