-
Notifications
You must be signed in to change notification settings - Fork 0
/
intervencije.php
84 lines (73 loc) · 4.2 KB
/
intervencije.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
include 'init.php';
include 'baza/check_login.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Intervencije</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Description of your site goes here">
<meta name="keywords" content="Eurotrade, Servis, Eurotrade servis">
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/table.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
</head>
<body>
<div class="main">
<?php include 'dijeloviHTML/header.php'; ?>
<div class="header-img"><img src="images/header.jpg" style="margin-bottom: 15px; " alt="" height="225" width="100%"></div>
<div class="page-out2">
<div class="content2">
<?php
echo "<div style='width: 899px;margin-left:auto; margin-right:auto;'>";
echo '<h1 class="title" style="display:inline">Intervencije</h1>';
echo '<a href="nova_intervencija.php" class="myButton" style="display:inline; float:right;">Nova intervencija</a>';
echo '<a href="kupci.php" class="myButton" style="display:inline; float:right; margin-right: 5px;">Kupci</a>';
echo "</div>";
$result = sve_intervencije();
echo "<table>
<thead>
<tr>
<th>Detalji</th>
<th>Zatvori rn</th>
<th>ID</th>
<th>Kupac</th>
<th>Zatraženi servis:</th>
<th>Intervencija od:</th>
<th>Intervencija do</th>
<th>Naplaćena šifra</th>
<th>Serviser</th>
</tr>
</thead>";
while ($row = mysql_fetch_array($result)) {
$dat_do = $row['intervencija_do'];
if(!empty($dat_do)){
$d_d = date('d.m.Y', strtotime($row['intervencija_do']));
}
else $d_d = "";
echo "<tr background-color:'>";
echo "<td><a href='intervencijaDet.php?id=" . $row['id'] . "'><B>". "Detalji</B></a></td>";
echo "<td><a href='zavrsi_interv.php?id=" . $row['id'] . "'><B>" . "Izmijeni rn</B></a></td>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['ime'] . ' ' . $row['prezime'] . ', ' . $row['tvrtka'] . "</td>";
echo "<td>" . $row['zatrazeno'] . "</td>";
echo "<td>" . date('d.m.Y', strtotime($row['intervencija_od'])); "</td>";
echo "<td>" . $d_d . "</td>";
echo "<td>" . $row['sifra_naplate'] . "</td>";
echo "<td>" . $row['serviser_ime'] . ' ' . $row['serviser_prezime'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
<p> </p>
<p> </p>
<?php include 'dijeloviHTML/sections2.php'; ?>
</div>
</div>
</div>
<?php include 'dijeloviHTML/footer.php'; ?>
</body>
</html>