<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$cartoclient_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta name="author" content="Sylvain Pasche" />
<meta name="email" content="sylvain dot pasche at camptocamp dot com" />
<link rel="stylesheet" type="text/css" href="{r type=css}cartoweb.css{/r}" title="stylesheet" />
<link rel="stylesheet" type="text/css" href="{r type=css}folders.css{/r}" title="stylesheet" />
{if $layers|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=layers}layers.css{/r}" />{/if}
<link rel="stylesheet" type="text/css" href="{r type=css plugin=tables}tables.css{/r}" />
{if $collapsibleKeymap|default:''}<link rel="stylesheet" type="text/css" href="{r type=css}keymap.css{/r}" />{/if}
{if $layerReorder|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=layerReorder}layerReorder.css{/r}" />{/if}
{if $outline_active|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=outline}outline.css{/r}" />{/if}
{if $toolpicker_active|default:''}<link rel="stylesheet" type="text/css" href="{r type=css}toolPicker.css{/r}" title="stylesheet" />{/if}
{if $edit_allowed|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=edit}edit.css{/r}" />{/if}
<link rel="icon" href="{r type=gfx/layout}cw3.png{/r}" type="image/png" />
<script type="text/javascript" src="{r type=js}EventManager.js{/r}"></script>
<script type="text/javascript" src="{r type=js}carto.js{/r}"></script>
{if $layers|default:''}<script type="text/javascript" src="{r type=js plugin=layers}layers.js{/r}"></script>{/if}
{if $layerReorder|default:''}<script type="text/javascript" src="{r type=js plugin=layerReorder}layerReorder.js{/r}"></script>{/if}
{if $freescale}<script type="text/javascript" src="{r type=js plugin=location}location.js{/r}"></script>{/if}
{if $collapsibleKeymap|default:''}<script type="text/javascript" src="{r type=js}keymap.js{/r}"></script>
{if $toolTips_active|default:''}<script type="text/javascript" src="{r type=js plugin=toolTips}overlib_mini.js{/r}"></script>
<script type="text/javascript" src="{r type=js plugin=toolTips}ToolTips.ajax.js{/r}"></script>
{/if}
<script type="text/javascript">
<!--
var hideKeymapMsg = "{t}Collapse keymap{/t}";
var showKeymapMsg = "{t}Show keymap{/t}";
var hideKeymap = {$collapseKeymap};
//-->
</script>
{/if}
{if $jsAccounting|default:''}<script type="text/javascript" src="{r type=js plugin=accounting}accounting.js{/r}"></script>{/if}
{if $views|default:'' || $viewsList|default:''}<script type="text/javascript" src="{r type=js plugin=views}views.js{/r}"></script>{/if}
{include file="cartoclient_ajaxHeader.tpl"}
{include file="dhtmlcode.tpl"}
{if $exportPdf|default:''}<script type="text/javascript" src="{r type=js plugin=exportPdf}exportPdf.js{/r}"></script>{/if}
{if $exportPdfRotate|default:''}<script type="text/javascript" src="{r type=js plugin=exportPdf}dhtmlPdf.js{/r}"></script>{/if}
{if $edit_allowed|default:''}<div id="edit_div"
style="display:none"></div>{/if}
</head>
<body>
<div id="banner"><h1>{$cartoclient_title}</h1></div>
<form method="post" action="{$selfUrl}" name="carto_form" id="carto_form" onsubmit="doSubmit();">
<input type="image" name="dummy" alt="" id="dummy" />
<input type="hidden" name="posted" id="posted" value="1" />
<input type="hidden" name="js_folder_idx" id="js_folder_idx" value="{$jsFolderIdx}" />
<input type="hidden" name="selection_type" id="selection_type" />
<input type="hidden" name="selection_coords" id="selection_coords" />
<input type="hidden" name="features" id="features" />
<input type="hidden" name="customMapsize" id="customMapsize" />
{if $collapsibleKeymap|default:''}
<input type="hidden" name="collapse_keymap" id="collapse_keymap" value="{$collapseKeymap}" />
{/if}
{if $jsAccounting|default:''}
<input type="hidden" name="js_accounting"/>
{/if}
{if $outline_active|default:''}
{$outlinelabel}
{/if}
<div id="content">
{include file="toolbar.tpl" group=1 header=1}
{include file="toolbar.tpl" group=2}
<table>
<tr><td colspan="3"><div id="floatScale" class="locationInfo">{t}Current scale:{/t} <span id="currentScale">1:{$currentScale_value}</span></div></td></tr>
<tr>
<td><input type="image" src="{r type=gfx/layout}north_west.gif{/r}" name="pan_nw" id="pan_nw" alt="NW" /></td>
<td align="center"><input type="image" src="{r type=gfx/layout}north.gif{/r}" name="pan_n" id="pan_n" alt="N" /></td>
<td><input type="image" src="{r type=gfx/layout}north_east.gif{/r}" name="pan_ne" id="pan_ne" alt="NE" /></td>
</tr>
<tr>
<td><input type="image" src="{r type=gfx/layout}west.gif{/r}" name="pan_w" id="pan_w" alt="W" /></td>
<td valign="top">
{include file="mainmap.tpl"}
</td>
<td><input type="image" src="{r type=gfx/layout}east.gif{/r}" name="pan_e" id="pan_e" alt="E" /></td>
</tr>
<tr>
<td><input type="image" src="{r type=gfx/layout}south_west.gif{/r}" name="pan_sw" id="pan_sw" alt="SW" /></td>
<td align="center"><input type="image" src="{r type=gfx/layout}south.gif{/r}" name="pan_s" id="pan_s" alt="S" /></td>
<td><input type="image" src="{r type=gfx/layout}south_east.gif{/r}" name="pan_se" id="pan_se" alt="SE" /></td>
</tr>
<tr>
<td colspan="3">
<table width="100%"><tr>
<td width="50%">
<div id="floatGeo" class="locationInfo">{t}Coord (m):{/t} %s / %s</div>
</td>
<td width="50%">
<div id="floatDistance" class="locationInfo"><span id="distanceValueLabel">{t}Approx. distance :{/t}</span> %s{if $factor == 1000} km{else} m{/if}</div>
<div id="floatSurface" class="locationInfo"><span id="surfaceValueLabel">{t}Approx. area :{/t}</span> %s{if $factor == 1000} km²{else} m²{/if}</div></td>
</tr></table>
</td>
</tr>
{if $scalebar_path|default:''}
<tr><td align="center" colspan="3"><img src="{$scalebar_path}" id="scalebar"
alt="{t}scalebar_alt{/t}" width="{$scalebar_width}" height="{$scalebar_height}" title="" /></td></tr>
{/if}
</table>
Current user: {$username} roles: {$roles}
<p id="location_info"> LocationInfo: {$location_info} </p>
{if $user_messages|default:''}
<span style="color: blue;">
{t} User messages {/t}</span>
{foreach from=$user_messages item=message}
<p>{$message}</p>
{/foreach}
{/if}
<div id="developperMsgs">
{if $developer_messages|default:''}
<span style="color: green; border: 10px; background-color: yellow;">
{t} Developer messages {/t}</span>
{foreach from=$developer_messages item=message}
<p>{$message}</p>
{/foreach}
{/if}
</div>
{if $selection_result|default:''}
{$selection_result}
{/if}
<!-- {if $query_result|default:''}
{$query_result}
{/if} -->
{if $tables_result|default:true}
<div id="tables_result">
{$tables_result}
</div>
{/if}
<pre>
Request:
{$debug_request}
</pre>
<p>Powered by <a href="http://www.cartoweb.org/" target="_blank">CartoWeb {$cw_version.version}</a> -
© <a href="http://camptocamp.com/" target="_blank">Camptocamp SA</a> -
<a href="http://validator.w3.org/check/referer" target="_blank">XHTML Validator</a></p>
</div>
<div id="leftbar">
{if $locales|default:''}
<p>
{foreach from=$locales item=locale name=lang}
{if !$smarty.foreach.lang.first || !$smarty.foreach.lang.last}
{if $locale != $currentLang}<a href="javascript:document.carto_form.action='{$selfUrl}?lang={$locale}';FormItemSelected();">{$locale}</a>{else}<strong>{$locale}</strong>{/if}
{if !$smarty.foreach.lang.last}|{/if}
{/if}
{/foreach}
</p>
{/if}
<p>
{if $projects_chooser_active|default:''}
{t}Choose project{/t}
<select name="project" onchange="javascript:document.carto_form.posted.value=0;FormItemSelected();">
{html_options values=$project_values output=$project_output
selected=$project}
</select><br />
{else}
<input type="hidden" name="project" id="project" value="{$project}" />
{/if}
<input type="submit" id="refresh" name="refresh" value="{t}refresh{/t}" class="form_button" />
<input type="submit" name="reset_session" value="{t}reset_session{/t}" class="form_button"
onclick="javascript:document.carto_form.posted.value=0;FormItemSelected();"/>
</p>
<div>
<ul class="tabnav" id="tabnav2">
<li id="label1"><a href="javascript:ontop(1)">{t}Navigation{/t}</a></li>
<li id="label2"><a href="javascript:ontop(2)">{t}Themes{/t}</a></li>
                {if $outline_active|default:''}<li id="label6"><a href="javascript:ontop(6)">{t}Outline{/t}</a></li>{/if}
