Location: PHPKode > projects > PHPMyServer > lite/template/template.tpl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>PHPMyServer - Lite Client - Data of {NETWORK::DATA::XML_SERVER_IP} ({NETWORK::DATA::XML_SERVER_NAME})</title>
	<link href="./template/template.css" rel="stylesheet" type="text/css">
	<script language="JavaScript" type="text/javascript">
	<!--
		/* Legend Info */
		function WriteLegendInfo(title,desc,scripter,website,version) {
			document.write('<div title="Click for info about this module" style="cursor:help;" onclick="alert(\'Module: '+title+' ('+version+')\\nScripter: '+scripter+'\\nWebsite: http://'+website+'\\nDescription: '+desc+'\');return true;" class=\'siteModuleLegend\'>'+title+'</div>');
		}
		
		/* Default */
		function changeClass(what,how) {
			if (document.all || document.getElementById) what.className = how;
		}
		function changeLayer(id,txt) {
			if (!txt=='')
				document.getElementById(id).innerHTML = txt;
		}
		
		/* Harddisk */
		function createDrive(driveletter,drivelabel,hddfree,hdduse,hddtotal,percentfree,percentuse) {
			hddarray.push(new Array(driveletter,hddfree,hdduse,hddtotal,percentfree,percentuse));
			var cnthdd = hddarray.length-1;
			var html = '<tr><td class="siteChoiceOption" onmouseover="changeColor(this,'+cnthdd+',\'siteChoiceOptionClick\');" onmouseout="changeColor(this,'+cnthdd+',\'siteChoiceOption\');" onclick="showHddInfo('+cnthdd+');switchActiveHdd('+cnthdd+');" id="hddoption'+cnthdd+'">'+drivelabel+' ('+driveletter+')</td></tr>';
			document.write(html);
		}
		function showHddInfo(drive){
			var hdddata = hddarray[drive];
			var newlayer = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="siteListRight">Free</td><td>'+hdddata[1]+' GB</td><td rowspan="3" align="right" width="90"><table class="siteChoiceInfoLegend"><tr><td class="siteChoiceInfoLegendInf" bgcolor="#F47820">&nbsp;</td><td>'+hdddata[4]+'% used</td></tr><tr><td class="siteChoiceInfoLegendInf" bgcolor="#A9A9A9">&nbsp;</td><td>'+hdddata[5]+'% free</td></tr></table></td><td rowspan="3" width="120"><img src="graph_pie.php?width=110&height=60&colors=F47820:A9A9A9&values='+hdddata[4]+':'+hdddata[5]+'&pos_left=55&pos_top=30&dia_x=105&dia_y=50&shadow=1" alt="Harddisk image"></td></tr><tr><td class="siteListRight">Used</td><td>'+hdddata[2]+' GB</td></tr><tr><td class="siteListRight">Total</td><td>'+hdddata[3]+' GB</td></tr></table>';
			changeLayer('modHDDinfo',newlayer);

			document.getElementById('hddoption'+hddcurrent).className = 'siteChoiceOption';
			document.getElementById('hddoption'+drive).className = 'siteChoiceOptionClick';
			hddcurrent = drive;
		}
		function changeColor(what,drive,type) {
			if (hddcurrent!=drive) {
				changeClass(what,type);
			}
		}
		function switchActiveHdd(drive) {

		}
		
		/* Init */
		function startLoad() {
			showHddInfo(0);
			{IF=UPDATE}alert('Update(s) available for one (or more) product(s)!');{/IF=UPDATE}
			{IF=ERROR}alert('One (or more) errors while executing PHPMyServer!');{/IF=ERROR}
		}
		
		var hddarray = Array();
		var hddcurrent = 0;
		
		/* Copyright stuff, please don't remove ! */
		function pmscopy() {
			alert('PHPMyServer is an script that reads data from a computer/server, parses that information to any format you want (textbased). PHPMyServer is an open-source (GPL based) project, you can download it free at our website (phpmyserver.com).\n\n Copyright 2003-2005 by Roel Jansen, licensed under GPL');
			if (confirm('Open the PHPMyServer website?')) {
				window.open("http://www.phpmyserver.com");
			}
		}
		//-->
	</script>
  </head>
  <body onload="startLoad();">
  	<table width="700" align="center"><tr><td colspan="2">
	<!-- Please leave the links to PHPMyServer intact, don't remove them! PLEASE!!!! 
	when you'r linking to my website, then other users can download this script to! //-->
	<!--<script language="JavaScript" type="text/javascript">WriteLegendInfo('PHPMyServer','somedesc','KingOfDos','http://www.phpmyserver.com','v2.1');</script>//-->
	<div class='siteModuleLegend' style="cursor:help;" onclick='pmscopy();return true;'>PHPMyServer</div>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNoPad">
		<tr>
			<td class="siteHead">&nbsp;</td>
		</tr>
		{IF=UPDATE}<tr>
			<td class="siteHeadUpdate">
				<b>Update available:</b>
				<table width="100%">
				{LOOP=UPDATE}	<tr>
						<td width="20"><img src="./template/main_ok.jpg" alt="OK" title="Update available!"></td><td><a href="{URL}" target="_blank" title="Click for information about this update.">{PRODUCT} v{VERSION}</a></td>
					</tr>{/LOOP=UPDATE}
				</table>
			</td>
		</tr>{/IF=UPDATE}
		{IF=ERROR}<tr>
			<td class="siteHeadUpdate">
				<b>Error:</b>
				<table width="100%">
				{LOOP=ERROR}	<tr>
						<td width="20"><img src="./template/main_error.jpg" alt="ERR" title="Error"></td><td>{ERROR_MSG}</td>
					</tr>{/LOOP=ERROR}
				</table>
			</td>
		</tr>{/IF=ERROR}
	</table><Br>
	
	{IF=PMS_DATA}
	
    {IF=MOD_GENERIC_INFORMATION}
	<script language="JavaScript">WriteLegendInfo('Generic Information','{GENERIC_INFORMATION::INFO::SCRIPT_DESCRIPTION}','{GENERIC_INFORMATION::INFO::SCRIPTER}','{GENERIC_INFORMATION::INFO::WEBSITE}','{GENERIC_INFORMATION::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNormal">
		<tr>
			<td width="150" class="siteListRight"><b>Uptime</b></td><td>{GENERIC_INFORMATION::DATA::UPTIME_WORDS}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>OS</b></td><td>{GENERIC_INFORMATION::DATA::OS}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>WebServer</b></td><td>{GENERIC_INFORMATION::DATA::WEBSERVER}</td>
		</tr>
	</table>
	<br>
	{/IF=MOD_GENERIC_INFORMATION}

	{IF=MOD_HARDDISK}
	<script language="JavaScript" type="text/javascript">WriteLegendInfo('HardDisk','{HARDDISK::INFO::SCRIPT_DESCRIPTION}','{HARDDISK::INFO::SCRIPTER}','{HARDDISK::INFO::WEBSITE}','{HARDDISK::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteChoiceTable">
		<tr>
			<td class="siteChoiceOptionSub">
				<table width="100%" cellpadding="0" cellspacing="0">
					<script language="JavaScript" type="text/javascript">
						{LOOP=MOD_HARDDISK_DRIVE}createDrive('{VOLUME}','{LABEL}','{GB_FREE}','{GB_USED}','{GB_TOTAL}','{PERCENT_USED}','{PERCENT_FREE}');
						{/LOOP=MOD_HARDDISK_DRIVE}
					</script>
				</table>
			</td><td class="siteChoiceInfo"><div id="modHDDinfo" class="siteChoiceInfoContent">Please select an harddisk.</div></td>
		</tr>
	</table><br>
	{/IF=MOD_HARDDISK}
	</td></tr><tr><td class="siteTableTwoLeft">
	{IF=MOD_HARDWARE}
	<script language="JavaScript" type="text/javascript">WriteLegendInfo('Hardware','{HARDWARE::INFO::SCRIPT_DESCRIPTION}','{HARDWARE::INFO::SCRIPTER}','{HARDWARE::INFO::WEBSITE}','{HARDWARE::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNormal">
		<tr><td>
			<table width="100%" cellpadding="0" cellspacing="0">
			{LOOP=MOD_HARDWARE_DEVICE}<tr>
				<td width="25" class="siteListRight"><img src="./template/hardware_{TYPE}.jpg" alt="{TYPE}" title="{TYPE}"></td><td><a href="http://www.google.com/search?q={NAME}" target="_blank" onmouseover='window.status="Click to search with Google for \"{NAME}\"";return true;' onmouseout='window.status="";return true;' title='Click to search with Google for "{NAME}"'>{NAME}</a></td>
			</tr>
			{/LOOP=MOD_HARDWARE_DEVICE}
			</table>
		</td></tr>
	</table><br>
	{/IF=MOD_HARDWARE}
	</td><td class="siteTableTwoRight">
	{IF=MOD_MEMORY}
	<script language="JavaScript" type="text/javascript">WriteLegendInfo('Memory','{MEMORY::INFO::SCRIPT_DESCRIPTION}','{MEMORY::INFO::SCRIPTER}','{MEMORY::INFO::WEBSITE}','{MEMORY::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNormal">
		<tr>
			<td width="80" class="siteListRight"><b>Total memory</b></td><td>{MEMORY::DATA::MB_TOTAL} MB</td>
		</tr>
		<tr>
			<td width="80" class="siteListRight"><b>Free</b></td><td>{MEMORY::DATA::MB_FREE} MB ({MEMORY::DATA::PERCENT_FREE}%)</td>
		</tr>
		<tr>
			<td width="80" class="siteListRight"><b>Used</b></td><td>{MEMORY::DATA::MB_USED} MB ({MEMORY::DATA::PERCENT_USED}%)</td>
		</tr>
	</table><br>
	{/IF=MOD_MEMORY}

	{IF=MOD_NETWORK}
	<script language="JavaScript" type="text/javascript">WriteLegendInfo('Network','{NETWORK::INFO::SCRIPT_DESCRIPTION}','{NETWORK::INFO::SCRIPTER}','{NETWORK::INFO::WEBSITE}','{NETWORK::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNormal">
		<tr>
			<td width="100" class="siteListRight"><b>XML Server</b></td><td>{NETWORK::DATA::XML_SERVER_NAME} ({NETWORK::DATA::XML_SERVER_IP})</td>
		</tr>
		<tr>
			<td width="100" class="siteListRight">&nbsp;</td><td>{NETWORK::DATA::XML_CONNECTION_PROTOCOL} (over port {NETWORK::DATA::XML_CONNECTION_PORT})</td>
		</tr>
		<tr>
			<td width="100" class="siteListRight"><b>Lite/Pro Client</b></td><td>{NETWORK::DATA::THIS_SERVER_IP2NAME} ({NETWORK::DATA::THIS_SERVER_IP})</td>
		</tr>
		<tr>
			<td width="100" class="siteListRight">&nbsp;</td><td>{NETWORK::DATA::THIS_CLIENT_CONNECTION_PROTOCOL} (over port {NETWORK::DATA::THIS_CLIENT_CONNECTION_PORT})</td>
		</tr>
		<tr>
			<td width="100" class="siteListRight"><b>User</b></td><td>{NETWORK::DATA::THIS_CLIENT_NAMEBYIP} ({NETWORK::DATA::THIS_CLIENT_IP})</td>
		</tr>
	</table><br>
	{/IF=MOD_NETWORK}

	{IF=MOD_UPS}
	<script language="JavaScript" type="text/javascript">WriteLegendInfo('UPS','{UPS::INFO::SCRIPT_DESCRIPTION}','{UPS::INFO::SCRIPTER}','{UPS::INFO::WEBSITE}','{UPS::INFO::SCRIPT_VERSION}');</script>
	<table width="100%" cellpadding="0" cellspacing="0" class="siteTableNormal">
		<tr>
			<td width="150" class="siteListRight"><b>Current power source</b></td><td>{UPS::DATA::UTILITY_POWER_STATUS}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>Estimated UPS Runtime</b></td><td>{UPS::DATA::TOTAL_UPS_RUNTIME}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>Estimated UPS Capecity</b></td><td>{UPS::DATA::BATTERY_CAPICITY}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>Battery condition</b></td><td>{UPS::DATA::BATTERY_HELTH}</td>
		</tr>
		<tr>
			<td width="150" class="siteListRight"><b>Communication</b></td><td>{UPS::DATA::COMM_STATUS} ({UPS::DATA::COMM_PORT})</td>
		</tr>

	</table><br>
	{/IF=MOD_UPS}
	
	
	</td></tr><tr><td colspan="2">

	
	{/IF=PMS_DATA}


	</td></tr></table>
  </body>
</html>
Return current item: PHPMyServer