Beispiel #1
0
        //get the new service type corresponding to the ID
        $serviceType = new ServiceType($_GET['ID']);
        if (isset($_POST['updateInfo'])) {
            updateServiceType($serviceType);
        } else {
            displayServiceType($serviceType);
        }
    } else {
        if ($_GET['action'] == 'serviceReports') {
            render_service_reports();
        } else {
            if ($_GET['action'] == 'detailedServiceReports') {
                render_detailed_service_report();
            } else {
                if ($_GET['action'] == showGraphDetail) {
                    displayGraphDetail();
                } else {
                    if ($_GET['action'] == zoomGraphDetail) {
                        ?>
<!--Cropper Files--->
<script src="js/cropper/lib/prototype.js" type="text/javascript"></script>      
<script src="js/cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"></script>
<script src="js/cropper/cropper.js" type="text/javascript"></script>
<script src="js/cropper/smokeping-zoom.js" type="text/javascript"></script>
<?php 
                        zoomGraphDetail();
                    } else {
                        if ($_GET['action'] == add && $_SESSION['access'] >= 50) {
                            //if the user is adding the service, then add it
                            if (isset($_POST['addData'])) {
                                $curSerType = new ServiceType($_POST['serviceType']);
Beispiel #2
0
    } else {
        if ($_GET['action'] == showGraphList) {
            if ($_POST['options'] == 'GLOBAL') {
                displayGraphListResult($keyword);
            } else {
                //get the new contact corresponding to the ID
                displayGraphList($devices);
            }
        } else {
            if ($_GET['action'] == showGraphListResult) {
                //get the new contact corresponding to the ID
                displayGraphListResult($keyword);
            } else {
                if ($_GET['action'] == showGraphDetail) {
                    //get the new contact corresponding to the ID
                    displayGraphDetail($devices);
                } else {
                    if ($_GET['action'] == showAggreGraph) {
                        $graphID = $_GET['aggreName'];
                        //get the new contact corresponding to the ID
                        aggregatedGraphs($graphID);
                    } else {
                        if ($_GET['action'] == zoomGraphDetail) {
                            ?>
<!--Cropper Files--->
<script src="js/cropper/lib/prototype.js" type="text/javascript"></script>      
<script src="js/cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"></script>
<script src="js/cropper/cropper.js" type="text/javascript"></script>
<script src="js/cropper/smokeping-zoom.js" type="text/javascript"></script>
<?php 
                            //get the new contact corresponding to the ID