当前位置: 首页>>代码示例>>PHP>>正文


PHP show_footer函数代码示例

本文整理汇总了PHP中show_footer函数的典型用法代码示例。如果您正苦于以下问题:PHP show_footer函数的具体用法?PHP show_footer怎么用?PHP show_footer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_footer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_error

/**
   show error-message and terminate
*/
function show_error($error, $extra = NULL)
{
    _error($error . " : " . $extra);
    // we do not know whether the language module was already loaded
    $errmsg = isset($GLOBALS["error_msg"]) ? $GLOBALS["error_msg"]["error"] : "ERROR";
    $backmsg = isset($GLOBALS["error_msg"]) ? $GLOBALS["error_msg"]["back"] : "BACK";
    show_header($errmsg);
    ?>
	<center>
        <h2><?php 
    echo $errmsg;
    ?>
</h2>
        <?php 
    echo $error;
    ?>
        <h3> <a href="javascript:window.history.back()"><?php 
    echo $backmsg;
    ?>
</a><h3>
        <?php 
    if ($extra != NULL) {
        echo " - " . $extra;
    }
    ?>
    </center>
    <?php 
    show_footer();
    exit;
}
开发者ID:rterbush,项目名称:nas4free,代码行数:33,代码来源:error.php

示例2: login

function login()
{
    if (isset($_SESSION["s_user"])) {
        _debug("login(): session detected");
        if (!user_activate($_SESSION["s_user"], $_SESSION["s_pass"])) {
            _debug("Failed to activate user " . $_SESSION['s_user']);
            logout();
        }
    } else {
        if (isset($_POST["p_pass"])) {
            $p_pass = $_POST["p_pass"];
        } else {
            $p_pass = "";
        }
        if (isset($_POST["p_user"])) {
            _debug("login(): login authentication");
            // Check Login
            if (!user_activate($_POST["p_user"], md5($p_pass))) {
                global $error_msg;
                show_error($error_msg["login_failed"] . ": " . htmlspecialchars($_POST["p_user"]));
            }
            // authentication sucessfull
            _debug("user '" . $_POST["p_user"] . "' successfully authenticated");
            // set language
            $_SESSION['language'] = qx_request("lang", "en");
            return;
        } else {
            // Ask for Login
            show_header($GLOBALS["messages"]["actlogin"]);
            echo "<BR><TABLE width=\"300\"><TR><TD colspan=\"2\" class=\"header\" nowrap><B>";
            echo $GLOBALS["messages"]["actloginheader"] . "</B></TD></TR>\n<FORM name=\"login\" action=\"";
            echo make_link("login", NULL, NULL) . "\" method=\"post\">\n";
            echo "<TR><TD>" . $GLOBALS["messages"]["miscusername"] . ":</TD><TD align=\"right\">";
            echo "<INPUT name=\"p_user\" type=\"text\" size=\"25\"></TD></TR>\n";
            echo "<TR><TD>" . $GLOBALS["messages"]["miscpassword"] . ":</TD><TD align=\"right\">";
            echo "<INPUT name=\"p_pass\" type=\"password\" size=\"25\"></TD></TR>\n";
            echo "<TR><TD>" . $GLOBALS["messages"]["misclang"] . ":</TD><TD align=\"right\">";
            echo "<SELECT name=\"lang\">\n";
            @(include "./_lang/_info.php");
            echo "</SELECT></TD></TR>\n";
            echo "<TR><TD colspan=\"2\" align=\"right\"><INPUT type=\"submit\" value=\"";
            echo $GLOBALS["messages"]["btnlogin"] . "\"></TD></TR>\n</FORM></TABLE><BR>\n";
            ?>
<script language="JavaScript1.2" type="text/javascript">
                <!--
                if(document.login) document.login.p_user.focus();
            // -->
            </script><?php 
            show_footer();
            exit;
        }
    }
}
开发者ID:realtimeprojects,项目名称:quixplorer,代码行数:53,代码来源:login.php

示例3: show_error

