Initial commit
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
<?php session_start();?>
|
||||
<?php
|
||||
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");
|
||||
?>
|
||||
<!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>Raport agregatów aktualnie zarezerwowanych do Zleceń</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="./bootstrap.min.css" rel="stylesheet">
|
||||
<link href="./datepicker/css/datepicker.css" rel="stylesheet">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="loader"></div>
|
||||
|
||||
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Raport agregatów aktualnie zarezerwowanych do Zleceń</h3>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<a class="btn btn-info" href="../?pg=site809" role="button" >Wróć</a>
|
||||
<a class="btn btn-default" href="#" role="button" onclick="window.print();">Drukuj <span class="glyphicon glyphicon-print" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<table class="table table-bordered" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Numer zlecenia</th>
|
||||
<th>Studnia</th>
|
||||
<th>Wybudowana pompa</th>
|
||||
<th>Wybudowany silnik</th>
|
||||
<th>Zabudowywana pompa</th>
|
||||
<th>Zabudowywany silnik</th>
|
||||
<th>Średnica kolektora</th>
|
||||
<th>Data utworzenia</th>
|
||||
<th>Oddział</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
|
||||
$rep021Array = sqlGetResAsArray("select * from seg_order_new_agg_params,seg_orders left join seg_dev_resources on DRS_ID=ORD_DRS_ID LEFT JOIN seg_order_obj_params on OWP_ORD_ID=ORD_ID where ONA_ORD_ID=ORD_ID and ONA_PUMP_DRS_ID is not null and DRS_DEPARTMENT='".$_SESSION['syndis_eq_stock']."' order by ORD_AUDIT_DATE desc, ORD_OBJ_NAME");
|
||||
for ($i=0; $i<count($rep021Array); $i++)
|
||||
{
|
||||
if (strlen($rep021Array[$i]['OWP_PUMP'])<7)
|
||||
{
|
||||
$rep021Array[$i]['OWP_PUMP']="";
|
||||
$rep021Array[$i]['OWP_ENG']="";
|
||||
}
|
||||
|
||||
echo'
|
||||
<tr>
|
||||
<td>'.($i+1).'</td>
|
||||
<td>'.$rep021Array[$i]['ORD_NO'].'</td>
|
||||
<td>'.$rep021Array[$i]['ORD_OBJ_NAME'].'</td>
|
||||
<td>'.$rep021Array[$i]['OWP_PUMP'].'</td>
|
||||
<td>'.$rep021Array[$i]['OWP_ENG'].'</td>
|
||||
<td>'.$rep021Array[$i]['ONA_PUMP'].'</td>
|
||||
<td>'.$rep021Array[$i]['ONA_ENG'].'</td>
|
||||
<td>'.$rep021Array[$i]['ONA_SRED_KOL'].'</td>
|
||||
<td>'.$rep021Array[$i]['ORD_AUDIT_DATE'].'</td>
|
||||
<td>'.$rep021Array[$i]['DRS_DEPARTMENT'].'</td>
|
||||
<td><a href="../?pg=site810inf&id='.$rep021Array[$i]['ORD_ID'].'" title="Szczegóły"><span class="glyphicon glyphicon-circle-arrow-right" aria-hidden="true"></span></a></td>
|
||||
<tr>
|
||||
';
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user