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


PHP display_footer函数代码示例

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


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

示例1: display_mainpage

/**
 * Prints a user's mainpage
 */
function display_mainpage()
{
    display_menu();
    print "<div class=\"container2\">";
    display_content();
    print "</div>";
    display_copyright();
    display_footer();
}
开发者ID:kfr2,项目名称:phpmygrades,代码行数:12,代码来源:printlib.php

示例2: contact_page_controller

function contact_page_controller()
{
    global $cssFilePaths;
    global $javascriptFilePaths;
    $scripts = array($javascriptFilePaths["variableInputWidth"], $javascriptFilePaths["main"], $javascriptFilePaths["uploadResume"], $javascriptFilePaths["contact"]);
    display_header("Contact", array($cssFilePaths["contact"]), 5);
    contact_page_view();
    display_footer($scripts);
}
开发者ID:Anguleris,项目名称:AngulerisWebsite,代码行数:9,代码来源:controllers.php

示例3: error

function error($message, $type, $custom_message = "")
{
    $msg = "UNSPECIFIED ERROR OCCURED";
    if ($custom_message != "") {
        $msg = $custom_message;
    }
    //append_message($msg,$type);
    // TODO : DEGAGER LE PRINT ET FOUTRE CA DANS UN FIC. DE LOG
    echo htmlentities($message);
    if ($type == "SECURITY") {
        exit(1);
    }
    if ($type == "CRITICAL") {
        display_header();
        display_footer();
        exit(1);
    }
}
开发者ID:HerbDavisY2K,项目名称:CAAS,代码行数:18,代码来源:functions.php

示例4: xhtml_output

function xhtml_output($mode)
{
    global $cfg, $lang, $style_num, $style, $cd, $begin_time_str, $admin, $footer_content, $dtd, $page_title, $content_type, $alternate_link_rss, $subtitle, $contents_top, $contents, $admin_sess_menu, $content_menu, $search_form, $menu_middle, $archive_by_date, $category_menu, $file_type_menu, $recent_entries, $recent_comments, $recent_trackbacks, $css_switch, $rss_button, $rss2_button, $menu_bottom, $request_uri, $p_blog_path, $plugin;
    include_plugin($mode);
    xhtml_header();
    xhtml_menu($mode);
    // Contents Top
    if ($request_uri == 'http://' . $_SERVER['HTTP_HOST'] . $cfg['root_path'] . 'index.php') {
        if (file_exists($cd . '/include/user_include/contents_top.inc.php')) {
            include_once $cd . '/include/user_include/contents_top.inc.php';
        } else {
            $contents_top = '';
        }
    } else {
        $contents_top = '';
    }
    // Choose Footer
    if ($cfg['footer_type'] == 1) {
        $footer_content = display_footer($cd);
    } elseif ($cfg['footer_type'] == 2) {
        $footer_content = display_valid_footer($style_num, $style, $cd);
    } elseif ($cfg['footer_type'] == 3) {
        $footer_content = display_w3c_valid_footer($style_num, $style, $cd);
    } else {
        $footer_content = display_user_footer($admin = FALSE);
    }
    // Load Template
    require_once $cd . '/include/user_include/base_xhtml.inc.php';
    /*
    if ($request_uri == $p_blog_path . 'var/vars-sample/index.php') {
        require_once $cd . '/include/user_include/vars_xhtml.inc.php';
    } else {
        require_once $cd . '/include/user_include/base_xhtml.inc.php';
    }
    */
}
开发者ID:kaz6120,项目名称:P_BLOG,代码行数:36,代码来源:fnc_base.inc.php

示例5: changecr

