Location: PHPKode > projects > WillCool > WillCool_v2.0/frame_main_dd.html
<!--
####################################################
#                                                  #
# AUTHOR: William Massey                           #
# DATE: 15-feb-2007                                #
#                                                  #
####################################################

Copyright 2007 William Massey

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
	
	<meta http-equiv="Refresh" content="43200; url=frame_main_dd.html">
	
	<link rel="stylesheet" type="text/css" href="willcool.css" />
	
	<script src="ajax.js" type="text/javascript"></script>
	
	<script language="JavaScript" type="text/javascript">
	function getData1() //repeat this function for each dynamic variable
	{ 
		var req1 = create_request(); 
		req1.onreadystatechange = function()
		{
			document.getElementById("zone1").innerHTML = "0";
			document.getElementById("zone1").style.color = '#006699';
			if(req1.readyState == 4)
			{
				document.getElementById("zone1").innerHTML  = req1.responseText;
				if (req1.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone1").innerHTML  = 'updating';
					document.getElementById("zone1").style.color = '#FFCC00';
				}				
				req1 = null;
				setTimeout("getData1()", 1200000); //refresh rate in ms
			} 
		}	
		req1.open("POST", "frame_main_get_data_dd.php", true); 
		req1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req1.send('data_required=subcount'); 
	} 
	function getData2() //repeat this function for each dynamic variable
	{ 
		var req2 = create_request(); 
		req2.onreadystatechange = function()
		{
			document.getElementById("zone2").innerHTML = "0";
			document.getElementById("zone2").style.color = '#006699';
			if(req2.readyState == 4)
			{
				document.getElementById("zone2").innerHTML  = req2.responseText;	
				if (req2.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone2").innerHTML  = '..';
					document.getElementById("zone2").style.color = '#FFCC00';
				}				
				req2 = null;
				setTimeout("getData2()", 1200000); //refresh rate in ms
			} 
		}	
		req2.open("POST", "frame_main_get_data_dd.php", true); 
		req2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req2.send('data_required=countsun'); 
	} 
	function getData3() //repeat this function for each dynamic variable
	{ 
		var req3 = create_request(); 
		req3.onreadystatechange = function()
		{
			document.getElementById("zone3").innerHTML = "0";
			document.getElementById("zone3").style.color = '#006699';
			if(req3.readyState == 4)
			{
				document.getElementById("zone3").innerHTML  = req3.responseText;	
				if (req3.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone3").innerHTML  = '..';
					document.getElementById("zone3").style.color = '#FFCC00';
				}				
				req3 = null;
				setTimeout("getData3()", 1200000); //refresh rate in ms
			} 
		}	
		req3.open("POST", "frame_main_get_data_dd.php", true); 
		req3.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req3.send('data_required=countsat'); 
	} 
	function getData4() //repeat this function for each dynamic variable
	{ 
		var req4 = create_request(); 
		req4.onreadystatechange = function()
		{
			document.getElementById("zone4").innerHTML = "0";
			document.getElementById("zone4").style.color = '#006699';
			if(req4.readyState == 4)
			{
				document.getElementById("zone4").innerHTML  = req4.responseText;	
				if (req4.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone4").innerHTML  = '..';
					document.getElementById("zone4").style.color = '#FFCC00';
				}				
				req4 = null;
				setTimeout("getData4()", 1200000); //refresh rate in ms
			} 
		}	
		req4.open("POST", "frame_main_get_data_dd.php", true); 
		req4.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req4.send('data_required=countfri'); 
	} 
	function getData5() //repeat this function for each dynamic variable
	{ 
		var req5 = create_request(); 
		req5.onreadystatechange = function()
		{
			document.getElementById("zone5").innerHTML = "0";
			document.getElementById("zone5").style.color = '#006699';
			if(req5.readyState == 4)
			{
				document.getElementById("zone5").innerHTML  = req5.responseText;	
				if (req5.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone5").innerHTML  = '..';
					document.getElementById("zone5").style.color = '#FFCC00';
				}				
				req5 = null;
				setTimeout("getData5()", 1200000); //refresh rate in ms
			} 
		}	
		req5.open("POST", "frame_main_get_data_dd.php", true); 
		req5.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req5.send('data_required=countthu'); 
	} 
	function getData6() //repeat this function for each dynamic variable
	{ 
		var req6 = create_request(); 
		req6.onreadystatechange = function()
		{
			document.getElementById("zone6").innerHTML = "0";
			document.getElementById("zone6").style.color = '#006699';
			if(req6.readyState == 4)
			{
				document.getElementById("zone6").innerHTML  = req6.responseText;	
				if (req6.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone6").innerHTML  = '..';
					document.getElementById("zone6").style.color = '#FFCC00';
				}				
				req6 = null;
				setTimeout("getData6()", 1200000); //refresh rate in ms
			} 
		}	
		req6.open("POST", "frame_main_get_data_dd.php", true); 
		req6.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req6.send('data_required=countwed'); 
	} 
	function getData7() //repeat this function for each dynamic variable
	{ 
		var req7 = create_request(); 
		req7.onreadystatechange = function()
		{
			document.getElementById("zone7").innerHTML = "0";
			document.getElementById("zone7").style.color = '#006699';
			if(req7.readyState == 4)
			{
				document.getElementById("zone7").innerHTML  = req7.responseText;	
				if (req7.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone7").innerHTML  = '..';
					document.getElementById("zone7").style.color = '#FFCC00';
				}				
				req7 = null;
				setTimeout("getData7()", 1200000); //refresh rate in ms
			} 
		}	
		req7.open("POST", "frame_main_get_data_dd.php", true); 
		req7.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req7.send('data_required=counttue'); 
	} 
	function getData8() //repeat this function for each dynamic variable
	{ 
		var req8 = create_request(); 
		req8.onreadystatechange = function()
		{
			document.getElementById("zone8").innerHTML = "0";
			document.getElementById("zone8").style.color = '#006699';
			if(req8.readyState == 4)
			{
				document.getElementById("zone8").innerHTML  = req8.responseText;	
				if (req8.responseText == 999888777) { // file is prob being written to, try later
					document.getElementById("zone8").innerHTML  = '..';
					document.getElementById("zone8").style.color = '#FFCC00';
				}				
				req8 = null;
				setTimeout("getData8()", 1200000); //refresh rate in ms
			} 
		}	
		req8.open("POST", "frame_main_get_data_dd.php", true); 
		req8.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req8.send('data_required=countmon'); 
	} 
	</script>

