Location: PHPKode > projects > ARK > ark_0.7/map_view.php
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
* map_view.php
*
* Index for the map view
*
* PHP versions 4 and 5
*
* LICENSE:
*    ARK - The Archaeological Recording Kit.
*    An open-source framework for displaying and working with archaeological data
*    Copyright (C) 2008  L - P : Partnership Ltd.
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
* @category   base
* @package    ark
* @author     Guy Hunt <hide@address.com>
* @author     Stuart Eve <hide@address.com>
* @copyright  1999-2008 L - P : Partnership Ltd.
* @license    http://ark.lparchaeology.com/license
* @link       http://ark.lparchaeology.com/svn/map_view.php
* @since      File available since Release 0.6
*/


// PART1 - Basic setup

//this page
$filename = 'map_view.php';

//GLOBAL INCLUDES
include_once ('config/settings.php');
// Start the session
session_name($ark_name);
session_start();

include_once ('php/global_functions.php');
$db = dbConnect($sql_server, $sql_user, $sql_pwd, $ark_db);
include_once ('php/inc_page_settings.php');
include_once ('php/auth/inc_auth.php');
$browser = browserDetect();
$stylesheet = getStylesheet($browser);
//include_once ('php/map/getmap.php');
include_once ('php/inc_version.php');


//GLOBALY required variables
$lang = reqArkVar('lang', $default_lang);
$view = reqArkVar('view', 'home');
$phpsessid = $_REQUEST['PHPSESSID'];
$update_db = reqQst($_REQUEST,'update_db');

//CLARENT SPECIFIC INCLUDES
//first the settings and get the map 
// Load up the mapserver .so
if (!extension_loaded('MapScript')){
  if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')){
     dl('php_mapscript.dll');
  }else{
     //dl('php_mapscript.so'); 
  }
}

/*include("$clarent_path/settings.php");
include("$clarent_path/getmap.php");
//Clarent CSS - We need to import the clarent specific css into the main stylesheet already employed by the parent page. 
//This is   dependent on the current skin - so we first need to grab that
include("$clarent_path/skintools.php");
//now choose the appropriate stylesheet depending on the browser and skin 
include("$clarent_path/clarent_browser_detect.php");
include("$clarent_path/clarent_stylesheet.php");
//now include the actual processing script
include("$clarent_path/clarent_process.php");
//END OF CLARENT SPECIFIC INCLUDES
*/
$db = dbConnect($sql_server, $sql_user, $sql_pwd, $ark_db);

// PART2 - select the relevant page contents

$plc = $cur_code_dir.'global_map_view.php';
$view_title = getMarkup('cor_tbl_markup', $lang, $view);


// ---------OUTPUT--------- //

?>

<!DOCTYPE <?=$doctype?>>

<html>
<head>
<title><?=$page_title?></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="<?=$stylesheet?>" type="text/css" rel="stylesheet" />

<link rel="shortcut icon" href="<?=$ark_dir?>skins/<?=$skin?>/images/ark_favicon.ico" />

<!-- CLARENT STYLESHEET -->
<link href="<?=$clarent_stylesheet?>" type="text/css"  title="Styles" rel="stylesheet"></link>

<!--[if gte IE 5.5000]>
<script type="text/javascript" src="javascript/pngfix.js"></script>
<![endif]-->

</head>

<body>

<!-- THE CONTENT WRAPPER -->
<div id="wrapper" class="wrp_normal">

<!-- HEADER -->
<div id="hdr">
<img src="skins/<?=$skin?>/images/logo.png" alt="logo" />
<div id="version">v<?=$version?></div>
<?php print(mkSearchBox());?>
</div>


<!-- DYNAMIC NAVIGATION -->

<div id="navcontainer" style="width:600px">
<?php print(mkNavMain($authorised_pages, $conf_linklist, $conf_hide_pages)) ?>
</div>

<!-- The LEFT PANEL -->
<div id="lpanel">
<?php //include($cur_code_dir.'left_panel.php');?>
</div>

<!-- THE MAIN AREA -->
<div id="main" class="main_normal">

<div style="width: 600px; height:750px">

<?php
include_once("php/map/map_functions2.php");
print(mkMapView($mapview_layers, FALSE));
?>

</div>
</div>

<!-- end CONTENT WRAPPER -->
</div>

</body>
</html>
Return current item: ARK