Пример #1
0
            }
        }
    } else {
        $extmap = $_SESSION['map'] ? 'Googlemap' : 'Openstreetmap';
        if ($map == 1) {
            echo "<img src=\"img/16/map.png\" onclick=\"document.location.href='?reg=" . urlencode($reg) . "&cty=" . urlencode($cty) . "&map=2';\"  title=\"{$extmap}\">\n";
        } elseif ($map == 2) {
            echo "<img src=\"img/16/wthr.png\" onclick=\"document.location.href='?reg=" . urlencode($reg) . "&cty=" . urlencode($cty) . "&map=3';\"  title=\"{$extmap} & {$igrp['16']}\">\n";
        } elseif ($map == 3) {
            echo "<img src=\"img/16/icon.png\" onclick=\"document.location.href='?reg=" . urlencode($reg) . "&cty=" . urlencode($cty) . "&map=0';\"  title=\"Icons\">\n";
        } else {
            echo "<img src=\"img/16/paint.png\" onclick=\"document.location.href='?{$_SERVER['QUERY_STRING']}&map=1';\"  title=\"NeDimaps\">\n";
        }
    }
    echo "</th></tr></table><p>\n";
}
if (!$reg) {
    TopoRegs();
} elseif (!$cty) {
    TopoCities($reg);
} elseif (!$bld) {
    TopoBuilds($reg, $cty);
} elseif (!$rom) {
    TopoFloors($reg, $cty, $bld);
} else {
    TopoRoom($reg, $cty, $bld, $flr, $rom);
}
if ($leok) {
    TopoLocErr();
}
include_once "inc/footer.php";
        } else {
            $bg = $bga;
            $bi = $bia;
        }
        $row++;
        $hint = "";
        $time = date($datfmt, $m[2]);
        $fd = str_replace(" ", "%20", date("m/d/Y H:i:s", $m[2]));
        $usrc = rawurlencode($m[3]);
        echo "<tr bgcolor=#{$bg}><th bgcolor={$bi}><a href=Monitoring-Messages.php?ina=level&opa==&sta={$m['1']}>\n";
        echo "<img src=img/16/" . $mico[$m[1]] . ".png title=\"" . $mlvl[$m[1]] . "\" border=0></a></th>\n";
        echo "<td><a href=Monitoring-Messages.php?ina=time&opa==&sta={$fd}>{$time}</a></td><th>\n";
        echo "<a href=Monitoring-Messages.php?ina=source&opa==&sta={$usrc}>{$m['3']}</a></th><td>{$m['4']}</td></tr>\n";
    }
    @DbFreeResult($res);
} else {
    print @DbError($link);
}
?>
</table>
</th></tr></table>
<?php 
TopoTable($reg, $cty, $bld);
if (!$cty) {
    TopoCities();
} elseif (!$bld) {
    TopoBuilds($reg, $cty);
} else {
    TopoFloors($reg, $cty, $bld);
}
include_once "inc/footer.php";
Пример #3
0
?>
 & <?php 
echo $mlvl[250];
?>
 <?php 
echo $tim['t'];
?>
</h2>
<?php 
Events($_SESSION['lim'], array('level', 'time', 'location'), array('>=', '>', 'like'), array(200, $firstmsg, $loc), array('AND', 'AND'), 3);
TopoTable($reg, $cty, $bld);
if (count($dreg) == 1) {
    $reg = array_pop(array_keys($dreg));
    if (count($dcity[$reg]) == 1) {
        $cty = array_pop(array_keys($dcity[$reg]));
    }
}
if (!$reg and count($dreg) > 1) {
    TopoRegs(1);
} elseif (!$cty) {
    TopoCities($reg, 1);
} elseif (!$bld) {
    TopoBuilds($reg, $cty, 1);
} else {
    TopoFloors($reg, $cty, $bld, 1);
}
?>

</tr></table>
</body>