function changecr($title)
{
    /* checks the user login and  
     * redirecting user to login page */
    if (!check_login()) {
        header('location:login.php');
    } else {
        include 'config/globals.php';
        /* taking the query string by using the regular expression */
        $p = $_SERVER['QUERY_STRING'];
        $reg = "/^" . $globalbranch . "[1-" . $classno . "]{1}\$/";
        $reg1 = "/^all\$/";
        if (preg_match($reg, $p) or preg_match($reg1, $p)) {
            /* including the necessary configuration php files */
            include 'config/db.php';
            include 'config/settings.php';
            /* defining the table names  */
            $dbname = $branchyear . '_Users';
            $table = $branchyear . '_CRs';
            $table1 = $branchyear . '_Students';
            //if(!mysql_select_db($dbname)) die(mysql_error());
            //$branch = $row['Branch']; its not required
            $class = substr($p, -1);
            /* Getting the users details from joining the two tables */
            if ($p == 'all') {
                $q = "select {$table}.Name as Name, {$table}.Gender as Gender, {$table}.Id as Id,PhoneNo, `{$table1}`.`Class` as `Class` from {$table},{$table1} where `{$table}`.`Id` = `{$table1}`.`Id` order by `{$table1}`.`Class` Desc;";
            } else {
                $q = "select {$table}.Name as Name, {$table}.Gender as Gender, {$table}.Id as Id,PhoneNo from {$table},{$table1} where `{$table}`.`Id` = `{$table1}`.`Id` and `{$table}`.`Class` = '{$class}';";
            }
            $res = mysql_query($q) or die(mysql_error());
            echo "<!DOCTYPE html>\n<html>\n";
            /* including the header java scripts and css files  */
            display_headers($title);
            echo "\n<body>";
            /* displayin the header menu */
            menu();
            $br = $p == 'all' ? $globalbranch : $p;
            $cls1 = $p == 'all' ? '<th style="text-align:center;" class="span1"> Class </th>' : "";
            echo <<<a
\t\t<div class='container'>
\t\t\t<div id="error" style="display:none;"></div>
\t\t\t<div class='row'>
\t\t\t<div class='span9'>
\t\t\t\t<div class="well well-large" style="background:#FFF;">
\t\t\t\t<h5 class='text-info'>CRs @ {$br}  </h5>
\t\t\t\t<h6> &emsp;&emsp;&emsp; - &emsp; Listing all CRs in {$br}  </h6><br>
\t\t\t\t<table class="table  table-hover table-bordered "  style="padding:0px;">
\t\t\t\t<thead>
\t\t\t\t\t<tr> <th class="span1" style="text-align:center;" > Id </th><th style="text-align:center;" class="span3"> Name   </th> {$cls1}
\t\t\t\t\t<th style="text-align:center;" class="span1"> Gender  </th>  <th class="span1" style="text-align:center;"> Contact No </th> </tr>
\t\t\t\t</thead>
\t\t\t\t<tbody>
a;
            while ($row = mysql_fetch_array($res)) {
                $gender = $row['Gender'];
                $d = $dict[$gender . '1'];
                $id = $row['Id'];
                $contact = $row['PhoneNo'];
                $cls = $p == 'all' ? '<td style="text-align:center;">' . $globalbranch . " " . $row['Class'] . '</td>' : "";
                $name = ucwords(strtolower($row['Name']));
                echo <<<a
\t\t\t\t\t
\t\t\t<tr >  
\t\t\t<td style="text-align:center;" > {$id} </td> 
\t\t\t<td > {$name} </td>
\t\t\t{$cls}
\t\t\t<td style="text-align:center;"> {$d}  </td> 
\t\t\t<td style="text-align:center;" class="text-success"><b> {$contact} </b> </td>  
\t\t\t</tr>
a;
            }
            echo <<<a
\t\t\t\t</tbody>
\t\t\t   </table>
\t\t\t</div>\t
\t\t\t</div>
\t\t\t<div class='span3'>
a;
            go_home();
            echo '<ul class="nav nav nav-tabs nav-stacked"> <li><a href=\'?all\'>All CRs &nbsp; <i class="icon-chevron-right pull-left" style="padding-top:5px;"></i></a> </li></ul>';
            cr_classes($classno, $globalbranch);
            echo "</div></div></div>";
            display_footer();
            echo "\n</body>\n</html>";
        } else {
            echo "<script type='text/javascript'>document.location.href='404.php';</script>";
        }
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:89,代码来源:browsecrs.php

示例6: is_accept

}
function is_accept($stackTrace)
{
    if ($stackTrace[0]->className == "com.caucho.vfs.JniServerSocketImpl" && $stackTrace[0]->methodName == "nativeAccept") {
        return true;
    } else {
        if ($stackTrace[0]->className == "java.net.PlainSocketImpl" && $stackTrace[0]->methodName == "socketAccept") {
            return true;
        } else {
            if ($stackTrace[0]->className == "java.net.PlainSocketImpl" && $stackTrace[0]->methodName == "accept") {
                return true;
            }
        }
    }
    return false;
}
function is_keepalive($stackTrace)
{
    for ($i = 0; $i < sizeof($stackTrace); $i++) {
        if ($stackTrace[$i]->className != "com.caucho.server.port.TcpConnection" || $stackTrace[$i]->methodName != "run") {
            continue;
        } else {
            if ($stackTrace[$i - 1]->className == "com.caucho.server.port.TcpConnection" && $stackTrace[$i - 1]->methodName == "waitForKeepalive") {
                return true;
            }
        }
    }
    return false;
}
display_footer("profile.php");
开发者ID:TheSkyNet,项目名称:railoapacheportable,代码行数:30,代码来源:profile.php

示例7: generate_attendance


//.........这里部分代码省略.........
                            }
                            if ($individual[$a] == "P") {
                                $Rnos["Presents"][$pindex] = $individual["RNo"];
                                $pindex++;
                            }
                        }
                    }
                    $pc = count($Rnos["Presents"]);
                    $ac = count($Rnos["Absents"]);
                    $tot = $pc + $ac;
                    //print_r($Rnos);
                    //print_r($uid);
                    echo <<<tab
