-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonnel-edit.php
More file actions
100 lines (77 loc) · 3.03 KB
/
personnel-edit.php
File metadata and controls
100 lines (77 loc) · 3.03 KB
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
<?php
session_start();
if((!isset($_SESSION["login"]))||($_SESSION["auth"]=="0")){
?>
<meta http-equiv="refresh" content="0;URL=login.php">
<?php
} else
{
?>
<?php include("header.php") ?>
<?php $personelid=$_GET["id"];?>
<div class="content-wrapper">
<section class="content-header">
<h1>
<?=$lang["Settings"];?>
</h1>
<ol class="breadcrumb">
<li class="active"><a href="#"><i class="fa fa-dashboard"></i> <?=$lang["Homepage"];?></a></li>
<li><a href="#"><?=$lang["Personnel"];?></a></li>
<li><?=$lang["Edit"];?></li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?=$lang["Personnel_Edit_Panel"];?></h3>
</div>
<div class="box-body">
<?php
$pullPersonnel=$connection->query("select * from personnel where personnelId='$personelid'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($pullPersonnel as $pulledPersonnel)
{
?>
<form role="form" method="post" enctype="multipart/form-data" action="personnel-update.php">
<div class="box-body">
<div class="form-group">
<div class="col-md-2">
<input name="nameSurname" type="text" id="nameSurname" class="form-control" placeholder="<?=$lang["Enter_Name_Surname"];?>" value="<?=$pulledPersonnel['nameSurname'];?>">
<input name="personnelId" type="text" id="personnelId" hidden="hidden" value="<?=$pulledPersonnel['personnelId'];?>">
</div>
<div class="col-md-2">
<input name="<?=$lang["phone"];?>" type="text" id="<?=$lang["phone"];?>" class="form-control" placeholder="<?=$lang["Enter_Phone"];?>" value="<?=$pulledPersonnel['phone'];?>">
</div>
<div class="col-md-2">
<input name="eMail" type="text" id="eMail" class="form-control" placeholder="<?=$lang["Enter_eMail"];?>" value="<?=$pulledPersonnel['eMail'];?>">
</div>
<div class="col-md-1">
<input name="userName" type="text" id="userName" class="form-control" placeholder="<?=$lang["Enter_UserName"];?>" value="<?=$pulledPersonnel['userName'];?>">
</div>
<div class="col-md-2">
<input name="passWord" type="password" id="passWord" class="form-control" min-lenght="4" placeholder="<?=$lang["If_you_dont_enter_password_doesnt_change"];?>">
</div>
<div class="col-md-1">
<div class="checkbox">
<label>
<input id="auth" name="auth" type="checkbox" <?php if($pulledPersonnel['auth']=='1'){echo 'checked="checked"';}?>>
<?=$lang["Is_Admin"];?>
</label>
</div>
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary"><?=$lang["Save"];?></button>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</div>
</section>
</div>
<?php include("footer.php") ?>
<?php } ?>