Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
- year
- licence version
- code
...
  • Loading branch information
jipexu committed Nov 6, 2024
1 parent 18b554f commit 968faf5
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 81 deletions.
6 changes: 3 additions & 3 deletions npds_agenda/admin/adm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2022 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down
85 changes: 45 additions & 40 deletions npds_agenda/admin/adm_func.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2023 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down Expand Up @@ -166,39 +166,42 @@ function topicsmanager(){
settype ($count,'integer');
echo '
<h4>'.ag_translate('Sélectionnez une catégorie, cliquez pour modifier').'</h4>
<div class="row">';
<div class="row mb-3">';
while(list($topicid, $topicimage, $topictext) = sql_fetch_row($result)) {
$topictext = stripslashes($topictext);
if (($topicimage) or ($topicimage != '')) {
if (($topicimage) or ($topicimage != ''))
echo '
<div class="col-md-3">
<div class="card-body"><p class="card-text">'.aff_langue(''.$topictext.'').'</p><a href="'.$ThisFile.'&amp;subop=topicedit&amp;topicid='.$topicid.'"><img class="card-img-top img-thumbnail" src="'.$tipath.''.$topicimage.'" data-toggle="tooltip" data-placement="bottom" title="'.ag_translate('Cliquez pour éditer').'" /></a></div></div>';
}
<div class="col-md-3 col-sm-2">
<div class="card-body">
<p class="card-text">'.aff_langue($topictext).'</p><a href="'.$ThisFile.'&amp;subop=topicedit&amp;topicid='.$topicid.'"><img class="card-img-top img-thumbnail" src="'.$tipath.''.$topicimage.'" data-bs-toggle="tooltip" data-bs-placement="bottom" title="'.ag_translate('Cliquez pour éditer').'" /></a>
</div>
</div>';
else
echo '<div class="col-2"><a class="" href="'.$ThisFile.'&amp;subop=topicedit&amp;topicid='.$topicid.'">'.aff_langue(''.$topictext.'').'</a></div>';
echo '
<div class="col-2"><a class="" href="'.$ThisFile.'&amp;subop=topicedit&amp;topicid='.$topicid.'">'.aff_langue(''.$topictext.'').'</a></div>';
$count++;
if ($count == 4) {
echo '</div><div class="row">';
$count = 0;
}
}
echo '</div>';
echo '
</div>';
}
echo '
<h4>'.ag_translate('Ajouter une catégorie').'</h4>
<form action="'.$ThisFile.'" method="post" name="adminForm">
<div class="mb-3">
<label for="">'.ag_translate('Titre de la catégorie').'</label>
<input class="form-control" type="text" name="topictext" size="40">
</div>
<div class="mb-3">
<label class="me-2" for="">'.ag_translate('Image de la catégorie').'</label>';
<h4>'.ag_translate('Ajouter une catégorie').'</h4>
<form action="'.$ThisFile.'" method="post" name="adminForm">
<div class="mb-3">
<label for="">'.ag_translate('Titre de la catégorie').'</label>
<input class="form-control" type="text" name="topictext" />
</div>
<div class="mb-3">';
imgcate($topicimage);
echo '<small id="" class="form-text text-muted">'.ag_translate('Chemin des images').' : '.$tipath.'</small>
</div>
<input type="hidden" name="subop" value="topicmake" />
<button type="submit" class="btn btn-outline-primary btn-sm">'.ag_translate('Ajouter une catégorie').'</button>
</form>
echo '<small class="form-text text-body-secondary">'.ag_translate('Chemin des images').' : '.$tipath.'</small>
</div>
<input type="hidden" name="subop" value="topicmake" />
<button type="submit" class="btn btn-primary btn-sm">'.ag_translate('Ajouter une catégorie').'</button>
</form>
</div>';
}