\t\t\t\t
\t\t\t\t<div class="row">
\t\t\t\t\t<div class="span8">
\t\t\t\t\t<table class="table  table-hover table-bordered" >
\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t<tr> <td class="span2" style="text-align:center"> Date </td> <th class="text-warning span2" style="text-align:center"> {$date}</th> 
\t\t\t\t\t\t\t<td class="span2" style="text-align:center"> Subject </td> <th class="text-success span2" style="text-align:center"> {$sub}</th> </tr>
\t\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t\t</div>
\t\t\t\t</div>
                     <div class="row">
                    \t<div class="span8">
                        <table class="table  table-hover table-bordered" >
                            <thead>
                                <tr> <th class="span2"  style="text-align:center"> Period # </th> <th class="span3"> Presents  </th> <th class="span3"> Absents  </th> </tr>
                            </thead>
                            <tbody>
                            <tr><td style="text-align:center;" >{$p}</td><td>
tab;
                    for ($i = 0; $i < $pc; $i++) {
                        if ($i % 8 == 0 && $i != 0) {
                            echo "<br>";
                        }
                        if ($i == $pc - 1) {
                            echo $Rnos["Presents"][$i];
                        } else {
                            echo $Rnos["Presents"][$i] . ",";
                        }
                    }
                    echo "</td><td>";
                    for ($i = 0; $i < $ac; $i++) {
                        if ($i % 8 == 0 && $i != 0) {
                            echo "<br>";
                        }
                        if ($i == $ac - 1) {
                            echo $Rnos["Absents"][$i];
                        } else {
                            echo $Rnos["Absents"][$i] . ",";
                        }
                    }
                    echo <<<tab
\t\t\t\t\t\t</td></tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td style="text-align:center;" >Total  (<b>{$class_total}</b>) </td>
\t\t\t\t\t\t\t<td style="text-align:center;" class='text-success'> {$pc}</td>
\t\t\t\t\t\t\t<td style="text-align:center;" class='text-error'>{$ac}</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t\t</div>
\t\t\t\t</div>
                            
tab;
                } else {
                    display_generate_form($p, $class_total, $sub, $branch . $class);
                }
                echo <<<a
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class='span3'>
a;
                go_home();
                echo '<ul class="nav nav-tabs nav-stacked">';
                for ($i = 1; $i <= 4; $i++) {
                    echo "<li><a href=\"?P{$i}\">P{$i}";
                    $period = "P" . $i;
                    if (!in_array($period, $remaining)) {
                        echo "<i class='icon-ok pull-right text-success' style=\"padding-top:5px;\"></i>";
                    } else {
                        echo "<i class='icon-remove pull-right text-error' style='padding-top:5px;'></i>";
                    }
                    echo '<i class="icon-chevron-right pull-left" style="padding-top:5px;"></i></a> </li>';
                }
                echo "</ul></div>";
                echo "</div> </div> ";
                display_footer();
                echo "\n</body>\n</html>";
                @mysql_close($con);
            } else {
                echo "<script type='text/javascript'>document.location.href='404.php';</script>";
            }
        } else {
            noservice();
        }
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:101,代码来源:generate.php

示例8: homepage


