Guest User

Untitled

a guest
Aug 20th, 2015
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4.  
  5.  
  6. include 'core/init.php';
  7.  
  8. include 'includes/header.php';
  9.  
  10. include 'includes/navigation.php';
  11.  
  12.  
  13.  
  14. ?>
  15.  
  16. <title>Power ID | xatWebs</title>
  17. <article class="post">
  18.  
  19. <div class="panel panel-primary">
  20. <div class="panel-heading"><a class="transicion">Power ID Numbers</a></div>
  21. <div class="panel-body">
  22. <script type="text/javascript" language="javascript" src="datatables/media/js/jquery.dataTables.js"></script>
  23. <script type="text/javascript" language="javascript" src="datatables/examples/resources/syntax/shCore.js"></script>
  24. <script type="text/javascript" language="javascript" src="datatables/examples/resources/demo.js"></script>
  25. <script type="text/javascript" language="javascript" class="init">
  26.  
  27.  
  28. $(document).ready(function() {
  29. $('#powers').DataTable( {
  30. "lengthMenu": [[100, 200, 300, -1], [100, 200, 300, "All"]],
  31. "ordering": false,
  32. "info": false
  33.  
  34. } );
  35. } );
  36.  
  37. </script>
  38. <table id="powers" class="table table-striped table-bordered order-column display compact table-hover">
  39. <thead>
  40. <tr>
  41. <th>
  42. <center>Power ID</center>
  43. </th>
  44.  
  45. <th>
  46. <center>AllPowers</center>
  47. </th>
  48. <th>
  49. <center>Smilie</center>
  50. </th>
  51. <th>
  52. <center>Power Name</center>
  53. </th>
  54. <th>
  55. <center>Status</center>
  56. </th>
  57. <th>
  58. <center>Type</center>
  59. </th>
  60. <th>
  61. <center>Store Price</center>
  62. </th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. <?php
  67. $users = $db->getOrderedRows('powerid', " ORDER BY `id` ASC");
  68. foreach($users as $user){
  69. $u = new Powerid($user[0]);
  70.  
  71. $smilie = strtolower($u->data()->Name);
  72. $img = ((strlen($smilie) > 0) == true) ? '<img rel="tooltip" title="'.$smilie.'" alt="'.$smilie.'" src="http://xat.com/images/smw/'.$smilie.'.png">' : '' ;
  73.  
  74. ?>
  75. <tr style="color:<?php echo $rankhex;?>">
  76. <td>
  77. <center><b><?php echo $u->data()->id;?></b></center>
  78. </td>
  79. <td>
  80. <?php
  81. echo (empty($u->data()->AllPowers)) ? "" : "<center><img rel='tooltip' title='Allpowers' src='http://xat.com/images/apicon.png' /> <B>Allpowers</b></center>";
  82. ?>
  83. </td>
  84. <?php
  85. $smilie = strtolower($u->data()->Name);
  86. ?>
  87. <td>
  88. <center><b><a href="http://util.xat.com/wiki/index.php?title=<?php echo $smilie ?>" target="_blank"><?php echo $img ?></b></center>
  89. </td>
  90. <td>
  91. <center><?php echo $u->data()->Name;?></center>
  92. </td>
  93. <td>
  94. <center><?php echo $u->data()->Status;?></center>
  95. </td>
  96. <td>
  97. <center><?php echo $u->data()->Type;?></center>
  98. </td>
  99. <td>
  100. <center><?php echo $u->data()->StorePrice;?></center>
  101. </td>
  102. </tr>
  103. <?php
  104. }
  105. ?>
  106. </tbody>
  107. </table>
  108.  
  109. </div>
  110.  
  111. </div>
  112.  
  113. </div>
  114. </div>
  115. </article>
  116.  
  117. </div> <!-- container -->
  118. </div>
  119. <?php
  120.  
  121. include 'includes/footer.php';
Advertisement
Add Comment
Please, Sign In to add comment