本文整理汇总了PHP中showFooter函数的典型用法代码示例。如果您正苦于以下问题:PHP showFooter函数的具体用法?PHP showFooter怎么用?PHP showFooter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showFooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($title, $content)
{
print showHeader($title);
print $content;
print showFooter();
exit;
}
示例2: showLogin
/**
* Show login page
*
* @return void
*/
function showLogin()
{
showHeader();
?>
<form name="login" method="post" action="">
<table class="form">
<tr>
<th class="title" colspan="2">Authentification administrateur obligatoire</th>
</tr>
<tr>
<th><label for="username">Nom d'utilisateur :</label></th>
<td><input type="text" name="username" autofocus="autofocus" /></td>
</tr>
<tr>
<th><label for="password">Mot de passe :</label></th>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td class="button" colspan="2"><button class="submit" type="submit">Valider</button></td>
</tr>
</table>
</form>
<?php
showFooter();
}
示例3: showLogin
function showLogin($error = '')
{
showHeader();
if ($error) {
print $error;
}
print <<<LOGINFORM
\t\t<form action="{$_SERVER['PHP_SELF']}" method="post">
\t\t<table>
\t\t\t<tr><td><b>Username:</b></td><td><input type="text" name="username" /></td></tr>
\t\t\t<tr><td><b>Password:</b></td><td><input type="password" name="password" /></td></tr>
\t\t\t<tr><td colspan="2"><button name="Login" value="Login" type="submit">Login</button></td></tr>
\t\t</table>
\t\t</form>
LOGINFORM;
showFooter();
}
示例4: showContent
/**
* Displays the main content of the page.
*
* @param $title The title of the page
*/
function showContent($title)
{
$db = new DB();
$cartID = getCartID();
$sql = "SELECT ID, name, products.price, quantity, date \n FROM shoppingcarts, products\n WHERE productID=ID AND CartID='{$cartID}'";
$result = $db->query($sql);
echo "<h1>{$title}</h1>\n";
echo "<table>\n";
showHeading();
$user = isset($_SESSION['user']) ? $_SESSION['user'] : "";
while ($row = mysql_fetch_row($result)) {
list($productId, $prodName, $price, $qty, $date) = $row;
$total += $price * $qty;
showItem($productId, $prodName, $price, $qty);
$sql = "INSERT INTO orders(username, date, status)\n VALUES ('{$user}', '{$date}', 'ordered')";
$db->query($sql);
$sql = "INSERT INTO orderItems(orderID, productID, quantity, status)\n VALUES ('LAST_INSERT_ID()', '{$productId}', '{$qty}', 'ordered')";
$db->query($sql);
$sql = "DELETE FROM shoppingcarts WHERE CartID='{$cartID}'";
$db->query($sql);
}
$total = "\$" . number_format($total, 2);
showFooter($total);
echo "</table>\n";
$sql = "SELECT fname, lname, address, city, state, zip, country\n FROM customers, addresses \n WHERE customers.username=addresses.username \n AND customers.username='{$user}'";
$result = $db->query($sql);
$row = mysql_fetch_row($result);
list($fname, $lname, $address, $city, $state, $zip, $country) = $row;
echo "<p>This order will be shipped to</p>";
echo "<p>{$fname} {$lname}</p>";
echo "<p>{$address}</p>";
echo "<p>{$city}, {$state} {$zip}</p>";
echo "<p>{$country}</p>";
setcookie('cartID', '', time() - 86400, '/');
session_destroy();
}
示例5: showPage
//.........这里部分代码省略.........
\t<td><input type="file" name="file5"></td>
</tr>
</tbody>
</table>
<input type="hidden" name="_submit_check" value="1" />
\t <br/>
<button formmethod="post" formaction="{$_SERVER['PHP_SELF']}" value="submit" name="Submit">Request Refund</button></form>
ADDREFUNDPAGE;
} else {
print <<<ADDREFUNDPAGE
\t\t<h2 align="center">Add a New Refund</h2>
\t\t\t<a href="refunds.php">Back to Refunds</a>
\t<br/><br/>
\t\t<form method="POST" action="{$_SERVER['PHP_SELF']}" name="add_refund" enctype="multipart/form-data">
<table style="width: 100%" border="1">
<tbody>
<tr>
<td>Urgent</td>
<td><input maxlength="50" name="urgent" type="checkbox" value ="1"><br>
</td>
</tr>
<tr>
\t<td>Amount</td>
\t\t\t
\t<td><input maxlength="50" name="amount" type="text" value =""><br />
</tr>
<tr>
<td>Check Payable To:</td>
<td><input name="payable" type="text" value="">
</td>
</tr>
<tr>
<td>Address Line 1</td>
<td><input name="addr_ln_1" type="text" value="">
</td>
</tr>
<tr>
<td>Address Line 2</td>
<td><input name="addr_ln_2" type="text" value="">
</td>
</tr>
<tr>
<td>City</td>
<td><input name="city" type="text" value="">
</td>
<tr>
<td>State</td>
<td><input maxlength="2" name="state" type="text" value="">
</td>
</tr>
<tr>
<td>Zip</td>
<td><input maxlength="10" name="zip" type="text" value="">
</td>
</tr>
<tr>
<td>Encounter Number</td>
<td><input name="enc_nbr" type="text" value="">
</td>
</tr>
<tr>
<td>Purpose</td>
<td><input name="purpose" type="text" value="">
</td>
</tr>
<tr>
<td>Comments</td>
<td><textarea name="comments" cols="20" rows="4" value="" ></textarea>
</td>
</tr>
<tr>
\t<td>Attachment 1</td>
\t<td><input type="file" name="file1" ></td>
</tr>
<tr>
\t<td>Attachment 2</td>
\t<td><input type="file" name="file2"></td>
</tr>
<tr>
\t<td>Attachment 3</td>
\t<td><input type="file" name="file3"></td>
</tr>
<tr>
\t<td>Attachment 4</td>
\t<td><input type="file" name="file4"></td>
</tr>
<tr>
\t<td>Attachment 5</td>
\t<td><input type="file" name="file5"></td>
</tr>
</tbody>
</table>
<input type="hidden" name="_submit_check" value="1" />
\t <br/>
<button formmethod="post" formaction="{$_SERVER['PHP_SELF']}" value="submit" name="Submit">Request Refund</button></form>
ADDREFUNDPAGE;
}
showFooter();
}
示例6: showPost
function showPost($title, $url, $path, $tags, $pdate)
{
showHeader($title);
showPostContent($title, $url, $path, $tags, $pdate, false);
showFooter();
return true;
}
示例7: showFooter
</div>
</form>
<div style="padding: 5px; font-weight: bold; height: 30px; background: orange; color: white; border-radius: 0px 0px 10px 10px; float: right;">
<label style="display: inline-block; float: right; padding: 0px 10px 0px 10px;">
Total Items: <?php
echo $itemsAvail;
?>
</label>
</div>
</div>
</div>
<div style="width: 100%; height: 100px; background: white; box-shadow: 0px 0px 10px 2px gray inset; border-radius: 0px 0px 10px 10px; margin-top: 10px;">
<?php
echo showFooter();
?>
</div>
</div>
</div>
</div>
</div>
<?php
//closeDB($con);
?>
</body>
</html>
示例8: showPage
function showPage($username = '', $accessLvl = '', $errors = '')
{
showHeader($username, $accessLvl);
global $db;
if ($errors) {
//show errors at top of page
print '<h2 class = "error"> The following errors were encountered:</h2>';
print '<ul><li>';
print implode('</li><li>', $errors);
print '</li></ul>';
}
$parts_emailName_30 = explode("@", $_SESSION['mailto_over30']);
$parts_emailName_15 = explode("@", $_SESSION['mailto_over15']);
print <<<ADDUSERPAGE
\t\t\t<h2 align="center">Configure Email Settings</h2>
\t\t\t<form method="POST" action="{$_SERVER['PHP_SELF']}" name="add_user">
\t\t <table style="width: 100%" border="1">
\t\t\t<tbody>
\t\t\t <tr>
\t\t\t\t<td>Email After 30 Days</td>
\t\t\t\t<td>
\t <select name="30_days_overdue">
ADDUSERPAGE;
$query_users = 'SELECT user_id, first_name, last_name, username FROM users';
$result_users = mysqli_query($db, $query_users);
$selected = 1;
while ($row_users = mysqli_fetch_array($result_users)) {
$selected = $row_users['username'] === $parts_emailName_30[0] ? ' selected="selected"' : '';
print "<option value=\"{$row_users['user_id']}\" {$selected} ";
print ">{$row_users['first_name']} {$row_users['last_name']}</option>";
}
print <<<ADDUSERPAGE
</select>
<br>
</td>
</tr>
<tr>
\t\t <td>Email After 15 Days</td>
\t\t <td>
\t\t <select name="15_days_overdue">
ADDUSERPAGE;
$result_users_15 = mysqli_query($db, $query_users);
//$selected=1;
while ($row_users_15 = mysqli_fetch_array($result_users_15)) {
$selected = $row_users_15['username'] === $parts_emailName_15[0] ? ' selected="selected"' : '';
print "<option value=\"{$row_users_15['user_id']}\" {$selected} ";
print ">{$row_users_15['first_name']} {$row_users_15['last_name']}</option>";
}
print <<<ADDUSERPAGE
</select>
<br>
</td>
</tr>
<tr>
\t\t
\t\t</tbody>
</table>
<input type="hidden" name="_submit_check" value="1" />
\t <br>
<button formmethod="post" formaction="{$_SERVER['PHP_SELF']}" value="submit" name="Submit">Add User</button></form>
ADDUSERPAGE;
print '<h4 align="center"><a href="admin.php">Return to User Administration Page</a></h4>';
showFooter();
}
示例9: showPage
//.........这里部分代码省略.........
\t\t\t\t<td><input maxlength="50" name="par1_recipient_3" type="text" value ="{$_POST['par1_recipient_3']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t \t\t
\t\t\t\t\t
\t\t\t\t\t <tr>
\t\t\t\t<td>Overdue 15 Days Recipient 1</td>
\t\t\t\t<td><input maxlength="50" name="over15_recipient_1" type="text" value ="{$_POST['over15_recipient_1']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t<tr>
\t\t\t\t<td>Overdue 15 Days Recipient 2</td>
\t\t\t\t<td><input maxlength="50" name="over15_recipient_2" type="text" value ="{$_POST['over15_recipient_2']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Overdue 15 Days Recipient 3</td>
\t\t\t\t<td><input maxlength="50" name="over15_recipient_3" type="text" value ="{$_POST['over15_recipient_3']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t
\t\t\t\t\t <tr>
\t\t\t\t<td>Overdue 30 Days Recipient 1</td>
\t\t\t\t<td><input maxlength="50" name="over30_recipient_1" type="text" value ="{$_POST['over30_recipient_1']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t<tr>
\t\t\t\t<td>Overdue 30 Days Recipient 2</td>
\t\t\t\t<td><input maxlength="50" name="over30_recipient_2" type="text" value ="{$_POST['over30_recipient_2']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Overdue 30 Days Recipient 3</td>
\t\t\t\t<td><input maxlength="50" name="over30_recipient_3" type="text" value ="{$_POST['over30_recipient_3']}"><br>
\t\t\t\t</td>
\t\t\t </tr>\t\t\t
\t\t\t\t\t
\t\t\t\t
\t\t\t\t\t <tr>
\t\t\t\t<td>Completed Recipient 1</td>
\t\t\t\t<td><input maxlength="50" name="completed_recipient_1" type="text" value ="{$_POST['completed_recipient_1']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t
\t\t\t \t\t <tr>
<td>Re-Assign Refund To: </td>
<td>
<select name="assignee">
ADDUSERPAGE;
$query_users = 'SELECT user_id, first_name, last_name FROM users';
$result_users = mysqli_query($db, $query_users);
$selected = 1;
while ($row_users = mysqli_fetch_array($result_users)) {
print "<option value=\"{$row_users['user_id']}\"";
print ">{$row_users['first_name']} {$row_users['last_name']}</option>";
}
$query_users = 'SELECT user_id, first_name, last_name FROM users';
$result_users = mysqli_query($db, $query_users);
$selected = 1;
print <<<EDITUSERPAGE
</select>
<br>
</td>
</tr>
\t\t\t
\t\t\t<tr>
\t\t\t\t<td>Completed Recipient 2</td>
\t\t\t\t<td><input maxlength="50" name="completed_recipient_2" type="text" value ="{$_POST['completed_recipient_2']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Completed Recipient 3</td>
\t\t\t\t<td><input maxlength="50" name="completed_recipient_3" type="text" value ="{$_POST['completed_recipient_3']}"><br>
\t\t\t\t</td>
\t\t\t </tr>\t\t\t
\t\t\t\t\t <tr> Select A Name:
\t\t <select name="refund_search_term">
EDITUSERPAGE;
while ($row_users = mysqli_fetch_array($result_users)) {
print "<option value=\"{$row_users['user_id']}\"";
print $selected;
">{$row_users['first_name']} {$row_users['last_name']}</option>";
}
print <<<EDITUSERPAGE
\t\t </select>
\t\t <br>
\t\t</td>
\t </tr>\t
</tbody>
</table>
<input type="hidden" name="_submit_check" value="1" />
\t <br>
<button formmethod="post" formaction="{$_SERVER['PHP_SELF']}" value="submit" name="Submit">Submit Changes</button></form>
\t
EDITUSERPAGE;
//}
print '<h4 align="center"><a href="admin.php">Return to User Administration Page</a></h4>';
showFooter();
}
示例10: showPage
function showPage($username = '', $accessLvl = '', $errors = '')
{
//page where user will select user to edit
global $db;
showHeader($username, $accessLvl);
if ($errors) {
//show errors at top of page
print '<h2 class = "error"> The following errors were encountered:</h2>';
print '<ul><li>';
print implode('</li><li>', $errors);
print '</li></ul>';
}
$query = "SELECT user_id, first_name,last_name,access_lvl, D.name, U.dept_id, username FROM users AS U INNER JOIN departments AS D ON U.dept_id = D.dept_id WHERE delete_ind IS NULL ORDER BY last_name,first_name";
$result = mysqli_query($db, $query);
print '<br /><br /><div align = "center">';
print '<table border="1" cellpadding = "3"><tr><td><b>First Name</b></td><td><b>Last Name</b></td><td><b>Username</b></td><td><b>Access Level</b></td><td><b>Department</b></td><td><b>Actions</b></td>';
while ($row = mysqli_fetch_array($result)) {
print '<tr><td>' . $row['first_name'] . '</td><td>' . $row['last_name'] . '</td><td>' . $row['username'] . '</td>';
if ($row['access_lvl'] == 'U') {
print '<td>User</td>';
} elseif ($row['access_lvl'] == 'A') {
print '<td>Approver</td>';
} elseif ($row['access_lvl'] == 'S') {
print '<td>Super User</td>';
} else {
print '<td><b>BAD DATA!</b></td>';
}
print '<td>' . $row['name'] . '</td>';
print '<td><a href="' . $_SERVER['PHP_SELF'] . '?user_id=' . $row['user_id'] . '&dept_id=' . $row['dept_id'] . '&action=edit">Edit</a> <a href="' . $_SERVER['PHP_SELF'] . '?user_id=' . $row['user_id'] . '&action=delete">Delete</a></td></tr>';
}
print '</table></div>';
print '<h4 align="center"><a href="admin.php">Return to User Administration Page</a></h4>';
showFooter();
}
示例11: showInterface
function showInterface($body = '', $showHeaderAndFooter = true)
{
global $APP, $SETTINGS, $CURRENT_USER, $TABLE_PREFIX;
if ($showHeaderAndFooter) {
showHeader();
}
if ($body) {
include "lib/menus/{$body}";
}
if ($showHeaderAndFooter) {
showFooter();
}
exit;
}
示例12: showContent
/**
* Displays the main content of the page.
*
* @param $title The title of the page
* @param $db A DB object for secure database operations
*/
function showContent($title, $db)
{
$cartID = getCartId();
$sql = "SELECT ID, name, products.price, Quantity \n FROM shoppingcarts, products \n WHERE ID=ProductID AND CartID='{$cartID}'";
$result = $db->query($sql);
echo "<h1>{$title}</h1>\n";
echo "<table>\n";
showHeading();
$total = 0;
while ($row = mysql_fetch_row($result)) {
list($id, $prodName, $price, $qty) = $row;
$total += $price * $qty;
showItem($id, $prodName, $price, $qty);
}
$total = "\$" . number_format($total, 2);
showFooter($total);
echo "</table>\n";
$url = isset($_SESSION['user']) ? "true" : "false";
echo "<button onclick=\"checkout({$url})\">Checkout</button>\n";
$f = new FormLib();
?>
<p>Keep shopping</p>
<form action="products.php" method="post" id="categories">
<fieldset>
<legend>Select a category</legend>
<table>
<tr>
<td class="inputcell">
<?php
$list = array("All" => "", "On the Lawn" => "lawn", "Back at Camp" => "camping", "Jammin'" => "jam", "At the Lake" => "water", "Artists' CDs" => "cd");
echo $f->makeSelect('category', $list);
?>
</td>
</tr>
</table>
</fieldset>
<p><input type="submit" value="Submit" /></p>
</form>
<?php
}
示例13: showPage
//.........这里部分代码省略.........
\t\t\t\t<td><input maxlength="50" name="last_name" type="text" value ="{$_POST['last_name']}"><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>User Name</td>
\t\t\t\t<td><input maxlength="50" name="username" type="text" value ="{$_POST['username']}"><br />
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Department</td>
\t\t\t\t<td>
\t\t\t\t <select name="department">
ADDUSERPAGE;
} else {
print <<<ADDUSERPAGE
\t\t\t<h2 align="center">Add a New User</h2>
\t\t\t<form method="POST" action="{$_SERVER['PHP_SELF']}" name="add_user">
\t\t <table style="width: 100%" border="1">
\t\t\t<tbody>
\t\t\t <tr>
\t\t\t\t<td>First Name</td>
\t\t\t\t<td><input maxlength="50" name="first_name" type="text" value =""><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Last Name</td>
\t\t\t\t<td><input maxlength="50" name="last_name" type="text" value =""><br>
\t\t\t\t</td>
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>User Name</td>
\t\t\t\t<td><input maxlength="50" name="username" type="text" value =""><br />
\t\t\t </tr>
\t\t\t <tr>
\t\t\t\t<td>Department</td>
\t\t\t\t<td>
\t\t\t\t <select name="department">
ADDUSERPAGE;
}
$query = 'SELECT dept_id, name FROM departments';
$result = @mysqli_query($db, $query);
/*
echo 'hello <br>';
echo $query;
echo '<br>';
var_dump($result);
echo '<br>';
*/
//die();
if (isset($_POST['department'])) {
while ($row = @mysqli_fetch_array($result)) {
print "<option value=\"{$row['dept_id']}\"";
if ($_POST['department'] == $row['dept_id']) {
print ' selected="selected" ';
}
print ">{$row['name']}</option>";
}
} else {
while ($row = @mysqli_fetch_array($result)) {
print "<option value=\"{$row['dept_id']}\"";
/*if ($_POST['department']==$row['dept_id']){
print ' selected="selected" ';
}*/
print ">{$row['name']}</option>";
}
}
print <<<ADDUSERPAGE
</select>
<br>
</td>
</tr>
<tr>
<td>Access Level</td>
<td>
<select name="access">
<option value="U">User</option>
<option value="A">Approver</option>
<option value="S">Superuser</option>
</select>
</td>
</tr>
<tr>
<td>Password</td>
<td><input maxlength="10" name="password" type="password"><br>
</td>
</tr>
<tr>
<td>Confirm Password</td>
<td><input maxlength="10" name="passwordConfirm" type="password"><br>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="_submit_check" value="1" />
\t <br>
<button formmethod="post" formaction="{$_SERVER['PHP_SELF']}" value="submit" name="Submit">Add User</button></form>
ADDUSERPAGE;
print '<h4 align="center"><a href="admin.php">Return to User Administration Page</a></h4>';
showFooter();
}
示例14: _showIframeSections
function _showIframeSections()
{
global $schema;
if (@$schema['menuType'] != 'link') {
return;
}
// show messages
alert(@$schema['_linkMessage']);
// get page html
$iframeHeight = coalesce(@$schema['_iframeHeight'], 600);
ob_start();
showHeader();
?>
<div class="clear"></div>
<div class="content-box">
<form method="post" action="?" autocomplete="off">
<div class="content-box-header">
<h3><?php
echo htmlencode(@$schema['menuName']);
?>
</h3>
<div style="float:right;">
</div>
<div class="clear"></div>
</div> <!-- End .content-box-header -->
<iframe src='<?php
echo $schema['_url'];
?>
' style='height: <?php
echo $iframeHeight;
?>
px; width: 100%;' id="iframe-container"></iframe>
</form>
</div><!-- End .content-box -->
<?php
showFooter();
$html = ob_get_clean();
//
print $html;
exit;
}
示例15: showTitle
<body>
<div id="outerHeader"> </div>
<div id="main">
<div id="title">
<?php showTitle(); ?>
</div>
<div id="banner">
<?php showBanner(); ?>
</div>
<div id="container">
<div id="content">
<div id="leftMargin">
<?php showLeftBar(); ?>
</div>
<?php showRightBar(); ?>
<div id="topToolbar" class="ajax">
<?php showTopToolbar(); ?>
</div>
<div id="bodyContent" class="ajax">
<?php showContent(); ?>
</div>
<div id="innerFooter">
<?php showFooter(); ?>
</div>
</div>
</div>
<div id="outerFooter"><?php showOuterFooter(); ?></div>
</body>
</html>