//.........这里部分代码省略.........
                }
            }
            /* End of Period Wise Attendance*/
            /* SUbjects Wise Attendance */
            if (strtolower($mode) == "sub") {
                //mysql_select_db($branchyear."_Subjects") or die(mysql_error());
                $query = mysql_query("Select * from " . $branch . $class . "_Subjects where RNo='{$RNo}';") or die(mysql_error());
                $subjectwise = mysql_fetch_array($query) or die(mysql_error());
                $tr = '';
                $strXML = "<graph caption='Subject Wise Attendance Report' formatNumberScale='1' rotateValues='1' decimalPrecision='1' numberSuffix='%' xAxisName='Subjects' yAxisName='Performance'>";
                $datasetp = '';
                $nc_cls = 0;
                for ($i = 0; $i < count($allowed_subjects); $i++) {
                    $tnoc = $subjectwise[$allowed_subjects[$i] . "_P"] + $subjectwise[$allowed_subjects[$i] . "_A"];
                    if ($tnoc == 0) {
                        $nc_cls++;
                        $performance = "N/A  ";
                        $st = "error";
                        $remarks = "CNYS";
                    } else {
                        $performance = $subjectwise[$allowed_subjects[$i] . "_P"] / $tnoc * 100;
                        $performance = round($performance, 1) . " %";
                        $st = $performance <= 50 ? "error" : "success";
                        if (round($performance, 1) >= 95) {
                            $remarks = "Excellent";
                        }
                        if (round($performance, 1) >= 90 && round($performance, 1) < 95) {
                            $remarks = "Very Good";
                        }
                        if (round($performance, 1) >= 80 && round($performance, 1) < 90) {
                            $remarks = "Good";
                        }
                        if (round($performance, 1) >= 70 && round($performance, 1) < 80) {
                            $remarks = "Normal";
                        }
                        if (round($performance, 1) >= 60 && round($performance, 1) < 70) {
                            $remarks = "Average";
                        }
                        if (round($performance, 1) >= 50 && round($performance, 1) < 60) {
                            $remarks = "Bad";
                        }
                        if (round($performance, 1) < 50) {
                            $remarks = "Go Out";
                        }
                    }
                    $tr .= '<tr> 
					<td style="text-align:center;">' . ($i + 1) . '</td> 
					<td style="text-align:center;"> <b>' . $allowed_subjects[$i] . '</b> </td> 
					<td style="text-align:center;"> <b>' . $tnoc . '</b> </td> 
					<td style="text-align:center;" class="text-success"><b> ' . $subjectwise[$allowed_subjects[$i] . "_P"] . '</b> </td> 
					<td style="text-align:center;" class="text-error"><b> ' . $subjectwise[$allowed_subjects[$i] . "_A"] . ' </b></td>
					<td style="text-align:center;" class="text-' . $st . '"><b>' . $performance . '</b></td>
					<td style="text-align:center;" class="text-' . $st . '"><b>' . $remarks . '</b></td>
				</tr>';
                    $datasetp .= "<set name='" . $allowed_subjects[$i] . "' value='" . round($performance, 1) . "' color='" . $colors[$i] . "'/>";
                }
                $strXML .= $datasetp . "</graph>";
                if ($nc_cls != count($allowed_subjects)) {
                    echo renderChart("assets/charts/FCF_Column3D.swf", "", $strXML, "FactorySum", 650, 380);
                    echo <<<table_head
\t\t<h5> Subject Wise Attendance Representation </h5><br>
\t\t<table class="table  table-hover table-bordered "  style="padding:0px;">
\t\t\t<thead>
\t\t\t\t<tr> 
\t\t\t\t<th style="text-align:center;"  rowspan="2" valign="top"> SNo  </th> 
                                <th style="text-align:center;"   valign="top"> Subject  </th> 
                                <th  style="text-align:center;"  > Classes </th> <th  style="text-align:center;" > Presents </th>
                                <th  style="text-align:center;"  > Absents </th>  <th  style="text-align:center;"  > Performance </th> 
                                <th  style="text-align:center;" > Remarks </th> 
\t\t\t\t</tr>
\t\t\t</thead>
\t\t\t<tbody>
table_head;
                    echo $tr;
                    echo <<<tableend
\t\t\t</tbody>
\t\t</table>
\t\t<br><div class='alert alert-info'><a class='close' data-dismiss='alert'>&times;</a><strong>CNYS </strong>: Classes Not Yet Started </div>
\t<br>
tableend;
                } else {
                    echo "<br><br><h6 class='text-error text-center'>&emsp;No Submissions Found<br></h6>";
                }
            }
            /* Subject WIse */
        } else {
            echo "<script type='text/javascript'>show_error('Error: Invalid Syntax given..');</script>";
        }
        echo <<<b
\t</div>
\t</div>
\t<div class='span3'>
b;
        go_home();
        sidepanel();
        echo "</div></div></div>";
        display_footer();
        echo "\n</body>\n</html>";
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:101,代码来源:students.php

