-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaturalar.php
86 lines (58 loc) · 1.81 KB
/
faturalar.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
82
83
84
85
86
<?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="faturalar.php">Fatura Listesi</a></li>
</ul>
</nav>
<section id="content">
<h2>Faturalar</h2>
<a target="_blank" href="fatura_ekle.php" class="button icon add">Fatura Oluştur</a>
<div>
<table style="background-image:url(img/bos.png); background-repeat:repeat" class="datatable">
<thead>
<tr>
<th>Sayın</th>
<th>Düzenleme Tarihi</th>
<th>Vergi Dairesi</th>
<th>Genel Toplam</th>
<th>İşlem</th>
</tr>
</thead>
<tbody>
<?php
$vericek=$connection->query("select * from fatura order by id ASC")->fetchAll(PDO::FETCH_ASSOC);
foreach ($vericek as $vcek)
{
?>
<tr>
<td><?=$vcek['sayin'];?></td>
<td><?=$vcek['duzenlemetarihi'];?></td>
<td><?=$vcek['vergidairesi'];?></td>
<td><?=$vcek['geneltoplam']; ?></td>
<td>
<span class="button-group">
<a target="_blank" href="fatura_detay.php?id=<?=$vcek['id'];?>" class="button icon search">Fatura Görüntüle</a>
<a href="fatura_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">Sil</a>
</span>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("ayak.php"); ?>
<?php } ?>