Projet

Général

Profil

« Précédent | Suivant » 

Révision 112546f8

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "status_filter_reload.php" XHTML

Close INPUT tags
Remove NAME from DIV tags, not valid in XHTML
Add CDATA section to SCRIPTS
Close IMG tags and add ALT to IMG

Voir les différences:

usr/local/www/status_filter_reload.php
70 70
<?php include("fbegin.inc"); ?>
71 71
<br />
72 72
<form action="status_filter_reload.php" method="post" name="filter">
73
<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter">
73
<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter" />
74 74
<?php if ($config['hasync'] && $config['hasync']["synchronizetoip"] != ""): ?>
75 75
&nbsp;&nbsp;&nbsp;&nbsp;
76
<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter">
76
<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter" />
77 77
<?php endif; ?>
78 78
</form>
79 79
<br /><br /><br />
80
<div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;">
80
<div id="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;">
81 81
	<?php echo $status; ?>
82 82
</div>
83 83

  
84
<div id="doneurl" name="doneurl">
84
<div id="doneurl">
85 85
</div>
86 86

  
87
<p>
87
<br/>
88 88

  
89
<div id="reloadinfo" name="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div>
89
<div id="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div>
90 90

  
91 91

  
92 92

  
93 93
<script type="text/javascript">
94
//<![CDATA[
94 95
/* init update "thread */
95 96
function update_status_thread() {
96 97
	getURL('status_filter_reload.php?getstatus=true', update_data);
......
102 103
	result_text = result_text.replace("\n","");
103 104
	result_text = result_text.replace("\r","");
104 105
	if (result_text) {
105
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> ' + result_text + '...');
106
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> ' + result_text + '...');
106 107
	} else {
107
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Obtaining filter status...');
108
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Obtaining filter status...');
108 109
	}
109 110
	if(result_text == "Initializing") {
110
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Initializing...');
111
		jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Initializing...');
111 112
	} else if(result_text == "Done") {
112 113
		jQuery('#status').effect('highlight');
113 114
		jQuery('#status').html('Done.  The filter rules have been reloaded.');
114 115
		jQuery('#reloadinfo').css("visibility","hidden");
115 116
		jQuery('#doneurl').css("visibility","visible");
116
		jQuery('#doneurl').html("<p/><a href='status_queues.php'>Queue Status</a>");
117
		jQuery('#doneurl').html("<p><a href='status_queues.php'>Queue Status<\/a><\/p>");
117 118
	}
118 119
	window.setTimeout('update_status_thread()', 2500);
119 120
}
121
//]]>
120 122
</script>
121 123

  
122 124
<script type="text/javascript">
125
//<![CDATA[
123 126
/*
124 127
 * getURL is a proprietary Adobe function, but it's simplicity has made it very
125 128
 * popular. If getURL is undefined we spin our own by wrapping XMLHttpRequest.
......
164 167
  }
165 168
}
166 169
window.setTimeout('update_status_thread()', 2500);
170
//]]>
167 171
</script>
168 172

  
169 173
<?php include("fend.inc"); ?>

Formats disponibles : Unified diff