|
48 | 48 | <div class="row"> |
49 | 49 | <div class="col-lg-3"> |
50 | 50 | <div class="player_information"> |
51 | | - <div><img src="<?php echo str_replace(array('%name%', '%uuid%'), array($_GET['player'], $UUID), $settings['skin']['complete']) ?>" class="skin-complete" alt="<?php echo $_GET['player'];?>"/></div> |
| 51 | + <div><img src="<?php echo str_replace(array('%name%', '%uuid%'), array($_GET['player'], $UUID), $settings['skin']['complete']) ?>" class="skin-complete" alt="<?php echo $_GET['player'];?>"/></div><br> |
52 | 52 | <span id="player_name" title="UUID: <?php echo $UUID;?>"><?php echo $_GET['player'];?></span> |
53 | | - </div> |
| 53 | + |
| 54 | + <?php if ($admin) { ?> |
| 55 | + <br> |
| 56 | + <center> |
| 57 | + <a class="btn btn-danger dropdown-toggle" href="#" data-toggle="dropdown"><i class="glyphicon glyphicon-plus"> <?php echo $language['viewplayer']['punish']['punish'];?></i></a> |
| 58 | + <ul class="dropdown-menu punish"> |
| 59 | + <li><?='<div class="col-lg-6"><a class="btn btn-danger pull-left" title="'.$language['viewplayer']['punish']['ban'].'" href="#addban" data-toggle="modal">'.$language['viewplayer']['punish']['ban'].'</a></div> <div class="col-lg-6"><a class="btn btn-danger pull-right" title="'.$language['viewplayer']['punish']['mute'].'" href="#addmute" data-toggle="modal">'.$language['viewplayer']['punish']['mute'].'</a></div>'; ?></li> |
| 60 | + </ul> |
| 61 | + </center> |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + <?php } ?> |
| 66 | + |
| 67 | + </div> |
54 | 68 | </div> |
55 | 69 | <div class="col-lg-9" id="player_ban_info"> |
56 | 70 | <h4><?= $language['viewplayer']['current_server']; ?>: <?php echo $server['name']; ?></h4> |
|
155 | 169 | '.$extra.' |
156 | 170 | </div>'; |
157 | 171 | } |
| 172 | + |
| 173 | + if ($admin) { ?> |
| 174 | + <div class="modal fade" id="addban"> |
| 175 | + <div class="modal-dialog"> |
| 176 | + <div class="modal-content"> |
| 177 | + <form class="form-horizontal" action="" method="post"> |
| 178 | + <div class="modal-header"> |
| 179 | + <button type="button" class="close" data-dismiss="modal">×</button> |
| 180 | + <h3><?= $language['viewplayer']['punish']['add_modal-creating_ban']; ?></h3> |
| 181 | + </div> |
| 182 | + <div class="modal-body"> |
| 183 | + <div class="control-group"> |
| 184 | + <label class="control-label" for="yourtime"><?= $language['viewplayer']['punish']['add_modal-your_time']; ?>:</label> |
| 185 | + <div class="controls"> |
| 186 | + <span class="yourtime"></span> |
| 187 | + </div> |
| 188 | + </div> |
| 189 | + <div class="control-group"> |
| 190 | + <label class="control-label" for="servertime"><?= $language['viewplayer']['punish']['add_modal-server_time']; ?>:</label> |
| 191 | + <div class="controls"> |
| 192 | + <span class="servertime"><?php echo date('d/m/Y H:i:s', time() + $mysqlSecs); ?></span> |
| 193 | + </div> |
| 194 | + </div> |
| 195 | + <div class="control-group"> |
| 196 | + <label class="control-label" for="bandatetime"><?= $language['viewplayer']['punish']['add_modal-expires_server_time']; ?>:</label> |
| 197 | + <div class="controls"> |
| 198 | + <div class="input-group date datetimepicker"> |
| 199 | + <span class="input-group-btn"> |
| 200 | + <button class="btn btn-danger bantype" type="button"><?= $language['viewplayer']['punish']['add_modal-permanent']; ?></button> |
| 201 | + </span> |
| 202 | + <input type="text" class="form-control required disabled" disabled="disabled" name="expires" data-format="DD/MM/YYYY HH:mm:ss" value="" id="bandatetime" /> |
| 203 | + <span class="input-group-addon"> |
| 204 | + <i class="glyphicon glyphicon-calendar"></i> |
| 205 | + </span> |
| 206 | + </div> |
| 207 | + </div> |
| 208 | + </div> |
| 209 | + <div class="control-group"> |
| 210 | + <label class="control-label" for="silentban"><?= $language['viewplayer']['punish']['add_modal-silent']; ?>:</label> |
| 211 | + <input type="checkbox" name="silent" id="silentban" value="Silent" /> |
| 212 | + </div> |
| 213 | + <label for="banreason"><?= $language['viewplayer']['punish']['add_modal-reason']; ?>:</label> |
| 214 | + <textarea id="banreason" name="reason" class="form-control" rows="4" style="resize: vertical;"></textarea> |
| 215 | + </div> |
| 216 | + <div class="modal-footer"> |
| 217 | + <a href="#" class="btn" data-dismiss="modal"><?= $language['viewplayer']['punish']['add_modal-close']; ?></a> |
| 218 | + <input type="submit" class="btn btn-primary" value="<?= $language['viewplayer']['punish']['add_modal-save']; ?>" /> |
| 219 | + </div> |
| 220 | + <?php if (isset($currentBans['id'])) { |
| 221 | + echo '<input type="hidden" name="id" value="'.$currentBans['id'].'" />'; } ?> |
| 222 | + <input type="hidden" name="uuid" value="<?php echo $UUID; ?>" /> |
| 223 | + <input type="hidden" name="server" value="<?php echo $_GET['server']; ?>" /> |
| 224 | + <input type="hidden" name="expiresTimestamp" value="" /> |
| 225 | + </form> |
| 226 | + </div> |
| 227 | + </div> |
| 228 | + </div> |
| 229 | + <?php } |
| 230 | + |
158 | 231 | if($admin && count($currentBans) != 0) {?> |
159 | 232 | <div class="modal fade" id="editban"> |
160 | 233 | <div class="modal-dialog"> |
|
214 | 287 | </div> |
215 | 288 | </div> |
216 | 289 | </div> |
| 290 | + <div class="control-group"> |
| 291 | + <label class="control-label" for="silentban"><?= $language['viewplayer']['current_ban']['edit_modal-silent']; ?>:</label> |
| 292 | + <input type="checkbox" name="silent" id="silentban" value="Silent" <?php if ($currentBans['silent'] != 0) echo 'checked';?> /> |
| 293 | + </div> |
217 | 294 | <label for="banreason"><?= $language['viewplayer']['current_ban']['edit_modal-reason']; ?>:</label> |
218 | | - <textarea id="banreason" name="reason" class="form-control" rows="4"><?php echo $currentBans['reason']; ?></textarea> |
| 295 | + <textarea id="banreason" name="reason" class="form-control" rows="4" style="resize: vertical;"><?php echo $currentBans['reason']; ?></textarea> |
219 | 296 | </div> |
220 | 297 | <div class="modal-footer"> |
221 | 298 | <a href="#" class="btn" data-dismiss="modal"><?= $language['viewplayer']['current_ban']['edit_modal-close']; ?></a> |
|
321 | 398 | '.$extra.' |
322 | 399 | </div>'; |
323 | 400 | } |
| 401 | + |
| 402 | + if ($admin) { ?> |
| 403 | + <div class="modal fade" id="addmute"> |
| 404 | + <div class="modal-dialog"> |
| 405 | + <div class="modal-content"> |
| 406 | + <form class="form-horizontal" action="" method="post"> |
| 407 | + <div class="modal-header"> |
| 408 | + <button type="button" class="close" data-dismiss="modal">×</button> |
| 409 | + <h3><?= $language['viewplayer']['punish']['add_modal-creating_mute']; ?></h3> |
| 410 | + </div> |
| 411 | + <div class="modal-body"> |
| 412 | + <div class="control-group"> |
| 413 | + <label class="control-label" for="yourtime"><?= $language['viewplayer']['punish']['add_modal-your_time']; ?>:</label> |
| 414 | + <div class="controls"> |
| 415 | + <span class="yourtime"></span> |
| 416 | + </div> |
| 417 | + </div> |
| 418 | + <div class="control-group"> |
| 419 | + <label class="control-label" for="servertime"><?= $language['viewplayer']['punish']['add_modal-server_time']; ?>:</label> |
| 420 | + <div class="controls"> |
| 421 | + <span class="servertime"><?php echo date('d/m/Y H:i:s', time() + $mysqlSecs); ?></span> |
| 422 | + </div> |
| 423 | + </div> |
| 424 | + <div class="control-group"> |
| 425 | + <label class="control-label" for="mutedatetime"><?= $language['viewplayer']['punish']['add_modal-expires_server_time']; ?>:</label> |
| 426 | + <div class="controls"> |
| 427 | + <div class="input-group date datetimepicker"> |
| 428 | + <span class="input-group-btn"> |
| 429 | + <button class="btn btn-danger mutetype" type="button"><?= $language['viewplayer']['punish']['add_modal-permanent']; ?></button> |
| 430 | + </span> |
| 431 | + <input type="text" class="form-control required disabled" disabled="disabled" name="expires" data-format="DD/MM/YYYY HH:mm:ss" value="" id="mutedatetime" /> |
| 432 | + <span class="input-group-addon"> |
| 433 | + <i class="glyphicon glyphicon-calendar"></i> |
| 434 | + </span> |
| 435 | + </div> |
| 436 | + </div> |
| 437 | + </div> |
| 438 | + <div class="control-group"> |
| 439 | + <label class="control-label" for="softmute"><?= $language['viewplayer']['punish']['add_modal-soft']; ?>:</label> |
| 440 | + <input type="checkbox" name="soft" id="softmute" value="Soft" /> |
| 441 | + <label class="control-label" for="silentmute"><?= $language['viewplayer']['punish']['add_modal-silent']; ?>:</label> |
| 442 | + <input type="checkbox" name="silent" id="silentmute" value="Silent" /> |
| 443 | + </div> |
| 444 | + <label for="mutereason"><?= $language['viewplayer']['punish']['add_modal-reason']; ?>:</label> |
| 445 | + <textarea id="mutereason" name="reason" class="form-control" rows="4" style="resize: vertical;"></textarea> |
| 446 | + </div> |
| 447 | + <div class="modal-footer"> |
| 448 | + <a href="#" class="btn" data-dismiss="modal"><?= $language['viewplayer']['punish']['add_modal-close']; ?></a> |
| 449 | + <input type="submit" class="btn btn-primary" value="<?= $language['viewplayer']['punish']['add_modal-save']; ?>" /> |
| 450 | + </div> |
| 451 | + <?php if (isset($currentMutes['id'])) { |
| 452 | + echo '<input type="hidden" name="id" value="'.$currentMutes['id'].'" />'; } ?> |
| 453 | + <input type="hidden" name="uuid" value="<?php echo $UUID; ?>" /> |
| 454 | + <input type="hidden" name="server" value="<?php echo $_GET['server']; ?>" /> |
| 455 | + <input type="hidden" name="expiresTimestamp" value="" /> |
| 456 | + </form> |
| 457 | + </div> |
| 458 | + </div> |
| 459 | + </div> |
| 460 | + <?php } |
| 461 | + |
324 | 462 | if($admin && count($currentMutes) != 0) {?> |
325 | 463 |
|
326 | 464 | <div class="modal fade" id="editmute"> |
|
351 | 489 | <?php |
352 | 490 | echo ' |
353 | 491 | <span class="input-group-btn"> |
354 | | - <button class="btn btn-danger bantype" type="button">'; |
| 492 | + <button class="btn btn-danger mutetype" type="button">'; |
355 | 493 | if($currentMutes['expires'] == 0) |
356 | 494 | echo $language['viewplayer']['current_mute']['edit_modal-permanent']; |
357 | 495 | else |
|
381 | 519 | </div> |
382 | 520 | </div> |
383 | 521 | </div> |
| 522 | + <div class="control-group"> |
| 523 | + <label class="control-label" for="softmute"><?= $language['viewplayer']['current_mute']['edit_modal-soft']; ?>:</label> |
| 524 | + <input type="checkbox" name="soft" id="softmute" value="Soft" <?php if ($currentMutes['soft'] != 0) echo 'checked';?> /> |
| 525 | + <label class="control-label" for="silentmute"><?= $language['viewplayer']['current_mute']['edit_modal-silent']; ?>:</label> |
| 526 | + <input type="checkbox" name="silent" id="silentmute" value="Silent" <?php if ($currentMutes['silent'] != 0) echo 'checked';?> /> |
| 527 | + </div> |
384 | 528 | <label for="mutereason"><?= $language['viewplayer']['current_mute']['edit_modal-reason']; ?>:</label> |
385 | | - <textarea id="mutereason" name="reason" class="form-control" rows="4"><?php echo $currentMutes['reason']; ?></textarea> |
| 529 | + <textarea id="mutereason" name="reason" class="form-control" rows="4" style="resize: vertical;"><?php echo $currentMutes['reason']; ?></textarea> |
386 | 530 | </div> |
387 | 531 | <div class="modal-footer"> |
388 | 532 | <a href="#" class="btn" data-dismiss="modal"><?= $language['viewplayer']['current_mute']['edit_modal-close']; ?></a> |
|
0 commit comments