Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.php 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <h2 class="text-center"><strong>User Management</strong></h2>
  66. <div class="row">
  67. <div class="col-sm-6">
  68. <div class="form-group">
  69. <label for="userSearch" class="control-label">Username</label>
  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 class="user_list"></div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>