Première version de l'import de WRI. écrase les données présentes et ne gère pas la mise à jour de données existantes. La modification d'une fiche WRI sur kabano n'a pas été testée.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<a href="<?=$config['rel_root_folder']?>admin/logs" class="button"><i class="fas fa-history"></i> Voir les logs</a> <small>Permet d'accéder aux 200 dernières lignes des logs bruts des actions sur la base de données.</small><br><br>
|
||||
<a href="<?=$config['rel_root_folder']?>admin/wiki-files" class="button"><i class="fas fa-paperclip"></i> Fichiers attachés</a><small>Gérer les fichiers attachés pour le wiki : liste, ajout, suppression...</small><br><br>
|
||||
<a href="<?=$config['rel_root_folder']?>admin/stats" class="button"><i class="fas fa-chart-line"></i> Statistiques</a><small>Analyser les logs et afficher les statistiques.</small><br><br>
|
||||
<a href="<?=$config['rel_root_folder']?>admin/wri-import" class="button"><i class="fas fa-cloud-download-alt"></i> Import WRI</a><small>Importe les points de Refuges.info.</small><br><br>
|
||||
<?php } ?>
|
||||
</section>
|
||||
|
||||
|
||||
30
public/views/d.admin.wri-import.html
Normal file
30
public/views/d.admin.wri-import.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- Page: admin logs -->
|
||||
<html lang="fr">
|
||||
|
||||
<?php include('blocks/d.head.html'); ?>
|
||||
|
||||
<body>
|
||||
|
||||
<?php include('blocks/d.nav.html'); ?>
|
||||
|
||||
<section>
|
||||
<h1><?=$head['title']?></h1>
|
||||
|
||||
<p>
|
||||
L’import depuis <strong>Refuges.info</strong> vient d’être exécuté.
|
||||
</p>
|
||||
|
||||
<h2>Résumé</h2>
|
||||
|
||||
<ul>
|
||||
<li><strong>Nouveaux POIs créés :</strong> <?= $result['created'] ?></li>
|
||||
<li><strong>POIs mis à jour :</strong> <?= $result['updated'] ?></li>
|
||||
<li><strong>Total analysés :</strong> <?= $result['total'] ?></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<?php include('blocks/d.footer.html'); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -178,7 +178,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<?php if ($isCommentable) { ?>
|
||||
<?php if ($isCommentable && $poi->source_id=='kab') { ?>
|
||||
<?php if (isset($poi_comments) && $poi_comments->number > 0) { ?>
|
||||
<div id="comments_photos_gallery" class="gallery">
|
||||
<?php foreach ($poi_comments->objs as $comment) { ?>
|
||||
@@ -287,6 +287,8 @@
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($poi->source_id!='kab') {?><br><div style="text-align: center; font-style: italic;">Données fournies par <a href="https://refuges.info/point/<?=$poi->remote_source_id?>" target="_blank"><i class="fas fa-external-link-alt"></i> <?=$poi->source?></a> sous licence CC BY-SA</div><?php } ?>
|
||||
|
||||
</section>
|
||||
|
||||
<?php include('blocks/d.footer.html'); ?>
|
||||
|
||||
Reference in New Issue
Block a user