Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv27766
Modified Files:
jBlog_functions.inc.php
Log Message:
handcode comment form, that logic was essentially worthless
Index: jBlog_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_functions.inc.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- jBlog_functions.inc.php 10 Mar 2003 04:33:34 -0000 1.43
+++ jBlog_functions.inc.php 10 Mar 2003 04:39:02 -0000 1.44
@@ -12,30 +12,29 @@
if (IN_JBLOG !== true) die ("Don't hack!");
$jBlog["imageList"] = array();
-$commentsFields = array(
- "Name" => "<input type=\"text\" name=\"jBlog[name]\" value=\"\" size=\"30\" />",
- "Email" => "<input type=\"text\" name=\"jBlog[email]\" value=\"\" />",
- "Homepage" => "<input type=\"text\" name=\"jBlog[url]\" value=\"\" />",
- "Comment" => '<textarea rows="10" cols="40" name="jBlog[comment]"></textarea>'
-);
-
function jBlog_displayCommentForm($id) {
- global $jBlog, $commentsFields;
+ global $jBlog;
?>
<div class="jBlogCommentForm">
<form name="jBlog_comment" action="<?=$jBlog['jBlogHTTPPath']?>comment.php" method="post" onsubmit="if (this.jBlog_remember.checked) rememberMe(this, '<?=$_SERVER['HTTP_HOST']?>')">
<input type="hidden" name="jBlog[entry_id]" value="<?=$id?>" />
<table border="0" width="100%" cellpadding="3">
-<?php
-foreach ($commentsFields as $label => $field) {
-?>
<tr>
-<td class="jBlog_commentsLabel"><?=$label?></td>
-<td class="jBlog_commentsValue"><?=$field?></td>
+<td class="jBlog_commentsLabel">Name</td>
+<td class="jBlog_commentsValue"><input type="text" name="jBlog[name]" value="" size="30" /></td>
+</tr>
+<tr>
+<td class="jBlog_commentsLabel">Email</td>
+<td class="jBlog_commentsValue"><input type="text" name="jBlog[email]" value="" /></td>
+</tr>
+<tr>
+<td class="jBlog_commentsLabel">Homepage</td>
+<td class="jBlog_commentsValue"><input type="text" name="jBlog[url]" value="" /></td>
+</tr>
+<tr>
+<td class="jBlog_commentsLabel">Comment</td>
+<td class="jBlog_commentsValue"><textarea rows="10" cols="40" name="jBlog[comment]"></textarea></td>
</tr>
-<?php
-}
-?>
</table>
Remember Information?
<input type="checkbox" name="jBlog_remember" /><br />
|