-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.php
144 lines (102 loc) · 5.32 KB
/
setting.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
require 'inc/Header.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<!-- Loader ends-->
<!-- page-wrapper Start-->
<div class="page-wrapper compact-wrapper" id="pageWrapper">
<!-- Page Header Start-->
<?php require 'inc/Navbar.php';?>
<!-- Page Header Ends-->
<!-- Page Body Start-->
<div class="page-body-wrapper">
<!-- Page Sidebar Start-->
<?php require 'inc/Sidebar.php';?>
<!-- Page Sidebar Ends-->
<div class="page-body">
<div class="container-fluid">
<div class="page-title">
<div class="row">
<div class="col-sm-6">
<h3>Setting Management</h3>
</div>
</div>
</div>
</div>
<!-- Container-fluid starts-->
<div class="container-fluid dashboard-default">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<h5 class="h5_set"><i class="fa fa-gear fa-spin"></i> General Information</h5>
<form method="post" enctype="multipart/form-data">
<div class="row">
<div class="form-group mb-3 col-3">
<label><span class="text-danger">*</span> Website Name</label>
<input type="text" class="form-control " placeholder="Enter Store Name" value="<?php echo $set['webname'];?>" name="webname" required="">
<input type="hidden" name="type" value="edit_setting"/>
<input type="hidden" name="id" value="1"/>
</div>
<div class="form-group mb-3 col-3" style="margin-bottom: 48px;">
<label><span class="text-danger">*</span> Website Image</label>
<div class="custom-file">
<input type="file" name="weblogo" class="custom-file-input form-control">
<label class="custom-file-label">Choose Website Image</label>
<br>
<img src="<?php echo $set['weblogo'];?>" width="60" height="60"/>
</div>
</div>
<div class="form-group mb-3 col-3">
<label for="cname">Select Timezone</label>
<select name="timezone" class="form-control" required>
<option value="">Select Timezone</option>
<?php
$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL);
$limit = count($tzlist);
?>
<?php
for($k=0;$k<$limit;$k++)
{
?>
<option <?php echo $tzlist[$k];?> <?php if($tzlist[$k] == $set['timezone']) {echo 'selected';}?>><?php echo $tzlist[$k];?></option>
<?php } ?>
</select>
</div>
<div class="form-group mb-3 col-3">
<label><span class="text-danger">*</span> Currency</label>
<input type="text" class="form-control" placeholder="Enter Currency" value="<?php echo $set['currency'];?>" name="currency" required="">
</div>
<div class="form-group mb-3 col-12">
<h5 class="h5_set"><i class="fa fa-signal"></i> Onesignal Information</h5>
</div>
<div class="form-group mb-3 col-6">
<label><span class="text-danger">*</span> User App Onesignal App Id</label>
<input type="text" class="form-control " placeholder="Enter User App Onesignal App Id" value="<?php echo $set['one_key'];?>" name="one_key" required="">
</div>
<div class="form-group mb-3 col-6">
<label><span class="text-danger">*</span> User App Onesignal Rest Api Key</label>
<input type="text" class="form-control " placeholder="Enter User Boy App Onesignal Rest Api Key" value="<?php echo $set['one_hash'];?>" name="one_hash" required="">
</div>
<div class="col-12">
<button type="submit" name="edit_setting" class="btn btn-primary mb-2">Edit Setting</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Container-fluid Ends-->
</div>
<!-- footer start-->
</div>
</div>
<!-- latest jquery-->
<?php require 'inc/Footer.php'; ?>
<!-- login js-->
</body>
</html>