function show_error($error, $extra = NULL)
{
    // show error-message
    show_header($GLOBALS["error_msg"]["error"]);
    echo "<CENTER><BR>" . $GLOBALS["error_msg"]["error"] . ":" . "<BR><BR>\n";
    echo $error . "\n<BR><BR><A HREF=\"javascript:window.history.back()\">";
    echo $GLOBALS["error_msg"]["back"] . "</A>";
    if ($extra != NULL) {
        echo " - " . $extra;
    }
    echo "<BR><BR></CENTER>\n";
    show_footer();
    exit;
}
开发者ID:BackupTheBerlios,项目名称:redaxo-addons,代码行数:14,代码来源:error.php

示例4: relogin

function relogin()
{
    global $page, $next_page;
    if ($page != 'login') {
        if ($_SERVER['QUERY_STRING']) {
            $next_page = "?" . $_SERVER['QUERY_STRING'];
        } else {
            $next_page = "?page={$page}";
        }
        require_once ABSPATH . "/login.php";
        show_footer(0, false, false);
        exit;
    }
}
开发者ID:martinkirov,项目名称:intersango,代码行数:14,代码来源:index.php

示例5: show_msg

function show_msg($message, $url_forward = '')
{
    if ($url_forward) {
        $message = "<a href=\"{$url_forward}\">{$message} (跳轉中...)</a><script>setTimeout(\"window.location.href ='{$url_forward}';\", 1);</script>";
    }
    show_header();
    print <<<END
\t<table>
\t<tr><td>{$message}</td></tr>
\t</table>
END;
    show_footer();
    exit;
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:14,代码来源:update_qqconnect.php

示例6: if

			<table width="100%">
				<tr>
					<td class="label">Sticky</td>
					<td>
						<input type="checkbox" name="sticky"<? if($Sticky) { echo ' checked="checked"'; } ?> />
					</td>
					<td class="label">Mark as unread</td>
					<td>
						<input type="checkbox" name="mark_unread" />
					</td>
					<td class="label">Delete conversation</td>
					<td>
						<input type="checkbox" name="delete" />
					</td>

				</tr>
				<tr>
					<td class="center" colspan="6"><input type="submit" value="Manage conversation" /></td>
				</tr>
			</table>
		</div>
	</form>
<?

//And we're done!
?>
</div>
<?
show_footer();
?>
开发者ID:4play,项目名称:gazelle2,代码行数:30,代码来源:conversation.php

示例7: login_page

function login_page()
{
    show_header();
    $formhash = thash();
    print <<<END
\t\t<span>工具箱登录</span>
\t\t<form action="tools.php?action=login" method="post">
\t\t\t<table class="specialtable">
\t\t\t<tr>
\t\t\t\t<td width="20%"><input class="textinput" type="password" name="toolpassword"></input></td>
\t\t\t\t<td><input class="specialsubmit" type="submit" value="登 录"></input></td>
\t\t\t</tr>
\t\t\t</table>
\t\t\t<input type="hidden" name="action" value="login">
\t\t\t<input type="hidden" name="formhash" value="{$formhash}">
\t\t</form>
END;
    show_footer();
}
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:19,代码来源:tools.php

示例8: show_error

function show_error($type, $errors = '', $quit = false)
{
    global $lang, $step;
    $title = lang($type);
    $comment = lang($type . '_comment', false);
    $errormsg = '';
    if ($errors) {
        if (!empty($errors)) {
            foreach ((array) $errors as $k => $v) {
                if (is_numeric($k)) {
                    $comment .= "<li><em class=\"red\">" . lang($v) . "</em></li>";
                }
            }
        }
    }
    if ($step > 0) {
        echo "<div class=\"desc\"><b>{$title}</b><ul>{$comment}</ul>";
    } else {
        echo "</div><div class=\"main\" style=\"margin-top: -123px;\"><b>{$title}</b><ul style=\"line-height: 200%; margin-left: 30px;\">{$comment}</ul>";
    }
    if ($quit) {
        echo '<br /><span class="red">' . $lang['error_quit_msg'] . '</span><br /><br /><br /><br /><br /><br />';
    }
    echo '</div>';
    $quit && show_footer();
}
开发者ID:v998,项目名称:discuzx-en,代码行数:26,代码来源:install_function.php

示例9: get_size

		<td class="nobr"><?php 
echo get_size($Data['Size']);
?>
</td>
		<td><?php 
echo number_format($TotalSnatched);
?>
</td>
		<td<?php 
echo $TotalSeeders == 0 ? ' class="r00"' : '';
?>
><?php 
echo number_format($TotalSeeders);
?>
</td>
		<td><?php 
echo number_format($TotalLeechers);
?>
</td>
	</tr>
<?
	}
}
?>
</table>
<div class="linkbox"><?php 
echo $Pages;
?>
</div>
<? show_footer(array('disclaimer'=>false)); ?>
开发者ID:4play,项目名称:gazelle2,代码行数:30,代码来源:browse2.php

