*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
header("Expires: Mon, 20 Mar 1998 12:01:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", FALSE);
header("Pragma: no-cache");
require_once 'av_init.php';
require_once 'riskmaps_functions.php';
Session::logcheck('dashboard-menu', 'BusinessProcesses');
$map = $_GET['map'];
$edit_mode = $_GET['edit_mode'] == '1' ? TRUE : FALSE;
ossim_valid($map, OSS_HEX, 'illegal:' . _('Map'));
if (ossim_error()) {
    $data = array('status' => 'error', 'data' => ossim_get_error_clean());
    echo json_encode($data);
    exit;
}
$db = new Ossim_db();
$conn = $db->connect();
$indicators = array();
$ri_data = get_indicators_from_map($conn, $map);
foreach ($ri_data as $ri_id => $indicator) {
    $indicators[$ri_id] = $indicator;
    $indicators[$ri_id]['html'] = draw_indicator($conn, $indicator, $edit_mode);
}
$db->close();
$data = array('status' => 'success', 'data' => $indicators);
echo json_encode($data);
Exemple #2
0
        {
            visibility: hidden;
        }
        </style>
</head>

<body class='ne1'>
    <?php 
//Local menu
include_once '../local_menu.php';
?>
    <div id='mapmap'>
        <?php 
$ri_indicators = get_indicators_from_map($conn, $map);
foreach ($ri_indicators as $ri_indicator) {
    echo draw_indicator($conn, $ri_indicator);
}
?>
        <img id='map_img' onload='initDiv();' src='maps/map<?php 
echo Util::htmlentities($map);
?>
.jpg'/>
    </div>

    <div id='cont_options'>
        <div class='rb_right btn_info'>
            <a href='<?php 
echo Menu::get_menu_url('view.php?map=' . $_SESSION['default_riskmap'], 'dashboard', 'riskmaps', 'overview');
?>
'>
                <img src='../pixmaps/risk_home.png' alt='<?php 
Exemple #3
0
')" class="bbutton"/>
                    </td>
                </tr>
            </table>

        </form>

        </td>

        <td valign='top' id="map">
            <div id='mapmap'>
                <?php 
// *************** Print Indicators DIVs (print_inputs = true) ******************
$ri_indicators = get_indicators_from_map($conn, $map);
foreach ($ri_indicators as $ri_indicator) {
    echo draw_indicator($conn, $ri_indicator, TRUE);
}
$db->close();
?>
                <img src="maps/map<?php 
echo $map;
?>
.jpg" id="map_img" onclick="reset_values()" onload='initDiv();' class="MapMenu" border='0'/>
            </div>
        </td>
    </tr>
</table>
</body>
</html>