Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'core/init.php';
- include 'includes/header.php';
- include 'includes/navigation.php';
- ?>
- <title>Power ID | xatWebs</title>
- <article class="post">
- <div class="panel panel-primary">
- <div class="panel-heading"><a class="transicion">Power ID Numbers</a></div>
- <div class="panel-body">
- <script type="text/javascript" language="javascript" src="datatables/media/js/jquery.dataTables.js"></script>
- <script type="text/javascript" language="javascript" src="datatables/examples/resources/syntax/shCore.js"></script>
- <script type="text/javascript" language="javascript" src="datatables/examples/resources/demo.js"></script>
- <script type="text/javascript" language="javascript" class="init">
- $(document).ready(function() {
- $('#powers').DataTable( {
- "lengthMenu": [[100, 200, 300, -1], [100, 200, 300, "All"]],
- "ordering": false,
- "info": false
- } );
- } );
- </script>
- <table id="powers" class="table table-striped table-bordered order-column display compact table-hover">
- <thead>
- <tr>
- <th>
- <center>Power ID</center>
- </th>
- <th>
- <center>AllPowers</center>
- </th>
- <th>
- <center>Smilie</center>
- </th>
- <th>
- <center>Power Name</center>
- </th>
- <th>
- <center>Status</center>
- </th>
- <th>
- <center>Type</center>
- </th>
- <th>
- <center>Store Price</center>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php
- $users = $db->getOrderedRows('powerid', " ORDER BY `id` ASC");
- foreach($users as $user){
- $u = new Powerid($user[0]);
- $smilie = strtolower($u->data()->Name);
- $img = ((strlen($smilie) > 0) == true) ? '<img rel="tooltip" title="'.$smilie.'" alt="'.$smilie.'" src="http://xat.com/images/smw/'.$smilie.'.png">' : '' ;
- ?>
- <tr style="color:<?php echo $rankhex;?>">
- <td>
- <center><b><?php echo $u->data()->id;?></b></center>
- </td>
- <td>
- <?php
- echo (empty($u->data()->AllPowers)) ? "" : "<center><img rel='tooltip' title='Allpowers' src='http://xat.com/images/apicon.png' /> <B>Allpowers</b></center>";
- ?>
- </td>
- <?php
- $smilie = strtolower($u->data()->Name);
- ?>
- <td>
- <center><b><a href="http://util.xat.com/wiki/index.php?title=<?php echo $smilie ?>" target="_blank"><?php echo $img ?></b></center>
- </td>
- <td>
- <center><?php echo $u->data()->Name;?></center>
- </td>
- <td>
- <center><?php echo $u->data()->Status;?></center>
- </td>
- <td>
- <center><?php echo $u->data()->Type;?></center>
- </td>
- <td>
- <center><?php echo $u->data()->StorePrice;?></center>
- </td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </article>
- </div> <!-- container -->
- </div>
- <?php
- include 'includes/footer.php';
Advertisement
Add Comment
Please, Sign In to add comment