</head>

<body onload="getData1();getData2();getData3();getData4();getData5();getData6();getData7();getData8();">

	<div align=center>

	<Table height=100% style="border-width:0px; margin-right:3%;">
	
	<tr>
		<td valign=middle>
		<p class="first"><u>DD Database Subscriber Count</u></p>
		<div class="x" id="zone1"></div>
		<br>
		<br>
		<p class="first"><u>New This Week</u></p>
		<table width=240 border=0>
			<tr>
				<td>Mon</td>
				<td>Tue</td>
				<td>Wed</td>
				<td>Thu</td>
				<td>Fri</td>
				<td>Sat</td>
				<td>Sun</td>
			</tr>	
			<tr>
				<td><div class="x" id="zone8"></div></td>
				<td><div class="x" id="zone7"></div></td>
				<td><div class="x" id="zone6"></div></td>
				<td><div class="x" id="zone5"></div></td>
				<td><div class="x" id="zone4"></div></td>
				<td><div class="x" id="zone3"></div></td>
				<td><div class="x" id="zone2"></div></td>
			</tr>
		</table>
		<br>
		<p class="second"><u>Last 30 Days</u></p>
		<img src="frame_month_get_graph_dd.php" />&nbsp;&nbsp;&nbsp;
	</tr>

	</table>
	
	</div>
	
</body>
</html>
Return current item: WillCool