示例9: json_encode

    exit;
}
if ($_REQUEST && isset($_REQUEST['email'])) {
    $sql = "Select user_id from wl_users where email_address ='{$_REQUEST['email']}'";
    $rs = $db_connection->db_query($sql);
    if (pg_num_rows($rs) == 0) {
        echo json_encode(array("status" => "FAIL", "message" => "No User Found"));
    } else {
        $row = pg_fetch_assoc($rs);
        $uid = $row['user_id'];
        echo json_encode(array("status" => 'SUCCESS', "uid" => $uid));
    }
    die;
}
display_html_start();
echo '
</head><body>', get_header_html(), '
		<h3>Create user</h3>
	</div>
		<div class="row" id="message"></div>
		<div class="row">
		<form class="form-vertical"  role="form">
			<div class="form-group">
				 <label class="sr-only" for="email">Email Address:</label>
            	 <input type="email" class="form-control" id="email" name="email"  placeholder="E-Mail" required>
			 </div>
		<button type="submit" class="btn btn-primary">Get User Name</button>
</form>
';
display_footer(array('forgot_user'));
开发者ID:amondel2,项目名称:foodtrack,代码行数:30,代码来源:forget_user.php

示例10: generate_attendance


//.........这里部分代码省略.........
                            $da = date('d-m-Y');
                            $a = $da . '_' . $p1;
                            $dbname = $branchyear . '_Cache';
                            $table = $branch . $class . '_Cache';
                            //if(!mysql_select_db($dbname)) die(mysql_error());
                            $q3 = mysql_query("SELECT RNo, `" . $a . "` FROM {$table}") or die(mysql_error());
                            $aindex = 0;
                            $pindex = 0;
                            while ($individual = mysql_fetch_array($q3)) {
                                if ($individual[$a] == "A") {
                                    $Rnos[$p1]["Absents"][$aindex] = $individual["RNo"];
                                    $aindex++;
                                }
                                if ($individual[$a] == "P") {
                                    $Rnos[$p1]["Presents"][$pindex] = $individual["RNo"];
                                    $pindex++;
                                }
                            }
                        }
                    }
                    $tot = array('A' => 0, 'P' => 0);
                    //print_r($uid);
                    for ($w = 1; $w <= $class_total; $w++) {
                        $tr2 = '<tr >  
						<td style="text-align:center;">' . $w . '  </td>
						<td style="text-align:center;"> ' . $uid[$w] . '  </td>';
                        echo $tr2;
                        //$spread.="$w \t {$uid[$w]} \t";
                        $html .= $tr2;
                        $pc = 0;
                        $ac = 0;
                        for ($l = 1; $l <= 4; $l++) {
                            $pl = "P" . $l;
                            if (in_array($pl, $remaining1)) {
                                if (array_key_exists("Absents", $Rnos[$pl]) && in_array($w, $Rnos[$pl]['Absents'])) {
                                    echo '<td style="text-align:center;" class="text-error"><b> <i class="icon-remove"></i> </b></td>';
                                    $ac++;
                                    $html .= "<td><font color=\"darkred\">&#x2716;</font></td>";
                                } else {
                                    echo '<td style="text-align:center;" class="text-success"><b> <i class="icon-ok"></i> </b></td>';
                                    $pc++;
                                    $html .= "<td><font color=\"green\">&#x2714;</font></td>";
                                }
                            } else {
                                echo '<td></td>';
                                $html .= '<td></td>';
                                //$spread.=" \t";
                            }
                        }
                        $tot['A'] += $ac;
                        $tot['P'] += $pc;
                        echo <<<a
\t\t\t\t\t\t<td style="text-align:center;" class="text-success"><b> {$pc} </b> </td> 
\t\t\t\t\t\t<td style="text-align:center;" class="text-error"><b> {$ac} </b></td>  
\t\t\t\t\t</tr>
\t\t\t\t\t
a;
                        $html .= "<td><font color=\"green\"><b>{$pc}</b></font></td><td><font color=\"darkred\"><b>{$ac}</b></font></td></tr>";
                        //$spread.="$pc \t $ac \n";
                    }
                    echo "<tr><td colspan=6 style='text-align:center;'><b>Total</b></td><td style='text-align:center;' class='text-success'><b>" . $tot['P'] . "</b></td><td style='text-align:center;' class='text-error'><b>" . $tot['A'] . "</b></td></tr>";
                    $html .= "<tr><th colspan=6 style=\"text-align:center;\"> <b>Total</b> </th><td><b><font color=\"green\">" . $tot['P'] . "</font></b></td><td><b><font color=\"darkred\">" . $tot['A'] . "</font></b></td></tr>";
                    //$spread.="\t \tTotal\t \t \t \t{$tot['P']} \t {$tot['A']}";
                    echo "</tbody></table>";
                    if ($row['Position'] == "BA") {
                        echo <<<a
\t\t\t<form action='print.php' method='post' name='abc'>
\t\t\t<input type='hidden' name='Title1' value="{$branch} {$class} - Daily Report">
\t\t\t<input type='hidden' name='Table1' value='{$html}'>
\t\t<center><button type="submit" class="btn btn-primary"><i class='icon-download-alt'></i>&nbsp;&nbsp;Save as PDF</button></center>
\t\t\t</form>
a;
                        echo <<<b
\t\t\t<form action='excel.php' method='post' name='abc'>
\t\t\t<input type='hidden' name='Title1' value="{$branch} {$class} - Daily Report">
\t\t\t<input type='hidden' name="sheet" value='{$html}'>
\t\t<center><button type="submit" class="btn btn-primary"><i class='icon-download-alt'></i>&nbsp;&nbsp;Save as Excel Sheet</button></center>
\t\t\t</form>
b;
                    }
                    echo <<<a
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
a;
                } else {
                    echo "<br><h6><span class='text-error'><br><br><br>No Submissions found till now ...</span></h6><br></div>";
                }
                echo "</div> </div> ";
                display_footer();
                echo "\n</body>\n</html>";
                @mysql_close($con);
            } else {
                echo "<script type='text/javascript'>document.location.href='404.php';</script>";
            }
        } else {
            noservice();
        }
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:101,代码来源:today.php

