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


PHP pagehead函数代码示例

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


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

示例1: traffic

 eth0 traffic (32 hours)<br>
 <img src='/health/eth0-32hours.png'><br>
</td>
<td valign='top'>
 loadavg (3 hours)<br>
 <img src='/health/loadavg-3hours.png'><br>
 loadavg (32 hours)<br>
 <img src='/health/loadavg-32hours.png'><br>
</td>
</tr>
</table>
<a href='/health/'>health monitor</a>
EOS;
}
### function }}}
pagehead('Server Monitor');
_style();
ptitle('Server Monitor');
## {{
print <<<EOS
<table border='0'>
<form name='form' method='get' action='{$self}'>
<tr>

<td>
<input type='hidden' name='mode' value='{$mode}'>
<input type='submit' value='OK' style="width:50;height:50;">
</td>

<td>
EOS;
开发者ID:swkim85,项目名称:HTCaaS,代码行数:31,代码来源:sm.php

示例2: pagehead

<?php

include "path.php";
include "{$env['prefix']}/inc/common.php";
include "func.php";
pagehead('Home');
print <<<EOS
EOS;
pagetail();
开发者ID:swkim85,项目名称:EGIFedCloudWeb,代码行数:9,代码来源:home.php

示例3: extract

    if (!$resultSet->EOF) {
        extract($resultSet->fields);
    } else {
        $doctype = 1;
    }
}
$_SESSION['doctype'] = $doctype;
$sql = "select count(*) as doccount from uploads where prjm_id={$prjm_id}";
$resultSet = $dbConn->Execute($sql);
$doccount = 0;
if ($resultSet === false) {
    echo 'Error: ' . $dbConn->ErrorMsg() . ' with ' . $sql;
} else {
    extract($resultSet->fields);
}
pagehead('Upload viewer for tutors');
$page_opening = "Documents handed in by a group";
$nav = new Navigation($tutor_navtable, basename($PHP_SELF), $page_opening);
$nav->setInterestMap($tabInterestCount);
$sql = "select sum(filesize) as zip_filesize from uploads where prjm_id={$prjm_id} group by prjm_id";
$resultSet = $dbConn->Execute($sql);
if ($resultSet === false) {
    echo 'Error: ' . $dbConn->ErrorMsg() . ' with ' . $sql;
} else {
    extract($resultSet->fields);
    $zip_filesize = number_format($zip_filesize, 0, ',', '.');
}
echo $nav->show();
?>
<div id='navmain' style='padding:1em;'>
    <h1>Read uploaded files</h1>
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:auditorview.php

示例4: mbi_ack

