PHP Classes

File: fwphp/glomodul/z_examples/todo_csv_js/tasks/Views/Www/index.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/todo_csv_js/tasks/Views/Www/index.php   Download  
File: fwphp/glomodul/z_examples/todo_csv_js/tasks/Views/Www/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/todo_csv_js/tasks/Views/Www/index.php
Date: 1 year ago
Size: 1,245 bytes
 

Contents

Class file image Download
<h1>Tasks</h1>
<div class="row col-md-12 centered">
    <table class="table table-striped custab">
        <thead> <!-- /MVC_todo/tasks/create/ -->

        <a href= "<?=QS?>create/"
           class="btn btn-primary btn-xs pull-right"><b>+</b> Add new task</a>

        <tr>
          <th>ID</th><th>Task</th><th>Description</th><th class="text-center">Action</th>
        </tr>

        </thead>
        <?php
       
///MVC_todo/tasks/edit/
       
foreach ($tasks as $task)
        {
           
?><tr>
            <td><?=$task['id']?></td>

            <td>
              <a href="<?=QS?>edit/<?=$task["id"]?>">
                 <span class="glyphicon glyphicon-edit"></span><?=$task['title']?></a>
            </td>

            <td><?=$task['summary']?></td>

            <td class='text-center'>
            <!--a class='btn btn-info btn-xs' href="<?=QS?>edit/<?=$task["id"]?>">
               <span class="glyphicon glyphicon-edit"></span> Edit</a-->

            <a href="<?=QS?>delete/<?=$task['id']?>"
               class="btn btn-danger btn-xs">
               <span class="glyphicon glyphicon-remove"></span> Del <?=$task['id']?></a>
            </td>

            </tr>
            <?php
       
}
       
?>
</table>
</div>