PHP Classes

File: fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Views/Ngrt_MVC_todo/index.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Views/Ngrt_MVC_todo/index.php   Download  
File: fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Views/Ngrt_MVC_todo/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Views/Ngrt_MVC_todo/index.php
Date: 1 year ago
Size: 1,039 bytes
 

Contents

Class file image Download
<h1>posts</h1>
<div class="row col-md-12 centered">
    <table class="table table-striped custab">
        <thead>
        <a href="/MVC_todo/posts/create/" class="btn btn-primary btn-xs pull-right"><b>+</b> Add new task</a>
        <tr>
            <th>ID</th>
            <th>Task</th>
            <th>Description (Summary)</th>
            <th class="text-center">Action</th>
        </tr>
        </thead>
        <?php
       
foreach ($posts as $task)
        {
            echo
'<tr>';
            echo
"<td>" . $task['id'] . "</td>";
            echo
"<td>" . $task['title'] . "</td>";
            echo
"<td>" . $task['summary'] . "</td>";
            echo
"<td class='text-center'><a class='btn btn-info btn-xs' href='/MVC_todo/posts/edit/" . $task["id"] . "' ><span class='glyphicon glyphicon-edit'></span> Edit</a> <a href='/MVC_todo/posts/delete/" . $task["id"] . "' class='btn btn-danger btn-xs'><span class='glyphicon glyphicon-remove'></span> Del</a></td>";
            echo
"</tr>";
        }
       
?>
</table>
</div>