Projet

Général

Profil

« Précédent | Suivant » 

Révision f74c828f

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "diag_system_activity.php" XHTML

Move PHP "fbegin.inc" between BODY and SCRIPT
Add CDATA sections to SCRIPTS
Merge FONT tags and escape closing PRE and FONT
Move closing DIV tag to outside the TABLE tag

Voir les différences:

usr/local/www/diag_system_activity.php
53 53

  
54 54
?>
55 55
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
56

  
56
<?php include("fbegin.inc"); ?>
57 57
<script type="text/javascript">
58
//<![CDATA[
58 59
	function getcpuactivity() {
59 60
		scroll(0,0);
60 61
		var url = "/diag_system_activity.php";
......
68 69
			});
69 70
	}
70 71
	function activitycallback(transport) {
71
		jQuery('#cpuactivitydiv').html('<font face="Courier"><font size="2"><b><pre style="text-align:left;">' + transport.responseText  + '</pre></font>');
72
		setTimeout('getcpuactivity()', 2500);		
72
		jQuery('#cpuactivitydiv').html('<font face="Courier" size="2"><pre style="text-align:left;">' + transport.responseText  + '<\/pre><\/font>');
73
		setTimeout('getcpuactivity()', 2500);
73 74
	}
74
	setTimeout('getcpuactivity()', 1000);	
75
	setTimeout('getcpuactivity()', 1000);
76
//]]>
75 77
</script>
76
<div id='maincontent'>
78
<div id="maincontent">
77 79
<?php
78
	include("fbegin.inc"); 
79 80
	if($savemsg) {
80
		echo "<div id='savemsg'>";
81
		echo "<div id=\"savemsg\">";
81 82
		print_info_box($savemsg);
82 83
		echo "</div>";	
83 84
	}
84 85
	if ($input_errors)
85 86
		print_input_errors($input_errors);
86 87
?>
87
<table width="100%" border="0" cellpadding="0" cellspacing="0">  
88
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="diag system activity">
88 89
  <tr>
89 90
    <td>
90
	<table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0">
91
	<table id="backuptable" class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="tabcont">
91 92
		<tr>
92
			<td>
93
				<center>
94
				<table>
93
			<td align="center">
94
				<table summary="results">
95 95
					<tr><td>
96
						<div name='cpuactivitydiv' id='cpuactivitydiv'>
97
							<b><?=gettext("Gathering CPU activity, please wait...");?>
96
						<div id="cpuactivitydiv">
97
							<?=gettext("Gathering CPU activity, please wait...");?>
98 98
						</div>
99 99
					</td></tr>
100 100
				</table>
101 101
			</td>
102 102
		</tr>
103 103
	</table>
104
	</div>
105 104
    </td>
106 105
  </tr>
107 106
</table>
108
</form>
107
</div>
109 108
<?php include("fend.inc"); ?>
110 109
</body>
111 110
</html>

Formats disponibles : Unified diff