How I can make the WD play with them which pictures? Which regulations it should I make?
Hi dimpap,
I'm not quite sure what you mean here.
I guess that you're asking for the code needed for the AJAX DASHBOARD.
Unfortunately the FWI resides in the "clientrawextra.txt" file which is not
currently imported into the "ajaxWDwx.js" as yet.
I'm working on an update to do this in future.
The code I currently have in "ajaxdashboard.php" is as follows:
<?php // FWI
switch (true) {
case ($FWIfwi == 0): $FWIimg = '<img src="'.$imagesDir.'fire-0.jpg" title="Current fire risk very low" alt="" />'; break;
case ($FWIfwi < 7): $FWIimg = '<img src="'.$imagesDir.'fire-1.jpg" title="Current fire risk low" alt="" />'; break;
case ($FWIfwi < 16): $FWIimg = '<img src="'.$imagesDir.'fire-2.jpg" title="Current fire risk moderate" alt="" />'; break;
case ($FWIfwi < 31): $FWIimg = '<img src="'.$imagesDir.'fire-3.jpg" title="Current fire risk very high" alt="" />'; break;
default : $FWIimg = '<img src="'.$imagesDir.'fire-4.jpg" title="Current fire risk extremly high" alt="" />'; break;
}
?>
<td align="center" valign="middle" style="font: 12px Arial Black;"><span
class="ajax" id="ajaxfireimg"><?php echo $FWIimg; ?></span><br /><span
class="ajax" id="ajaxfireindex"><?php echo $FWIfwi; ?></span> <small>of 31</small>
</td>
You also need to have this tag in your "testtags.txt" file:
<?php
$FWIfwi = "%FWIfwi%"; // fire weather index
?>