<!-- {if $layerReorder|default:''}<li id="label5"><a href="javascript:ontop(5)">{t}Layers reorder{/t}</a></li>{/if} -->
<!-- {if $wmsBrowser|default:''}<li id="label7"><a href="javascript:ontop(7)">{t}WMS layers{/t}</a></li>{/if} -->
</ul>
<ul class="tabnav" id="tabnav1">
{if $exportPdf|default:''}<li id="label3"><a href="javascript:ontop(3)">{t}PDF{/t}</a></li>{/if}
{if $exportRtf|default:''}<li id="label8"><a href="javascript:ontop(8)">{t}RTF{/t}</a></li>{/if}
                <li id="label4"><a href="javascript:ontop(4)">{t}Edit{/t}</a></li>
</ul>
</div>
<div id="container">
        <div id="folder1" class="folder">
{if $keymap_path|default:'' && !$collapsibleKeymap|default:''}
<div id="keymapDiv">
<input type="image" name="keymap" id="keymap" src="{$keymap_path}" alt="{t}keymap_alt{/t}"
style="width:{$keymap_width}px;height:{$keymap_height}px;" />
</div>
{/if}
{if $recenter_active|default:''}
{$recenter}
{/if}
{if $scales_active|default:''}
<div id="recenter_scale_div">
{$scales}
</div>
{/if}
{if $shortcuts_active|default:''}
{$shortcuts}
{/if}
{if $id_recenter_active|default:''}
{$id_recenter}
{/if}
{if $mapsizes_active|default:''}
{$mapsizes}
{/if}
{if $routing_active|default:''}
{$routing}
{/if}
{if $search_active|default:''}
{$search}
{/if}
{if $viewsList|default:''}
<p>{t}Views:{/t}
<select name="viewBrowseId" onchange="javascript:loadView();">
{html_options options=$viewsList selected=$selectedView}
</select></p>
<input type="hidden" name="viewBrowse" id="viewBrowse" value="0" />
{if !$views}
<input type="hidden" name="handleView" id="handleView" value="0" />
{/if}
{/if}
<p>
{if $exporthtml_active|default:''}
<a href="{$exporthtml_url}" target="print">{t}Print{/t}</a> -
{/if}
<a href="{$selfUrl}?mode=image" target="print">{t}Raw image{/t}</a></p>
</div>
<!-- end of folder1 -->
<div id="folder2" class="folder">
{$switches}
{$layers}
</div>
<!-- end of folder2 -->
{if $exportPdf|default:''}
<div id="folder3" class="folder">
{$exportPdf}
</div>
<!-- end of folder3 -->
{/if}
<div id="folder4" class="folder">
{if $edit_active|default:''}
{include file="../plugins/edit/templates/edit.tpl"}
{/if}
</div>
{if $outline_active|default:''}
<div id="folder6" class="folder">
{$outline}
{if $exportDxf}{$exportDxf}{/if}
</div>
<!-- end of folder6 -->
{/if}
{if $wmsBrowser|default:''}
<div id="folder7" class="folder">
{$wmsBrowser}
</div>
<!-- end of folder7 -->
{/if}
        
{if $exportRtf|default:''}
<div id="folder8" class="folder">
{$exportRtf}
</div>
<!-- end of folder8 -->
{/if}
        
</div>
</div>
{if $auth_active|default:''}
{$auth}
{/if}
</form>
{if $toolpicker_active|default:''}
{include file="toolPicker.tpl"}
{/if}
</body>
</html>