示例11: quercus_servlet_request

<?php

/**
 * Redirect to the summary page
 */
if ($_REQUEST['logout'] == 'true') {
    quercus_servlet_request()->getSession()->invalidate();
    header("Location: index.php");
} else {
    require "WEB-INF/php/inc.php";
    $g_pages = load_pages("page");
    $g_page = $_GET['q'];
    if (!$g_pages[$g_page]) {
        $g_page = "summary";
    }
    include_once $g_pages[$g_page];
    display_footer($g_page);
}
开发者ID:xaviernoumbis,项目名称:resin-taint-analysis,代码行数:18,代码来源:index.php

示例12: template_message

function template_message($message, $url)
{
    display_header($url, 3);
    print "{$message}<BR>";
    if ($url != null) {
        print "<A HREF=\"{$url}\">You will be redirected in 3 seconds...</A><BR>";
    }
    display_footer();
}
开发者ID:shifter,项目名称:ospap,代码行数:9,代码来源:skin.php

示例13: poor


//.........这里部分代码省略.........
                while ($res = mysql_fetch_array($qa)) {
                    $ar[$sub][$res['RNo']]["Absents"] += $res[$sub . "_A"];
                }
                while ($res = mysql_fetch_array($qp)) {
                    $ar[$sub][$res['RNo']]["Presents"] += $res[$sub . "_P"];
                }
                //getting the poor attendance % students
                $dbname = $branchyear . '_Users';
                $table = $branchyear . '_Students';
                //if(!mysql_select_db($dbname)) die(mysql_error());
                $strength = count($users);
                for ($j = 1; $j <= $strength; $j++) {
                    $count = 1;
                    $sub = $p;
                    $abs = $ar[$sub][$j]['Absents'];
                    $pres = $ar[$sub][$j]['Presents'];
                    $p_nod = $abs + $pres;
                    @($tmp = $pres / $p_nod * 100);
                    $pr = round($tmp, 1);
                    if ($pr < 50) {
                        $cou = $count++;
                        $que_r = "Select RNo from " . $table . " where Id='" . $users[$j] . "';";
                        $que_n = "Select Name from " . $table . " where Id='" . $users[$j] . "';";
                        $poor[$brcls][$users[$j]] = mysql_fetch_array(mysql_query($que_r))[0] . "_" . $pr . "_" . mysql_fetch_array(mysql_query($que_n))[0];
                    }
                }
            }
            $pct = 0;
            $pcs = array();
            $mn = 1;
            $html = '';
            ///print_r($poor);
            $sub2 = $sub_def[$p];
            echo <<<table_head
