-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersoneller.php
132 lines (116 loc) · 3.2 KB
/
personeller.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include_once 'config.php';
session_start();
if(!isset($_SESSION['kullaniciadi'])){
header("Location: index.php");
exit();
}
$kullaniciadi = $_SESSION['kullaniciadi'];
require_once 'config.php';
$errors = array();
// kitap silme işlemi
if(isset($_GET['delete'])){
$id = $_GET['delete'];
$conn->query("DELETE FROM kitaplar WHERE id=$id");
header('location: kitaplar.php');
}
// kitap düzenleme işlemi
if(isset($_POST['edit'])){
$personel_ad = $_POST['personel_ad'];
$personel_soyad = $_POST['personel_soyad'];
$personel_yetki = $_POST['personel_yetki'];
$personel_tel = $_POST['personel_tel'];
$conn->query("UPDATE personeller SET personel_ad='$personel_ad', personel_soyad='$personel_soyad', personel_yetki='$personel_yetki', personel_tel='$personel_yetki'");
header('location: personeller.php');
}
// kitapları listeleme işlemi
$sql = "SELECT * FROM personeller";
$result = $conn->query($sql);
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/link.css">
<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/panel.css">
<meta charset="UTF-8">
<title>Ürün Listesi</title>
</head>
<body>
<nav class="navbar">
<ul class="navbar-nav">
<li class="nav-item">
<a href="panel.php" class="nav-link"><i class="fa fa-home"></i> Panel</a>
</li>
<li class="nav-item">
<a href="https://discord.gg/xFsKXkmnbJ" class="nav-link"><i class="fa fa-link"></i> Discord</a>
</li>
</ul>
<ul class="navbar-profile">
<li class="nav-item">
<a href="#" class="nav-link">
<div class="user-info">
<i class="fa fa-user"></i>
<?php echo $kullaniciadi; ?>
</div>
</a>
<ul class="dropdown">
<li><a href="profil-duzenle.php">Profil Düzenle</a></li>
<li><a href="cikis.php">Çıkış Yap</a></li>
</ul>
</li>
</ul>
</nav>
<div>
<h1>Personel Listesi</h1>
<table>
<thead>
<tr>
<th>Personel Ad</th>
<th>Personel Soyadı</th>
<th>Personel Ünvan</th>
<th>Personel Tel</th>
</tr>
</thead>
<tbody>
<?php while($row = $result->fetch_assoc()): ?>
<tr>
<td><?php echo $row['personel_ad']; ?></td>
<td><?php echo $row['personel_soyad']; ?></td>
<td><?php echo $row['personel_yetki']; ?></td>
<td><?php echo $row['personel_tel']; ?></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
</body>
<footer>
<div>
<style>
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
font-size: 12px;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.arx {
text-decoration: none;
}
.arx p {
color: #000;
}
.arx:hover {
text-decoration: none;
}
</style>
<img src="https://arxdevelopers.github.io/assets/img/arx-logo.png" alt="ARX" width="50" height="50">
<div class="arx">
<a href="https://arxdevelopers.github.io"><p>ArX Developers</p></a>
</div>
</div>
</footer>
</html>