Gestion de la modification des actualités, mise à jour de la bdd
This commit is contained in:
parent
ff9de38dff
commit
536c31908b
7 changed files with 376 additions and 64 deletions
|
|
@ -240,5 +240,64 @@ function updateEventImage($bdd, $eventId, $newFileName){
|
|||
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
||||
function getSpecificActus($bdd, $id)
|
||||
{
|
||||
$results = mysqli_query($bdd, "SELECT * FROM `actus` WHERE `id`=" . $id);
|
||||
$return = [];
|
||||
|
||||
while ($row = mysqli_fetch_assoc($results)) {
|
||||
$return[] = $row;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
function updateActuImage($bdd, $actuId, $newFileName){
|
||||
$stmt = mysqli_prepare(
|
||||
$bdd,
|
||||
"UPDATE actus SET image = ? WHERE id = ?"
|
||||
);
|
||||
|
||||
mysqli_stmt_bind_param($stmt, "si", $newFileName, $actuId);
|
||||
mysqli_stmt_execute($stmt);
|
||||
|
||||
$success = mysqli_stmt_affected_rows($stmt) >= 0;
|
||||
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
||||
function updateActuTitle($bdd, $actuId, $titre){
|
||||
$stmt = mysqli_prepare(
|
||||
$bdd,
|
||||
"UPDATE actus SET titre = ? WHERE id = ?"
|
||||
);
|
||||
|
||||
mysqli_stmt_bind_param($stmt, "si", $titre, $actuId);
|
||||
mysqli_stmt_execute($stmt);
|
||||
|
||||
$success = mysqli_stmt_affected_rows($stmt) >= 0;
|
||||
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
||||
function updateActuContent($bdd, $actuId, $content){
|
||||
$stmt = mysqli_prepare(
|
||||
$bdd,
|
||||
"UPDATE actus SET actu = ? WHERE id = ?"
|
||||
);
|
||||
|
||||
mysqli_stmt_bind_param($stmt, "si", $content, $actuId);
|
||||
mysqli_stmt_execute($stmt);
|
||||
|
||||
$success = mysqli_stmt_affected_rows($stmt) >= 0;
|
||||
|
||||
mysqli_stmt_close($stmt);
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ if (!verifyPoids($bdd, $_SESSION['username'], $minPoids)) {
|
|||
header('location: ../index.php');
|
||||
}
|
||||
|
||||
$uploadDir = "../uploads/";
|
||||
$uploadDir = "../Photos/INTRANET/";
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -49,7 +49,7 @@ $uploadDir = "../uploads/";
|
|||
<a href="#" class="nav-link">Évènements</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="./modifyEvent.php" class="nav-link">Actualités</a>
|
||||
<a href="modifyActuality.php" class="nav-link">Actualités</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link disabled">Administration</a>
|
||||
|
|
|
|||
75
admin/modifyActuality.php
Normal file
75
admin/modifyActuality.php
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
<?php
|
||||
include("../Assets/functions.php");
|
||||
$config = json_decode(file_get_contents("../Assets/config.json"), true);
|
||||
$bdd = connectBDD("localhost", $config["BDD_USER"], $config["BDD_PASSWD"], $config["BDD_NAME"]);
|
||||
$page = 'photos';
|
||||
|
||||
/* Gestion de la connexion */
|
||||
session_start();
|
||||
if (!isset($_SESSION['connected']) || $_SESSION['connected'] == false) {
|
||||
header('location: login.php?redirect_to=./admin/');
|
||||
}
|
||||
|
||||
$actualites = getActus($bdd);
|
||||
|
||||
/* Récupération des infos */
|
||||
$permissions = $_SESSION['permission'];
|
||||
|
||||
/* Gestion de l'accès à la page */
|
||||
$minPoids = 50;
|
||||
if (!verifyPoids($bdd, $_SESSION['username'], $minPoids)) {
|
||||
header('location: ./index.php');
|
||||
}
|
||||
|
||||
$uploadDir = "../Photos/INTRANET/actus/";
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Gestion Intranet</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../styles-scripts/index.admin.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Gestion de l'intranet</h1>
|
||||
<!-- navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item">
|
||||
<a href="index.php" class="nav-link">Évènements</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">Actualités</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link disabled">Administration</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<h3>Gestion des actualités</h3>
|
||||
<p>Sur cette page, vous pouvez ajouter, supprimer et modifier des actualités.</p>
|
||||
|
||||
<div class="grid-container">
|
||||
<?php foreach ($actualites as $actualite): ?>
|
||||
<div class="card" onclick="window.location.href='./modifySpecificActuality.php?id=<?= $actualite['id'] ?>'">
|
||||
<h4><?= $actualite['titre'] ?></h4>
|
||||
<img src="<?= $uploadDir . $actualite['image'] ?>" alt="Image de l'actualité">
|
||||
Modifier
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -23,7 +23,7 @@ if (!$eventId) {
|
|||
die("ID évènement manquant.");
|
||||
}
|
||||
|
||||
$uploadDir = "../Photos/gallerie/";
|
||||
$uploadDir = "../Photos/INTRANET/gallerie/";
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
|
|
@ -96,78 +96,54 @@ while ($row = mysqli_fetch_assoc($result)) {
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<title>Galerie évènement</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.gallery-img {
|
||||
height: 180px;
|
||||
object-fit: cover;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="container py-4">
|
||||
|
||||
<h1>Gestion de l'intranet</h1>
|
||||
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-4">
|
||||
|
||||
<div class="collapse navbar-collapse">
|
||||
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="./index.php" class="nav-link">Évènements</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">Actualités</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link disabled">Administration</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs mb-4">
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link"
|
||||
href="modifyEvent.php?id=<?= $eventId ?>">
|
||||
Général
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active">
|
||||
Galerie
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div class="card p-4 mb-4">
|
||||
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
|
||||
<label class="form-label">Ajouter des images</label>
|
||||
|
||||
<input type="file"
|
||||
name="images[]"
|
||||
class="form-control mb-3"
|
||||
|
|
@ -177,47 +153,29 @@ while ($row = mysqli_fetch_assoc($result)) {
|
|||
<button class="btn btn-primary">
|
||||
Uploader
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php foreach ($images as $img): ?>
|
||||
|
||||
<div class="col-md-3 mb-4">
|
||||
|
||||
<div class="card">
|
||||
|
||||
<img src="../Photos/gallerie/<?= htmlspecialchars($img['chemin']) ?>"
|
||||
<img src="../Photos/INTRANET/gallerie/<?= htmlspecialchars($img['chemin']) ?>"
|
||||
class="card-img-top gallery-img">
|
||||
|
||||
<div class="card-body text-center">
|
||||
|
||||
<a href="?id=<?= $eventId ?>&delete=<?= urlencode($img['chemin']) ?>"
|
||||
class="btn btn-danger btn-sm"
|
||||
onclick="return confirm('Supprimer cette image ?')">
|
||||
|
||||
Supprimer
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
189
admin/modifySpecificActuality.php
Normal file
189
admin/modifySpecificActuality.php
Normal file
|
|
@ -0,0 +1,189 @@
|
|||
<?php
|
||||
include("../Assets/functions.php");
|
||||
|
||||
$config = json_decode(file_get_contents("../Assets/config.json"), true);
|
||||
$bdd = connectBDD("localhost", $config["BDD_USER"], $config["BDD_PASSWD"], $config["BDD_NAME"]);
|
||||
$page = 'photos';
|
||||
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['connected']) || $_SESSION['connected'] == false) {
|
||||
header('location: login.php?redirect_to=./admin/');
|
||||
exit;
|
||||
}
|
||||
|
||||
$minPoids = 50;
|
||||
if (!verifyPoids($bdd, $_SESSION['username'], $minPoids)) {
|
||||
header('location: ../index.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$actuId = $_GET['id'] ?? null;
|
||||
if (!$actuId) {
|
||||
die("ID évènement manquant.");
|
||||
}
|
||||
$actu = getSpecificActus($bdd, $actuId);
|
||||
|
||||
$titre = $actu[0]['titre'] ?? '';
|
||||
$image = $actu[0]['image'] ?? '';
|
||||
$contenu = $actu[0]['actu'];
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (!empty($_POST['title'])) {
|
||||
updateActuTitle($bdd, $actuId, $_POST['title']);
|
||||
}
|
||||
|
||||
if(!empty($_POST['content'])){
|
||||
updateActuContent($bdd, $actuId, $_POST['content']);
|
||||
}
|
||||
|
||||
if (!empty($_FILES['image']['name'])) {
|
||||
$uploadDir = "../Photos/INTRANET/actus/";
|
||||
$fileTmpPath = $_FILES["image"]["tmp_name"];
|
||||
$fileSize = $_FILES["image"]["size"];
|
||||
|
||||
/* Vérification MIME réelle */
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mime = finfo_file($finfo, $fileTmpPath);
|
||||
finfo_close($finfo);
|
||||
|
||||
$allowedTypes = ['image/jpeg', 'image/png', 'image/gif'];
|
||||
|
||||
if (in_array($mime, $allowedTypes) && $fileSize <= 5 * 1024 * 1024) {
|
||||
|
||||
$extension = pathinfo($_FILES["image"]["name"], PATHINFO_EXTENSION);
|
||||
$newFileName = "actu_" . $actuId . "_" . time() . "." . $extension;
|
||||
$destination = $uploadDir . $newFileName;
|
||||
|
||||
if (move_uploaded_file($fileTmpPath, $destination)) {
|
||||
if (!empty($image) && file_exists($uploadDir . $image)) {
|
||||
unlink($uploadDir . $image);
|
||||
}
|
||||
updateActuImage($bdd, $actuId, $newFileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
header("Location: ?id=" . $actuId);
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Gestion Intranet</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
.preview-box {
|
||||
height: 220px;
|
||||
border: 2px dashed #ddd;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.preview-box img {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="container py-4">
|
||||
|
||||
<h1>Gestion de l'intranet</h1>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-4">
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item">
|
||||
<a href="./index.php" class="nav-link">Évènements</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">Actualités</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link disabled">Administration</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="card p-4">
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Titre de l'actualité</label>
|
||||
<input type="text"
|
||||
name="title"
|
||||
class="form-control"
|
||||
value="<?= htmlspecialchars($titre) ?>">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form_label">Nouveau contenu de l'actualité</label>
|
||||
<textarea name="content" id="content"><?= $contenu ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Image actuelle</label><br>
|
||||
<?php if (!empty($image)) : ?>
|
||||
<img src="../Photos/INTRANET/actus/<?= htmlspecialchars($image) ?>"
|
||||
style="max-width:300px; margin-bottom:15px;">
|
||||
<?php else : ?>
|
||||
<p class="text-muted">Aucune image définie</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Nouvelle image de l'actu</label>
|
||||
|
||||
<div id="preview" class="preview-box mb-2">
|
||||
<span class="text-muted">Aucune image sélectionnée</span>
|
||||
</div>
|
||||
|
||||
<input type="file"
|
||||
name="image"
|
||||
id="image"
|
||||
class="form-control"
|
||||
accept="image/*">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Enregistrer les modifications
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const input = document.getElementById('image');
|
||||
const preview = document.getElementById('preview');
|
||||
|
||||
input.addEventListener('change', function() {
|
||||
const file = this.files[0];
|
||||
|
||||
if (file) {
|
||||
const reader = new FileReader();
|
||||
|
||||
reader.onload = function(e) {
|
||||
preview.innerHTML =
|
||||
`<img src="${e.target.result}" alt="Preview">`;
|
||||
};
|
||||
|
||||
reader.readAsDataURL(file);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -3,6 +3,7 @@ include("./Assets/functions.php");
|
|||
$config = json_decode(file_get_contents("./Assets/config.json"), true);
|
||||
$bdd = connectBDD("localhost", $config["BDD_USER"], $config["BDD_PASSWD"], $config["BDD_NAME"]);
|
||||
$page = "Accueil";
|
||||
$prefixe = $config["LOCAL_IMG_PREFIXE"]."actus/";
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
|
|
@ -25,7 +26,7 @@ $page = "Accueil";
|
|||
<h2><?= htmlspecialchars($actu["titre"]) ?></h2>
|
||||
|
||||
<div class="carouselContent">
|
||||
<img src="<?= htmlspecialchars($actu["image"]) ?>" alt="image de couverture">
|
||||
<img src="<?= htmlspecialchars($prefixe.$actu["image"]) ?>" alt="image de couverture">
|
||||
<p><?= nl2br(htmlspecialchars($actu["actu"])) ?></p>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ CREATE TABLE IF NOT EXISTS `evenements` (
|
|||
|
||||
-- Listage des données de la table intranet.evenements : ~9 rows (environ)
|
||||
INSERT INTO `evenements` (`id`, `date`, `titre`, `couverture`, `site_id`) VALUES
|
||||
(1, '2026-02-24', 'Évènement 1 : bla', 'https://cdn.pixabay.com/photo/2016/11/21/06/53/beautiful-natural-image-1844362_1280.jpg', 1),
|
||||
(2, '2026-02-24', 'Évènement 2 : lorem', 'https://static.vecteezy.com/system/resources/thumbnails/057/068/323/small/single-fresh-red-strawberry-on-table-green-background-food-fruit-sweet-macro-juicy-plant-image-photo.jpg', 1),
|
||||
(3, '2026-02-24', 'ipsum', 'https://blog.digitalcook.fr/wp-content/uploads/2021/09/Digital-image-processing.jpg', 1),
|
||||
(4, '2026-02-24', 'vrfrpvof', 'https://images.ctfassets.net/hrltx12pl8hq/3nkTxmxi2NfpMEZ4IWSJaG/0198fe49a115f5d9b914ce7a806a09cc/0_hero__5_.webp?fit=fill&w=600&h=400', 1),
|
||||
(1, '2026-02-24', '50 ans des papillons blancs', 'event_1_1772616599.JPG', 1),
|
||||
(2, '2026-02-24', 'Accueil des nouveaux salariés', 'event_2_1772616804.JPG', 1),
|
||||
(3, '2026-02-24', 'AG 2014 La longueville', 'event_3_1772619824.JPG', 1),
|
||||
(4, '2026-02-24', 'Fête associative 2018', 'event_4_1772620173.jpg', 1),
|
||||
(5, '2026-02-24', 'ptkhpkth', 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Image_created_with_a_mobile_phone.png', 1),
|
||||
(6, '2026-02-24', 'miaou', 'https://static.vecteezy.com/ti/photos-gratuite/t2/36324708-ai-genere-image-de-une-tigre-en-marchant-dans-le-foret-photo.jpg', 2),
|
||||
(7, '2026-02-24', 'wow', 'https://static.nationalgeographic.fr/files/styles/image_3200/public/01-solar-system-pia12114_orig.webp?w=1190&h=896', 2),
|
||||
|
|
@ -65,20 +65,50 @@ CREATE TABLE IF NOT EXISTS `gallerie` (
|
|||
CONSTRAINT `FK_gallerie_evenements` FOREIGN KEY (`event_id`) REFERENCES `evenements` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
|
||||
|
||||
-- Listage des données de la table intranet.gallerie : ~12 rows (environ)
|
||||
-- Listage des données de la table intranet.gallerie : ~41 rows (environ)
|
||||
INSERT INTO `gallerie` (`event_id`, `chemin`, `texte`) VALUES
|
||||
(3, 'https://www.bigfootdigital.co.uk/wp-content/uploads/2020/07/image-optimisation-scaled.jpg', NULL),
|
||||
(3, 'https://png.pngtree.com/thumb_back/fh260/background/20240522/pngtree-abstract-cloudy-background-beautiful-natural-streaks-of-sky-and-clouds-red-image_15684333.jpg', NULL),
|
||||
(1, 'https://images.pexels.com/photos/1090745/pexels-photo-1090745.jpeg?cs=srgb&dl=pexels-elias-tigiser-411757-1090745.jpg&fm=jpg', NULL),
|
||||
(1, 'https://cdn.pixabay.com/photo/2019/11/06/05/15/bridge-4605202_1280.jpg', NULL),
|
||||
(1, 'https://images.pexels.com/photos/955658/pexels-photo-955658.jpeg?cs=srgb&dl=pexels-torsten-kellermann-349167-955658.jpg&fm=jpg', NULL),
|
||||
(1, 'https://hips.hearstapps.com/hmg-prod/images/winding-farm-road-through-foggy-landscape-royalty-free-image-1693423663.jpg?crop=1xw:0.84355xh;center,top', NULL),
|
||||
(1, 'https://upload.wikimedia.org/wikipedia/commons/7/7d/Morning%2C_just_after_sunrise%2C_Namibia.jpg', NULL),
|
||||
(1, 'https://media.istockphoto.com/id/467367026/fr/photo/ciel-parfait-et-loc%C3%A9an.jpg?s=612x612&w=0&k=20&c=3UFkx01SwfrzT2-PKEK8W0xcKGKUgzEWeZkBMgvcTuQ=', NULL),
|
||||
(1, 'https://images.ctfassets.net/hrltx12pl8hq/28ECAQiPJZ78hxatLTa7Ts/2f695d869736ae3b0de3e56ceaca3958/free-nature-images.jpg?fit=fill&w=1200&h=630', NULL),
|
||||
(3, 'https://lh5.googleusercontent.com/proxy/uBqPxn6KlUBKLda64jI_WVuPH9NBM5YKeVYdDUnnxM76T5vC8epKVjrOH8NUtp2PY7bgLbjrO38ZrNA1G_TIs255ksjq7w', NULL),
|
||||
(3, 'https://www.guillenphoto.com/data/blog/2020/032-chronique-pourquoi-comment-bonne-photo-I/images/route-vers-monument-valley-en-arizona-amar-guillen-artiste-photographe.jpg', NULL),
|
||||
(3, 'https://www.expemag.com/media/show/67d43e343f78e626b1efb6cd.jpg', NULL);
|
||||
(4, 'gallery_4_1772628170_0.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_1.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_2.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_3.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_4.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_5.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_6.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_7.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_8.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_9.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_10.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_11.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_12.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_13.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_14.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_15.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_16.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_17.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_18.JPG', ''),
|
||||
(4, 'gallery_4_1772628170_19.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_0.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_1.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_2.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_3.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_4.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_5.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_6.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_7.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_8.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_9.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_10.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_11.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_12.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_13.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_14.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_15.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_16.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_17.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_18.JPG', ''),
|
||||
(1, 'gallery_1_1772629484_19.JPG', ''),
|
||||
(1, 'gallery_1_1772629707_0.JPG', ''),
|
||||
(3, 'gallery_3_1772632151_0.JPG', '');
|
||||
|
||||
-- Listage de la structure de table intranet. permissions
|
||||
CREATE TABLE IF NOT EXISTS `permissions` (
|
||||
|
|
|
|||
Loading…
Reference in a new issue