-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
335 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/************************************************************************/ | ||
/* DUNE by NPDS */ | ||
/* */ | ||
/* NPDS Copyright (c) 2002-2020 by Philippe Brunier */ | ||
/* */ | ||
/* This program is free software. You can redistribute it and/or modify */ | ||
/* it under the terms of the GNU General Public License as published by */ | ||
/* the Free Software Foundation; either version 2 of the License. */ | ||
/* */ | ||
/* Module npds_glossaire v 3.0 pour revolution 16 */ | ||
/* by team jpb/phr 2017 */ | ||
/* */ | ||
/* From Glossaire version 1.3 pour myPHPNuke 1.8 */ | ||
/* Copyright © 2001, Pascal Le Boustouller */ | ||
/* Tribal-dolphin 2008 */ | ||
/************************************************************************/ | ||
|
||
if (stristr($_SERVER['PHP_SELF'],'glossaire_bloc.php')) die(); | ||
global $language; | ||
$ModPath='npds_glossaire'; | ||
$ModStart='index'; | ||
include_once('modules/'.$ModPath.'/lang/glossaire-'.$language.'.php'); | ||
|
||
$content =''; | ||
$content .= '<div class="d-flex w-100 justify-content-center"><a href="modules.php?ModPath=npds_glossaire&ModStart=index"><img src="modules/npds_glossaire/npds_glossaire.png" alt="icon_npds_glossaire" style="max-width:180px; max-height=180px;"></a></div>'; | ||
$content .= ' | ||
<p class="lead text-center">'; | ||
|
||
$alphabet = array ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',''.glo_translate("Autres").''); | ||
$num = count($alphabet) - 1; | ||
$counter = 0; | ||
$listletter=''; | ||
|
||
foreach($alphabet as $ltr) { | ||
if ($ltr!=translate("Other")) | ||
$listletter .= '<a href="modules.php?ModPath='.$ModPath.'&ModStart='.$ModStart.'&op=rech_lettre&lettre='.$ltr.'">'.$ltr.'</a>'; | ||
else | ||
$listletter .= '<a href="modules.php?ModPath='.$ModPath.'&ModStart='.$ModStart.'&op=rech_lettre&lettre=!AZ">'.$ltr.'</a>'; | ||
if ( $counter != $num ) | ||
$listletter .= ' | '; | ||
$counter++; | ||
} | ||
$content .= $listletter.'</p>'; | ||
if ($admin) | ||
$content .=' | ||
<div class="mt-2 text-right"> | ||
<a href="admin.php?op=Extend-Admin-SubModule&ModPath='.$ModPath.'&ModStart=admin/glossadmin" data-toggle="tooltip" title="[french]Admin[/french][english]Admin[/english]"><i class="fa fa-cogs fa-lg" aria-hidden="true"></i></a> | ||
</div>'; | ||
$content = aff_langue($content); | ||
|
||
?> |
Oops, something went wrong.