本文整理汇总了PHP中Screen_Header函数的典型用法代码示例。如果您正苦于以下问题:PHP Screen_Header函数的具体用法?PHP Screen_Header怎么用?PHP Screen_Header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Screen_Header函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UL_Error
function UL_Error($task = "")
{
global $NATS;
Screen_Header($NATS->Lang->Item("access.error"));
echo "<br>" . $NATS->Lang->Item("access.error.detail") . " (" . $task . ").<br><br>";
echo "<a href=main.php>" . $NATS->Lang->Item("click.continue") . "</a><br><br>";
Screen_Footer();
exit;
}
示例2: ob_start
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require("include.php");
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
if ($NATS_Session->userlevel<5) UL_Error("Edit Node");
ob_end_flush();
Screen_Header("Node Editor",1,1,"","main","nodes");
echo "\n<script type=\"text/javascript\">\n";
echo "var iconDivText='";
ShowIcons();
echo "';\n\n";
echo "function showIcons()\n";
echo "{\n";
echo "if (document.getElementById('iconDiv').innerHTML=='') document.getElementById('iconDiv').innerHTML='<br><br>'+iconDivText+'<br><br>';\n";
echo "else document.getElementById('iconDiv').innerHTML='';\n";
echo "}\n\n";
echo "var optionContent='';\n";
echo "function showOptions()\n";
echo "{\n";
echo "if (document.getElementById('nodeoptions').innerHTML=='') document.getElementById('nodeoptions').innerHTML=optionContent;\n";
echo "else\n";
echo " {\n";
示例3: ss
$testrecord = 0;
}
$q = "UPDATE fnnstest SET testalerts=" . $testalerts . ",simpleeval=" . $simpleeval . ",testname=\"" . ss($_REQUEST['testname']) . "\",testrecord=" . $testrecord . " ";
$q .= "WHERE nstestid=" . ss($_REQUEST['nstestid']);
//echo $q;
$NATS->DB->Query($q);
if ($NATS->DB->Affected_Rows() > 0) {
$_REQUEST['message'] = $NATS->Lang->Item("save.ok");
} else {
$_REQUEST['message'] = $NATS->Lang->Item("save.fail");
}
break;
}
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("edit.nodeside.test"), 1, 1, "", "main", "nodes");
if (isset($_REQUEST['message'])) {
echo "<br><b>" . $_REQUEST['message'] . "</b><br>";
}
$q = "SELECT * FROM fnnstest WHERE nstestid=" . ss($_REQUEST['nstestid']) . " LIMIT 0,1";
$r = $NATS->DB->Query($q);
if (!($row = $NATS->DB->Fetch_Array($r))) {
echo $NATS->Lang->Item("no.test");
Screen_Footer();
exit;
}
$NATS->DB->Free($r);
echo "<br>";
echo "<b class=\"subtitle\">" . $NATS->Lang->Item("editing.test") . ": <a href=node.edit.php?nodeid=" . $row['nodeid'] . ">" . $row['nodeid'] . "</a> > ";
if ($row['testname'] == "") {
echo $row['testtype'];
示例4: UL_Error
function UL_Error($task="")
{
Screen_Header("Insufficient Access");
echo "<br>Sorry but your user has insufficient access to perform task (".$task.").<br><br>";
echo "<a href=main.php>Please click here to continue.</a><br><br>";
Screen_Footer();
exit();
}
示例5: basename
}
exit;
}
$msg = "File Download Failed";
break;
case "upload":
$uploadfn = $dirs[$dirindex]['path'] . basename($_FILES['uploadfile']['name']);
if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $uploadfn)) {
$msg = "File Uploaded Ok";
} else {
$msg = "File Upload Failed";
}
break;
}
}
Screen_Header("File Manager", 1, 1, "", "main", "admin");
if ($msg != "") {
echo "<b>" . $msg . "</b><br><br>";
}
echo "<br><b class=\"subtitle\"><a href=admin.php>System Settings</a> > File Manager</b><br><br>";
echo "<form action=filemanager.php method=post>";
echo "<b>Change Directory: <select name=dirindex>";
for ($a = 0; $a < $dircount; $a++) {
echo "<option value=" . $a . ">" . $dirs[$a]['name'] . " (" . $dirs[$a]['path'] . ")</option>";
}
echo "</select> <input type=submit value=Go> </form>";
echo "<br><br>";
echo "<b class=\"subtitle\">" . $dirs[$dirindex]['name'] . " Directory: " . $dirs[$dirindex]['path'] . "</b><br><br>";
if ($handle = opendir($dirs[$dirindex]['path'])) {
echo "<table class=\"nicetable\">";
while (false !== ($file = readdir($handle))) {
示例6: ss
}
break;
case "moveitembefore":
// viewitemid newweight
$q = "UPDATE fnviewitem SET iweight=iweight+1 WHERE viewid=" . ss($_REQUEST['viewid']) . " AND iweight>=" . ss($_REQUEST['newweight']);
$NATS->DB->Query($q);
$q = "UPDATE fnviewitem SET iweight=" . ss($_REQUEST['newweight']) . " WHERE viewitemid=" . ss($_REQUEST['viewitemid']);
//$NATS-DB->Query($q);
$NATS->DB->Query($q);
break;
default:
$msg = $NATS->Lang->Item("unknown.action");
}
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("edit.view"), 1, 1, "", "main", "views");
$q = "SELECT * FROM fnview WHERE viewid=" . ss($_REQUEST['viewid']) . " LIMIT 0,1";
$r = $NATS->DB->Query($q);
if (!($row = $NATS->DB->Fetch_Array($r))) {
echo $NATS->Lang->Item("no.such.view") . "<br><br>";
Screen_Footer();
exit;
}
$NATS->DB->Free($r);
if (isset($msg)) {
echo "<b>" . $msg . "</b><br><br>";
$poplist[] = $msg;
}
//echo "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td align=left>";
echo "<b class=\"subtitle\">" . $NATS->Lang->Item("editing.view") . ": <a href=view.php?viewid=" . $_REQUEST['viewid'] . ">" . $row['vtitle'] . "</a></b>";
//echo "</td><td align=right><b class=\"minortitle\"><a href=\"view.php?viewid=".$_REQUEST['viewid']."\" target=top>Preview View</a> / ";
示例7: ob_start
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 1) {
UL_Error("View Test Summary");
}
if (isset($_REQUEST['nodeid'])) {
$nodeid = $_REQUEST['nodeid'];
} else {
$nodeid = "";
}
Screen_Header("Summary for " . $nodeid, 1);
ob_end_flush();
$td_day = date("d");
$td_mon = date("m");
$td_yr = date("Y");
function gtinfo($testid)
{
global $NATS;
$o = "Error fetching test";
$test = $NATS->GetTest($testid);
if ($test['class'] == "L") {
$o = lText($test['testtype']);
if ($test['testparam'] != "") {
$o .= " (" . $test['testparam'] . ")";
}
if ($test['testname'] != "") {
示例8: Screen_Footer
echo "<br><br>";
echo "<input type=hidden name=mode value=report>";
echo "<input type=submit value=\"View Availability Report\"><br>";
echo "<input type=checkbox name=showdetail value=1> Show breakdown details<br>";
echo "</form>";
Screen_Footer();
exit;
}
if ($mode != "report") {
Screen_Header("Error");
echo "Sorry - illegal mode specified<br><br>";
Screen_Footer();
exit;
}
// the actual run
Screen_Header("Availability Report");
ob_end_flush();
if (isset($_REQUEST['period'])) {
$period = $_REQUEST['period'];
} else {
$period = "";
}
$now = time();
$nowx = $now;
switch ($period) {
// td_day mon yr
// mktime h mi s mo d y
case "last30days":
// last 30 days
$finishx = mktime(0, 0, 0, $td_mon, $td_day, $td_yr);
$startx = $finishx - 60 * 60 * 24 * 30;
示例9: ob_start
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
ob_end_flush();
if (isset($_REQUEST['mode'])) {
$mode = $_REQUEST['mode'];
} else {
$mode = "overview";
$_REQUEST['mode'] = "overview";
}
Screen_Header($NATS->Lang->Item("overview.title"), 1, 0, "", "main");
if (isset($_REQUEST['message'])) {
echo "<b>" . $_REQUEST['message'] . "</b><br>";
$poplist[] = $_REQUEST['message'];
}
if (isset($_REQUEST['nodemove'])) {
$nm = true;
} else {
$nm = false;
}
function dispyn($val)
{
if ($val == 0) {
return "N";
} else {
if ($val == 1) {
示例10: ob_end_flush
if (isset($_REQUEST['simpleeval'])) $simpleeval=1;
else $simpleeval=0;
if (isset($_REQUEST['testrecord'])) $testrecord=1;
else $testrecord=0;
$q="UPDATE fnnstest SET testalerts=".$testalerts.",simpleeval=".$simpleeval.",testname=\"".ss($_REQUEST['testname'])."\",testrecord=".$testrecord." ";
$q.="WHERE nstestid=".ss($_REQUEST['nstestid']);
//echo $q;
$NATS->DB->Query($q);
if ($NATS->DB->Affected_Rows()>0) $_REQUEST['message']="Changes Saved";
else $_REQUEST['message']="Failed to Save or Nothing Changed";
break;
}
}
ob_end_flush();
Screen_Header("Nodeside Test Editor",1,1,"","main","nodes");
if (isset($_REQUEST['message'])) echo "<br><b>".$_REQUEST['message']."</b><br>";
$q="SELECT * FROM fnnstest WHERE nstestid=".ss($_REQUEST['nstestid'])." LIMIT 0,1";
$r=$NATS->DB->Query($q);
if (!$row=$NATS->DB->Fetch_Array($r))
{
echo "Error fetching Nodeside Test";
Screen_Footer();
exit();
}
$NATS->DB->Free($r);
echo "<br>";
echo "<b class=\"subtitle\">Editing Test: <a href=node.edit.php?nodeid=".$row['nodeid'].">".$row['nodeid']."</a> > ";
示例11: ob_start
along with FreeNATS. If not, see www.gnu.org/licenses
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB)) {
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit;
}
if ($NATS_Session->userlevel < 9) {
UL_Error($NATS->Lang->Item("test.run"));
}
ob_end_flush();
Screen_Header($NATS->Lang->Item("test.run") . ": test/" . $_REQUEST['trid'], 1);
if (isset($_REQUEST['message'])) {
echo "<b>" . $_REQUEST['message'] . "</b><br>";
}
if (isset($amsg)) {
echo "<b>" . $amsg . "</b><br>";
}
if (isset($_REQUEST['action']) && $_REQUEST['action'] == "finish") {
if (!isset($_REQUEST['confirmed'])) {
echo "<b>" . $NATS->Lang->Item("testrun.manual.close") . "</b><br>";
echo $NATS->Lang->Item("testrun.manual.close.detail");
echo "<br><br>";
echo "<b>" . $NATS->Lang->Item("confirm.action") . ":</b> ";
echo "<a href=testrun.php?trid=" . $_REQUEST['trid'] . "&action=finish&confirmed=1>" . $NATS->Lang->Item("testrun.del.yes") . "</a> | <a href=main.php>" . $NATS->Lang->Item("testrun.del.cancel") . "</a>";
echo "<br><br>";
} else {
示例12: ob_end_flush
$NATS->Start();
if (!$NATS_Session->Check($NATS->DB))
{
header("Location: ./?login_msg=Invalid+Or+Expired+Session");
exit();
}
ob_end_flush();
if (isset($_REQUEST['mode'])) $mode=$_REQUEST['mode'];
else
{
$mode="overview";
$_REQUEST['mode']="overview";
}
Screen_Header("Monitoring Configuration",1,0,"","main");
if (isset($_REQUEST['message']))
{
echo "<b>".$_REQUEST['message']."</b><br>";
$poplist[]=$_REQUEST['message'];
}
if (isset($_REQUEST['nodemove'])) $nm=true;
else $nm=false;
function dispyn($val)
{
if ($val==0) return "N";
else if ($val==1) return "Y";
else return $val."?";
示例13: ob_start
For more information see www.purplepixie.org/freenats
-------------------------------------------------------------- */
ob_start();
require "include.php";
$NATS->Start();
$session = $NATS_Session->Check($NATS->DB);
if ($session) {
header("Location: main.php");
exit;
}
if ($NATS->Cfg->Get("site.auth", "") == "http" && (!isset($_REQUEST['auth']) || $_REQUEST['auth'] != "basic")) {
header("Location: login.php");
exit;
}
Screen_Header($NATS->Lang->Item("welcome"), 3);
ob_end_flush();
?>
<br><center>
<?php
//if (isset($_REQUEST['login_msg'])) echo "<b style=\"color: red; font-size: 14pt;\">".$_REQUEST['login_msg']."</b><br><br>";
$mesg = array(0 => "msg.logout", 1 => "msg.session", 2 => "msg.loginfailed");
if (isset($_REQUEST['msg'])) {
$msg = $_REQUEST['msg'];
} else {
if (isset($_REQUEST['login_msg'])) {
if ($_REQUEST['login_msg'] == "Invalid Or Expired Session") {
$msg = 1;
}
}
}
示例14: Screen_Header
if ($_REQUEST['feedtype'] == "group") {
$opts['typeopt'] = $_REQUEST['groupid'];
}
}
$opts['feedrange'] = $_REQUEST['feedrange'];
if (isset($_REQUEST[$_REQUEST['feedrange']])) {
$opts['rangeopt'] = $_REQUEST[$_REQUEST['feedrange']];
}
$NATS->RSS->SaveFeed($id, $opts);
break;
case "delete":
$NATS->RSS->Delete($_REQUEST['id']);
break;
}
}
Screen_Header($NATS->Lang->Item("rss.feed"), 1, 1, "", "main", "admin");
echo "<br><b class=\"subtitle\"><a href=admin.php>" . $NATS->Lang->Item("system.settings") . "</a> > " . $NATS->Lang->Item("rss.feed") . "</b><br><br>";
$types = $NATS->RSS->GetTypes();
$ranges = $NATS->RSS->GetRanges();
if (isset($_REQUEST['edit'])) {
$nodes = $NATS->GetNodes();
$groups = $NATS->GetGroups();
$feed = $NATS->RSS->GetFeed($_REQUEST['id']);
if (count($feed) > 0) {
echo "<FORM ACTION=\"admin.rss.php\">\n";
echo "<INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"update\">\n";
echo "<INPUT TYPE=\"hidden\" NAME=\"feedid\" VALUE=\"" . $feed['feedid'] . "\">\n";
echo "<H2>" . $NATS->Lang->Item("edit") . ": " . $feed['feedname'] . "</H2>\n";
echo "<TABLE BORDER=\"0\">\n";
echo "<TR><TD ALIGN=\"left\" VALIGN=\"top\">";
echo $NATS->Lang->Item("rss.feed.name");
示例15: ss
}
$q = "UPDATE fnscheditem SET ";
//(scheduleid,dayofweek,dayofmonth,monthofyear,year,starthour,startmin,finishhour,finishmin) VALUES(";
$q .= "dayofweek=\"" . ss($_REQUEST['dayofweek']) . "\",";
$q .= "dayofmonth=" . ss($_REQUEST['dayofmonth']) . ",monthofyear=" . ss($_REQUEST['monthofyear']) . ",year=" . $year . ",";
$q .= "starthour=" . ss($_REQUEST['starthour']) . ",startmin=" . ss($_REQUEST['startmin']) . ",";
$q .= "finishhour=" . ss($_REQUEST['finishhour']) . ",finishmin=" . ss($_REQUEST['finishmin']) . " WHERE scheditemid=" . ss($_REQUEST['scheditemid']);
$NATS->DB->Query($q);
break;
case "delete_item":
$q = "DELETE FROM fnscheditem WHERE scheditemid=" . ss($_REQUEST['scheditemid']);
$NATS->DB->Query($q);
break;
}
}
Screen_Header("Schedule Management", 1, 1, "", "main", "admin");
echo "<br><b class=\"subtitle\"><a href=admin.php>System Settings</a> > Schedule Manager</b><br><br>";
$q = "SELECT scheduleid,schedulename FROM fnschedule";
$r = $NATS->DB->Query($q);
if ($NATS->DB->Num_Rows($r) <= 0) {
echo "<i>No Schedules</i><br>";
} else {
echo "<table class=\"nicetable\">";
while ($row = $NATS->DB->Fetch_Array($r)) {
echo "<tr><td><b><a href=schedule.php?scheduleid=" . $row['scheduleid'] . ">" . $row['schedulename'] . "</a></b> </td>";
echo "<td><a href=schedule.php?scheduleid=" . $row['scheduleid'] . ">Edit</a> | ";
echo "<a href=schedule.php?delscheduleid=" . $row['scheduleid'] . "&action=delete>Delete</a></td></tr>";
}
echo "</table>";
}
$NATS->DB->Free($r);