Initial commit
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
<?php @ob_start(); session_start();?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" href="../images/SoftSPM.ico">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Poziom zwierciadła wody w piezometrach</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="./bootstrap.min.css" rel="stylesheet">
|
||||
<link href="./datepicker/css/datepicker.css" rel="stylesheet">
|
||||
|
||||
<script src="./jquery.min.js"></script>
|
||||
<script src="./datepicker/js/bootstrap-datepicker.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
#loader {
|
||||
border: 16px solid #f3f3f3; /* Light grey */
|
||||
border-top: 16px solid #3498db; /* Blue */
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
|
||||
position:absolute;
|
||||
left:50%; /* wyśrodkowujemy w poziomie */
|
||||
top:50%; /* wyśrodkowujemy w pionie */
|
||||
background-position:center;
|
||||
margin:-64px 0 0 -64px; /* no bo chcemy idealnie wycentrować, nie? */
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="loader"></div>
|
||||
|
||||
<?php
|
||||
date_default_timezone_set('Europe/Warsaw');
|
||||
require_once("../func.php");
|
||||
require_once("../dbaccess.php");
|
||||
|
||||
$con = mysql_connect($db_host, $db_user, $db_user_pass) or die ('cannot connect to db');
|
||||
mysql_select_db($db_name);
|
||||
mysql_query("SET NAMES utf8");
|
||||
mysql_query("SET CHARACTER_SET utf8_general_ci");
|
||||
unset($typeOfPiezo);
|
||||
$typeOfPiezo = sqlGetResAsArray("select DIC_ID,DIC_POL_LANG from sys_dictionaries where DIC_TYPE='PIEZO_SYSTEM_TYPE'");
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
if (empty($_POST['rep006_date'])) $_POST['rep006_date']=date('Y-m-d');
|
||||
|
||||
if ($_POST['isGenerate']=='ok' && strlen($_POST['from_piezo'])>3)
|
||||
{
|
||||
unset($_SESSION['rep006_date']);
|
||||
$_SESSION['rep006_date'] = $_POST['rep006_date'];
|
||||
}
|
||||
|
||||
if ($_POST['subReset']=='Resetuj')
|
||||
$_SESSION['rep006_date']=date('Y-m-d');
|
||||
|
||||
?>
|
||||
|
||||
<form action="./rep_006_print.php" method="post">
|
||||
<input type="hidden" name="isGenerate" value="ok">
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Poziom zwierciadła wody w piezometrach <?php echo $_SESSION['syndis_eq_stock'];?></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="form-group col-md-2">
|
||||
<label class="sr-only" for="exampleInputAmount"></label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">Na dzień:</div>
|
||||
<input class="datepicker form-control" name="rep006_date" value="<?php echo $_SESSION['rep006_date']; ?> ">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-2">
|
||||
<label class="sr-only" for="exampleInputAmount"></label>
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon">Typ:</div>
|
||||
<select class="form-control" name="from_piezo">
|
||||
<?php
|
||||
for ($i=0; $i<=count($typeOfPiezo); $i++)
|
||||
{
|
||||
if ($_POST['from_piezo']==$typeOfPiezo[$i]['DIC_POL_LANG'])
|
||||
echo"<option value='".$typeOfPiezo[$i]['DIC_POL_LANG']."' selected>".$typeOfPiezo[$i]['DIC_POL_LANG']."</option>";
|
||||
else
|
||||
echo"<option value='".$typeOfPiezo[$i]['DIC_POL_LANG']."'>".$typeOfPiezo[$i]['DIC_POL_LANG']."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button id="butShow" type="submit" class="btn btn-info" value="Pokaż">Pokaż</button>
|
||||
<button id="butRes" type="submit" class="btn btn-default" name="subReset" value="Resetuj">Resetuj</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="panel-footer">
|
||||
<a class="btn btn-default" href="#" role="button" onclick="window.print();">Drukuj <span class="glyphicon glyphicon-print" aria-hidden="true"></span></a>
|
||||
<a class="btn btn-success" href="./rep_006_xls.php" target="_blank" role="button">Eksport do Excel <span class="glyphicon glyphicon-file" aria-hidden="true"></span></a>
|
||||
<a class="btn btn-danger" href="./rep_006_pdf.php" target="_blank" role="button">Eksport do PDF <span class="glyphicon glyphicon-file" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="./bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(window).load(function() {
|
||||
// Animate loader off screen
|
||||
//$('#preloader').hide();
|
||||
//$('#loader').hide();
|
||||
$.post( "./ajax_gen_reports.php", { post_action: "rep006", done: "create", dep: "<?php echo $_SESSION['syndis_eq_stock'];?>", post_date: "<?php echo $_SESSION['rep006_date'];?>", post_typ: "<?php echo $_POST['from_piezo']; ?>" }).done(function(data)
|
||||
{
|
||||
$('#main_table').html(data);
|
||||
$('#loader').hide();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<div id="main_table">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php ob_end_flush();?>
|
||||
Reference in New Issue
Block a user