Expand Down Expand Up @@ -227,16 +230,19 @@ function imgcate($topicimage) {
}
settype($val,'string');
if ($topicimage != '') $val = 'value="'.$topicimage.'"';
echo '<select class="custom-select" name="topicimage" '.$val.'>';
echo '
<select class="form-select" id="topicimage" aria-label="Large select example" name="topicimage" '.$val.'>
<option>'.ag_translate('Image de la catégorie').'</option>';
$nb = count($ListFiles);
for($i = 0;$i < $nb;$i++)
{
echo '<option value=\''.$ListFiles[$i].'\'';
if($ListFiles[$i] == $topicimage)
echo ' selected=\'selected\'';
echo '>'.$ListFiles[$i].'</option>';
for($i = 0;$i < $nb;$i++) {
echo '
<option value=\''.$ListFiles[$i].'\'';
if($ListFiles[$i] == $topicimage)
echo ' selected="selected"';
echo '>'.$ListFiles[$i].'</option>';
}
echo '</select>';
echo '
</select>';
}
function topicmake($topicimage, $topictext) {
global $NPDS_Prefix, $ThisFile;
Expand All @@ -246,14 +252,13 @@ function topicmake($topicimage, $topictext) {
/*Fin securite*/
menuprincipal();
if ($topictext == '')
{
echo '<p class="lead"><i class="fa fa-info-circle me-2" aria-hidden="true"></i>'.ag_translate('Pas de catégorie ajoutée').'</span></p>
echo '
<p class="lead"><i class="fa fa-info-circle me-2" aria-hidden="true"></i>'.ag_translate('Pas de catégorie ajoutée').'</span></p>
<div><a class="btn btn-outline-primary btn-sm" href="'.$ThisFile.'&amp;subop=topicsmanager">'.ag_translate('Retour').'</a></div>';
}
else
{
sql_query("INSERT INTO ".$NPDS_Prefix."agendsujet VALUES (NULL, '$topicimage', '$topictext')");
echo '<p class="lead"><i class="fa fa-info-circle me-2" aria-hidden="true"></i>'.ag_translate('La catégorie est créée').'</span></p>
else {
sql_query("INSERT INTO ".$NPDS_Prefix."agendsujet VALUES (NULL, '$topicimage', '$topictext')");
echo '
<p class="lead"><i class="fa fa-info-circle me-2" aria-hidden="true"></i>'.ag_translate('La catégorie est créée').'</span></p>
<div><a class="btn btn-outline-primary btn-sm" href="'.$ThisFile.'&amp;subop=topicsmanager">'.ag_translate('Retour édition catégorie').'</a></div>';
}
}
Expand Down Expand Up @@ -935,7 +940,7 @@ function ConfigSave($xgro, $xvalid, $xcourriel, $xreceveur, $xrevalid, $xnb_admi
$content .= "/* it under the terms of the GNU General Public License as published by */\n";
$content .= "/* the Free Software Foundation; either version 2 of the License. */\n";
$content .= "/* */\n";
$content .= "/* Module npds_agenda 2.0 */\n";
$content .= "/* Module npds_agenda 3.0 */\n";
$content .= "/* */\n";
$content .= "/* Auteur Oim */\n";
$content .= "/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */\n";
Expand Down Expand Up @@ -965,7 +970,7 @@ function ConfigSave($xgro, $xvalid, $xcourriel, $xreceveur, $xrevalid, $xnb_admi
$content .= "/* it under the terms of the GNU General Public License as published by */\n";
$content .= "/* the Free Software Foundation; either version 2 of the License. */\n";
$content .= "/* */\n";
$content .= "/* Module npds_agenda 2.0 */\n";
$content .= "/* Module npds_agenda 3.0 */\n";
$content .= "/* */\n";
$content .= "/* Auteur Oim */\n";
$content .= "/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */\n";
Expand Down
8 changes: 4 additions & 4 deletions npds_agenda/administration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2023 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down Expand Up @@ -84,7 +84,7 @@ function vosajouts() {
<td class="text-center align-middle small">';
$res1 = sql_query("SELECT id, date FROM ".$NPDS_Prefix."agend WHERE liaison = '$id' ORDER BY date DESC");
while(list($sid, $date) = sql_fetch_row($res1)) {
echo $date.'<br />';
echo formatTimes($date,IntlDateFormatter::SHORT,IntlDateFormatter::NONE).'<br />';
}
echo '</td>';
if ($valid == 1)
Expand Down
12 changes: 5 additions & 7 deletions npds_agenda/ag_fonc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2023 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down Expand Up @@ -440,7 +440,7 @@ function suj() {
//fin theme html partie 1/2
//Si membre appartient au bon groupe
if(autorisation($gro)) {
$ajeven = '
$ajeven = '
<li class="nav-item">
<a class="nav-link" href="modules.php?ModPath='.$ModPath.'&amp;ModStart=administration">'.ag_translate('Vos ajouts').'</a>
</li>
Expand All @@ -450,7 +450,6 @@ function suj() {
}

$accesuj = '
<li class="nav-item ms-3">
<select class="form-select" onchange="window.location=(\''.$ThisRedo.'&subop=listsuj&sujet='.$stopicid.'\'+this.options[this.selectedIndex].value)">
<option>'.ag_translate('Accès catégorie(s)').'</option>';

Expand All @@ -463,8 +462,7 @@ function suj() {
}
$rech = $bouton == '1' ? ag_translate('Par ville') : ag_translate('Par').' '.$bouton;
$accesuj .= '
</select>
</li>';
</select>';

$vuannu ='<li class="nav-item">
<a class="nav-link" href="modules.php?ModPath='.$ModPath.'&amp;ModStart=annee&amp;an='.date("Y").'">'.ag_translate('Vue annuelle').'</a>
Expand Down
6 changes: 3 additions & 3 deletions npds_agenda/agenda_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2022 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down
6 changes: 3 additions & 3 deletions npds_agenda/annee.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2023 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down
11 changes: 5 additions & 6 deletions npds_agenda/bloc/agbloc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2022 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down Expand Up @@ -40,12 +40,11 @@
$content .= calend($Ban_actuel,$Bmois_actuel,1);

// Si membre appartient au bon groupe
if(autorisation($gro)) {
if(autorisation($gro))
$content .= '
<p>
<a class="btn btn-block btn-outline-primary btn-sm" href="modules.php?ModPath='.$ModPath.'&amp;ModStart=agenda_add"><i class="fa fa-plus" aria-hidden="true"></i> '.ag_translate('Proposer événement').'</a>
</p>';
}
$content .= '
<table class="table table-borderless table-sm">
<tr>
Expand All @@ -60,6 +59,6 @@
if(autorisation(-127))
$content .= '
<div class="mt-2 text-end">
<a href="admin.php?op=Extend-Admin-SubModule&amp;ModPath=npds_agenda&amp;ModStart=admin/adm" title="Admin" data-bs-toggle="tooltip"><i id="cogs" class="fa fa-cogs fa-lg"></i></a>
<a href="admin.php?op=Extend-Admin-SubModule&amp;ModPath=npds_agenda&amp;ModStart=admin/adm" title="Admin" data-bs-toggle="tooltip" data-bs-placement="left"><i id="cogs" class="fa fa-cogs fa-lg"></i></a>
</div> ';
?>
6 changes: 3 additions & 3 deletions npds_agenda/calendrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
/************************************************************************/
/* DUNE by NPDS */
/* */
/* NPDS Copyright (c) 2002-2023 by Philippe Brunier */
/* NPDS Copyright (c) 2002-2024 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. */
/* the Free Software Foundation; either version 3 of the License. */
/* */
/* Module npds_agenda 2.0 */
/* Module npds_agenda 3.0 */
/* */
/* Auteur Oim */
/* Changement de nom du module version Rev16 par jpb/phr janv 2017 */
Expand Down
6 changes: 3 additions & 3 deletions npds_agenda/install/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
##
## DUNE by NPDS
##
## NPDS Copyright (c) 2002-2022 by Philippe Brunier
## NPDS Copyright (c) 2002-2024 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.
## the Free Software Foundation; either version 3 of the License.
##
## Module npds_agenda 2.0
## Module npds_agenda 3.0
##
## Auteur Oim
## Changement de nom du module version Rev16 par jpb/phr janv 2017
Expand Down
Loading

0 comments on commit 968faf5

Please sign in to comment.