Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

main.php 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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="col-sm-2 control-label">Username</label>
  70. <div class="col-sm-10">
  71. <input type="text" class="form-control" id="userSearch" placeholder="Username" maxlength="40" onkeyup="update_user_list(this.value);" />
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="user_list"></div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>