ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/shared/title.inc.php
Revision: 1.20
Committed: Fri Feb 11 14:05:32 2005 UTC (19 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.19: +5 -2 lines
Log Message:
Updates from skel (Daniel Piddock):

 - Fix overflow in disk inodes on PHP page.
 - Added code to get passed in variables from the $_GET variable. Makes
   things work under a pretty default Debian apache2/php4 set up.
 - Graphs displays "Network IO" in the drop down list, not "Network usage"
   for consistency with everything else.
 - Display Swap, memory and disk usage in MB rather than bytes in latest
   view.
 - Display uptime in a pretty days/hours/minutes/seconds rather than just
   seconds, in latest view
 - Include file system type under Disks in latest view

Thanks Daniel!

File Contents

# User Rev Content
1 pjm2 1.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2    
3     <html>
4    
5     <head>
6     <title>i-scream Distributed Central Monitoring System Reports</title>
7     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8     <meta http-equiv="pragma" content="no-cache">
9     <meta http-equiv="cache-control" content="no-cache">
10 tdb 1.20 <? if (preg_match("/^[0-9]{1,3}$/", $refresh)) {
11     $PHP_SELF = $_SERVER['PHP_SELF'];
12     $QUERY_STRING = $_SERVER['QUERY_STRING'];
13     ?>
14 tdb 1.18 <meta http-equiv="refresh" content="<?=$refresh?>;url=<?=$PHP_SELF.'?'.$QUERY_STRING?>">
15 pjm2 1.6 <? } ?>
16 pjm2 1.7
17 pjm2 1.13 <? if (preg_match("/^[1-9]$/", $scroll)) { ?>
18 pjm2 1.7 <script language="javascript"><!--
19     function pScroll(){
20 pjm2 1.13 window.scrollBy(0, <?=$scroll?>);
21 pjm2 1.7 if (document.body.scrollTop >= document.body.scrollHeight - document.body.clientHeight - 1) {
22     waitThenReload();
23     }
24     setTimeout("pScroll();", 50);
25     }
26     function waitThenReload() {
27 pjm2 1.11 if (document.body.clientHeight + 100 > document.body.scrollHeight) {
28     setTimeout("location.reload();", 10000);
29     }
30     else {
31     location.reload();
32     }
33 pjm2 1.7 }
34     //-->
35     </script>
36     <? } ?>
37    
38 pjm2 1.8 <?
39 pjm2 1.9 if (!preg_match("/^([0-9]{3,4})|(100%)$/", $pagewidth)) {
40     $pagewidth = 600;
41     }
42 pjm2 1.8 if (!preg_match("/^[1234567]$/", $fontsize)) {
43     $fontsize="2";
44     }
45     ?>
46    
47 pjm2 1.17 <style type="text/css">
48     <!--
49     body {
50     scrollbar-face-color: #9999ff;
51     scrollbar-highlight-color: #eeeeff;
52     scrollbar-shadow-color: #333366;
53     scrollbar-arrow-color: #000033;
54     scrollbar-base-color: #eeeeff;
55     scrollbar-3d-light-color: #ccccff;
56     scrollbar-dark-shadow-color: #333333;
57     }
58     input {
59     color: #ff0000;
60     font-weight: bold;
61     font-family: Arial, Helvetica, sans-serif;
62     }
63     a:hover {
64     color: #ff0000;
65     }
66     -->
67     </style>
68    
69 pjm2 1.1 </head>
70    
71 pjm2 1.13 <body bgcolor="#ffffff" text="#000000"<? if (preg_match("/^[1-9]$/", $scroll)) echo ' onload="javascript:pScroll();"'; ?>>
72 pjm2 1.8 <basefont size="<?=$fontsize?>" face="arial,sans-serif" color="#000000">
73 pjm2 1.1
74    
75     <!--
76 tdb 1.18 title.inc.php
77 pjm2 1.1 Created by pjm2 14/10/2000
78     Last edited 14/10/2000
79     -->
80    
81 pjm2 1.9 <table border="0" width="<?=$pagewidth?>" cellspacing="0" cellpadding="0" align="center">
82 pjm2 1.1 <tr>
83 pjm2 1.2 <td>
84     <table width="100%" border="0" cellspacing="0" cellpadding="0">
85     <tr>
86 pjm2 1.3 <td valign="top">
87 pjm2 1.4 <font size="1" color="#999999">
88 pjm2 1.5 <? echo date("D jS M Y, g:i:sa"); ?>
89 pjm2 1.14 <br>
90 tdb 1.20 <a href="http://www.i-scream.org/"><img alt="got i-scream?" src="i-scream-button-anim.gif" width="88" height="31" border="0"></a>
91 pjm2 1.2 </font>
92     </td>
93 pjm2 1.3 <td align="right">
94 pjm2 1.2 <a href="index.php"><img alt="i-scream" src="title.gif" width="370" height="69" border="0"></a>
95     </td>
96     </tr>
97     </table>
98 pjm2 1.1 </td>
99     </tr>
100     <tr>
101     <td>
102     <!--<font face="arial,sans-serif" size="2">-->
103