if ($page > 0 && $rows > 0) {
    $pagelink = "[<a href=\"./?id={$id}&page=" . ($page - 1) . "\"" . mbi_ack("*") . ">" . mbi("*.") . "前へ</a>] ";
} else {
    $pagelink = "[" . mbi("*.") . "前へ] ";
}
$pagelink .= "[P " . ($page + 1) . "/" . ceil($rows / $LIMIT) . " ]";
if (($page + 1) * $LIMIT < $rows) {
    $pagelink .= " [<a href=\"./?id={$id}&page=" . ($page + 1) . "\"" . mbi_ack("#") . ">" . mbi("#.") . "次へ</a>]";
} else {
    $pagelink .= " [" . mbi("#.") . "次へ]";
}
?>
<html>
<head>
<?php 
echo pagehead($title);
?>
</head>
<body>
<div id="all">
<h1><?php 
echo $board->title;
?>
</h1>
<hr class="normal">
<p>
[<a href="./form.php?mode=thform&id=<?php 
echo $board->name;
?>
"<?php 
echo mbi_ack(8);
开发者ID:Goryudyuma,项目名称:ez5000,代码行数:31,代码来源:index.php

示例5: in

    $resultSet = $dbConn->Execute($sql);
    if ($resultSet === 0) {
        $dbConn->log($dbConn->ErrorMsg());
        $dbConn->Execute("abort");
    }
}
if (($isTutorOwner || $isGroupTutor) && isset($_REQUEST['bdelete']) && $newsnummer != 0) {
    // try to insert this snummer into max prj_grp
    $sql = "delete from prj_grp pg where snummer={$newsnummer} \n" . "and prjtg_id in (select prjtg_id from prj_tutor where prjm_id={$prjm_id})";
    $dbConn->Execute($sql);
    //    $dbConn->log($dbConn->ErrorMsg());
}
$studentPicker->setPresentQuery("select snummer from prj_grp join prj_tutor using(prjtg_id) where prjm_id={$prjm_id}");
$sql = "select distinct snummer,achternaam,roepnaam,voorvoegsel,pt.grp_num, alias as group,sclass \n" . " from prj_grp pg join prj_tutor pt using(prjtg_id) join student using(snummer) \n" . "join student_class using(class_id)\n" . " left join grp_alias using(prjtg_id)" . " where pt.prjm_id={$prjm_id} \n" . "  order by grp_num desc,achternaam,roepnaam";
$rainbow = new RainBow();
$memberTable = getQueryToTableChecked($dbConn, $sql, true, 4, $rainbow, -1, '', '');
pagehead('Add individual student.');
$page_opening = "Add individual student to a project. <span style='font-size:6pt;'>prj_id {$prj_id} milestone {$milestone} </span>";
$nav = new Navigation($tutor_navtable, basename($PHP_SELF), $page_opening);
$nav->setInterestMap($tabInterestCount);
$nav->show();
$prjSelectWidget = $prjSel->getWidget();
include_once 'templates/addindividual.html';
?>
<!-- db_name=<?php 
echo $db_name;
?>
 -->
<!-- $Id: addindividual.php 1725 2014-01-16 08:39:59Z hom $ -->
</body>
</html>
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:addindividual.php

示例6: array

    }
    $cflag = false;
    // checked if any one
    if ($lgac or $lgam or $lgdb or $lgjm or $lgmn or $lgud) {
        $cflag = true;
    }
    if (!$cflag) {
        $lgac = 'on';
        // check one of them
    }
    // session save
    $_SESSION['lgchks'] = array($lgac, $lgam, $lgdb, $lgjm, $lgmn, $lgud);
    return array($lgac, $lgam, $lgdb, $lgjm, $lgmn, $lgud);
}
### function }}}
pagehead($page_title);
_style();
ptitle('Log View');
## {{
print <<<EOS
<table border='0'>
<form name='form' method='get' action='{$self}'>
<tr>

<td>
<input type='hidden' name='mode' value='{$mode}'>
<input type='submit' value='OK' style="width:50;height:50;">
</td>

<td>
EOS;
开发者ID:swkim85,项目名称:HTCaaS,代码行数:31,代码来源:log.php

示例7: unset

// session_start();
include_once './peerlib/peerutils.inc';
if (isset($_POST['peer_id']) && isset($_POST['peer_pw'])) {
    $peer_id = $_POST['peer_id'];
    $peer_pw = $_POST['peer_pw'];
    if (authenticate($peer_id, $peer_pw)) {
        $_SESSION['auth_user'] = $peer_id;
    } else {
        unset($_SESSION['auth_user']);
    }
}
if (!isset($_SESSION['auth_user'])) {
    header("Location: login.php");
    exit;
}
pagehead('welcome');
?>
<div id="content">
<fieldset valign="top">
<legend>Welkom <?php 
echo $_SESSION['auth_user'];
?>
 met wachtwoord <?php 
echo $_POST['peer_pw'];
?>
</legend>
Hier kun je kiezen tussen 
<ol><li>Het invullen van je formulier voor het beoordelen van je teamgenoten</li>
<li>en het bekijken van de beoordelingen die je van je teamgenoten hebt gekregen. Dit gaat alleen als alle teamgenoten hun formulier hebben ingestuurd.
</li>
<li>Uitloggen</li>
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:welcome.php

