This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. skb-liab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the GNU C Library; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Parameters for the database is set up i vaskeri.conf. include("vaskconf.php"); $font = "face=\"Verdana, Geneva, Helvetica\" size=\"2\""; $connection = mysql_pconnect($hostname, $user, $pass) or die("Unable to connect to $database at $hostname."); ?> skydebanen.net - vaskeri
til forsiden  
Nyheder

Forum

Netværket

Download

Arrangementer

Om skydebanen.net

Opret bruger

Online indmeldelse

Vejledning

Links

vaskeri

Oversigt over maskinerne i AB Skydebanens fællesvaskeri.

\n"; echo " \n"; echo "\n\n"; while (list($number, $time) = mysql_fetch_row($result)) echo " \n"; echo "\n\n"; // Show images mysql_data_seek($result, 0); while (list($number, $time) = mysql_fetch_row($result)) { if ($time > 0) $image = "on.gif"; else $image = "off.gif"; echo " "; } echo "\n\n"; // Show time mysql_data_seek($result, 0); while (list($number, $time) = mysql_fetch_row($result)) { if ($time > 0) $time_str = "$time min"; else $time_str = " "; echo ""; } echo "\n"; ?>
\n "; echo " \n"; echo " Vaskemaskiner
$number
$time_str

\n"; echo " \n"; echo "\n\n"; while (list($number, $time) = mysql_fetch_row($result)) echo " \n"; echo "\n\n"; // Show images mysql_data_seek($result, 0); while (list($number, $time) = mysql_fetch_row($result)) { if ($time > 0) $image = "on.gif"; else $image = "off.gif"; echo " "; } echo "\n\n"; // Show time mysql_data_seek($result, 0); while (list($number, $time) = mysql_fetch_row($result)) { if ($time > 0) $time_str = "$time min"; else $time_str = " "; echo ""; } echo "\n"; ?>
\n "; echo " \n"; echo " Tørretumblere
$number
$time_str

Tallet under maskinerne viser hvor længe de har kørt.

"; $query = "SELECT updtime FROM last_upd LIMIT 1"; $result = mysql_db_query($database, $query, $connection) or die("Error in query: $query. " . mysql_error()); $row = mysql_fetch_row($result); $updtime = $row[0]; echo "Oversigt sidst opdateret: $updtime"; echo ""; ?>