-
Notifications
You must be signed in to change notification settings - Fork 0
/
kupci.php
78 lines (69 loc) · 3.95 KB
/
kupci.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
<?php
include 'init.php';
include 'baza/check_login.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Kupci</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-1.11.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">Kupci</h1>';
echo '<a href="novi_kupac.php" class="myButton" style="display:inline; float:right;">Novi kupac</a>';
echo "</div>";
$result = svi_kupci();
echo "<table>";
echo "<thead>";
echo "<tr>";
echo "<th>Intervencije</th>";
echo "<th>Promjena podataka</th>";
echo "<th>ID</th>";
echo "<th>Ime</th>";
echo "<th>Prezime</th>";
echo "<th>Tvrtka</th>";
echo "<th>Adresa</th>";
echo "<th>Grad</th>";
echo "<th>Kontakt broj</th>";
echo "<th>E-mail</th>";
echo "</tr>";
echo "</thead>";
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td><a href='intervencijaKupDet.php?fisk_kupac_id=" . $row['id'] . "'><B>"/* . $row["id"] */ . "Intervencije</B></a></td>";
echo "<td><a href='ispravka_kupca.php?fisk_kupac_id=" . $row['id'] . "'><B>"/* . $row["id"] */ . "Ispravka</B></a></td>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['ime'] . "</td>";
echo "<td>" . $row['prezime'] . "</td>";
echo "<td>" . $row['tvrtka'] . "</td>";
echo "<td>" . $row['adresa'] . "</td>";
echo "<td>" . $row['grad'] . "</td>";
echo "<td>" . $row['kontakt_broj'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
<p> </p>
<p> </p>
<?php include 'dijeloviHTML/sections2.php'; ?>
</div>
</div>
</div>
<?php include 'dijeloviHTML/footer.php';?>
</body>
</html>