Folder reorganize 1
This commit is contained in:
77
countdown/test.php
Normal file
77
countdown/test.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mootools/1.4.5/mootools-core-full-nocompat.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
window.addEvent('load', function() {
|
||||
|
||||
var col1 = "#144F25",
|
||||
col2 = "#919191";
|
||||
var els = document.getElementById('grad').getElementsByTagName('tr');
|
||||
for (var i = 0; i < els.length; i++) {
|
||||
var percentage = Number(els[i].getElementsByTagName('td')[1].firstChild.nodeValue);
|
||||
els[i].style.background = "-webkit-gradient(linear, left top,right top, color-stop(" + percentage + "%," + col1 + "), color-stop(" + percentage + "%," + col2 + "))";
|
||||
els[i].style.background = "-moz-linear-gradient(left center," + col1 + " " + percentage + "%, " + col2 + " " + percentage + "%)";
|
||||
els[i].style.background = "-o-linear-gradient(left," + col1 + " " + percentage + "%, " + col2 + " " + percentage + "%)";
|
||||
els[i].style.background = "linear-gradient(to right," + col1 + " " + percentage + "%, " + col2 + " " + percentage + "%)";
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
.tftable5 {font-family:sans-serif;font-size:12px;border-width: 1px;border-color: #686767;border-collapse: collapse;empty-cells: hide;}
|
||||
.tftable5 table {border-collapse: collapse;}
|
||||
.tftable5 td {font-family:sans-serif;font-size:32px;font-weight:bold;border-width: 2px;padding: 3px;border-style: solid;border-color: #686767;}
|
||||
|
||||
</style>
|
||||
|
||||
<?php
|
||||
error_reporting(E_ERROR);
|
||||
$username="corey";
|
||||
$password="41945549";
|
||||
$database="controls";
|
||||
|
||||
mysql_connect('127.0.0.1',$username,$password);
|
||||
@mysql_select_db($database) or die( "Unable to select database");
|
||||
$query = "(SELECT * FROM milling ORDER BY id DESC LIMIT 1)";
|
||||
$result=mysql_query($query);
|
||||
|
||||
$num=mysql_numrows($result);
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
while ($i < $num) {
|
||||
|
||||
$f113=mysql_result($result,$i,"syrupoverflow");
|
||||
$f114=mysql_result($result,$i,"molbreclvl");
|
||||
$f115=mysql_result($result,$i,"syruprcvrlvl");
|
||||
$f116=mysql_result($result,$i,"amollvl");
|
||||
?>
|
||||
|
||||
<table id="grad" class="tftable5">
|
||||
<tr>
|
||||
<td align="left" width="270px">Syrup Overflow</td>
|
||||
<td align="right" width="80px"><?php echo $f113; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="270px">Syrup RCVR Lvl</td>
|
||||
<td align="right" width="80px"><?php echo $f115; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="270px">A Molasses Lvl</td>
|
||||
<td align="right" width="80px"><?php echo $f116; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="270px">B Molasses Lvl</td>
|
||||
<td align="right" width="80px"><?php echo $f114; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user