\t
<table class="table table-hover table-bordered" style="padding:0px;">
\t\t<thead>
\t\t\t<tr> 
\t\t\t<th style="text-align:center;" >Subject</th>
\t\t\t<th style="padding-left:10px;text-align:left;" colspan=4 valign="top">{$sub2}</th> </tr>
<tr>
\t\t\t<th  style="text-align:center;width:10%;"  > Class </th> <th  style="text-align:center;width:15%;"  > Id </th><th  style="text-align:center;width:10%;"  > RNo</th> <th  style="text-align:center;"  > Name </th><th  style="text-align:center;width:10%;" > Percentage </th>
\t\t\t</tr>
\t\t</thead>
\t\t<tbody>
table_head;
            $html .= '<thead>
			<tr> 
			<th style="text-align:center;" >Subject</th>
			<th style="padding-left:10px;text-align:left;" colspan=4 valign="top"><code>' . $sub2 . '</code></th> </tr>\\n<tr>
			<th  style="text-align:center;width:10%;"  > Class </th><th  style="text-align:center;width:15%;"  > Id </th> <th  style="text-align:center;width:10%;"  > RNo</th><th  style="text-align:center;"  > Name </th><th  style="text-align:center;width:10%;" > Percentage </th>
			</tr>
		</thead>
		<tbody>';
            $pcs++;
            //print_r($poor);
            foreach ($poor as $key => $val) {
                $brcls = $key;
                //$val2 = $poor[$brcls];
                //print_r($val2);
                foreach ($val as $key1 => $value1) {
                    $det = explode("_", $value1);
                    $rn = $det[0];
                    $name = $det[2];
                    $per = $det[1];
                    $lnk = "./students.php?" . $key1 . "/sub";
                    echo '<tr onclick="document.location.href=\'' . $lnk . '\';" style="cursor:pointer;"><td style="text-align:center;">' . $brcls . '</td><td style="text-align:center;">' . $key1 . '</td><td style="text-align:center;" class = "span1">' . $rn . '</td><td class = "span3">' . $name . '</td><td style="text-align:center;" class="text-error">' . $per . '%</td></tr>';
                    $tr = '<tr ><td style="text-align:center;">' . $brcls . '</td><td style="text-align:center;">' . $key1 . '</td><td style="text-align:center;" class = "span1">' . $rn . '</td><td class = "span3" style="text-align:left;">' . $name . '</td><td style="text-align:center;" ><font color=darkred>' . $per . '%</font></td></tr>';
                    $html .= $tr;
                    $pct++;
                }
            }
            $html .= '</tbody>';
            //if($mn != count($poor)) {$html .= '</table><br>';}
            echo "</tbody></table>";
            if ($row['Position'] == "BA") {
                echo <<<a
\t\t<form action='print.php' method='post' name='abc'>
\t\t<input type='hidden' name='Title1' value="{$branch} - {$p} - Poor Attendance Report">
\t\t<input type='hidden' name='Table1' value='{$html}'>
\t<center><button type="submit" class="btn btn-primary"><i class='icon-download-alt'></i>&nbsp;&nbsp;Save as PDF</button></center>
\t\t</form>
a;
                echo <<<b
\t\t<form action='excel.php' method='post' name='abc'>
\t\t<input type='hidden' name='Title1' value="{$branch} - {$p} - Poor Attendance Report">
\t\t<input type='hidden' name="sheet" value='{$html}'>
\t<center><button type="submit" class="btn btn-primary"><i class='icon-download-alt'></i>&nbsp;&nbsp;Save as Excel Sheet</button></center>
\t\t</form>
b;
            }
            //echo $html;
            echo "</div>";
            display_footer();
            echo "\n</body>\n</html>";
        } else {
            echo "invalid subject";
        }
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:101,代码来源:subjectpoor.php

示例14: foreach

</table>

<?php 
if ($proxy_cache) {
    $cacheable = $proxy_cache->getCacheableEntries(15);
    echo "<h3>Cacheable Pages</h3>";
    echo "<table class='data'>";
    echo "<tr><th>Count</th><th>url</th></tr>\n";
    foreach ($cacheable as $item) {
        echo "<tr>";
        echo "<td>{$item->hitCount}</td><td>{$item->url}</td>";
        echo "</tr>\n";
    }
    echo "</table>";
    $uncacheable = $proxy_cache->getUncacheableEntries(15);
    echo "<h3>Uncacheable Pages</h3>";
    echo "<table class='data'>";
    echo "<tr><th>Count</th><th>url</th></tr>\n";
    foreach ($uncacheable as $item) {
        echo "<tr>";
        echo "<td>{$item->missCount}</td><td>{$item->url}</td>";
        echo "</tr>\n";
    }
    echo "</table>";
}
?>

<?php 
display_footer("cache.php");
开发者ID:TheSkyNet,项目名称:railoapacheportable,代码行数:29,代码来源:cache.php

