PHP Classes

File: examples/library/view/authors.php

Recommend this page to a friend!
  Classes of Victor Bolshov  >  Tiny PHP ORM Framework  >  examples/library/view/authors.php  >  Download  
File: examples/library/view/authors.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Tiny PHP ORM Framework
Map objects to databases using composed queries
Author: By
Last change: Improved library example: added author_save.php, author_edit.php; got rid of author_add.php;
Added credits section to README
Date: 6 years ago
Size: 911 bytes


Class file image Download
<h3>Add new author</h3>
<form method="post" action="author_save.php" class="form" id="add-form">
    <div class="input-group">
        <input type="text" name="name" class="form-control">
        <a class="input-group-addon btn"
           onclick="document.getElementById('add-form').submit(); return false;">Add</a>

<table class="table table-bordered table-striped">
    <?php foreach ($authors as $author) : ?>
            <td><?=htmlspecialchars($author["name"], ENT_QUOTES)?></td>
                <a href="author_edit.php?id=<?=$author["id"]?>">Edit</a> |
                <a href="author_delete.php?id=<?=$author["id"]?>">Delete</a>
    <?php endforeach; ?>

For more information send a message to info at phpclasses dot org.