Initial commit
This commit is contained in:
Vendored
+14
File diff suppressed because one or more lines are too long
@@ -0,0 +1,60 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Katalog pomp</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Katalog pomp</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Typ pompy</th>
|
||||
<th>Qn [m3/min]</th>
|
||||
<th>Hp [m]</th>
|
||||
<th>Producent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site203_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site203_array'][$i]['pumpName']."</td>
|
||||
<td>".$_SESSION['site203_array'][$i]['qN']."</td>
|
||||
<td>".$_SESSION['site203_array'][$i]['hP']."</td>
|
||||
<td>".$_SESSION['site203_array'][$i]['mfc']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Katalog_pomp.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:E1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:E1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Katalog pomp');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Typ pompy');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Qn [m3/min]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Hp [m]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Producent');
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site203_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site203_array'][$i]['pumpName']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site203_array'][$i]['qN']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site203_array'][$i]['hP']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site203_array'][$i]['mfc']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Katalog pomp');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Katalog silników</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Katalog silników</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Typ silnika</th>
|
||||
<th>Napięcie [V]</th>
|
||||
<th>Moc [kW]</th>
|
||||
<th>Producent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site204_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site204_array'][$i]['engName']."</td>
|
||||
<td>".$_SESSION['site204_array'][$i]['engVoltage']."</td>
|
||||
<td>".$_SESSION['site204_array'][$i]['engPower']."</td>
|
||||
<td>".$_SESSION['site204_array'][$i]['mfc']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Katalog_silnikow.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:E1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:E1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Katalog silników');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Typ silnika');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Napiêcie [V]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Moc [kW]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Producent');
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site204_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site204_array'][$i]['engName']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site204_array'][$i]['engVoltage']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site204_array'][$i]['engPower']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site204_array'][$i]['mfc']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Katalog silników');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Stan pomp</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Stan pomp</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Typ pompy</th>
|
||||
<th>Nowe</th>
|
||||
<th>Rezerwa</th>
|
||||
<th>Remont</th>
|
||||
<th>Eksploatacja SPM</th>
|
||||
<th>Bestgum</th>
|
||||
<th>Kasacja [w likwidacji]</th>
|
||||
<th>Kasacja [zatopione]</th>
|
||||
<th>Razem</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
$sum_nowe=0;
|
||||
$sum_rezerwa=0;
|
||||
$sum_remont=0;
|
||||
$sum_eksp_spm=0;
|
||||
$sum_bestgum=0;
|
||||
$sum_kas_lik=0;
|
||||
$sum_kas_zatop=0;
|
||||
$sum_pumpcount=0;
|
||||
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site303_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['pumpName']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['nowe']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['rezerwa']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['remont']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['eksp_spm']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['bestgum']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['kas_lik']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['kas_zatop']."</td>
|
||||
<td>".$_SESSION['site303_array'][$i]['pumpcount']."</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
if ($_SESSION['site303_array'][$i]['nowe']>0) $sum_nowe+=$_SESSION['site303_array'][$i]['nowe'];
|
||||
if ($_SESSION['site303_array'][$i]['rezerwa']>0) $sum_rezerwa+=$_SESSION['site303_array'][$i]['rezerwa'];
|
||||
if ($_SESSION['site303_array'][$i]['remont']>0) $sum_remont+=$_SESSION['site303_array'][$i]['remont'];
|
||||
if ($_SESSION['site303_array'][$i]['eksp_spm']>0) $sum_eksp_spm+=$_SESSION['site303_array'][$i]['eksp_spm'];
|
||||
if ($_SESSION['site303_array'][$i]['bestgum']>0) $sum_bestgum+=$_SESSION['site303_array'][$i]['bestgum'];
|
||||
if ($_SESSION['site303_array'][$i]['kas_lik']>0) $sum_kas_lik+=$_SESSION['site303_array'][$i]['kas_lik'];
|
||||
if ($_SESSION['site303_array'][$i]['kas_zatop']>0) $sum_kas_zatop+=$_SESSION['site303_array'][$i]['kas_zatop'];
|
||||
if ($_SESSION['site303_array'][$i]['pumpcount']>0) $sum_pumpcount+=$_SESSION['site303_array'][$i]['pumpcount'];
|
||||
}
|
||||
|
||||
echo"
|
||||
<tr>
|
||||
<td colspan=2>RAZEM</td>
|
||||
<td>".$sum_nowe."</td>
|
||||
<td>".$sum_rezerwa."</td>
|
||||
<td>".$sum_remont."</td>
|
||||
<td>".$sum_eksp_spm."</td>
|
||||
<td>".$sum_bestgum."</td>
|
||||
<td>".$sum_kas_lik."</td>
|
||||
<td>".$sum_kas_zatop."</td>
|
||||
<td>".$sum_pumpcount."</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Stan_pomp.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:J1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:J1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Stan pomp');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Typ pompy');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Nowe');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Rezerwa');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Remont');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F2', 'Eksploatacja SPM');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G2', 'Bestgum');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H2', 'Kasacja [w likwidacji]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I2', 'Kasacja [zatopione]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J2', 'Razem');
|
||||
|
||||
$sum_nowe=0;
|
||||
$sum_rezerwa=0;
|
||||
$sum_remont=0;
|
||||
$sum_eksp_spm=0;
|
||||
$sum_bestgum=0;
|
||||
$sum_kas_lik=0;
|
||||
$sum_kas_zatop=0;
|
||||
$sum_pumpcount=0;
|
||||
|
||||
for($i=0;$i<count($_SESSION['site303_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site303_array'][$i]['pumpName']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site303_array'][$i]['nowe']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site303_array'][$i]['rezerwa']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site303_array'][$i]['remont']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $_SESSION['site303_array'][$i]['eksp_spm']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $_SESSION['site303_array'][$i]['bestgum']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $_SESSION['site303_array'][$i]['kas_lik']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I'.($i+3), $_SESSION['site303_array'][$i]['kas_zatop']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J'.($i+3), $_SESSION['site303_array'][$i]['pumpcount']);
|
||||
|
||||
if ($_SESSION['site303_array'][$i]['nowe']>0) $sum_nowe+=$_SESSION['site303_array'][$i]['nowe'];
|
||||
if ($_SESSION['site303_array'][$i]['rezerwa']>0) $sum_rezerwa+=$_SESSION['site303_array'][$i]['rezerwa'];
|
||||
if ($_SESSION['site303_array'][$i]['remont']>0) $sum_remont+=$_SESSION['site303_array'][$i]['remont'];
|
||||
if ($_SESSION['site303_array'][$i]['eksp_spm']>0) $sum_eksp_spm+=$_SESSION['site303_array'][$i]['eksp_spm'];
|
||||
if ($_SESSION['site303_array'][$i]['bestgum']>0) $sum_bestgum+=$_SESSION['site303_array'][$i]['bestgum'];
|
||||
if ($_SESSION['site303_array'][$i]['kas_lik']>0) $sum_kas_lik+=$_SESSION['site303_array'][$i]['kas_lik'];
|
||||
if ($_SESSION['site303_array'][$i]['kas_zatop']>0) $sum_kas_zatop+=$_SESSION['site303_array'][$i]['kas_zatop'];
|
||||
if ($_SESSION['site303_array'][$i]['pumpcount']>0) $sum_pumpcount+=$_SESSION['site303_array'][$i]['pumpcount'];
|
||||
|
||||
}
|
||||
|
||||
$i++;
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), 'RAZEM');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $sum_nowe);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $sum_rezerwa);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $sum_remont);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $sum_eksp_spm);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $sum_bestgum);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $sum_kas_lik);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I'.($i+3), $sum_kas_zatop);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J'.($i+3), $sum_pumpcount);
|
||||
|
||||
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Stan pomp');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Stan silników</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Stan silników</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Typ silnika</th>
|
||||
<th>Nowe</th>
|
||||
<th>Rezerwa</th>
|
||||
<th>Remont</th>
|
||||
<th>Eksploatacja SPM</th>
|
||||
<th>Bestgum</th>
|
||||
<th>Kasacja [w likwidacji]</th>
|
||||
<th>Kasacja [zatopione]</th>
|
||||
<th>Razem</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
$sum_nowe=0;
|
||||
$sum_rezerwa=0;
|
||||
$sum_remont=0;
|
||||
$sum_eksp_spm=0;
|
||||
$sum_bestgum=0;
|
||||
$sum_kas_lik=0;
|
||||
$sum_kas_zatop=0;
|
||||
$sum_pumpcount=0;
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site304_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['engName']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['nowe']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['rezerwa']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['remont']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['eksp_spm']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['bestgum']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['kas_lik']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['kas_zatop']."</td>
|
||||
<td>".$_SESSION['site304_array'][$i]['engcount']."</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
|
||||
if ($_SESSION['site304_array'][$i]['nowe']>0) $sum_nowe+=$_SESSION['site304_array'][$i]['nowe'];
|
||||
if ($_SESSION['site304_array'][$i]['rezerwa']>0) $sum_rezerwa+=$_SESSION['site304_array'][$i]['rezerwa'];
|
||||
if ($_SESSION['site304_array'][$i]['remont']>0) $sum_remont+=$_SESSION['site304_array'][$i]['remont'];
|
||||
if ($_SESSION['site304_array'][$i]['eksp_spm']>0) $sum_eksp_spm+=$_SESSION['site304_array'][$i]['eksp_spm'];
|
||||
if ($_SESSION['site304_array'][$i]['bestgum']>0) $sum_bestgum+=$_SESSION['site304_array'][$i]['bestgum'];
|
||||
if ($_SESSION['site304_array'][$i]['kas_lik']>0) $sum_kas_lik+=$_SESSION['site304_array'][$i]['kas_lik'];
|
||||
if ($_SESSION['site304_array'][$i]['kas_zatop']>0) $sum_kas_zatop+=$_SESSION['site304_array'][$i]['kas_zatop'];
|
||||
if ($_SESSION['site304_array'][$i]['engcount']>0) $sum_pumpcount+=$_SESSION['site304_array'][$i]['engcount'];
|
||||
|
||||
}
|
||||
|
||||
echo"
|
||||
<tr>
|
||||
<td colspan=2>RAZEM</td>
|
||||
<td>".$sum_nowe."</td>
|
||||
<td>".$sum_rezerwa."</td>
|
||||
<td>".$sum_remont."</td>
|
||||
<td>".$sum_eksp_spm."</td>
|
||||
<td>".$sum_bestgum."</td>
|
||||
<td>".$sum_kas_lik."</td>
|
||||
<td>".$sum_kas_zatop."</td>
|
||||
<td>".$sum_pumpcount."</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Stan_silnikow.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:J1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:J1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Stan silników');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Typ silnika');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Nowe');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Rezerwa');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Remont');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F2', 'Eksploatacja SPM');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G2', 'Bestgum');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H2', 'Kasacja [w likwidacji]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I2', 'Kasacja [zatopione]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J2', 'Razem');
|
||||
|
||||
$sum_nowe=0;
|
||||
$sum_rezerwa=0;
|
||||
$sum_remont=0;
|
||||
$sum_eksp_spm=0;
|
||||
$sum_bestgum=0;
|
||||
$sum_kas_lik=0;
|
||||
$sum_kas_zatop=0;
|
||||
$sum_pumpcount=0;
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site304_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site304_array'][$i]['engName']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site304_array'][$i]['nowe']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site304_array'][$i]['rezerwa']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site304_array'][$i]['remont']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $_SESSION['site304_array'][$i]['eksp_spm']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $_SESSION['site304_array'][$i]['bestgum']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $_SESSION['site304_array'][$i]['kas_lik']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I'.($i+3), $_SESSION['site304_array'][$i]['kas_zatop']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J'.($i+3), $_SESSION['site304_array'][$i]['engcount']);
|
||||
|
||||
if ($_SESSION['site304_array'][$i]['nowe']>0) $sum_nowe+=$_SESSION['site304_array'][$i]['nowe'];
|
||||
if ($_SESSION['site304_array'][$i]['rezerwa']>0) $sum_rezerwa+=$_SESSION['site304_array'][$i]['rezerwa'];
|
||||
if ($_SESSION['site304_array'][$i]['remont']>0) $sum_remont+=$_SESSION['site304_array'][$i]['remont'];
|
||||
if ($_SESSION['site304_array'][$i]['eksp_spm']>0) $sum_eksp_spm+=$_SESSION['site304_array'][$i]['eksp_spm'];
|
||||
if ($_SESSION['site304_array'][$i]['bestgum']>0) $sum_bestgum+=$_SESSION['site304_array'][$i]['bestgum'];
|
||||
if ($_SESSION['site304_array'][$i]['kas_lik']>0) $sum_kas_lik+=$_SESSION['site304_array'][$i]['kas_lik'];
|
||||
if ($_SESSION['site304_array'][$i]['kas_zatop']>0) $sum_kas_zatop+=$_SESSION['site304_array'][$i]['kas_zatop'];
|
||||
if ($_SESSION['site304_array'][$i]['engcount']>0) $sum_pumpcount+=$_SESSION['site304_array'][$i]['engcount'];
|
||||
|
||||
}
|
||||
|
||||
$i++;
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), 'RAZEM');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $sum_nowe);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $sum_rezerwa);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $sum_remont);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $sum_eksp_spm);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $sum_bestgum);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $sum_kas_lik);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I'.($i+3), $sum_kas_zatop);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J'.($i+3), $sum_pumpcount);
|
||||
|
||||
|
||||
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Stan silników');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once('../fpdf/fpdf.php');
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', 'B', 15);
|
||||
// Title
|
||||
$title = iconv('utf-8','windows-1250','Lista studni');
|
||||
$this->Cell(0,10,$title,0,0,'L');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
// Page number
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf -> SetFont('arial_ce', 'B', 8);
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250','Lp.'),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250','Studnia'),1,0,'C');
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250','Bariera'),1,0,'C');
|
||||
$pdf->Cell(20,7,iconv('utf-8','windows-1250','Typ pompy'),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250','Nr pompy'),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250','Typ silnika'),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250','Nr silnika'),1,0,'C');
|
||||
$pdf->Cell(40,7,iconv('utf-8','windows-1250','Opis'),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf -> SetFont('arial_ce', '', 7);
|
||||
|
||||
for($i=0;$i<count($_SESSION['site401_array']);$i++)
|
||||
{
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250',$i+1),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['well_name']),1,0,'C');
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['bariera']),1,0,'C');
|
||||
$pdf->Cell(20,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['pup_name']),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['pup_no']),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['eng_name']),1,0,'C');
|
||||
$pdf->Cell(25,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['eng_no']),1,0,'C');
|
||||
$pdf->Cell(40,7,iconv('utf-8','windows-1250',$_SESSION['site401_array'][$i]['desc']),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
}
|
||||
$pdf->Output();
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Lista studni</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Lista studni</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Bariera</th>
|
||||
<th>Pompa</th>
|
||||
<th>Numer fabryczny pompy [S/N]</th>
|
||||
<th>Silnik</th>
|
||||
<th>Numer fabryczny silnika [S/N]</th>
|
||||
<th>Typ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site401_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['well_name']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['bariera']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['pup_name']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['pup_no']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['eng_name']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['eng_no']."</td>
|
||||
<td>".$_SESSION['site401_array'][$i]['desc']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Lista_studni.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:H1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:H1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Lista studni');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Studnia');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Bariera');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Pompa');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Numer fabryczny pompy [S/N]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F2', 'Silnik');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G2', 'Numer fabryczny silnika [S/N]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H2', 'Typ');
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site401_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site401_array'][$i]['well_name']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site401_array'][$i]['bariera']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site401_array'][$i]['pup_name']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site401_array'][$i]['pup_no']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $_SESSION['site401_array'][$i]['eng_name']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $_SESSION['site401_array'][$i]['eng_no']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $_SESSION['site401_array'][$i]['desc']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Lista studni');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,188 @@
|
||||
<?php session_start();
|
||||
//============================================================+
|
||||
// File name : example_006.php
|
||||
// Begin : 2008-03-04
|
||||
// Last Update : 2013-05-14
|
||||
//
|
||||
// Description : Example 006 for TCPDF class
|
||||
// WriteHTML and RTL support
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
// (c) Copyright:
|
||||
// Nicola Asuni
|
||||
// Tecnick.com LTD
|
||||
// www.tecnick.com
|
||||
// info@tecnick.com
|
||||
//============================================================+
|
||||
|
||||
/**
|
||||
* Creates an example PDF TEST document using TCPDF
|
||||
* @package com.tecnick.tcpdf
|
||||
* @abstract TCPDF - Example: WriteHTML and RTL support
|
||||
* @author Nicola Asuni
|
||||
* @since 2008-03-04
|
||||
*/
|
||||
|
||||
// Include the main TCPDF library (search for installation path).
|
||||
require_once('../tcpdf/tcpdf.php');
|
||||
|
||||
// create new PDF document
|
||||
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
|
||||
|
||||
// set document information
|
||||
$pdf->SetCreator(PDF_CREATOR);
|
||||
$pdf->SetAuthor('SoftSPM');
|
||||
$pdf->SetTitle('Historia pomiarów');
|
||||
$pdf->SetSubject('Historia pomiarów');
|
||||
$pdf->SetKeywords('Historia pomiarów');
|
||||
|
||||
// set default header data
|
||||
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 006', PDF_HEADER_STRING);
|
||||
$pdf->SetHeaderData
|
||||
( '',
|
||||
0,
|
||||
$_SESSION['site401ahis_devName'].' - historia pomiarów',
|
||||
'Od: '.$_SESSION['site401ahis_from'].' do: '.$_SESSION['site401ahis_to'],
|
||||
array(0,0,250),
|
||||
array(0,0,0)
|
||||
);
|
||||
|
||||
// set header and footer fonts
|
||||
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
|
||||
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
|
||||
|
||||
// set default monospaced font
|
||||
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
|
||||
|
||||
// set margins
|
||||
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
|
||||
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
|
||||
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
|
||||
|
||||
// set auto page breaks
|
||||
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
|
||||
// set image scale factor
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
// set font
|
||||
$pdf->SetFont('dejavusans', '', 10);
|
||||
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
|
||||
$tbl_header = '<table style="width: 640px;" cellspacing="0">';
|
||||
$tbl_footer = '</table>';
|
||||
$tbl = '
|
||||
<tr style="background-color: #ffff00">
|
||||
<td style="border: 1px solid #eaeaea; width: 30px; height: 10px; font-size: 7px;">Lp.</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 90px; height: 10px; font-size: 7px; text-align: center;">Data</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">H<sub>ST</sub> [m]</td>
|
||||
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">H<sub>D</sub> [m]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 60px; height: 10px; font-size: 7px; text-align: center;">Q [m<sup>3</sup>/min]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">p<sub>1</sub> [m]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">p<sub>2</sub> [m]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">I [A]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">U [V]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">P<sub>e</sub> [kW]</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 40px; height: 10px; font-size: 7px; text-align: center;">cos(φ)</td>
|
||||
<td style="border: 1px solid #eaeaea; width: 100px; height: 10px; font-size: 7px; text-align: center;">Czas pracy [h]</td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
|
||||
|
||||
require_once('../fpdf/fpdf.php');
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', 'B', 15);
|
||||
// Title
|
||||
$title = iconv('utf-8','windows-1250',$_SESSION['well_details']['wellName'].' - historia pomiarów');
|
||||
$this->Cell(0,8,$title,0,1,'L');
|
||||
|
||||
$this -> SetFont('arial_ce', 'I', 10);
|
||||
|
||||
$title = iconv('utf-8','windows-1250','Od: '.$_SESSION['site401ahis_from'].' do: '.$_SESSION['site401ahis_to']);
|
||||
$this->Cell(0,8,$title,0,0,'L');
|
||||
// Line break
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
// Page number
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf -> SetFont('arial_ce', 'B', 7);
|
||||
$pdf->Cell(10,6,iconv('utf-8','windows-1250','Lp.'),1,0,'C');
|
||||
$pdf->Cell(25,6,iconv('utf-8','windows-1250','Data'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','HST [m]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','HD [m]'),1,0,'C');
|
||||
$pdf->Cell(20,6,iconv('utf-8','windows-1250','Q [m3/min]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','p1 [m]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','p2 [m]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','I [A]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','U [V]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','Pe [kW]'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','cos(fi)'),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250','Tp [h]'),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf -> SetFont('arial_ce', '', 6);
|
||||
|
||||
for($i=0;$i<count($_SESSION['site401ahis_array']);$i++)
|
||||
{
|
||||
$pdf->Cell(10,6,iconv('utf-8','windows-1250',$i+1),1,0,'C');
|
||||
$pdf->Cell(25,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_date']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_hst']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_hd']),1,0,'C');
|
||||
$pdf->Cell(20,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_q']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_p1']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_p2']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_I']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_U']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_PE']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_cos']),1,0,'C');
|
||||
$pdf->Cell(15,6,iconv('utf-8','windows-1250',$_SESSION['site401ahis_array'][$i]['his_work_time']),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
}
|
||||
|
||||
$pdf->Output();
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Historia agregatów</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1><?php echo $_SESSION['site401ahis_devName']; ?> - historia pomiarów [<?php echo $_SESSION['site401ahis_from']; ?> - <?php echo $_SESSION['site401ahis_to']; ?>]</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Data</th>
|
||||
<th>H<sub>ST</sub> [m]</th>
|
||||
<th>H<sub>D</sub> [m]</th>
|
||||
<th>Q [m<sup>3</sup>/min] </th>
|
||||
<th>p<sub>1</sub> [m]</th>
|
||||
<th>p<sub>2</sub> [m]</th>
|
||||
<th>I [A]</th>
|
||||
<th>U [V]</th>
|
||||
<th>P<sub>e</sub> [kW]</th>
|
||||
<th>cos(φ)</th>
|
||||
<th>Czas pracy [h]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site401ahis_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site401ahis_array'][$i]['his_date']."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_hst'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_hd'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_q'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_p1'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_p2'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_I'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_U'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_PE'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_cos'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_work_time'])."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Historia_pom.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:L1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:L1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', $_SESSION['site401ahis_devName'].' - historia pomiarów ['.$_SESSION['site401ahis_from'].' - '.$_SESSION['site401ahis_to'].']');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Data');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Hst [m]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Hd [m]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Q [m3/min]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F2', 'p1 [m]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G2', 'p2 [m]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H2', 'I [A]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I2', 'U [V]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J2', 'Pe [kW]');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('K2', 'cos (fi)');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('L2', 'Czas pracy [h]');
|
||||
|
||||
for($i=0;$i<count($_SESSION['site401ahis_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site401ahis_array'][$i]['his_date']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site401ahis_array'][$i]['his_hst']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site401ahis_array'][$i]['his_hd']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site401ahis_array'][$i]['his_q']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $_SESSION['site401ahis_array'][$i]['his_p1']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $_SESSION['site401ahis_array'][$i]['his_p2']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('H'.($i+3), $_SESSION['site401ahis_array'][$i]['his_I']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('I'.($i+3), $_SESSION['site401ahis_array'][$i]['his_U']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('J'.($i+3), $_SESSION['site401ahis_array'][$i]['his_PE']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('K'.($i+3), $_SESSION['site401ahis_array'][$i]['his_cos']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('L'.($i+3), $_SESSION['site401ahis_array'][$i]['his_work_time']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('historia pomiarów');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Lista pomiarów</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
// dla piezometrów
|
||||
if (!empty($_SESSION['site404pdet_array']))
|
||||
{
|
||||
$_SESSION['site401pdet_array']=$_SESSION['site404pdet_array'];
|
||||
$_SESSION['site401pdet_dic'][0]['DIC_POL_LANG'] = 'Zwierciadło statyczne H<sub>ST</sub> [m]';
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1><?php echo $_SESSION['site401pdet_dic'][0]['DIC_POL_LANG'];?></h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Data pomiaru</th>
|
||||
<th>Wartość</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site401pdet_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site401pdet_array'][$i]['water_audit']."</td>
|
||||
<td>".$_SESSION['site401pdet_array'][$i]['water_value']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Lista_pomiarow.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:C1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:C1')->applyFromArray($styleArray);
|
||||
|
||||
|
||||
// dla piezometrów
|
||||
if (!empty($_SESSION['site404pdet_array']))
|
||||
{
|
||||
$_SESSION['site401pdet_array']=$_SESSION['site404pdet_array'];
|
||||
$_SESSION['site401pdet_dic'][0]['DIC_POL_LANG'] = 'Zwierciadło statyczne H<sub>ST</sub> [m]';
|
||||
}
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', str_replace(array('<sub>','</sub>','<sup>','</sup>'), array('','','',''), $_SESSION['site401pdet_dic'][0]['DIC_POL_LANG']));
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Data pomiaru');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Wartość');
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site401pdet_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site401pdet_array'][$i]['water_audit']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site401pdet_array'][$i]['water_value']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Lista pomiarów');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once('../fpdf/fpdf.php');
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', 'B', 15);
|
||||
// Title
|
||||
$title = iconv('utf-8','windows-1250','Lista piezometrów');
|
||||
$this->Cell(0,10,$title,0,0,'L');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
// Page number
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf -> SetFont('arial_ce', 'B', 8);
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250','Lp.'),1,0,'C');
|
||||
$pdf->Cell(40,7,iconv('utf-8','windows-1250','Nazwa'),1,0,'C');
|
||||
$pdf->Cell(20,7,iconv('utf-8','windows-1250','Bariera'),1,0,'C');
|
||||
$pdf->Cell(35,7,iconv('utf-8','windows-1250','Poziom wody [m]'),1,0,'C');
|
||||
$pdf->Cell(30,7,iconv('utf-8','windows-1250','Głębokość [m]'),1,0,'C');
|
||||
$pdf->Cell(50,7,iconv('utf-8','windows-1250','Opis'),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf -> SetFont('arial_ce', '', 7);
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site404_array']);$i++)
|
||||
{
|
||||
|
||||
$pdf->Cell(15,7,iconv('utf-8','windows-1250',$i+1),1,0,'C');
|
||||
$pdf->Cell(40,7,iconv('utf-8','windows-1250',$_SESSION['site404_array'][$i]['name']),1,0,'C');
|
||||
$pdf->Cell(20,7,iconv('utf-8','windows-1250',$_SESSION['site404_array'][$i]['bariera']),1,0,'C');
|
||||
$pdf->Cell(35,7,iconv('utf-8','windows-1250',$_SESSION['site404_array'][$i]['hstm']),1,0,'C');
|
||||
$pdf->Cell(30,7,iconv('utf-8','windows-1250',$_SESSION['site404_array'][$i]['depth']),1,0,'C');
|
||||
$pdf->Cell(50,7,iconv('utf-8','windows-1250',$_SESSION['site404_array'][$i]['desc']),1,0,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
}
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Wykaz energochłonności</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Wykaz energochłonności dla studni</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Bariera</th>
|
||||
<th>Energochłonność</th>
|
||||
<th>Opis</th>
|
||||
<th>Status</th>
|
||||
<th>Data</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site809_rap001']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['a']."</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['b']."</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['c']."</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['d']."</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['e']."</td>
|
||||
<td>".$_SESSION['site809_rap001'][$i]['f']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Łączna ilość agregatów pompowych zabudowanych w studniach</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Łączna ilość agregatów pompowych zabudowanych w studniach</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Bariera</th>
|
||||
<th>Typ pompy</th>
|
||||
<th>Nr pompy</th>
|
||||
<th>Typ silnika</th>
|
||||
<th>Nr silnika</th>
|
||||
<th>Opis</th>
|
||||
<th>Oddział</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site809_rap002']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['a']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['b']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['c']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['d']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['e']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['f']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['g']."</td>
|
||||
<td>".$_SESSION['site809_rap002'][$i]['h']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Parametry pracy studni i układu pompowego</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Parametry pracy studni i układu pompowego</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Bariera</th>
|
||||
<th>H<sub>ST</sub> [m]</th>
|
||||
<th>H<sub>D</sub> [m]</th>
|
||||
<th>Q [m<sup>3</sup>/min]</th>
|
||||
<th>p<sub>1</sub> [m]</th>
|
||||
<th>p<sub>2</sub> [m]</th>
|
||||
<th>I [A]</th>
|
||||
<th>U [V]</th>
|
||||
<th>P<sub>e</sub> [kW]</th>
|
||||
<th>t [h]</th>
|
||||
<th>Diagnostyka</th>
|
||||
<th>Data</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site809_rap003']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['a']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['b']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['c']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['d']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['e']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['f']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['g']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['h']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['i']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['j']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['k']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['l']."</td>
|
||||
<td>".$_SESSION['site809_rap003'][$i]['m']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Wykaz pracy studni</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Wykaz pracy studni</h1>
|
||||
<?php echo'Okres obliczeniowy: '.$_SESSION['site809_rap004'][0]['fr'].' - '.$_SESSION['site809_rap004'][0]['to']; ?><br/>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<?php
|
||||
$newBariera=null;
|
||||
for($i=0;$i<count($_SESSION['site809_rap004']);$i++)
|
||||
{
|
||||
if ($newBariera!=$_SESSION['site809_rap004'][$i]['bar'])
|
||||
{
|
||||
$newBariera=$_SESSION['site809_rap004'][$i]['bar'];
|
||||
|
||||
echo'
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="13">Bariera '.$newBariera.'</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Typ</th>
|
||||
<th>Pompa</th>
|
||||
<th>Q<sub>n</sub> [m<sup>3</sup>/min]</th>
|
||||
<th>Silnik</th>
|
||||
<th>Moc [kW]</th>
|
||||
<th>Q<sub>śr</sub> [m<sup>3</sup>/min]</th>
|
||||
<th>T<sub>p</sub> [h]</th>
|
||||
<th>V [m<sup>3</sup>]</th>
|
||||
<th>H<sub>D</sub> [m]</th>
|
||||
<th>H<sub>ST</sub> [m]</th>
|
||||
<th>T<sub>W</sub> [<sup>o</sup>C]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
';
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['a']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['b']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['c']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['d']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['e']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['f']."</td>
|
||||
|
||||
<td>".$_SESSION['site809_rap004'][$i]['g']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['h']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['i']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['j']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['k']."</td>
|
||||
<td>".$_SESSION['site809_rap004'][$i]['l']."</td>
|
||||
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Wykaz obiektów na stanie wydziału</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1>Wykaz obiektów na stanie wydziału - <?php echo $_SESSION['syndis_eq_stock']; ?></h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
|
||||
<?php
|
||||
$newBariera=null;
|
||||
for($i=0;$i<count($_SESSION['site809_rap005']);$i++)
|
||||
{
|
||||
if ($newBariera!=$_SESSION['site809_rap005'][$i]['bar'])
|
||||
{
|
||||
$newBariera=$_SESSION['site809_rap005'][$i]['bar'];
|
||||
|
||||
echo'
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="13">Bariera '.$newBariera.'</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Studnia</th>
|
||||
<th>Typ</th>
|
||||
<th>Data oddania</th>
|
||||
<th>X</th>
|
||||
<th>Y</th>
|
||||
<th>Rzędna pierwotna</th>
|
||||
<th>Rzędna aktualna</th>
|
||||
<th>Głębokość LS</th>
|
||||
</tr>
|
||||
</thead>
|
||||
';
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['a']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['b']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['c']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['d']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['e']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['f']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['g']."</td>
|
||||
<td>".$_SESSION['site809_rap005'][$i]['h']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,182 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).' w studni: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
//Label - new
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Zabudowa agregatu pompowego'),1,1,'C',1);
|
||||
|
||||
//Typ pompy i nr pompy do zabudowy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ pompy i nr pompy do zabudowy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_newAggArray'][0]['ONA_PUMP'])),1,1,'L');
|
||||
|
||||
//Typ silnika i nr silnika do zabudowy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ silnika i nr silnika do zabudowy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_newAggArray'][0]['ONA_ENG'])),1,1,'L');
|
||||
|
||||
//Głębokość zabudowy agregatu pompowego [m]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość zabudowy agregatu [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_newAggArray'][0]['ONA_GLEB_AG']),1,1,'L');
|
||||
|
||||
//Przewód zasilający
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Przewód zasilający OGŁ / dł. [m] (nr plomb)'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace('(',' (',$_SESSION['site810inf_newAggArray'][0]['ONA_CABLE'])),1,1,'L');
|
||||
|
||||
//Średnica kolektora tłocznego [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica kolektora tłocznego [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_newAggArray'][0]['ONA_SRED_KOL']),1,1,'L');
|
||||
|
||||
//Sonda hydrostatyczna
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Sonda hydrostatyczna'),1,0,'L');
|
||||
if (strlen($_SESSION['site810inf_newAggArray'][0]['ONA_SONDA'])>20)
|
||||
$showField = str_replace(array(', nr',', dł'),array(' nr',' dł'),$_SESSION['site810inf_newAggArray'][0]['ONA_SONDA']);
|
||||
else
|
||||
$showField = null;
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$showField),1,1,'L');
|
||||
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Dodatkowy opis'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).' w studni: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Głębokość zabudowy agregatu pompowego [m]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość zabudowy agregatu [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_AG']),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanej pompy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanej pompy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_PUMP'])),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanego silnika
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanego silnika'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_ENG'])),1,1,'L');
|
||||
|
||||
//Średnica kolektora tłocznego [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica kolektora tłocznego [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED_KOL']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Sonda hydrostatyczna
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Sonda hydrostatyczna'),1,0,'L');
|
||||
if (strlen($_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA'])>20)
|
||||
$showField = str_replace(array(', nr',', dł'),array(' nr',' dł'),$_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA']);
|
||||
else
|
||||
$showField = null;
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$showField),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Dodatkowy opis'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).' w studni: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Głębokość zabudowy agregatu pompowego [m]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość zabudowy agregatu [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_AG']),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanej pompy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanej pompy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_PUMP'])),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanego silnika
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanego silnika'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_ENG'])),1,1,'L');
|
||||
|
||||
//Średnica kolektora tłocznego [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica kolektora tłocznego [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED_KOL']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Sonda hydrostatyczna
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Sonda hydrostatyczna'),1,0,'L');
|
||||
if (strlen($_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA'])>20)
|
||||
$showField = str_replace(array(', nr',', dł'),array(' nr',' dł'),$_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA']);
|
||||
else
|
||||
$showField = null;
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$showField),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Dodatkowy opis'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,213 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 12;
|
||||
$lineWidth = 8;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Załącznik nr 4 do umowy nr ……………………');
|
||||
$rigth = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC'].', dnia: '.date('Y-m-d'));
|
||||
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,$rigth,0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(95,10,iconv('utf-8','windows-1250','* - niepotrzebne skreślić'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Protokół odbioru nr: …………/………'),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','1. Opis wykonanych prac.'),0,1,'L');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID']).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, iconv('utf-8','windows-1250','Typ/nazwa urządzenia wykonującego pracę'), 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,2*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_FINISH_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów wyczyszczonych [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Dokumentacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'TAK / NIE*',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, "".iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z czyszczeniem')."\n \n ", 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,4*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','2. Opis prowadzonych innych prac.'),0,1,'L');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Inne prace'),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Rodzaj prac'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Typ/nazwa urządzenia'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,50,iconv('utf-8','windows-1250','Opis wykonanych prac'),1,0,'L');
|
||||
$pdf->Cell(130,50,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Uwagi dozoru Wykonawcy'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','3. Zakończenie prac przy czyszczeniu.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Uwagi Zleceniodawcy'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Decyzja Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','4. Potwierdzenie zakończenia czyszczenia.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel wykonawcy prac'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,1,'L');
|
||||
|
||||
|
||||
$pdf->Cell(0,10,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', '', 6);
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający – 1 egz.'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','2. Wykonawca - 1 egz.'),0,1,'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-20);
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(0,5,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$this->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający - 1egz.'),0,1,'L');
|
||||
$this->Cell(95,3,iconv('utf-8','windows-1250','2. Wykonawca - 1egz.'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,6,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry piezometru '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja piezometru'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość właściwa
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Zasyp piezometru [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Il metrów do wyczyszczenia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów do wyczyszczenia'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,$_SESSION['site810inf_ordMainArray'][0]['OWP_CLEAN'],1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica piezometru [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
// Dokumentacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Filtr [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / dodatkowe informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-20);
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(0,5,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$this->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający - 1egz.'),0,1,'L');
|
||||
$this->Cell(95,3,iconv('utf-8','windows-1250','2. Wykonawca - 1egz.'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,6,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość właściwa
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Ilość metrów do wyczyszczenia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów do wyczyszczenia'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,$_SESSION['site810inf_ordMainArray'][0]['OWP_CLEAN'],1,1,'L');
|
||||
|
||||
|
||||
//Zwierciadło statyczne
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Zwierciadło statyczne [m] / data'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,str_replace('/',' / ',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZWIERC']),1,1,'L');
|
||||
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
// Dokumentacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Dokumentacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / dodatkowe informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 12;
|
||||
$lineWidth = 8;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Załącznik nr 5 do umowy nr ……………………');
|
||||
$rigth = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC'].', dnia: '.date('Y-m-d'));
|
||||
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,$rigth,0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(95,10,iconv('utf-8','windows-1250','* - niepotrzebne skreślić'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Protokół odbioru nr: …………/………'),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','1. Opis wykonanych prac.'),0,1,'L');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID']).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_FINISH_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów zlikwidowanych [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Likwidacja do rzędnej terenu*'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Dokumentacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'TAK / NIE*',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, "".iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z likwidacją')."\n \n ", 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,4*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','2. Opis prowadzonych innych prac.'),0,1,'L');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Inne prace'),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Rodzaj prac'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Typ/nazwa urządzenia'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,100,iconv('utf-8','windows-1250','Opis wykonanych prac'),1,0,'L');
|
||||
$pdf->Cell(130,100,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,50,iconv('utf-8','windows-1250','Uwagi dozoru Wykonawcy'),1,0,'L');
|
||||
$pdf->Cell(130,50,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','3. Potwierdzenie zakończenia prac przy likwidacji.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel wykonawcy prac'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,1,'L');
|
||||
|
||||
|
||||
$pdf->Cell(0,10,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', '', 6);
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający – 1 egz.'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','2. Wykonawca - 1 egz.'),0,1,'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry piezometru '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja piezometru'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp piezometru [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Do likwidacji [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica piezometru [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica piezometru [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Filtr
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Filtr [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,'',1,1,'L');
|
||||
|
||||
//Zwierciadło statyczne
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zwierciadło statyczne [m] / data'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZWIERC']),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
//Uwagi
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Uwagi'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,'',1,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / dodatkowe informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Zwierciadło statyczne
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zwierciadło statyczne [m] / data'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZWIERC']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
|
||||
//Ostatnia wydajność Q
|
||||
$wynik = mysql_query("select DRD_VALUE,DRD_AUDIT_DATE from seg_dev_resources_det where DRD_ID=(select MAX(DRD_ID) from seg_dev_resources_det where DRD_RESOURCES_DETAIL=200 and DRD_DRS_ID=".$_SESSION['site810inf_ordMainArray'][0]['ORD_DRS_ID'].")");
|
||||
if($wynik)while ($r = mysql_fetch_array($wynik))
|
||||
{
|
||||
$qV = $r["DRD_VALUE"];
|
||||
$qT = $r["DRD_AUDIT_DATE"];
|
||||
}
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Ostatnia wydajność Q [m3/min] / data'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,round($qV/60,3).' / '.substr($qT,0,10),1,1,'L');
|
||||
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / dodatkowe informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
// Include the PHPWord.php, all other classes were loaded by an autoloader
|
||||
require_once '../PHPWord/PHPWord.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Zlecenie.docx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
// Create a new PHPWord Object
|
||||
$PHPWord = new PHPWord();
|
||||
|
||||
// Every element you want to append to the word document is placed in a section. So you need a section:
|
||||
$section = $PHPWord->createSection();
|
||||
|
||||
|
||||
// Add header
|
||||
$header = $section->createHeader();
|
||||
$table = $header->addTable(array('borderSize'=>6, 'borderColor'=>'006699', 'cellMargin'=>80));
|
||||
$table->addRow();
|
||||
$table->addCell(4500)->addText('Wydział');
|
||||
$table->addCell(4500)->addText('data',array('bold'=>true, 'align'=>'right'));
|
||||
|
||||
|
||||
|
||||
// After creating a section, you can append elements:
|
||||
$section->addText('Hello world!');
|
||||
|
||||
// You can directly style your text by giving the addText function an array:
|
||||
$section->addText('Hello world! I am formatted.', array('name'=>'Tahoma', 'size'=>16, 'bold'=>true));
|
||||
|
||||
// If you often need the same style again you can create a user defined style to the word document
|
||||
// and give the addText function the name of the style:
|
||||
$PHPWord->addFontStyle('myOwnStyle', array('name'=>'Verdana', 'size'=>14, 'color'=>'1B2232'));
|
||||
$section->addText('Hello world! I am formatted by a user defined style', 'myOwnStyle');
|
||||
|
||||
// You can also putthe appended element to local object an call functions like this:
|
||||
$myTextElement = $section->addText('Hello World!');
|
||||
//$myTextElement->setBold();
|
||||
//$myTextElement->setName('Verdana');
|
||||
//$myTextElement->setSize(22);
|
||||
|
||||
// At least write the document to webspace:
|
||||
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
|
||||
//$objWriter->save('helloWorld.docx');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).' w studni: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Głębokość zabudowy agregatu pompowego [m]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość zabudowy agregatu [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_AG']),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanej pompy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanej pompy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_PUMP'])),1,1,'L');
|
||||
|
||||
//Typ i numer zabudowanego silnika
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ i numer zabudowanego silnika'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_ordMainArray'][0]['OWP_ENG'])),1,1,'L');
|
||||
|
||||
//Średnica kolektora tłocznego [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica kolektora tłocznego [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED_KOL']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Sonda hydrostatyczna
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Sonda hydrostatyczna'),1,0,'L');
|
||||
if (strlen($_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA'])>20)
|
||||
$showField = str_replace(array(', nr',', dł'),array(' nr',' dł'),$_SESSION['site810inf_ordMainArray'][0]['OWP_SONDA']);
|
||||
else
|
||||
$showField = null;
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$showField),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
|
||||
//Label - new
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Wymiana agregatu pompowego'),1,1,'C',1);
|
||||
|
||||
//Typ pompy i nr pompy do zabudowy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ pompy i nr pompy do zabudowy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_newAggArray'][0]['ONA_PUMP'])),1,1,'L');
|
||||
|
||||
//Typ silnika i nr silnika do zabudowy
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Typ silnika i nr silnika do zabudowy'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace(', nr',' nr',$_SESSION['site810inf_newAggArray'][0]['ONA_ENG'])),1,1,'L');
|
||||
|
||||
//Głębokość zabudowy agregatu pompowego [m]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość zabudowy agregatu [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_newAggArray'][0]['ONA_GLEB_AG']),1,1,'L');
|
||||
|
||||
//Przewód zasilający
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Przewód zasilający OGŁ / dł. [m] (nr plomb)'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',str_replace('(',' (',$_SESSION['site810inf_newAggArray'][0]['ONA_CABLE'])),1,1,'L');
|
||||
|
||||
//Średnica kolektora tłocznego [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica kolektora tłocznego [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_newAggArray'][0]['ONA_SRED_KOL']),1,1,'L');
|
||||
|
||||
//Sonda hydrostatyczna
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Sonda hydrostatyczna'),1,0,'L');
|
||||
if (strlen($_SESSION['site810inf_newAggArray'][0]['ONA_SONDA'])>20)
|
||||
$showField = str_replace(array(', nr',', dł'),array(' nr',' dł'),$_SESSION['site810inf_newAggArray'][0]['ONA_SONDA']);
|
||||
else
|
||||
$showField = null;
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$showField),1,1,'L');
|
||||
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Dodatkowy opis'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 12;
|
||||
$lineWidth = 8;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Załącznik nr 6 do umowy nr ……………………');
|
||||
$rigth = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC'].', dnia: '.date('Y-m-d'));
|
||||
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,$rigth,0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(95,10,iconv('utf-8','windows-1250','* - niepotrzebne skreślić'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Protokół odbioru nr: …………/………'),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','1. Opis wykonanych prac.'),0,1,'L');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID']).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, iconv('utf-8','windows-1250','Typ/nazwa urządzenia wykonującego pracę'), 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,2*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_FINISH_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Wyczyszczony zasyp do głębokości [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Wymiana przejścia (liner)*'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'TAK / NIE*',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Likwidacja do rzędnej terenu*'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, "".iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z instrumentacją')."\n \n ", 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,4*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','2. Opis prowadzonych innych prac.'),0,1,'L');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Inne prace'),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Rodzaj prac'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Typ/nazwa urządzenia'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,50,iconv('utf-8','windows-1250','Opis wykonanych prac'),1,0,'L');
|
||||
$pdf->Cell(130,50,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Uwagi dozoru Wykonawcy'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','3. Zakończenie prac przy instrumentacji .'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Uwagi Zleceniodawcy'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Decyzja Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','4.Potwierdzenie zakończenia instrumentacji.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel wykonawcy prac'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,1,'L');
|
||||
|
||||
|
||||
$pdf->Cell(0,10,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', '', 6);
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający – 1 egz.'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','2. Wykonawca - 1 egz.'),0,1,'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry piezometru '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja piezometru'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość piezometru [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica piezometru [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once('../fpdf/fpdf.php');
|
||||
require_once('../language/polish.php');
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', 'B', 15);
|
||||
// Title
|
||||
$title = iconv('utf-8','windows-1250','Lista zleceń ['.$_SESSION['site810_inDatefrom'].' - '.$_SESSION['site810_inDateto'].']');
|
||||
$this->Cell(0,10,$title,0,0,'L');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
// Page number
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
// Simple table
|
||||
function BasicTable($header, $data)
|
||||
{
|
||||
// Header
|
||||
$this->SetLineWidth(.1);
|
||||
$this -> SetFont('arial_ce', 'B', 8);
|
||||
|
||||
$this->Cell(30,7,iconv('utf-8','windows-1250',$header['1']),1,0,'C');
|
||||
$this->Cell(20,7,iconv('utf-8','windows-1250',$header['2']),1,0,'C');
|
||||
$this->Cell(15,7,iconv('utf-8','windows-1250',$header['3']),1,0,'C');
|
||||
$this->Cell(60,7,iconv('utf-8','windows-1250',$header['4']),1,0,'C');
|
||||
$this->Cell(35,7,iconv('utf-8','windows-1250',$header['5']),1,0,'C');
|
||||
$this->Cell(25,7,iconv('utf-8','windows-1250',$header['6']),1,0,'C');
|
||||
$this->Ln();
|
||||
// Data
|
||||
|
||||
$this -> SetFont('arial_ce', '', 7);
|
||||
|
||||
for($i=0;$i<count($data);$i++)
|
||||
{
|
||||
$this->Cell(30,6,iconv('utf-8','windows-1250',$data[$i]['orderNo']),1,0,'C');
|
||||
$this->Cell(20,6,iconv('utf-8','windows-1250',$data[$i]['devName']),1,0,'C');
|
||||
$this->Cell(15,6,iconv('utf-8','windows-1250',$data[$i]['bariera']),1,0,'C');
|
||||
$this->Cell(60,6,iconv('utf-8','windows-1250',$data[$i]['orderScope']),1,0,'C');
|
||||
$this->Cell(35,6,iconv('utf-8','windows-1250',$data[$i]['orderDate']),1,0,'C');
|
||||
$this->Cell(25,6,iconv('utf-8','windows-1250',$data[$i]['orderStatus']),1,0,'C');
|
||||
$this->Ln();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function FancyTable($header, $data)
|
||||
{
|
||||
// Colors, line width and bold font
|
||||
$this->SetFillColor(255,255,0);
|
||||
$this->SetTextColor(255);
|
||||
$this->SetDrawColor(128,128,0);
|
||||
$this->SetLineWidth(.1);
|
||||
$this -> SetFont('arial_ce', 'B', 8);
|
||||
// Header
|
||||
$w = array(40, 35, 40, 45);
|
||||
for($i=0;$i<count($header);$i++)
|
||||
$this->Cell($w[$i],7,$header[$i],1,0,'C',true);
|
||||
$this->Ln();
|
||||
// Color and font restoration
|
||||
$this->SetFillColor(234,234,234);
|
||||
$this->SetTextColor(0);
|
||||
$this -> SetFont('arial_ce', '', 8);
|
||||
// Data
|
||||
$fill = false;
|
||||
foreach($data as $row)
|
||||
{
|
||||
$this->Cell($w[0],4,$row[0],'LR',0,'L',$fill);
|
||||
$this->Cell($w[1],4,$row[1],'LR',0,'L',$fill);
|
||||
$this->Cell($w[2],4,number_format($row[2]),'LR',0,'R',$fill);
|
||||
$this->Cell($w[3],4,number_format($row[3]),'LR',0,'R',$fill);
|
||||
$this->Ln();
|
||||
$fill = !$fill;
|
||||
}
|
||||
// Closing line
|
||||
$this->Cell(array_sum($w),0,'','T');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',12);
|
||||
|
||||
$head = array(
|
||||
'1'=>$lab_Field_site810_001,
|
||||
'2'=>$lab_Field_site810_002,
|
||||
'3'=>$lab_Field_site810_003,
|
||||
'4'=>$lab_Field_site810_004,
|
||||
'5'=>$lab_Field_site810_005,
|
||||
'6'=>$lab_Field_site810_006
|
||||
);
|
||||
|
||||
$pdf->BasicTable($head, $_SESSION['site810_array']);
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php 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">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Lista zleceń</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1><?php echo 'Lista zleceń ['.$_SESSION['site810_inDatefrom'].' - '.$_SESSION['site810_inDateto'].']'; ?></h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th> Nr zlecenia</th>
|
||||
<th>Obiekt</th>
|
||||
<th>Bariera</th>
|
||||
<th>Zakres zlecenia</th>
|
||||
<th>Data zlecenia</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site810_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['orderNo']."</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['devName']."</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['bariera']."</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['orderScope']."</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['orderDate']."</td>
|
||||
<td>".$_SESSION['site810_array'][$i]['orderStatus']."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-20);
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(0,5,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$this->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający - 1egz.'),0,1,'L');
|
||||
$this->Cell(95,3,iconv('utf-8','windows-1250','2. Wykonawca - 1egz.'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,6,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Uaktywnianie piezometru '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Data rozpoczęcia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,1,'L');
|
||||
|
||||
//Głębokość właściwa
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S'].' / '.$_SESSION['site810inf_ordMainArray'][0]['OWP_RZDNA']),1,1,'L');
|
||||
|
||||
//Głębokość zasypu
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Głębokość do zasypu piezometru [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Ilość do wyczyszczenia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów do wyczyszczenia'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_CLEAN']),1,1,'L');
|
||||
|
||||
//Średnica
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Średnica piezometru [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dokumentacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Dokumentacja piezometru'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z uaktywnianiem piezometru'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-20);
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(0,5,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$this->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający - 1egz.'),0,1,'L');
|
||||
$this->Cell(95,3,iconv('utf-8','windows-1250','2. Wykonawca - 1egz.'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,6,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Uaktywnianie studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Data rozpoczęcia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,1,'L');
|
||||
|
||||
//Głębokość właściwa
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S'].' / '.$_SESSION['site810inf_ordMainArray'][0]['OWP_RZDNA']),1,1,'L');
|
||||
|
||||
//Głębokość zasypu
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Głębokość do zasypu studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Ilość do wyczyszczenia
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Ilość metrów do wyczyszczenia'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_CLEAN']),1,1,'L');
|
||||
|
||||
//Średnica
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dokumentacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(70,$lineWidth,iconv('utf-8','windows-1250','Dokumentacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(120,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z uaktywnianiem studni'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 12;
|
||||
$lineWidth = 8;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Załącznik nr 6 do umowy nr ……………………');
|
||||
$rigth = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC'].', dnia: '.date('Y-m-d'));
|
||||
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,$rigth,0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(15);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this -> SetFont('arial_ce', '', 6);
|
||||
// Page number
|
||||
$this->Cell(95,10,iconv('utf-8','windows-1250','* - niepotrzebne skreślić'),0,0,'L');
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(95,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Protokół odbioru nr: …………/………'),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','1. Opis wykonanych prac.'),0,1,'L');
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID']).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, iconv('utf-8','windows-1250','Typ/nazwa urządzenia wykonującego pracę'), 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,2*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',substr($_SESSION['site810inf_ordMainArray'][0]['ORD_FINISH_DATE'],0,10)),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Głębokość właściwa [m] / rzędna terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Średnica [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Wyczyszczony zasyp do głębokości [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Wymiana przejścia (liner)*'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'TAK / NIE*',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(80,$lineWidth,iconv('utf-8','windows-1250','Likwidacja do rzędnej terenu'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(110,$lineWidth,'',1,1,'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$y = $pdf->GetY();
|
||||
$x = $pdf->GetX();
|
||||
$width = 80;
|
||||
$pdf->MultiCell($width, $lineWidth, "".iconv('utf-8','windows-1250','Uwagi dotyczące prac związanych z rekonstrukcją')."\n \n ", 1, 'L', FALSE);
|
||||
$pdf->SetXY($x + $width, $y);
|
||||
$pdf->Cell(110,4*$lineWidth, '', 1, 1, "l");
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','2. Opis prowadzonych innych prac.'),0,1,'L');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Inne prace'),1,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Rodzaj prac'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Typ/nazwa urządzenia'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data rozpoczęcia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,$lineWidth,iconv('utf-8','windows-1250','Data zakończenia prac'),1,0,'L');
|
||||
$pdf->Cell(130,$lineWidth,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,50,iconv('utf-8','windows-1250','Opis wykonanych prac'),1,0,'L');
|
||||
$pdf->Cell(130,50,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(60,30,iconv('utf-8','windows-1250','Uwagi dozoru Wykonawcy'),1,0,'L');
|
||||
$pdf->Cell(130,30,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','3. Zakończenie prac przy rekonstrukcji.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Uwagi Zleceniodawcy'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Decyzja Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250','4.Potwierdzenie zakończenia rekonstrukcji.'),0,1,'L');
|
||||
$pdf->Cell(0,$lineWidth,'',0,1,'L');
|
||||
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel wykonawcy prac'),1,0,'C');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Przedstawiciel Zleceniodawcy'),1,1,'C');
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,40,'',1,0,'C');
|
||||
$pdf->Cell(95,40,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,'Data:',1,1,'L');
|
||||
|
||||
|
||||
$pdf->Cell(0,10,'',0,1,'L');
|
||||
$pdf->SetFont('arial_ce', '', 6);
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','Otrzymują:'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','1. Zamawiający – 1 egz.'),0,1,'L');
|
||||
$pdf->Cell(0,3,iconv('utf-8','windows-1250','2. Wykonawca - 1 egz.'),0,1,'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry piezometru '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja piezometru'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość piezometru [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica piezometru [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
//$this->Ln(15);
|
||||
$this->Ln();
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Zlecenie nr: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_NO']),0,1,'C');
|
||||
$pdf->SetFont('arial_ce', '', 12);
|
||||
$pdf->Cell(190,5,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['ORD_SCOPE_DIC_ID'])).': '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME'],0,1,'C');
|
||||
$pdf->Ln();
|
||||
|
||||
//Label
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(0,$lineWidth,iconv('utf-8','windows-1250','Parametry studni '.$_SESSION['site810inf_ordMainArray'][0]['ORD_OBJ_NAME']),1,1,'C',1);
|
||||
|
||||
//Lokalizacja
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Lokalizacja studni'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250','Bariera '.$_SESSION['site810inf_ordMainArray'][0]['OWP_LOKAL']),1,1,'L');
|
||||
|
||||
//Głębokość
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Głębokość studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_GLEB_S']),1,1,'L');
|
||||
|
||||
//Zasyp
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Zasyp studni [m]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_ZASYP']),1,1,'L');
|
||||
|
||||
//Średnica studni [mm]
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Średnica studni [mm]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_SRED']),1,1,'L');
|
||||
|
||||
//Metan
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Metan [%]'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_METAN']),1,1,'L');
|
||||
|
||||
//Dojazd
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(75,$lineWidth,iconv('utf-8','windows-1250','Dojazd'),1,0,'L');
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(115,$lineWidth,iconv('utf-8','windows-1250',setDicName($_SESSION['site810inf_ordMainArray'][0]['OWP_DOJAZD'])),1,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->Cell(190,$lineWidth,iconv('utf-8','windows-1250','Inne prace / informacje'),1,1,'L',1);
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->MultiCell(190,6,iconv('utf-8','windows-1250',$_SESSION['site810inf_ordMainArray'][0]['OWP_INNE']),1,'J');
|
||||
|
||||
$pdf->Ln();
|
||||
|
||||
$pdf->SetFont('arial_ce', 'B', $fontSize);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba zlecająca'),1,0,'C',1);
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Osoba przyjmująca zlecenie'),1,1,'C',1);
|
||||
|
||||
$pdf->SetFont('arial_ce', '', $fontSize);
|
||||
$pdf->Cell(95,35,'',1,0,'C');
|
||||
$pdf->Cell(95,35,'',1,1,'C');
|
||||
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_AUDIT_DATE']),1,0,'L');
|
||||
$pdf->Cell(95,$lineWidth,iconv('utf-8','windows-1250','Data przyjęcia zlecenia: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_START_DATE']),1,0,'L');
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php session_start();
|
||||
|
||||
require_once'../fpdf/fpdf.php';
|
||||
require_once'../language/polish.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");
|
||||
|
||||
$fontSize = 10;
|
||||
$lineWidth = 6;
|
||||
|
||||
|
||||
class PDF extends FPDF
|
||||
{
|
||||
// Page header
|
||||
function Header()
|
||||
{
|
||||
// Arial bold 15
|
||||
$this -> SetFont('arial_ce', '', 10);
|
||||
// Title
|
||||
$left = iconv('utf-8','windows-1250','Oddział: '.$_SESSION['site810inf_ordMainArray'][0]['ORD_PLC']);
|
||||
//$this->Cell(190,5,$title,1,0,'L');
|
||||
$this->Cell(95,5,$left,0,0,'L');
|
||||
$this->Cell(95,5,'Data: '.date('Y-m-d'),0,0,'R');
|
||||
//$this->Cell(100,5,$title,1,0,'R');
|
||||
// Line break
|
||||
$this->Ln(50);
|
||||
|
||||
}
|
||||
|
||||
// Page footer
|
||||
function Footer()
|
||||
{
|
||||
// Position at 1.5 cm from bottom
|
||||
$this->SetY(-15);
|
||||
// Arial italic 8
|
||||
$this->SetFont('Arial','I',8);
|
||||
$this->Cell(0,10,'Strona '.$this->PageNo().'/{nb}',0,0,'R');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Instanciation of inherited class
|
||||
$pdf = new PDF();
|
||||
$pdf->AddFont('arial_ce','','arial_ce.php');
|
||||
$pdf->AddFont('arial_ce','I','arial_ce_i.php');
|
||||
$pdf->AddFont('arial_ce','B','arial_ce_b.php');
|
||||
$pdf->AddFont('arial_ce','BI','arial_ce_bi.php');
|
||||
$pdf->setFillColor(240,240,240);
|
||||
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
//$pdf->SetFont('Times','',$fontSize);
|
||||
|
||||
// tytuł zlecenia
|
||||
$pdf->SetLineWidth(.1);
|
||||
$pdf->SetFont('arial_ce', 'B', 14);
|
||||
$pdf->Cell(190,10,iconv('utf-8','windows-1250','Protokół odbioru generowany jest przez Bestgum.'),0,1,'C');
|
||||
|
||||
|
||||
$pdf->Output();
|
||||
|
||||
|
||||
mysql_close($con);
|
||||
?>
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php session_start();
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Przemek
|
||||
* Date: 2015-10-15
|
||||
* Time: 01:16
|
||||
*/
|
||||
|
||||
require_once '../PHPExcel.php';
|
||||
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
header('Content-Disposition: attachment;filename="Lista_zlecen.xlsx"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$styleArray = array(
|
||||
'font' => array(
|
||||
'bold' => true,
|
||||
'size' => 16
|
||||
));
|
||||
|
||||
$objPHPExcel = new PHPExcel();
|
||||
$objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:G1');
|
||||
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(25);
|
||||
$objPHPExcel->getActiveSheet()->getStyle('A1:G1')->applyFromArray($styleArray);
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A1', 'Lista zleceń ['.$_SESSION['site810_inDatefrom'].' - '.$_SESSION['site810_inDateto'].']');
|
||||
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A2', 'Lp.');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B2', 'Nr zlecenia');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C2', 'Obiekt');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D2', 'Bariera');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E2', 'Zakres zlecenia');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F2', 'Data zlecenia');
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G2', 'Status');
|
||||
|
||||
|
||||
for($i=0;$i<count($_SESSION['site810_array']);$i++)
|
||||
{
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('A'.($i+3), $i+1);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('B'.($i+3), $_SESSION['site810_array'][$i]['orderNo']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('C'.($i+3), $_SESSION['site810_array'][$i]['devName']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('D'.($i+3), $_SESSION['site810_array'][$i]['bariera']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('E'.($i+3), $_SESSION['site810_array'][$i]['orderScope']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('F'.($i+3), $_SESSION['site810_array'][$i]['orderDate']);
|
||||
$objPHPExcel->getActiveSheet()->SetCellValue('G'.($i+3), $_SESSION['site810_array'][$i]['orderStatus']);
|
||||
|
||||
|
||||
}
|
||||
$objPHPExcel->getActiveSheet()->setTitle('Lista zleceń');
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
||||
$objWriter->save('php://output');
|
||||
exit;
|
||||
?>
|
||||
Reference in New Issue
Block a user