示例10: generate_status


//.........这里部分代码省略.........
		</div>';
    }
    if (!empty($context['mysql_statistics'])) {
        echo '
		<div class="panel">
			<h2>MySQL Statistics</h2>
			<div class="roundframe">It is extremely important you fully understand each change you make to a MySQL database server. If you don\'t understand the output, or if you don\'t understand the recommendations, you should consult a knowledgeable DBA or system administrator that you trust. Always test your changes on staging environments, and always keep in mind that improvements in one area can negatively affect MySQL in other areas.</div>
			<table class="status_table">';
        // Has this server been running less than 2 days?
        if (!empty($context['mysql_status']['Uptime']['value']) && $context['mysql_status']['Uptime']['value'] < 86400 * 2) {
            echo '
				<tr>
					<th  colspan="2" style="color:red;">We have detected MySQL was restarted less than 48 Hours ago. These recommendations may not be accurate.</th>
				</tr>';
        } elseif (!empty($context['mysql_status']['Uptime']['value'])) {
            $days = floor($context['mysql_status']['Uptime']['value'] / 86400);
            $hours = floor(($context['mysql_status']['Uptime']['value'] - $days * 86400) / (60 * 60));
            $min = floor(($context['mysql_status']['Uptime']['value'] - ($days * 86400 + $hours * 3600)) / 60);
            echo '
				<tr>
					<th style="text-align: left;">MySQL Uptime:</th>
					<td>', $days, ' Day(s), ', $hours, ':', $min, ' Hour(s)</td>
				</tr>';
        }
        foreach ($context['mysql_statistics'] as $stat) {
            echo '
				<tr>
					<th style="text-align: left;">';
            // Good, Bad or Ugly
            if (isset($stat['health'])) {
                if ($stat['health'] == 0) {
                    echo '<i class="fa fa-check good"></i>';
                } elseif ($stat['health'] == 1) {
                    echo '<i class="fa fa-exclamation-triangle pass"></i>';
                } else {
                    echo '<i class="fa fa-times bad"></i>';
                }
            }
            // Show the cnf setting that this refers to
            echo $stat['description'], ':', isset($stat['setting']) ? '<br />
						<em style="font-size: smaller;">(' . $stat['setting'] . ')</em>' : '', '
					</th>
					<td>';
            // Show the value
            if (isset($stat['format'])) {
                echo '[ <em>' . $stat['format'] . '</em> ] ';
            } else {
                echo '[ <em>' . round($stat['value'], 3) . '</em> ] ';
            }
            // Let them know what it all means
            if (!empty($stat['note'])) {
                echo $stat['note'];
            }
            if (!empty($stat['explain'])) {
                echo '<br /><i class="fa fa-info-circle info"></i>' . $stat['explain'];
            }
            echo '
					</td>
				</tr>';
        }
        echo '
			</table>';
        if (isset($_GET['mysql_info'])) {
            echo '
			<br />
			<h2>MySQL status</h2>
			<table width="100%" cellpadding="2" cellspacing="0" border="0">';
            foreach ($context['mysql_status'] as $var) {
                echo '
				<tr>
					<th style="text-align: left;">', $var['name'], ':</th>
					<td>', $var['value'], '</td>
				</tr>';
            }
            echo '
			</table>

			<br />
			<h2>MySQL variables</h2>

			<table class="status_table>';
            foreach ($context['mysql_variables'] as $var) {
                echo '
				<tr>
					<th style="text-align: left;">', $var['name'], ':</th>
					<td>', $var['value'], '</td>
				</tr>';
            }
            echo '
			</table>';
        } else {
            echo '
			<br />
			<a href="', $_SERVER['PHP_SELF'], '?mysql_info=1">Show more information...</a><br />';
        }
        echo '
		</div>';
    }
    show_footer();
}
开发者ID:ahrasis,项目名称:tools,代码行数:101,代码来源:status.php

