Added link for export map

This commit is contained in:
Andreas Kristiansen
2024-04-12 18:31:12 +02:00
parent e9bfc9c085
commit fc0c99b14c
2 changed files with 7 additions and 0 deletions

View File

@@ -440,6 +440,7 @@ class Stationsetup extends CI_Controller {
$container = $this->stationsetup_model->getContainer(xss_clean($this->input->post('id', true)))->row();
$slug = $container->public_slug;
$data['logbookid'] = xss_clean($this->input->post('id', true));
$data['slug'] = $slug;
$exportmapoptions['gridsquare_layer'] = $this->user_options_model->get_options('ExportMapOptions',array('option_name'=>'gridsquare_layer','option_key'=>$slug))->row();
$exportmapoptions['path_lines'] = $this->user_options_model->get_options('ExportMapOptions',array('option_name'=>'path_lines','option_key'=>$slug))->row();

View File

@@ -41,3 +41,9 @@
</tr>
</tbody>
</table>
<?php if($slug !== "") { ?>
<div id="slugLink" class="alert alert-info" role="alert" style="margin-top: 20px;">
<p>Visit export map:</p>
<p><a href="<?php echo site_url('visitor/exportmap'); ?>/<?php echo $slug; ?>" target="_blank"><?php echo site_url('visitor/exportmap'); ?>/<?php echo $slug; ?></a></p>
</div>
<?php } ?>