nc-gpxedit/templates/gpxcontent.php

197 lines
6.8 KiB
PHP
Raw Normal View History

2016-11-30 19:00:03 +00:00
<div id="sidebar" class="sidebar">
<!-- Nav tabs -->
<ul class="sidebar-tabs" role="tablist">
2016-12-14 18:15:40 +00:00
<li class="active" title="<?php p($l->t('Load and save files')); ?>"><a href="#ho" role="tab"><i class="fa fa-bars"></i></a></li>
<li title="<?php p($l->t('Options')); ?>"><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li>
2016-11-30 19:00:03 +00:00
<li title="<?php p($l->t('About GpxEdit')); ?>"><a href="#help" role="tab"><i class="fa fa-question"></i></a></li>
</ul>
<!-- Tab panes -->
<div class="sidebar-content active">
<div class="sidebar-pane active" id="ho">
<form name="choosedir" method="get" action="?">
<div id="logofolder">
<div id="logo">
2016-12-01 16:04:32 +00:00
<!--p align="center"><img src="gpxedit.png"/></p-->
2016-11-30 19:00:03 +00:00
<div>
<p id="versionnumber">v
2016-11-30 19:00:03 +00:00
<?php
p($_['gpxedit_version']);
?>
</p>
</div>
</div>
</div>
<div style="clear:both"></div>
</form>
<hr/>
2016-12-14 18:15:40 +00:00
<h2 id="loadtitle"><?php p($l->t('Load'));?> <b id="loadoptiontoggle"><i class="fa fa-expand"></i></b></h2>
<div id="loaddiv" style="display:none;">
2016-12-14 18:15:40 +00:00
<p><?php p($l->t('Select a file to load it on the map'));?></p>
<div>
2016-12-08 17:36:37 +00:00
<input type="checkbox" id="clearbeforeload" checked></input>
2016-12-14 18:15:40 +00:00
<label for="clearbeforeload"><?php p($l->t('Clear map before loading'));?></label>
</div>
<br/>
<div id="loadtree"></div>
</div>
2016-12-01 18:38:50 +00:00
<hr/>
2016-12-14 18:15:40 +00:00
<h2 id="savetitle"><?php p($l->t('Save'));?> <b id="saveoptiontoggle"><i class="fa fa-expand"></i></b></h2>
<div id="savediv" style="display:none;">
2016-12-14 18:15:40 +00:00
<p><?php p($l->t('Select a folder, set a name and click "Save" button'));?></p><br/>
<div id="savetree"></div>
2016-12-12 14:28:15 +00:00
<br/>
<div>
2016-12-14 18:15:40 +00:00
<label id="saveNameLabel"><?php p($l->t('File name'));?> :</label><br/>
<input id="saveName" type="text"></input>
</div>
<div style="clear:both"></div>
<div>
2016-12-14 18:15:40 +00:00
<label id="savePathLabel">Destination :</label><br/>
<input id="savePath" type="text" readonly></input>
</div>
<br/><br/>
2016-12-14 18:15:40 +00:00
<label><?php p($l->t('Description (optional)'));?> :</label><br/>
2016-12-12 14:28:15 +00:00
<textarea id="desctext"></textarea>
2016-12-14 18:15:40 +00:00
<button id="saveButton"><i class="fa fa-save"></i> <?php p($l->t('Save'));?></button>
<br/>
</div>
2016-11-30 19:00:03 +00:00
<div style="clear:both"></div>
<hr/>
<br/>
2016-12-14 18:15:40 +00:00
<button id="clearButton"><i class="fa fa-bomb"></i> <?php p($l->t('Clear map'));?></button>
2016-12-01 18:38:50 +00:00
<div id="saved"><p>
<i class="fa fa-save fa-spin fa-3x fa-fw"></i>
2016-12-02 14:31:45 +00:00
<b id="content"></b></p>
</div>
<div id="failed"><p>
<i class="fa fa-save fa-spin fa-3x fa-fw"></i>
<b id="content"></b></p>
2016-12-01 18:38:50 +00:00
</div>
2016-11-30 19:00:03 +00:00
<?php
echo '<p id="username" style="display:none">';
p($_['username']);
echo '</p>'."\n";
2016-12-13 02:28:57 +00:00
echo '<ul id="extrasymbols" style="display:none">';
foreach($_['extrasymbols'] as $symbol){
echo '<li name="';
p($symbol['name']);
echo '">';
p($symbol['smallname']);
echo '</li>';
}
echo '</ul>'."\n";
2016-11-30 19:00:03 +00:00
?>
</div>
<div class="sidebar-pane" id="settings">
2016-12-14 18:15:40 +00:00
<h1 class="sectiontitle"><?php p($l->t('Options')); ?></h1>
<hr/>
<br/>
2016-12-14 18:15:40 +00:00
<div title="<?php p($l->t('Default symbol for waypoints when value is not set'));?>">
<label><?php p($l->t('Waypoint style'));?>:</label>
<select id="markerstyleselect">
</select>
</div>
<div>
<label><?php p($l->t('Tooltip'));?>:</label>
<select id="tooltipstyleselect">
<option value="h"><?php p($l->t('on hover')); ?></option>
<option value="p"><?php p($l->t('permanent')); ?></option>
</select>
</div>
<div title="<?php p($l->t('Use defined symbols instead of default symbol')); ?>">
<input id="symboloverwrite" type="checkbox" checked></input>
<label for="symboloverwrite"><?php p($l->t('Use defined symbols')); ?></label>
</div>
<br/>
<hr/>
<br/>
<h3 class="sectiontitle"><?php p($l->t('Custom tile servers')); ?></h3>
<br/>
<div id="tileserveradd">
<?php p($l->t('Server name (for example \'my custom server\')')); ?> :
<input type="text" id="tileservername"><br/>
<?php p($l->t('Server url (\'http://tile.server.org/cycle/{z}/{x}/{y}.png\')')); ?> :
<input type="text" id="tileserverurl"><br/>
<button id="addtileserver"><i class="fa fa-plus-circle" aria-hidden="true" style="color:green;"></i> <?php p($l->t('Add')); ?></button>
</div>
<br/>
<div id="tileserverlist">
<h2><?php p($l->t('Your servers')); ?></h2>
<ul class="disclist">
<?php
if (count($_['tileservers']) > 0){
foreach($_['tileservers'] as $name=>$url){
echo '<li name="';
p($name);
echo '" title="';
p($url);
echo '">';
p($name);
echo '<button><i class="fa fa-trash" aria-hidden="true" style="color:red;"></i> ';
p($l->t('Delete'));
echo '</button></li>';
}
}
?>
</ul>
</div>
2016-11-30 19:00:03 +00:00
</div>
<div class="sidebar-pane" id="help">
2016-12-01 16:04:32 +00:00
<h1 class="sectiontitle"><?php p($l->t('About GpxEdit')); ?></h1>
2016-11-30 19:00:03 +00:00
<hr/><br/>
<h3 class="sectiontitle"><?php p($l->t('Shortcuts')); ?> :</h3>
<ul class="disclist">
<li><b>&lt;</b> : <?php p($l->t('toggle sidebar')); ?></li>
<li><b>!</b> : <?php p($l->t('toggle minimap')); ?></li>
<li><b>œ</b> or <b>²</b> : <?php p($l->t('toggle search')); ?></li>
</ul>
<br/><hr/><br/>
<h3 class="sectiontitle"><?php p($l->t('Features')); ?> :</h3>
<ul class="disclist">
<li>Many leaflet plugins are active :
<ul class="circlist">
<li>Sidebar-v2</li>
<li>Control Geocoder (search in nominatim DB)</li>
<li>Minimap (bottom-left corner of map)</li>
<li>MousePosition</li>
2016-12-01 16:04:32 +00:00
<li>Draw</li>
<li>MeasureControl</li>
2016-11-30 19:00:03 +00:00
</ul>
</li>
</ul>
<br/><hr/><br/>
<h3 class="sectiontitle"><?php p($l->t('Documentation')); ?></h3>
2016-12-01 16:04:32 +00:00
<a class="toplink" target="_blank" href="https://gitlab.com/eneiluj/gpxedit-oc/wikis/home">
2016-11-30 19:00:03 +00:00
<i class="fa fa-gitlab" aria-hidden="true"></i>
Project wiki
</a>
<br/>
<br/><hr/><br/>
<h3 class="sectiontitle"><?php p($l->t('Source management')); ?></h3>
<ul class="disclist">
2016-12-01 16:04:32 +00:00
<li><a class="toplink" target="_blank" href="https://gitlab.com/eneiluj/gpxedit-oc">
2016-11-30 19:00:03 +00:00
<i class="fa fa-gitlab" aria-hidden="true"></i>
Gitlab project main page</a></li>
2016-12-01 16:04:32 +00:00
<li><a class="toplink" target="_blank" href="https://gitlab.com/eneiluj/gpxedit-oc/issues">
2016-11-30 19:00:03 +00:00
<i class="fa fa-gitlab" aria-hidden="true"></i>
Gitlab project issue tracker</a></li>
</ul>
<br/><hr/><br/>
<h3 class="sectiontitle"><?php p($l->t('Authors')); ?> :</h3>
<ul class="disclist">
<li>Julien Veyssier</li>
</ul>
</div>
</div>
</div>
<!-- ============= MAP DIV =============== -->
<div id="map" class="sidebar-map"></div>