forked from tegalan/Libska
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatur.php
55 lines (53 loc) · 1.73 KB
/
atur.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
<?php
session_start();
/*
File: atur.php
Fungsi: pengaturan
Auth: ShowCheap
*/
include 'sistem/config.php';
//include 'run.php';
sambung();
get_kepala();
if($_POST['atur']!=''){
$nama=mysql_real_escape_string($_POST['nama']);
$alamat=mysql_real_escape_string($_POST['alamat']);
$web=mysql_real_escape_string($_POST['web']);
$lama=mysql_real_escape_string($_POST['lPinjam']);
//echo "$nama $alamat $web";
set_sistem("Nama",$nama);
set_sistem("Alamat",$alamat);
set_sistem("web",$web);
set_sistem("Lama",$lama);
}
?>
<fieldset>
<legend>Pengaturan</legend>
<b>Sistem</b><br>
<form action='' method='post'>
<table>
<tr>
<td>Nama Perpustakaan</td><td>:</td><td><input size='30' type='text' name='nama' value='<?php echo get_sistem("nama"); ?>'></td>
</tr>
<tr>
<td>Alamat Perpustakaan</td><td>:</td><td><input size='30' type='text' name='alamat' value='<?php echo get_sistem("alamat"); ?>'></td>
</tr>
<tr>
<td>Website Perpustakaan</td><td>:</td><td><input size='30' type='text' name='web' value='<?php echo get_sistem("web"); ?>'></td>
</tr>
<tr>
<td>Lama Peminjaman</td><td>:</td><td><input class='input-small' type="text" name="lPinjam" value='<?php echo get_sistem("lama"); ?>'> Hari</td>
</tr>
<tr>
<td>Versi Libska</td><td>:</td><td class="label label-success"><?php echo getVersion(); ?></td>
</tr>
<tr style="padding: 5px;">
<td style="padding: 5px;"><input class="btn btn-info" type='submit' value='Simpan' name='atur'></td><td></td><td><input class="btn btn-danger" type='reset' value='Reset'></td>
</tr>
</table>
</form>
<hr>
</fieldset>
<?
get_kaki();
?>