示例8: pagehead

<?php

include "path.php";
include "{$env['prefix']}/inc/common.php";
include "func.php";
pagehead('Management');
ParagraphTitle("Management");
print <<<EOS
<ul>
<li><a href="mgrsite.php">Site Management</a>
<li><a href="mgrostpl.php">OS Template</a>
<li><a href="mgrvm.php">VM Management</a>
EOS;
print <<<EOS
</ul>
EOS;
$title = 'List of records contained in the NEW cloud accounting database started in last 3 hours. (Times are UTC)';
$url = "http://goc-accounting.grid-support.ac.uk/cloudtest/vmshour2.html";
print "<dt>{$title}";
print "<dd><a href='{$url}' target='_blank'>{$url}</a>";
$title = 'Sites publishing new cloud accounting records (SSM 2.0)';
$url = "http://goc-accounting.grid-support.ac.uk/cloudtest/cloudsites2.html";
print "<dt>{$title}";
print "<dd><a href='{$url}' target='_blank'>{$url}</a>";
$title = 'EGI ACCOUNTING PORTAL';
$url = "http://accounting-devel.egi.eu/cloud.php";
print "<dt>{$title}";
print "<dd><a href='{$url}' target='_blank'>{$url}</a>";
pagetail();
开发者ID:swkim85,项目名称:EGIFedCloudWeb,代码行数:29,代码来源:mgr.php

示例9: foreach

    foreach ($output as $line) {
        if (!$line) {
            $is_header = false;
            continue;
        }
        if ($is_header) {
            $headers[] = $line;
        } else {
            $body[] = $line;
        }
    }
    //dd($headers);
    //dd($body);
}
### }}}
pagehead('cURL client');
print <<<EOS
<table border='1'>
<form name='form' action='{$env['self']}' method='get'>
<tr>
<td>curl</td>
</tr>

<tr>
<td>URL</td>
<td>
<input type='text' name='url' size='60' value="{$form['url']}">
</td>
</tr>
EOS;
$items = array(array('GET', 'GET'), array('POST', 'POST'));
开发者ID:swkim85,项目名称:EGIFedCloudWeb,代码行数:31,代码来源:curl.php

示例10: ParagraphTitle

    ParagraphTitle("Generate Proxy Certifiate", 1);
    $keypass = $form['keypass'];
    $error = generate_proxy($keypass, $debug);
    if ($error) {
        print "<b>{$error}</b>";
    } else {
        print "<b>proxy generated</b>";
    }
    ParagraphTitle("Proxy Infomation", 1);
    proxy_info($debug);
    pagetail();
    exit;
}
### }}}
$title = "Proxy Information";
pagehead($title);
ParagraphTitle($title);
$debug = true;
$debug = false;
ParagraphTitle("Proxy Infomation", 1);
proxy_info($debug);
$title = "Generate Proxy Certificate";
ParagraphTitle($title, 1);
print <<<EOS
<form name='form' method='post' enctype='multipart/form-data'>

Certificate:
<input type='file' name='filecert' size='30' style='height:30;'>
<br>
Key:
<input type='file' name='filekey' size='30' style='height:30;'>
开发者ID:swkim85,项目名称:EGIFedCloudWeb,代码行数:31,代码来源:pxinfo.php

示例11: RainBow

