5 Commits

Author SHA1 Message Date
pierre renaudot
db1c54c442 Merge branch 'main' of https://gitea.lyc-lecastel.fr/pierre.renaudot/AP44 2024-01-18 10:27:19 +01:00
pierre renaudot
0859a68948 r 2024-01-18 10:27:01 +01:00
77d482c5dc Merge branch 'main' of https://gitea.lyc-lecastel.fr/pierre.renaudot/AP44 2024-01-18 10:24:13 +01:00
1a78fb2726 bug 2024-01-18 10:23:49 +01:00
pierre renaudot
865134080e reglage bug 2024-01-18 10:20:48 +01:00
7 changed files with 13 additions and 25 deletions

View File

@@ -17,8 +17,6 @@ class PdoGsb
public function __construct()
{
PdoGsb::$pdo = new PDO(PdoGsb::$serveur . ';' . PdoGsb::$bdd, PdoGsb::$user, PdoGsb::$mdp);
//PdoGsb::$monPdo->query("SET CHARACTER SET utf8");SET client_encoding = 'UTF8';
}
public function _destruct()
{

View File

@@ -1,12 +1,11 @@
<?php
$_SESSION["typeU"] = "comptable";
require_once(__DIR__ . '/../Class/class.gestionFiche.php');
$gestionFiche = new Class_gestionFiche($pdo);
$LesUtilisateurs = $gestionFiche->getLesUtilisateurs(); //RENVOIE LISTE USERS
if ($_SESSION["typeU"] == "comptable") {
if ($_SESSION["uType"] == "comptable") {
if (isset($_REQUEST['selVisiteur'])) {
$userId = $_REQUEST['selVisiteur'];
} else {
@@ -14,7 +13,7 @@ if ($_SESSION["typeU"] == "comptable") {
}
} else {
$userId = $_SESSION['uId'];
}
}
//Pagination
if(isset($_GET['page']) && !empty($_GET['page'])){

View File

@@ -1,6 +1,8 @@
<?php
/**
* sudo date --set "YYYY-MM-DD HH:MM:SS"
* sudo apt install php8.2-intl
* sudo service apache2 restart
*/
require_once(__DIR__ . '/../Class/class.newFiche.php');
@@ -24,7 +26,7 @@ if (isset($_GET['currentList'])) {
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m'), 1, date('Y'))); // retourne le dernier jour du mois (30 ou 31)
} elseif (isset($_GET['dateListing'])) {
//Données pour nourire la vue
//Données pour nourir la vue
$userId = $_REQUEST['userId'];
$date = $_REQUEST['dateListing'];
@@ -36,11 +38,10 @@ if (isset($_GET['currentList'])) {
$dateFormHFMax = date("Y-m-t", mktime(0, 0, 0, date('m', $dateTimeStamp), 1, date('Y', $dateTimeStamp))); // retourne le dernier jour du mois (30 ou 31)
}
//Date du header en français
try {
//sudo timedatectl set-local-rtc 1
//sudo apt install php8.2-intl
//sudo service apache2 restart
$format = new IntlDateFormatter(
'fr_FR',
IntlDateFormatter::FULL,

View File

@@ -12,13 +12,13 @@
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="dropdownUser1">
<li><a class="dropdown-item" href="controleurs/c_deconnexion.php">Sign out</a></li>
<li><a class="dropdown-item" href="controleurs/c_deconnexion.php">Déconnexion</a></li>
</ul>
</div>
<ul class="nav nav-pills flex-column mb-sm-auto mb-0 align-items-center align-items-sm-start" id="menu">
<li class="nav-item">
<a href="index.php" class="nav-link align-middle px-0">
<i class="fs-4 bi-house"></i> <span class="ms-1 d-none d-sm-inline">Home</span>
<i class="fs-4 bi-house"></i> <span class="ms-1 d-none d-sm-inline">Accueil</span>
</a>
</li>
<!--

View File

@@ -197,9 +197,9 @@ function calcPrixTotalFrsHorsF() {
console.log($('td#MttFrsHF').length)
if ($('td#MttFrsHF').length == 0) {
vf
}
// if ($('td#MttFrsHF').length == 0) {
// vf
// }
var prixTotal = 0;
$('td#MttFrsHF').each(function () {

View File

@@ -1,10 +0,0 @@
<div class ="erreur">
<ul>
<?php
foreach($_REQUEST['erreurs'] as $erreur)
{
echo "<li>$erreur</li>";
}
?>
</ul>
</div>

View File

@@ -67,4 +67,4 @@
</div>
<?php
};
?>
?>