File: examples/blog/app/admin/templates/comments/edit.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/blog/app/admin/templates/comments/edit.php  >  Download  
File: examples/blog/app/admin/templates/comments/edit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 1,642 bytes
 

Contents

Class file image Download
<h1>Edit Post</h1>
<p>Edit the values of this comment.</p>
<?php if(isset($errorMsg) && !empty($errorMsg)) { ?>
<p class="error"><?php echo $this->escape($errorMsg); ?></p>
<?php } ?>
<form action="admin/comments/edit/?id=<?php echo (int) $id; ?>" method="post">
    <input type="hidden" name="id" value="<?php echo (int) $id; ?>"/>
    <input type="hidden" name="posts_id" value="<?php echo (int) $posts_id; ?>"/>
    <div>
        <label>Author</label>
        <input type="text" name="author" value="<?php echo $this->escape($author); ?>" size="50"/>
    </div>
    <div>
        <label>Author email</label>
        <input type="text" name="author_email" value="<?php echo $this->escape($author_email); ?>" size="50"/>
    </div>
    <div>
        <label>Author url</label>
        <input type="text" name="author_url" value="<?php echo $this->escape($author_url); ?>" size="50"/>
    </div>
    <div>
        <label>Users_id</label>
        <input type="text" name="users_id" value="<?php echo $this->escape($users_id); ?>" size="50"/>
    </div>
    <div>
        <label>Comment date</label>
        <input type="text" name="comment_date" value="<?php echo $this->escape($comment_date); ?>" size="50"/>
    </div>
    <div>
        <label>Comment</label>
        <textarea name="comment" cols="50" rows="10"/><?php echo $this->escape($comment); ?></textarea>
    </div>
    <div>
        <label class="checkbox" ><input type="checkbox" class="checkbox" name="approved" value="1"
        <?php
       
if(isset($approved) && $approved == 1) { echo 'checked="checked"';}
       
?> />Approve comment</label>
    </div>
    <div>
         <input type="submit" name="save" class="submit" value="Save">
    </div>
</form>

    <div><a href="admin/posts/listing/">return to listing</a></div>

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