$csvout = 'N';
$csvout_checked = '';
if (isset($_REQUEST['csvout'])) {
    $csvout = $_REQUEST['csvout'];
    $csvout_checked = $csvout == 'Y' ? 'checked' : '';
}
// <a href='../emailaddress.php?snummer=snummer'>snummer</a>
$sql = "select firstname,lastname,email,emailstatus,token,language_code,attribute_1,attribute_2 \n" . "from lime_token where attribute_2={$prjm_id}  order by lastname,firstname";
$sql2 = $sql;
$rainbow = new RainBow(STARTCOLOR, COLORINCREMENT_RED, COLORINCREMENT_GREEN, COLORINCREMENT_BLUE);
if ($csvout == 'Y') {
    $content_header = 'Content-type: text/x-comma-separated-values; charset: UTF-8;';
    $dbConn->queryToCSV($sql, $filename, ';', true, $content_header, false);
    exit(0);
}
pagehead('Get lime survey token table');
$page_opening = "Lime survey token file project {$afko} {$description} <span style='font-size:6pt;'>prj_id {$prj_id} milestone {$milestone} </span>";
$nav = new Navigation($tutor_navtable, basename($PHP_SELF), $page_opening);
$nav->setInterestMap($tabInterestCount);
$prjSel->setJoin('milestone_grp using (prj_id,milestone)');
$prj_id_selector = $prjSel->getSelector();
echo $nav->show();
?>
<div id='navmain' style='padding:1em;'>
    <fieldset><legend>Select project</legend>
        <form method="get" name="project" action="<?php 
echo $PHP_SELF;
?>
">
            <?php 
echo $prj_id_selector;
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:limelist.php

示例12: extract

 * presents a page that allows a time record to be spilt and attaached to other projects
 */
include_once './peerlib/peerutils.inc';
include_once 'tutorhelper.inc';
require_once 'tasktimer.inc';
if (!isset($startend)) {
    $startend = 'start';
}
if (isset($_REQUEST['startend'])) {
    if ($_REQUEST['startend'] == 'end') {
        $startend = 'end';
    }
}
extract($_SESSION);
$script = "\n/*\n* refresh parent page on close\n*/\nfunction bye(){\n  opener.focus();\n  opener.location.reload();\n  self.close();\n}\n/* split */\nfunction splitter(task_timer_id,new_task_timer_id) {\n  window.open('timesplitter.php?task_timer_id='+task_timer_id+'&new_task_timer_id='+new_task_timer_id,'_blank','width=800,height=600,scrollbars')\n}\n";
pagehead('Time splitter.', $script);
//echo "<pre>";print_r($_REQUEST);echo "</pre>\n";
$new_task_timer_id = -1;
if (isset($_REQUEST['task_timer_id'])) {
    $task_timer_id = validate($_REQUEST['task_timer_id'], 'integer', 0);
}
// now get the task (which should fit split_time)
$sql = "select prj_id, milestone,prjm_id,task_id,start_time, stop_time from task_timer\n" . "  where id={$task_timer_id}";
$resultSet = $dbConn->Execute($sql);
if ($resultSet === false) {
    echo "cannot get task timer data with <pre>{$sql}</pre>, error " . $dbConn->ErrorMsg();
}
if (!$resultSet->EOF) {
    extract($resultSet->fields);
}
//echo "<pre>";print_r($resultSet->fields);echo "</pre>\n";
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:timesplitter.php

示例13: on

    $sql .= 'commit;';
    if ($db_name == 'peer2') {
        $dbConn->log($sql);
    }
    $resultSet = $dbConn->execute($sql);
    if ($resultSet === false) {
        echo "<br>Cannot update roles types with <pre>" . $sql . "</pre> reason " . $dbConn->ErrorMsg() . "<br>";
    }
}
$sql = "select tutor as tutor_owner from project join tutor on (userid=owner_id) where prj_id={$prj_id}";
$resultSet = $dbConn->execute($sql);
if ($resultSet === false) {
    echo "<br>Cannot get tutor owner <pre>" . $sql . "</pre> reason " . $dbConn->ErrorMsg() . "<br>";
}
extract($resultSet->fields);
pagehead('Define types of roles students can play.');
$page_opening = "Define the roles the students may assume in a project team. <span style='font-size:6pt;'>prj_id {$prj_id} milestone {$milestone} </span>";
$nav = new Navigation($tutor_navtable, basename($PHP_SELF), $page_opening);
$nav->setInterestMap($tabInterestCount);
$prjSel->setJoin('milestone_grp using (prj_id,milestone)');
//if ($db_name =='peer2') $dbConn->log($prjSel->getQuery());
$prj_id_selector = $prjSel->getSimpleForm();
$copy_form = '';
$sql = "select count(1) as role_count from project_roles where prj_id={$prj_id}";
$resultSet = $dbConn->execute($sql);
$has_roles = $resultSet->fields['role_count'] > 0;
if (!$has_roles) {
    $copyselector = getProjectSelector($dbConn, $peer_id, $prj_id, 'roprj_id', ' prj_id in (select distinct prj_id from project_roles)');
    $copy_form = "<fieldset><legend>copy roles from other project</legend><form id='copyform' method='get'>\n" . "{$copyselector}\n" . "<input type='hidden' name='target_prj_id' value='{$prj_id}'/>\n" . "<input type='submit' name='copyroles' value='Copy Roles from project'/>\n" . "</form></fieldset>";
}
$nav->show();
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:defprojectroles.php

