';
echo '';
echo '';
}
function placePicXY($posY, $posX, $pic, $sizex, $sizey, $title) {
echo '
';
echo '
';
echo '
';
}
function placePicWithLink($posY, $posX, $pic, $size, $title, $link) {
echo '';
placePic($posY, $posX, $pic, $size, $title);
echo '';
}
function placeText($posY, $posX, $text, $width, $size, $color) {
echo '';
echo '';
echo $text;
echo '
';
}
function placeTextWithLink($posY, $posX, $text, $width, $size, $color, $title, $link) {
echo '';
}
function placeTextLeftWithLink($posY, $posX, $text, $width, $size, $color, $title, $link) {
echo '';
}
function placeTextWithWebsiteLink($posY, $posX, $text, $width, $size, $color, $title, $link) {
echo '';
}
function placeTextLeftWithWebsiteLink($posY, $posX, $text, $width, $size, $color, $title, $link) {
echo '';
}
function placeBox($posY, $posX, $text, $width, $size, $color, $borderwidth = 2)
{
echo '';
echo '';
echo $text;
echo '
';
}
function placeBoxRight($posY, $posX, $text, $width, $size, $color, $borderwidth = 2)
{
echo '';
echo '';
echo $text;
echo '
';
}
function getValveStatus($value) {
$value = decbin($value);
$value = substr("00000000000", 0, 11 - strlen($value)) . $value;
if (substr($value, 3, 1) == 1) return 1;
else if (substr($value, 2, 1) == 1) return 0;
else return -1;
}
?>