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.

126 lines
4.7 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" src="../js/pelanggan.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,#startDate2,#endDate2').datepicker({
beforeShow: customRange,
dateFormat: 'dd-mm-yy',
showOn: 'both',
buttonImage: '../images/calendar.gif',
buttonImageOnly: true
});
$('#rek_bawa').bind('click', function(){
var kdplg = $('#kdplg').val();
$('#frm_rekapbawa').submit();
});
$('#rinci_bawa').bind('click', function(){
var kdplg = $('#kdplg2').val();
$('#frm_rekapbawa2').submit();
});
});
</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>Rekap Transaksi Bawa</strong></legend>
<div id="body_content">
<table align="center">
<tr>
<td>
<form action="rekapbawa.php" name="frm_rekapbawa" id="frm_rekapbawa" method="post">
<center>
<table>
<tr><td>Rentang Tanggal</td><td>: <input type="text" size="10" value="" id="startDate" name="startDate" readonly/>-<input type="text" size="10" value="" id="endDate" name="endDate" readonly/></td></tr>
<tr><td>Kode Pelanggan </td><td>: <input type="text" size="10" value="" id="kdplg" name="kdplg" />
<input type="button" name="btncariplg" id="btncarinama" value="cari"/>
<input type="button" value="RekapBawa" id="rek_bawa" /></td>
</tr>
</table>
</center>
</form>
</td>
<td>
<form action="rincirekapbawa.php" name="frm_rekapbawa2" id="frm_rekapbawa2" method="post">
<center>
<table>
<tr><td>Rentang Tanggal</td><td>: <input type="text" size="10" value="" id="startDate2" name="startDate2" readonly/>-<input type="text" size="10" value="" id="endDate2" name="endDate2" readonly/></td></tr>
<tr><td>Kode Pelanggan </td><td>: <input type="text" size="10" value="" id="kdplg2" name="kdplg2" />
<input type="button" name="btncariplg" id="btncarinama" value="cari"/>
<input type="button" value="RinciBawa" id="rinci_bawa" /></td>
</tr>
</table>
</center>
</form>
</td>
</tr>
</table>
</div>
</div>
<div id="dialogcaripelanggan" class="jqmDialog">
<div class="jqmdTC jqDrag">Cari Pelanggan</div>
<div class="jqmdBC">
<div class="jqmdMSG">
<form method="post" name="fcariplgreport">
<table>
<tr>
<td>Nama</td><td>:</td><td><input type="text" name="txtcari" size="30"/> <input type="submit" value="cari"/> </td>
</tr>
</table>
</form>
<fieldset id="fshasil">
<legend>Hasil pencarian</legend>
<div id="hasil"></div>
</fieldset>
</div>
</div>
<input type="image" src="images/close.gif" class="jqmdX jqmClose" />
</div>
<div class="footer">
<?php include ("../footer.php");?>
</div>
</div>
</body>
</html>