PHP Classes

File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/templates/blog_display.tpl

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/templates/blog_display.tpl  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch12_Projects/templates/blog_display.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 3 months ago
Size: 1,239 bytes


Class file image Download
h1 {
    font-family: sans-serif;
    font-size: 20px;
h4 {
    font-family: sans-serif;
    font-size: 12px;
.content {
    font-family: sans-serif;
    font-size: 12px;
function show_cform() {
    o = document.getElementById("comment_form");
    if (o) { = ""; }
    o = document.getElementById("comment_link");
    if (o) { = "none"; }
<span class="content">
<a href="blog_index.php">my blog</a>
Category: {$category}<br />
<br />

{section name=i loop=$comments}
  <b>{$comments[i].name}</b> ({$comments[i].time})<br />
  <br /><br />

<div id="comment_link">
  <a href="javascript:show_cform();">Add a Comment</a>
<div id="comment_form" style="display: none;">
<form method="post" action="blog_comment.php">
<input type="hidden" name="ID" value="{$id}">
Your name:<br />
<input name="name" type="text" />
<br /><br />
Comment:<br />
<textarea name="comment" rows="8" cols="40"></textarea>
<br />
<input type="submit" value="Post comment">
For more information send a message to info at phpclasses dot org.