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


PHP start_content函数代码示例

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


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

示例1: imo_top

function imo_top()
{
    //include('forum_old/SSI.php');
    //$cpath = "http://ilmarching.com" . $_SERVER["SCRIPT_NAME"];
    //$_SESSION['login_url'] = $cpath;
    //$_SESSION['logout_url'] = $cpath;
    htmlhead();
    contentbody();
    contentheader();
    start_content();
}
开发者ID:mover5,项目名称:imobackup,代码行数:11,代码来源:layout.php

示例2: do_login_page

function do_login_page($message)
{
    start_content();
    echo '<script type="text/javascript" src="sha512.js"></script>';
    echo '<script type="text/javascript" src="forms.js"></script>';
    ?>
        <script type="text/javascript">
		    function validate() {
				if (document.getElementById('username').value=='' || document.getElementById('password').value=='') {
					document.getElementById('error_text').innerHTML = 'You did not fill out all of the required fields. Please try again.';
					return false;
				}
				else {
					formhash(login_form, login_form.password);
					return true;
				}
			}
		</script>
        <div id="loading_screen" style="display:none"><h2 align="center"><img src="ajax-loader.gif" style="vertical-align: middle "/>&nbsp;Loading...</h2></div>
		<div id="login_box">
        <p class="alert" id="error_text"><?php 
    echo $message;
    ?>
</p>
        <form action="login.php" method="post" name="login_form" id="login_form" onsubmit="return validate();">
        <p>Username:&nbsp;<input type="text" name="username" id="username" size="20" maxlength="20" value="<?php 
    if (!empty($GLOBALS['username'])) {
        echo $GLOBALS['username'];
    }
    ?>
" /></p>
        <p>Password:&nbsp;&nbsp;<input type="password" name="password" id="password" length="20" size="20" /></p>
		<div align="center"><input type="submit" value="Login" /></div>
		</form>
        </div>
        <div id="result"></div>
<?php 
    echo "<script type=\"text/javascript\">document.forms['login_form'].elements['username'].focus();</script>";
    do_footer();
}
开发者ID:alexstrandberg,项目名称:Electronics-Power-Management-System,代码行数:40,代码来源:output_fns.php

示例3: Copyright

######################################################################
# SourceAgency:
# ================================================
#
# Copyright (c) 2001-2003 by
#             Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceAgency: http://sourceagency.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# This is the index file which shows the recent apps
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "include/prepend.php3";
page_open(array("sess" => "SourceAgency_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm"));
}
require "include/header.inc";
require "include/personallib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
start_content();
$page = "personal_ratings";
personal_comments_long($auth->auth["uname"]);
end_content();
require "include/footer.inc";
page_close();
开发者ID:BackupTheBerlios,项目名称:sourceagency,代码行数:31,代码来源:personal_comments.php

示例4: pintar_intranet

function pintar_intranet()
{
    start_content();
    end_content();
    start_sidebar();
    echo "<ul><li>";
    echo "<h2>Usuari:  " . id_usuari() . "</h2>";
    if (es_administrador()) {
        ?>
        <h2><strong>Administraci&oacute;</strong></h2>
        <ul>
        <li><a href="index.php?operacio=llistar_usuaris">Gesti&oacute; usuaris </a></li>
<?php 
    } else {
        if (es_moderador()) {
            ?>
		Aqui el menu de moderador
<?php 
        }
    }
    ?>
    <li>&nbsp;</li>
    <li><strong>Opcions d'usuari</strong></li>
<?php 
    echo '<li><a href="index.php?operacio=form_modificar_perfil&nick=' . id_usuari() . '">Modificar perfil</a></li>
	<li><a href="index.php?operacio=logout">Desconnectar</a></li></ul>
	</li></ul>';
    end_sidebar();
}
开发者ID:usulmc,项目名称:cmsfp,代码行数:29,代码来源:f_interficie.php


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