2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Now displays data from last process run

When refreshing, will not continually create new processes
XHTML head refresh function can clear any GET requests
This commit is contained in:
azammitdcarf
2008-12-02 01:21:23 +00:00
parent 68b2a54133
commit 0f83bd06ab
3 changed files with 34 additions and 3 deletions

View File

@@ -39,10 +39,11 @@
* @param bool|array $javascript False for no Javascript otherwise array of Javascript include files
* @param string $bodytext Space in the body element: good for onload='top.close()' to close validly
* @param bool|int $refresh False or 0 for no refresh otherwise the number of seconds to refresh
* @param bool $clearrefresh False if we want to pass on any GET request in header, True to clear
*
* @see xhtml_foot()
*/
function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=false,$refresh=false)
function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=false,$refresh=false,$clearrefresh=false)
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
@@ -55,9 +56,13 @@ function xhtml_head($title="",$body=true,$css=false,$javascript=false,$bodytext=
if ($javascript)
foreach ($javascript as $j) print "<script type='text/javascript' src='$j'></script>";
if ($refresh)
{
print " <!--Set to refresh every $refresh seconds-->
<meta http-equiv='Cache-Control' content='no-cache'/>
<meta http-equiv='refresh' content='$refresh'/>";
<meta http-equiv='refresh' content='$refresh";
if ($clearrefresh) print ";url=?";
print "'/>";
}
if (!$body) return;
?>
</head>