當前位置: 首頁>>代碼示例>>PHP>>正文


PHP printHTMLfooter函數代碼示例

本文整理匯總了PHP中printHTMLfooter函數的典型用法代碼示例。如果您正苦於以下問題:PHP printHTMLfooter函數的具體用法?PHP printHTMLfooter怎麽用?PHP printHTMLfooter使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了printHTMLfooter函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: printError

function printError($scriptName, $startTime, $title, $error)
{
    printHTMLheader("RUBBoS ERROR: {$title}");
    print "<h2>We cannot process your request due to the following error :</h2><br>\n";
    print $error;
    printHTMLfooter($scriptName, $startTime);
}
開發者ID:michaelprem,項目名稱:phc,代碼行數:7,代碼來源:PHPprinter.php

示例2: while

        }
        $i++;
    }
}
while ($i < 6) {
    print "<OPTION value=\"{$i}\">{$i}: 0 comment</OPTION>\n";
    $i++;
}
print "</SELECT>&nbsp&nbsp&nbsp&nbsp<SELECT name=display>\n" . "<OPTION value=\"0\">Main threads</OPTION>\n" . "<OPTION selected value=\"1\">Nested</OPTION>\n" . "<OPTION value=\"2\">All comments</OPTION>\n" . "</SELECT>&nbsp&nbsp&nbsp&nbsp<input type=submit value=\"Refresh display\"></center><p>\n";
$display = 1;
$filter = 0;
// Display the comments
$comment = mysql_query("SELECT * FROM {$comment_table} WHERE story_id={$storyId} AND parent=0 AND rating>={$filter}", $link) or die("ERROR: Query failed");
while ($comment_row = mysql_fetch_array($comment)) {
    print "<br><hr><br>";
    $username = getUserName($comment_row["writer"], $link);
    print "<TABLE width=\"100%\" bgcolor=\"#CCCCFF\"><TR><TD><FONT size=\"4\" color=\"#000000\"><B><a href=\"ViewComment.php?comment_table={$comment_table}&storyId={$storyId}&commentId=" . $comment_row["id"] . "&filter={$filter}&display={$display}\">" . $comment_row["subject"] . "</a></B>&nbsp</FONT> (Score:" . $comment_row["rating"] . ")</TABLE>\n";
    print "<TABLE><TR><TD><B>Posted by " . $username . " on " . $comment_row["date"] . "</B><p>\n";
    print "<TR><TD>" . $comment_row["comment"];
    print "<TR><TD><p>[ <a href=\"PostComment.php?comment_table={$comment_table}&storyId={$storyId}&parent=" . $comment_row["id"] . "\">Reply to this</a>&nbsp|&nbsp" . "<a href=\"ViewComment.php?comment_table={$comment_table}&storyId={$storyId}&commentId=" . $comment_row["parent"] . "&filter={$filter}&display={$display}\">Parent</a>" . "&nbsp|&nbsp<a href=\"ModerateComment.php?comment_table={$comment_table}&commentId=" . $comment_row["id"] . "\">Moderate</a> ]</TABLE>\n";
    if ($comment_row["childs"] > 0) {
        display_follow_up($comment_row[id], 1, $display, $filter, $link, $comment_table);
    }
}
mysql_free_result($result);
mysql_close($link);
printHTMLfooter($scriptName, $startTime);
?>
  </body>
</html>
開發者ID:michaelprem,項目名稱:phc,代碼行數:30,代碼來源:ViewStory.php


注:本文中的printHTMLfooter函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。