-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitesetting.php
97 lines (89 loc) · 4.06 KB
/
sitesetting.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
<?php
session_start();
if(!isset($_SESSION['userId']))
{
header('location:login.php');
}
?>
<?php require "assets/function.php" ?>
<?php require 'assets/db.php';?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo siteTitle(); ?></title>
<?php require "assets/autoloader.php" ?>
<style type="text/css">
<?php include 'css/customStyle.css'; ?>
</style>
<?php
$notice="";
if (isset($_POST['saveSetting'])) {
if ($con->query("update site SET title='$_POST[title]',name='$_POST[name]'")) {
$notice ="<div class='alert alert-success'>تم الحفظ بنجاح</div>";
}
else{
$notice ="<div class='alert alert-danger'>خطا:".$con->error."</div>";
}
}
?>
</head>
<body style="background: #ECF0F5;padding:0;margin:0">
<div class="dashboard" style="position: fixed;width: 18%;height: 100%;background:#222D32">
<div style="background:#357CA5;padding: 14px 3px;color:white;font-size: 15pt;text-align: center;text-shadow: 1px 1px 11px black">
<a href="index.php" style="color: white;text-decoration: none;"><?php echo strtoupper(siteName()); ?> </a>
</div>
<div class="flex" style="padding: 3px 7px;margin:5px 2px;">
<div><img src="photo/<?php echo $user['pic'] ?>" class='img-circle' style='width: 77px;height: 66px'></div>
<div style="color:lightgreen;font-size: 13pt;padding: 14px 7px;margin-left: 11px;"><?php echo ucfirst($user['name']); ?></div>
</div>
<div style="background: #1A2226;font-size: 10pt;padding: 11px;color: #79978F">القائمة</div>
<div>
<div style="background:#1E282C;color: white;padding: 13px 17px;border-left: 3px solid #3C8DBC;"><span><i class="fa fa-dashboard fa-fw"></i> لوحة التحكم</span></div>
<div class="item">
<ul class="nostyle zero">
<a href="index.php"><li ><i class="fa fa-circle-o fa-fw"></i> لرئيسية</li></a>
<a href="inventeries.php"><li><i class="fa fa-circle-o fa-fw"></i> الادوية</li></a>
<a href="addnew.php"><li ><i class="fa fa-circle-o fa-fw"></i> اضافة دواء جديد</li></a>
<a href="reports.php"><li><i class="fa fa-circle-o fa-fw"></i> الفواتير</li></a>
</ul><
</div>
</div>
<div style="background:#1E282C;color: white;padding: 13px 17px;border-left: 3px solid #3C8DBC;"><span><i class="fa fa-globe fa-fw"></i> اعدادات اخرى</span></div>
<div class="item">
<ul class="nostyle zero">
<a href="sitesetting.php"><li style="color: white"><i class="fa fa-circle-o fa-fw"></i> اعدادات النظام</li></a>
<a href="profile.php"><li><i class="fa fa-circle-o fa-fw"></i> الملف الشخصي</li></a>
<a href="accountSetting.php"><li><i class="fa fa-circle-o fa-fw"></i> بيانات الحساب</li></a>
<a href="logout.php"><li><i class="fa fa-circle-o fa-fw"></i> تسجيل الخروج</li></a>
</ul><
</div>
</div>
<div class="marginLeft" >
<div class="content2">
<ol class="breadcrumb ">
<li><a href="index.php"><i class="fa fa-dashboard"></i> لوحة التحكم</a></li>
<li class="active">اعدادات النظام</li>
</ol>
<?php echo $notice ?>
<div style="width: 55%;margin: auto;padding: 22px;" class="well well-sm center">
<h4>اعدادات النظام</h4><hr>
<form method="POST">
<div class="form-group">
<label for="some" class="col-form-label">عنوان النظام</label>
<input type="text" name="title" class="form-control" value="<?php echo siteTitle() ?>" id="some" required>
</div>
<div class="form-group">
<label for="some" class="col-form-label"> اسم النظام</label>
<input type="text" name="name" value="<?php echo siteName() ?>" class="form-control" id="some" required>
</div>
<div class="center">
<button class="btn btn-primary btn-sm btn-block" name="saveSetting">حفظ</button>
</div>
</form>
</div>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){$(".rightAccount").click(function(){$(".account").fadeToggle();});});
</script>