<?/*
WBBlog - Single User Blog
Version 1.0
Michael Lintz - LIQUA Web Solutions
hide@address.com - http://www.liqua.com
Copyright (C) 2005
This program is free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation; either version
2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/?>
<?php if (isset($cmd) && $cmd == "calentry"): ?>
<? $pageTitle = $pt_calentry; ?>
<?
include 'head.inc.php';
?>
<table class='ContentTitle'><tr><td>Entries for <? echo date('l, F jS Y',strtotime($date)); ?></td></tr></table>
<br />
<?php
//echo "<p><table width='350'><tr><td><p>Blogs for $date</p>";
$blogQuery = "SELECT e_id, e_author, e_title, e_content, e_category, e_timestamp FROM entry WHERE date_format(e_timestamp, '%Y-%m-%d') = '$date'";
$blogResult = mysql_query($blogQuery);
if (mysql_numrows($blogResult) > 0) {
while (list($e_id,$e_author,$title,$content,$e_category,$e_timestamp) =
mysql_fetch_row($blogResult)) {
$newtime = date('g:i A',strtotime($e_timestamp));
?>
<table class='BlogHeader'>
<tr class='BlogTitle'>
<td><? echo $title ?></td>
</tr>
<tr class='BlogDate'>
<td>Posted <? echo $newtime ?> | <a href="index.php?cmd=viewentry&e_id=<? echo $e_id; ?>">Link</a> | By: <? echo $e_author; ?> | <a href="index.php?cmd=category&e_category=<? echo $e_category; ?>"><? echo $e_category; ?></a></td>
</tr>
</table>
<table class='BlogContent'>
<tr>
<td><? echo $content ?></td>
</tr>
<tr>
<td>
<br /><br />
</td>
</tr>
<tr>
<td width="100%" valign="top">
</td>
</tr>
</table>
<table class='BlogFooterNoDash'>
<tr>
<td></td>
</tr>
</table>
<br />
<br />
<?
}
} else {
echo "No blogs available";
}
echo "";
?>
<?php endif; ?>