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.11
Committed: Thu Mar 22 18:32:54 2001 UTC (23 years, 2 months ago) by pjm2
Branch: MAIN
Changes since 1.10: +6 -1 lines
Log Message:
Altered the javascript in the title.inc.php header include.  A page now
automatically refreshes when it has finished scrolling to the end of the
page.  If the page is 100% visible without scrolling, then there is a ten
second delay before the page is refreshed.

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 pjm2 1.6 <? if (preg_match("/^[0-9]{1,3}$/", $refresh)) { ?>
11     <meta http-equiv="refresh" content="<?=$refresh?>" url="<?=$PHP_SELF?>">
12     <? } ?>
13 pjm2 1.1 <meta name="htdig-noindex" content="noindex,nofollow">
14     <meta name="robots" content="noindex,nofollow">
15 pjm2 1.7
16 pjm2 1.10 <? if ($scroll == "on") { ?>
17 pjm2 1.7 <script language="javascript"><!--
18     function pScroll(){
19     window.scrollBy(0,1);
20     if (document.body.scrollTop >= document.body.scrollHeight - document.body.clientHeight - 1) {
21     waitThenReload();
22     }
23     setTimeout("pScroll();", 50);
24     }
25     function waitThenReload() {
26 pjm2 1.11 if (document.body.clientHeight + 100 > document.body.scrollHeight) {
27     setTimeout("location.reload();", 10000);
28     }
29     else {
30     location.reload();
31     }
32 pjm2 1.7 }
33     //-->
34     </script>
35     <? } ?>
36    
37 pjm2 1.8 <?
38 pjm2 1.9 if (!preg_match("/^([0-9]{3,4})|(100%)$/", $pagewidth)) {
39     $pagewidth = 600;
40     }
41 pjm2 1.8 if (!preg_match("/^[1234567]$/", $fontsize)) {
42     $fontsize="2";
43     }
44     ?>
45    
46 pjm2 1.1 </head>
47    
48 pjm2 1.10 <body bgcolor="#ffffff" text="#000000"<? if ($scroll == "on") echo ' onload="javascript:pScroll();"'; ?>>
49 pjm2 1.8 <basefont size="<?=$fontsize?>" face="arial,sans-serif" color="#000000">
50 pjm2 1.1
51    
52     <!--
53     title.inc
54     Created by pjm2 14/10/2000
55     Last edited 14/10/2000
56     -->
57    
58 pjm2 1.9 <table border="0" width="<?=$pagewidth?>" cellspacing="0" cellpadding="0" align="center">
59 pjm2 1.1 <tr>
60 pjm2 1.2 <td>
61     <table width="100%" border="0" cellspacing="0" cellpadding="0">
62     <tr>
63 pjm2 1.3 <td valign="top">
64 pjm2 1.4 <font size="1" color="#999999">
65 pjm2 1.5 <? echo date("D jS M Y, g:i:sa"); ?>
66 pjm2 1.2 </font>
67     </td>
68 pjm2 1.3 <td align="right">
69 pjm2 1.2 <a href="index.php"><img alt="i-scream" src="title.gif" width="370" height="69" border="0"></a>
70     </td>
71     </tr>
72     </table>
73 pjm2 1.1 </td>
74     </tr>
75     <tr>
76     <td>
77     <!--<font face="arial,sans-serif" size="2">-->
78