Annotation of cdn/www/b2commentspopup.php, revision 1.1

1.1     ! cdn         1: <?php /* Don't remove this line, it calls the b2 function files ! */
        !             2: $blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) { start_b2();
        !             3: ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        !             4:     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        !             5: <html xmlns="http://www.w3.org/1999/xhtml">
        !             6: <head>
        !             7: <title><?php echo $blogname ?> - comments on '<?php the_title() ?>'</title>
        !             8: 
        !             9: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        !            10: <meta http-equiv="reply-to" content="you@yourdomain.com" />
        !            11: <meta http-equiv="imagetoolbar" content="no" />
        !            12: <meta content="TRUE" name="MSSmartTagsPreventParsing" />
        !            13: 
        !            14: <style type="text/css" media="screen">
        !            15: @import url( layout2b.css );
        !            16: </style>
        !            17: <link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
        !            18: <link rel="alternate" type="text/xml" title="XML" href="<?php echo $siteurl ?>/b2rss.php" />
        !            19: 
        !            20: </head>
        !            21: <body>
        !            22: <div id="header"><a href="" title="<?php echo $blogname ?>"><?php echo $blogname ?></a></div>
        !            23: 
        !            24: <div id="contentcomments">
        !            25: 
        !            26: <div class="storyContent">
        !            27: 
        !            28: <?php 
        !            29: $comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
        !            30: $comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
        !            31: $comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
        !            32: 
        !            33: $queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' ORDER BY comment_date";
        !            34: $resultc = mysql_query($queryc);
        !            35: if ($resultc) {
        !            36: ?>
        !            37: 
        !            38: 
        !            39: 
        !            40: <!-- you can start editing here -->
        !            41: 
        !            42: <a name="comments"></a>
        !            43: <p>&nbsp;</p>
        !            44: <div><strong><span style="color: #0099CC">::</span> comments</strong></div>
        !            45: <p>&nbsp;</p>
        !            46: 
        !            47: <?php // these lines are b2's motor, do not delete
        !            48: while($rowc = mysql_fetch_object($resultc)) {
        !            49:        $commentdata = get_commentdata($rowc->comment_ID);
        !            50: ?><a name="c<?php comment_ID() ?>"></a>
        !            51:        
        !            52: <!-- comment -->
        !            53: <p>
        !            54: <b><?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
        !            55: <br />
        !            56: <?php comment_text() ?>
        !            57: <br />
        !            58: <?php comment_date() ?> @ <?php comment_time() ?>
        !            59: </p>
        !            60: <p>&nbsp;</p>
        !            61: <!-- /comment -->
        !            62: 
        !            63: 
        !            64: <?php //end of the loop, don't delete
        !            65: }
        !            66: 
        !            67: ?>
        !            68: 
        !            69: <div><strong><span style="color: #0099CC">::</span> leave a comment</strong></div>
        !            70: <p>&nbsp;</p>
        !            71: 
        !            72: 
        !            73: <!-- form to add a comment -->
        !            74: 
        !            75: <form action="b2comments.post.php" method="post">
        !            76:        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
        !            77:        <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" />
        !            78:        
        !            79:        <p class="commentfield">
        !            80:        name<br />
        !            81:        <input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" />
        !            82:        </p>
        !            83: 
        !            84:        <p class="commentfield">
        !            85:        email<br />
        !            86:        <input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" />
        !            87:        </p>
        !            88: 
        !            89:        <p class="commentfield">
        !            90:        url<br />
        !            91:        <input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" />
        !            92:        </p>
        !            93: 
        !            94:        <p class="commentfield">
        !            95:        your comment<br />
        !            96:        <textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
        !            97:        </p>
        !            98: 
        !            99:        <p class="commentfield">
        !           100:        <input type="checkbox" name="comment_autobr" value="1" <?php
        !           101:        if ($autobr)
        !           102:        echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR (line-breaks become &lt;br> tags)<br />
        !           103:        <input type="submit" name="submit" class="buttonarea" value="ok" tabindex="5" />
        !           104:        </p>
        !           105: 
        !           106: </form>
        !           107: 
        !           108: <!-- /form -->
        !           109: 
        !           110: 
        !           111: <p>&nbsp;</p>
        !           112: <div><b><span style="color: #0099CC">::</span> <a href="javascript:window.close()">close this window</a></b></div>
        !           113: 
        !           114: <?php // if you delete this the sky will fall on your head
        !           115: }
        !           116: ?>
        !           117: 
        !           118: </div>
        !           119: 
        !           120: 
        !           121: <!-- // this is just the end of the motor - don't touch that line either :) -->
        !           122:        <?php } ?> 
        !           123: 
        !           124: 
        !           125: </div>
        !           126: 
        !           127: <p class="centerP">
        !           128: [powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
        !           129: </p>
        !           130: 
        !           131: 
        !           132: </body>
        !           133: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>