Ejemplo n.º 1
0
function snap_action()
{
    global $course_id;
    global $top_unit;
    $dur = get_int('dur');
    $s = write_map_snapshot($course_id, $dur);
    show_map();
}
Ejemplo n.º 2
0
     echo '</div>' . PHP_EOL;
     break;
 case "status_donuts":
     $div_class = "col-md-12";
     // Class for each block
     echo '<div class="row">' . PHP_EOL;
     // Moved on XL screen to panel side
     include $config['html_dir'] . "/includes/status-donuts.inc.php";
     echo '</div>' . PHP_EOL;
     break;
 case "cable-map":
     include $config['html_dir'] . "/includes/cable-map.inc.php";
     break;
 case "map":
     //include($config['html_dir']."/includes/map.inc.php");
     show_map($config);
     break;
 case "device_status_boxes":
     show_status_boxes($config);
     break;
 case "device_status":
     show_status($config);
     break;
 case "alert_status":
     include "includes/alert-status.inc.php";
     break;
 case "overall_traffic":
     show_traffic($config);
     break;
 case "custom_traffic":
     show_customtraffic($config);
Ejemplo n.º 3
0
    if (!empty($help_text)) {
        echo __($help_text);
    }
    use_helper('Map');
    if (!isset($layers_list)) {
        $layers_list = null;
    }
    if (!isset($height)) {
        $height = null;
    }
    if (isset($center)) {
        $center = $sf_data->getRaw('center');
    } else {
        $center = null;
    }
    echo show_map('map_container', $document, $sf_user->getCulture(), $layers_list, $height, $center, $has_geom, $sf_user->isConnected());
    echo end_section_tag(true);
    // fold_init_map.js ~ 390b
    ?>
<script>
!function(e,t){var n=e.setSectionStatus
e.setSectionStatus=function(i,o,c){if(n(i,o,c)){var a=e.section_open,l=t.getElementById(i+"_section_container")
l.style.display="none",l.title=a
var s=t.getElementById(i+"_toggle")
s.className=s.className.replace("picto_close","picto_open"),s.alt="+",s.title=a,t.getElementById("tip_"+i).innerHTML="["+a+"]"}}}(window.C2C=window.C2C||{},document)
</script>
    <?php 
    $cookie_position = array_search('map_container', sfConfig::get('app_personalization_cookie_fold_positions'));
    ?>
    <script>
    C2C.setSectionStatus('map_container', <?php 
Ejemplo n.º 4
0
function hugeitgooglemaps_main()
{
    require_once "admin/maps_func.php";
    require_once "admin/maps_view.php";
    global $wpdb;
    if (!isset($_GET['task'])) {
        show_map();
    } else {
        if (isset($_GET['id'])) {
            $id = $_GET['id'];
        }
        $task = $_GET['task'];
        switch ($task) {
            case 'add_cat':
                add_map();
                break;
            case 'edit_cat':
                edit_map();
                break;
            case 'remove_cat':
                remove_map($id);
                show_map();
                break;
        }
    }
}
Ejemplo n.º 5
0
<?php

define('NO_HOUSE_KEEP', 'YES');
require 'config.php';
$BID = $_REQUEST['BID'];
if ($BID == '') {
    $BID = 1;
}
if ($DB_ERROR) {
    echo "Database configuration error: " . $DB_ERROR;
} else {
    show_map($BID);
}
Ejemplo n.º 6
0
        cancelSubmit();
        break;
    case 'publish':
        change(1);
        break;
    case 'unpublish':
        change(0);
        break;
    case 'gotoedit':
        gotoedit();
        break;
    case 'country_list':
        country_list();
        break;
    case 'show_map':
        show_map();
        break;
    case 'show_matrix':
        show_matrix();
        break;
    default:
        showredirect();
        break;
}
function show_conditions()
{
    $form_id = JRequest::getVar('form_id');
    $row = JTable::getInstance('formmaker', 'Table');
    $row->load($form_id);
    $ids = array();
    $types = array();
Ejemplo n.º 7
0
            print 'Access granted.';
        } else {
            print 'Wrong password!';
        }
    }
}
if (isset($_SESSION['admin'])) {
    $sid = 0;
    # Selecting one device
    if (isset($_GET['sid'])) {
        $sid = clean_input($_GET['sid']);
    }
    $rid = 0;
    # Selecting one request
    if (isset($_GET['rid'])) {
        $rid = clean_input($_GET['rid']);
    }
    if ($verbose) {
        print 'Post:<br/>';
        print_r($_POST);
    }
    show_header();
    show_menu();
    $requests = list_requests($sid, $rid);
    $devices = list_secrets();
    show_map($devices, $requests, $rid);
    show_requests($requests);
    #show_devices ($devices);
    #show_log ( list_latest_requests() );
}
include 'html_footer.html';