mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-11 09:29:53 +00:00
Fix collor when the service fails. Automatically refresh the status every 30 seconds
This commit is contained in:
parent
b8874d1e27
commit
4c02bd5a1a
@ -1,8 +1,8 @@
|
|||||||
<HTML>
|
<HTML>
|
||||||
<HEAD> <TITLE>Simple Frame Set Example</TITLE></HEAD>
|
<HEAD> <TITLE>RaSCSI Control Page</TITLE></HEAD>
|
||||||
<FRAMESET ROWS="5%,95%" BORDER=0>
|
<FRAMESET ROWS="20px,*" BORDER=0>
|
||||||
<FRAME SRC="status.php" NAME="exampletoc">
|
<FRAME SRC="status.php" NAME="rascsi_status">
|
||||||
<FRAME SRC="rascsi.php" NAME="examplecontent">
|
<FRAME SRC="rascsi.php" NAME="rascsi_control">
|
||||||
<NOFRAMES>You must use a browser that can display frames
|
<NOFRAMES>You must use a browser that can display frames
|
||||||
to see this page. </NOFRAMES>
|
to see this page. </NOFRAMES>
|
||||||
</FRAMESET>
|
</FRAMESET>
|
||||||
|
@ -7,6 +7,18 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.onload = setupRefresh;
|
||||||
|
|
||||||
|
function setupRefresh() {
|
||||||
|
setTimeout("refreshPage();", 30000); // milliseconds
|
||||||
|
}
|
||||||
|
function refreshPage() {
|
||||||
|
window.location = location.href;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Blatently copied from stack overflow:
|
// Blatently copied from stack overflow:
|
||||||
@ -21,13 +33,11 @@
|
|||||||
$text='Stopped';
|
$text='Stopped';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<body style="background-color: green;">';
|
echo '<body style="background-color: '.$color.';">';
|
||||||
echo '<table width="100%" height=100% style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color:'.$color.'">';
|
echo '<table width="100%" height=100% style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color:'.$color.'">';
|
||||||
echo '<tr style:"height: 50%">';
|
echo '<tr style:"height: 100%">';
|
||||||
echo '<td style="color: white; background-color: '.$color.'; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">'.$text.'</td>';
|
echo '<td style="color: white; background-color: '.$color.'; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">'.$text.' '.date("h:i:sa").'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
echo '<tr style:"height: 50%">';
|
|
||||||
echo '<td style="color: white; background-color: '.$color.'; text-align: center; vertical-align: center; font-family: Arial, Helvetica, sans-serif;">'.date("h:i:sa").'</td></tr>';
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user