Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

main.php 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-12">
  4. <ul class="nav nav-tabs" role="tablist">
  5. <li class="active"><a href="#support" role="tab" data-toggle="tab">Support</a></li>
  6. <li><a href="#management" role="tab" data-toggle="tab">User Management</a></li>
  7. </ul>
  8. <div class="tab-content">
  9. <div class="tab-pane active" id="support">
  10. <?php
  11. if ($user->group == "Founder" || $user->group == "Admin" || $user->group == "Moderator")
  12. {
  13. $support_msgs = $db->select('support', "1=? ORDER BY date_added DESC", array("1"));
  14. $support_msg_list = array();
  15. foreach ($support_msgs as $support_msg)
  16. {
  17. if (!is_array($support_msg))
  18. {
  19. $support_msg_list = array($support_msgs);
  20. break;
  21. }
  22. array_push($support_msg_list, $support_msg);
  23. }
  24. ?>
  25. <h2 class="text-center"><strong>Support Messages</strong></h2>
  26. <hr>
  27. <div class="row">
  28. <div class="col-sm-2">
  29. <h4><strong>Date</strong></h4>
  30. </div>
  31. <div class="col-sm-2">
  32. <h4><strong>Sender</strong></h4>
  33. </div>
  34. <div class="col-sm-3">
  35. <h4><strong>Subject</strong></h4>
  36. </div>
  37. <div class="col-sm-5">
  38. <h4><strong>Message</strong></h4>
  39. </div>
  40. </div>
  41. <?php
  42. foreach ($support_msgs as $msg)
  43. {
  44. ?>
  45. <div class="row">
  46. <div class="col-sm-2">
  47. <p><?php echo $msg['date_added']; ?></p>
  48. </div>
  49. <div class="col-sm-2">
  50. <p><a href="mailto:<?php echo $msg['email']; ?>"><?php echo $msg['name']; ?></a></p>
  51. </div>
  52. <div class="col-sm-3">
  53. <p><?php echo $msg['subject']; ?></p>
  54. </div>
  55. <div class="col-sm-5">
  56. <p><?php echo $msg['message']; ?></p>
  57. </div>
  58. </div>
  59. <?php
  60. }
  61. }
  62. ?>
  63. </div>
  64. <div class="tab-pane" id="management">
  65. <div class="row">
  66. <div class="col-sm-12">
  67. <div class="form-group">
  68. <label for="userSearch" class="col-sm-2 control-label">Username</label>
  69. <div class="col-sm-10">
  70. <input type="text" class="form-control" id="userSearch" placeholder="Username" maxlength="40" onkeyup="update_user_list(this.value);" />
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="user_list"></div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>