示例15: feedback

function feedback($title)
{
    if (!check_login()) {
        header("location:login.php");
    } else {
        include 'config/globals.php';
        include 'config/db.php';
        include 'config/settings.php';
        $dbname = $branchyear . '_Logs';
        $table = $branchyear . '_Feedback';
        //if(!mysql_select_db($dbname)) die(mysql_error());
        echo "<!DOCTYPE html>\n<html>\n";
        display_headers($title);
        echo <<<js
\t\t\t\t<script type='text/javascript'>
\t\t\t\t\tfunction Preview(id,val){
\t\t\t\t\t\tdocument.getElementById(id).innerHTML=val;
\t\t\t\t\t}
\t\t\t\t</script>
js;
        echo "<body>\n";
        menu();
        echo <<<feedback
\t\t\t<div class="container" style="margin-top:-15px;">
\t\t\t\t\t<br>
\t\t\t\t\t<div id="error"></div>
\t\t\t\t\t<div class="row">
\t\t\t\t\t\t<div class="span9">
\t\t\t\t\t\t\t<div class="well well-large" style="background:#FFF;">
\t\t\t\t\t\t\t\t<div id="stpe2_P1">
\t\t\t\t\t\t\t\t\t<h5>Give Feedback </h5>
\t\t\t\t\t\t\t\t\t<h6> &emsp;&emsp;&emsp; - &emsp; Fill out below details  </h6>
\t\t\t\t\t\t\t\t\t<!--<h5>Period 1 : </h5>-->
\t\t\t\t\t\t\t\t\t<form method="POST" action="" onSubmit="return give_feedback();" >
\t\t\t\t\t\t\t\t\t\t<h6 > Feedback Type :</h6>
\t\t\t\t\t\t\t\t\t\t<label class="radio inline">
\t\t\t\t\t\t\t\t\t\t<input type="radio" id='complaint' value="Complaint" name="ftype" onclick="Preview(this.name,this.value);"> Complaint 
\t\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t\t\t<label class="radio inline">
\t\t\t\t\t\t\t\t\t\t<input type="radio" id='suggestion' value="Suggestion" name="ftype" onclick="Preview(this.name,this.value);"> Suggestion
\t\t\t\t\t\t\t\t\t</label><br><br>
\t\t\t\t\t\t\t\t<h6> Subject :</h6>
\t\t\t\t\t\t\t\t<input type="text" class="span8" placeholder="Subject" id='subject' name='sub' onkeyup="Preview(this.name,this.value);"><br>
\t\t\t\t\t\t\t\t<h6> Message :</h6>
\t\t\t\t\t\t\t\t<textarea class="span8" id='feedback' name='fb' style="resize:vertical;height:90px;" onkeyup="Preview(this.name,this.value);" placeholder="Type your complaint/suggestion here"></textarea>
\t\t\t\t<br>
\t\t\t</div>
\t\t\t<div id="stpe3">
\t\t\t\t<a ><h5>Preview </h5></a>
\t\t\t\t<!--<h6> &emsp;&emsp;&emsp; - &emsp; Confirm Your Notice </h6>-->
\t\t\t\t<div class="row">
\t\t\t\t\t<div class="span8">
\t\t\t\t\t\t<table class="table  table-hover table-bordered" >
\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t<tr> 
\t\t\t\t\t\t\t\t\t<th class="span2"  > Feedback Type  </th>
\t\t\t\t\t\t\t\t\t<td class='span6' id='ftype'> Complaint/Suggestion  </td>
\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr> 
\t\t\t\t\t\t\t\t<th class="span2"  > Suject </th>
\t\t\t\t\t\t\t\t<td class="span6" id='sub'> Feedback subject  </td>  
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<tr> 
\t\t\t\t\t\t\t\t<th class="span2" > Feedback  </th> 
\t\t\t\t\t\t\t\t<td class="span6" id='fb'> Complaint/Suggestion  </td> 
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tbody>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div><br>
\t\t\t<input type="submit" class="btn btn-primary" value="Confirm & Send &rarr;" name="post" />
\t\t\t</form>
\t\t</div>
\t\t<br>
\t</div>
</div>
feedback;
        echo "<div class='span3'>";
        go_home();
        sidepanel();
        echo "</div></div>";
        display_footer();
        echo "\n</body>\n</html>";
    }
}
开发者ID:0xc0d3r,项目名称:Attendance-Portal,代码行数:85,代码来源:feedback.php


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