示例14: pagehead

    }
    if ($sqlTail != '') {
        $sql .= $sqlTail;
        $dbConn->log($sql);
        $rts = $dbConn->Execute($sql);
        if ($rts === false) {
            $dbConn->Execute("rollback;");
        } else {
            $dbConn->transactionEnd();
        }
    } else {
        $dbConn->transactionEnd();
    }
}
// get group tables for a project
pagehead('Record task completed');
$page_opening = "Record completion of tasks for project";
$nav = new Navigation($tutor_navtable, basename($PHP_SELF), $page_opening);
$nav->setInterestMap($tabInterestCount);
$nav->show();
$sql3 = "select task_id as value,name||': '||description as name from project_task order by task_number";
$taskSel = new Selector($dbConn, 'task_id', $sql3, $task_id);
$task_id_selector = $taskSel->getSelector();
$participant = array();
$sql = "select snummer as participant from project_task_completed where task_id={$task_id}";
$resultSet = $dbConn->Execute($sql);
if ($resultSet === false) {
    print "error fetching participant data with {$sql} : " . $dbConn->ErrorMsg() . "<br/>\n";
} else {
    while (!$resultSet->EOF) {
        array_push($participant, $resultSet->fields['participant']);
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:example_tableBuilder.php

示例15: extract

extract($_SESSION);
$prjSel = new PrjMilestoneSelector2($dbConn, $peer_id, $prjm_id);
extract($prjSel->getSelectedData());
$_SESSION['prj_id'] = $prj_id;
$_SESSION['prjm_id'] = $prjm_id;
$_SESSION['milestone'] = $milestone;
$new_repos_name = strtolower($afko) . 'm' . $milestone;
$tutor = $tutor_code;
if ($db_name == 'peer2') {
    $reposroot = '/home/svnt';
    $url_base = 'svnt';
} else {
    $reposroot = '/home/svn';
    $url_base = 'svn';
}
pagehead('Create Subversion repositories');
$page = new PageContainer();
$pageTitle = "Subversion repositories";
$page->setTitle($pageTitle);
$cmdstring = '';
$pp['repoURL'] = $server_url . '/svn/' . $year . '/' . $new_repos_name . '/';
$twigs = '';
if (isset($_POST['bcreate'])) {
    if (isset($_REQUEST['new_repos_name']) && $_REQUEST['new_repos_name']) {
        $new_repos_name = trim($_REQUEST['new_repos_name']);
    }
    $individual = trim($_REQUEST['repos_individual']) == 'individual' ? 'individual' : 'group';
    $twigs = trim($_REQUEST['twigs']);
    if ($individual == 'individual') {
        $cmdstring = $subversionscriptdir . "/mksvnindividual2.pl --db {$db_name} " . "--projectmilestone {$prjm_id} --parent {$reposroot} --name {$new_repos_name} --url_base {$url_base} --twigs='{$twigs}'";
    } else {
开发者ID:homberghp,项目名称:peerweb,代码行数:31,代码来源:subversionrepos.php


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