-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirma.php
68 lines (59 loc) · 1.67 KB
/
firma.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
<?php
session_start();
if(!isset($_SESSION["login"])){
?>
<meta http-equiv="refresh" content="0;URL=giris.php">
<?php
} else
{
?>
<!-- GİRİŞ KONTROL -->
<?php include("kafa.php") ?>
<?php include("menu.php") ?>
<?php include("kontrol/veritabani.php") ?>
<nav id="secondary">
<ul>
<li class="current"><a href="firma.php">Müşteri</a></li>
<li ><a href="firma-ekle.php">Müşteri Ekle</a></li>
</ul>
</nav>
<section id="content">
<h2>Müşteri Listesi</h2>
<div>
<table class="datatable">
<thead>
<tr>
<th>Müşteri Adı</th>
<th>Ad</th>
<th>Soyad</th>
<th>Telefon</th>
<th>İşlemler</th>
</tr>
</thead>
<tbody>
<?php
$vericek=$connection->query("select * from firma")->fetchAll(PDO::FETCH_ASSOC);
foreach ($vericek as $vcek)
{
?>
<tr>
<td><?=$vcek['firmaadi'];?></td>
<td><?=$vcek['ad'];?></td>
<td><?=$vcek['soyad'];?></td>
<td><?=$vcek['telefon'];?></td>
<td>
<span class="button-group">
<a href="firma-detay.php?id=<?=$vcek['id'];?>" class="button icon search">Şantiyeleri Listele</a>
<a href="firma-duzenle.php?id=<?=$vcek['id'];?>" class="button icon edit">Firmayı Düzenle</a>
<a href="firma-sil.php?id=<?=$vcek['id'];?>" onclick="return confirm('İçeriği silmek istediğinize emin misiniz? Bu işlem geri alınamaz');" class="button icon remove danger">Firmayı Sil</a>
</span>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("ayak.php"); ?>
<?php } ?>