示例11: show_msg

function show_msg($message, $next=0, $jump=0) {
	global $theurl;

	$nextstr = '';
	$backstr = '';

	obclean();
	if(empty($next)) {
		$backstr .= "<a href=\"javascript:history.go(-1);\">返回上一步</a>";
	} elseif ($next == 999) {
	} else {
		$url_forward = "$theurl?step=$next";
		if($jump) {
			$nextstr .= "<a href=\"$url_forward\">请稍等...</a><script>setTimeout(\"window.location.href ='$url_forward';\", 1000);</script>";
		} else {
			$nextstr .= "<a href=\"$url_forward\">继续下一步</a>";
			$backstr .= "<a href=\"javascript:history.go(-1);\">返回上一步</a>";
		}
	}

	show_header();
	print<<<END
	<table>
	<tr><td>$message</td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td>$backstr $nextstr</td></tr>
	</table>
END;
	show_footer();
	exit();
}
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:index.php

示例12: unset

        <button type="submit" class="btn btn-default">Cari</button>
    </form>
    </div>
  </div>
</div>

<?php 
unset($ret);
if ($mod == 'home') {
    $ret .= '<div class="container">' . LF;
}
//$ret .= show_header();
$ret .= '<div class="container">' . LF;
$ret .= $body;
$ret .= '</div>' . LF;
$ret .= show_footer();
if ($mod == 'home') {
    $ret .= '</div>' . LF;
}
// stats
if ($allow_stat) {
    $ret .= get_external_stat();
}
echo $ret;
?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2254800-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
开发者ID:ajisantoso,项目名称:kateglo,代码行数:31,代码来源:index.php

示例13: ranks

<td align="center">     
<?php 
include "shout.inc.php";
?>
</td>

</tr>


<?php 
if ($logged_in) {
    ?>
<table align="center" width=100%>
<tr>
<td width=90%>
<br><br>
<?php 
    ranks();
    ?>
	
</td>
</tr>
</table>
<?php 
}
?>
</table>
</td>  </center>      
<?php 
show_footer($start_time);
开发者ID:normano,项目名称:outragerpg,代码行数:30,代码来源:index.php

示例14: show_msg

function show_msg($message, $next = 0, $jump = 0)
{
    global $theurl, $LNG, $lang;
    $nextstr = '';
    $backstr = '';
    obclean();
    if (empty($next)) {
        $backstr .= "<a href=\"javascript:history.go(-1);\">{$LNG['go_back']}</a>";
    } elseif ($next == 999) {
    } else {
        $url_forward = "{$theurl}?step={$next}\\&lang={$lang}";
        if ($jump) {
            $nextstr .= "<a href=\"{$url_forward}\">{$LNG['wait_please']}</a>\r\n                                     <script>setTimeout(\"window.location.href ='{$url_forward}';\", 2000);</script>";
        } else {
            $nextstr .= "<a href=\"{$url_forward}\">{$LNG['continue_next_step']}</a>";
            $backstr .= "<a href=\"javascript:history.go(-1);\">{$LNG['go_back']}</a>";
        }
    }
    show_header();
    print <<<END
\t<table>
\t  <tr><td>{$message}</td></tr>
\t  <tr><td>&nbsp;</td></tr>
\t  <tr><td>{$backstr} {$nextstr}</td></tr>
\t</table>
END;
    show_footer();
    exit;
}
开发者ID:v998,项目名称:discuzx-en,代码行数:29,代码来源:index.php

示例15: show_msg

function show_msg($message, $url_forward='', $time = 1, $noexit = 0, $notice = '') {

	if($url_forward) {
		$url_forward = $_GET['from'] ? $url_forward.'&from='.rawurlencode($_GET['from']).'&frommd5='.rawurlencode($_GET['frommd5']) : $url_forward;
		$message = "<a href=\"$url_forward\">$message (Tiếp theo...)</a><br>$notice<script>setTimeout(\"window.location.href ='$url_forward';\", $time);</script>";
	}

	show_header();
	print<<<END
	<table>
	<tr><td>$message</td></tr>
	</table>
END;
	show_footer();
	!$noexit && exit();
}
开发者ID:vuchannguyen,项目名称:vuchan,代码行数:16,代码来源:update.php


注:本文中的show_footer函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。