Kabano is a PHP web application listing alpine huts. https://kabano.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

d.wiki.view.html 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <? include('blocks/d.head.html'); ?>
  4. <body>
  5. <? include('blocks/d.nav.html'); ?>
  6. <section id="wiki_page" <?=$wikiPage->is_archive=="t"||$wikiPage->is_public=="f"?'class="archive"':''?>>
  7. <h1><?=$wikiPage->name?></h1>
  8. <? if($user->rankIsHigher('premium')) { ?>
  9. <span class="subtitle">
  10. <? if(isset($wikiHistory)) { ?>
  11. <select id="wikihistory">
  12. <? $i = 0;
  13. foreach ($wikiHistory->objs as $row) { ?>
  14. <option <?=$row->version_id==$wikiPage->version_id?'selected':''?> value="<?=$i?>"><?=$row->is_archive=="f"?'&bull; ':''?><? echo strftime('%d/%m/%Y %H:%M:%S',strtotime($row->update_date)) ?></option>
  15. <? $i++;
  16. } ?>
  17. </select>
  18. <? }
  19. if ($user->rankIsHigher('moderator') && isset($wikiHistory)) { ?>
  20. &mdash;
  21. <? }
  22. if ($user->rankIsHigher('moderator')) { ?>
  23. <a href="<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/edit"><i class="fas fa-pencil-alt"></i> Éditer la page</a> &mdash;
  24. <? if ($wikiPage->is_public=="t") { ?>
  25. <a href="<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/delete"><i class="fas fa-trash"></i> Effacer la page</a>
  26. <? } else { ?>
  27. <a href="<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/restore"><i class="fas fa-eye"></i> Restaurer la page</a>
  28. <? }?>
  29. <? } ?>
  30. </span>
  31. <? } ?>
  32. <div id="wikiContent">
  33. <?=$wikiPage->content_html?>
  34. </div>
  35. <p id="wikiTimestamp">Page mise à jour le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($wikiPage->update_date)) ?> <small><abbr title="Temps Universel Coordonné">UTC</abbr></small></p>
  36. <div style="clear: both;"> </div>
  37. </section>
  38. <? if($user->rankIsHigher('premium')) { ?>
  39. <script type="text/javascript">
  40. $( "#wikihistory" ).change(function() {
  41. window.location.href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->permalink?>/"+$( this ).val();
  42. });
  43. </script>
  44. <? } ?>
  45. <? include('blocks/d.footer.html'); ?>
  46. </body>
  47. </html>