Ejemplo n.º 1
0
    public static function submitPage($cmd)
    {
        $header = new LitHeader("Submit Job");
        echo <<<HERE
<html>
<head>
HERE;
        $header->litPageHeader();
        echo <<<HERE
</head>
<body>
HERE;
        $header->litHeader(array());
        echo <<<HERE
<div>{$cmd}</div>
HERE;
        $header->litFooter();
        echo <<<HERE
</body>
</html>
HERE;
        exit;
    }
Ejemplo n.º 2
0
//or xmlui
$CUSTOM = custom::instance();
$root = $CUSTOM->getRoot();
$qroot = $CUSTOM->getQueueRoot();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php 
$header = new LitHeader("Job Queue");
$header->litPageHeader();
?>
</head>
<body>
<?php 
$header->litHeader(array());
// open this directory
$myDirectory = opendir($qroot);
// get each entry
while ($entryName = readdir($myDirectory)) {
    $dirArray[] = $entryName;
}
// close directory
closedir($myDirectory);
//	count elements in array
$indexCount = count($dirArray);
// sort 'em
rsort($dirArray);
// print 'em
echo <<<HERE
<table id="queue" class="sortable">
Ejemplo n.º 3
0
}
if (!file_exists($qroot . $fname)) {
    $fname = str_replace("running.txt", "complete.txt", $fname);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php 
$header = new LitHeader("Job Status " . $fname);
$header->litPageHeader();
?>
</head>
<body>
<?php 
$header->litHeader(array("<a href='queue.php'>Job Queue</a>"));
if ($fname != "") {
    echo "<pre>";
    echo file_get_contents($qroot . $fname);
    echo "</pre>";
} else {
    if ($fname2 != "") {
        echo "Illegal file name: " . $fname2;
    }
}
$header->litFooter();
?>
</body>
</html>