-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-flyingjelly.php
193 lines (165 loc) · 8.43 KB
/
admin-flyingjelly.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
/************** BASIC CONFIG *************************/
define('_VALID_PHP', true);
$pname = 'Flying Jelly';
$menu = 'ADMIN_GAMES';
$submenu = 'ADMIN_GAMES_FREE';
require_once 'init.php';
use Carbon\Carbon;
if (!$user->logged_in) {
//redirect_to(SITEURL.'/index.php');
}
$game_detail = $fz->getFreeGame();
/************** END BASIC CONFIG *********************/
?>
<?php include BACK_INC.'header.php'; ?>
<body class="page-container-bg-solid page-header-fixed page-sidebar-closed-hide-logo">
<?php include BACK_INC.'htmlheader.php'; ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
<?php include BACK_INC.'menu.php'; ?>
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content">
<!-- BEGIN PAGE HEAD-->
<div class="page-head">
<!-- BEGIN PAGE TITLE -->
<div class="page-title">
<h1><?php echo $pname; ?>
<small>
<!-- bootstrap form controls and more -->
</small>
</h1>
</div>
<!-- END PAGE TITLE -->
</div>
<!-- END PAGE HEAD-->
<!-- BEGIN PAGE BREADCRUMB -->
<ul class="page-breadcrumb breadcrumb">
<li>
<a href="admin-dashboard.php">Dashboard</a>
<i class="fa fa-circle"></i>
</li>
<li>
<span class="active"><?php echo $pname; ?></span>
</li>
</ul>
<!-- END PAGE BREADCRUMB -->
<!-- BEGIN PAGE BASE CONTENT -->
<div class="row">
<div class="col-md-12 ">
<!-- BEGIN SAMPLE FORM PORTLET-->
<div class="portlet light bordered">
<div class="portlet-title">
<div class="caption font-red-sunglo">
<i class="icon-settings font-red-sunglo"></i>
<span class="caption-subject bold uppercase">Settings</span>
</div>
</div>
<div class="portlet-body form">
<div class="col-md-9">
<?php
if(isset($_SESSION['noti'])){
if($_SESSION['noti']['status'] == 'error'){
echo '<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert"><span>×</span></button>'.$_SESSION['noti']['msg'].'</div>';
}elseif($_SESSION['noti']['status'] == 'success'){
echo '<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert"><span>×</span></button>'.$_SESSION['noti']['msg'].'</div>';
}
unset($_SESSION['noti']);
}
// pre($game_detail);
?>
<form class="form-horizontal" role="form" action="backend/process.php" method="post" enctype="multipart/form-data">
<div class="form-body">
<div class="form-group">
<label class="col-md-3 control-label">Game Name</label>
<div class="col-md-8">
<input type="text" class="form-control" placeholder="Game Name" name="name" required value="<?php echo $game_detail->name; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Time Limit</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="seconds" name="time_limit" required value="<?php echo $game_detail->time_limit; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Score Multiplier</label>
<div class="col-md-8">
<input type="decimal" class="form-control" placeholder="0.0" name="score_multiplier" required value="<?php echo $game_detail->score_multiplier; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Chances per day</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="Chances" name="chances" required value="<?php echo $game_detail->chances; ?>">
</div>
</div>
<hr>
<div class="form-group">
<label class="col-md-3 control-label">
<img src="<?php echo FRONTIMAGE; ?>jelly_yellow.png" style="width:30px;">
</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="score" name="score_yellow" required value="<?php echo $game_detail->score_yellow; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
<img src="<?php echo FRONTIMAGE; ?>jelly_red.png" style="width:30px;">
</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="score" name="score_red" required value="<?php echo $game_detail->score_red; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
<img src="<?php echo FRONTIMAGE; ?>jelly_green.png" style="width:30px;">
</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="score" name="score_green" required value="<?php echo $game_detail->score_green; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
<img src="<?php echo FRONTIMAGE; ?>jelly_blue.png" style="width:30px;">
</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="score" name="score_blue" required value="<?php echo $game_detail->score_blue; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">
<img src="<?php echo FRONTIMAGE; ?>jelly_pink.png" style="width:30px;">
</label>
<div class="col-md-8">
<input type="number" class="form-control" placeholder="score" name="score_pink" required value="<?php echo $game_detail->score_pink; ?>">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"></label>
<div class="col-md-8">
<button type="submit" class="btn blue">Update</button>
</div>
</div>
</div>
<input type="hidden" name="func" value="update_free_game">
</form>
</div>
<div class="clearfix"></div>
</div>
</div>
<!-- END SAMPLE FORM PORTLET-->
</div>
</div>
<!-- END PAGE BASE CONTENT -->
</div>
<!-- END CONTENT BODY -->
</div>
</div>
<!-- END CONTAINER -->
<script type="text/javascript">
$(document).ready(function(){
});
</script>
<?php include BACK_INC.'htmlfooter.php'; ?>