rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

posts.php (979B)


      1 <h2>Posts</h2>
      2 <table class="table table-striped table-hover">
      3   <tr>
      4     <th>ID</th>
      5     <th>Title</th>
      6     <th>Short Description</th>
      7     <th><span class="glyphicon glyphicon-cog" aria-hidden="true" style="text-align:center;"></span></th>
      8   </tr>
      9     <?php
     10       $id = 1;
     11       $x = 1;
     12       include($root . '/core/backend/blog/posts.php');
     13       while ($x < $post_id_clean+1){
     14         include($root . '/core/config/connect.db.inc.php');
     15         echo "<tr>";
     16         echo "<td>$id</td>";
     17         echo "<td>$post_title</td>";
     18         echo "<td></td>";
     19         echo "<td><a href=\"admin.php?function=edit&id=$id\" title=\"Edit\">Edit</a>  <span class=\"glyphicon glyphicon-pencil\" aria-hidden=\"true\"></span>  |  <a href=\"admin.php?function=delete&id=$id\" title=\"Delete\">Delete</a>  <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span></td>";
     20         echo "</tr>";
     21         $x = $x+1;
     22         $id = $id+1;
     23         next_id_only();
     24       }
     25       ?>
     26 </table>