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.

81 lines
3.1 KiB
PHP

<?php
include "../func_lib.php";
session_start();
if($_SESSION['validUser'] !== 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>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/jquery.autocomplete.css" />
<link rel="stylesheet" type="text/css" href="../css/superfish.css" media="screen">
<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 type="text/javascript" src="../js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="../js/shortcut.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
});
$('#lapdetailjual').bind('click', function(){
var startDate = $('#startDate').val();
var endDate = $('#endDate').val();
if(startDate != '' && endDate != ''){
$('#frm_lapdetailjual').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"; ?>
<fieldset>
<legend><strong>Laporan Detail Penjualan Per Kategori</strong></legend>
<div id="body_content">
<form action="lapdetailjual.php" name="frm_lapdetailjual" id="frm_lapdetailjual" 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="lapdetailjual" /></td></tr>
</table>
</center>
</form>
</div>
</div>
<div class="footer">
<?php include ("../footer.php");?>
</div>
</div>
</body>
</html>