'Design' seems to be finished, even if it's not as beautiful as it should be 💖

pre-master
Roxane ROSSETTO 1 year ago
parent b7cf3824aa
commit 738470bdc7

@ -38,6 +38,6 @@ class AdminModel
unset($_SESSION['role']); unset($_SESSION['role']);
$_SESSION['pseudo'] = ""; $_SESSION['pseudo'] = "";
unset($_SESSION['pseudo']); unset($_SESSION['pseudo']);
header("Location: /~mapoint2/SAE/Php_RSS/fluxRSS/admin"); header("Location: /~rorossetto/Php_RSS/fluxRSS/admin");
} }
} }

@ -2,10 +2,6 @@
.myBody{ .myBody{
background-color: rgba(255,187,248,0.50); background-color: rgba(255,187,248,0.50);
} }
.centreCa{
display: flex;
justify-content: center;
}
.imgArticle{ .imgArticle{
width: 15em; width: 15em;
margin: 1em; margin: 1em;
@ -17,10 +13,12 @@
font-size: xxx-large; font-size: xxx-large;
} }
.caseInfo{ .caseInfo{
margin: 1em;
padding: 1em;
background-color: rgba(255,185,251,0.61); background-color: rgba(255,185,251,0.61);
} }
.dnconnect{ .dnconnect{
padding: 2em; padding: 1em;
display: flex; display: flex;
justify-content: right; justify-content: right;
} }

@ -6,7 +6,6 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<title>Erreur</title> <title>Erreur</title>
</head> </head>
<body> <body>
<h1>ERREUR page !!!!!</h1> <h1>ERREUR page !!!!!</h1>
{% if dVueEreur is defined %} {% if dVueEreur is defined %}

@ -8,13 +8,13 @@
<link rel="stylesheet" href="/~rorossetto/Php_RSS/fluxRSS/templates/CSS/myStyle.css" > <link rel="stylesheet" href="/~rorossetto/Php_RSS/fluxRSS/templates/CSS/myStyle.css" >
<title>All Articles</title> <title>All Articles</title>
</head> </head>
<body class="myBody"> <body class="myBody margOp">
<div> <div>
{% if not isAdmin %} {% if not isAdmin %}
<a href="/~rorossetto/Php_RSS/fluxRSS/admin/connection" class="btn dnconnect" >Connect</a> <a href="/~rorossetto/Php_RSS/fluxRSS/admin/connection" class="btn dnconnect" >Connect</a>
{% else %} {% else %}
<a href="/~rorossetto/Php_RSS/fluxRSS/user/deconnection" class="modal-content">Déconnection</a> <a href="/~rorossetto/Php_RSS/fluxRSS/user/deconnection" class="btn dnconnect">Déconnection</a>
{% endif %} {% endif %}
<div> <div>
<h1 class="d-flex justify-content-center entete">Actualités</h1> <h1 class="d-flex justify-content-center entete">Actualités</h1>

@ -3,18 +3,25 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- CSS -->
<link rel="stylesheet" href="/~rorossetto/Php_RSS/fluxRSS/templates/CSS/myStyle.css" >
<title>All Articles</title> <title>All Articles</title>
</head> </head>
<body> <body class="myBody margOp">
<form method="POST" action="changeNbArticle"> <a class="btn dnconnect" href="/~rorossetto/Php_RSS/fluxRSS/admin/deconnection">Déconnection</a>
<a class="btn" href="/~rorossetto/Php_RSS/fluxRSS/admin/listFlux">Vue flux</a>
<div class="margOp">
<h1 class="d-flex justify-content-center entete">Vue des articles</h1>
</div>
<form class="margOp" method="POST" action="changeNbArticle">
<input name="nbArticle" type="number" min="0"> <input name="nbArticle" type="number" min="0">
<button type="submit">Change number of articles</button> <button type="submit">Change number of articles</button>
</form> </form>
{% for article in dVue.data %} {% for article in dVue.data %}
<p> <p class="caseInfo">
{{article.dateStr()}} {{article.dateStr()}}<br>
<img src="{{ article.getMediaContent }}"/> <img class="imgArticle" src="{{ article.getMediaContent }}"/><br>
<a href="{{ article.getLink() }}" target="_blank">{{ article.getTitle() }}</a> <a class="modal-content enTitre" href="{{ article.getLink() }}"target="_blank">{{ article.getTitle() }}</a>
{{ article.getDescription() }} {{ article.getDescription() }}
</p> </p>
{% endfor %} {% endfor %}
@ -24,7 +31,5 @@
location.reload(); location.reload();
}, 50000); }, 50000);
</script> </script>
<a href="/~mapoint2/SAE/Php_RSS/fluxRSS/admin/listFlux">Vue flux</a>
<a href="/~mapoint2/SAE/Php_RSS/fluxRSS/admin/deconnection">Déconnection</a>
</body> </body>
</html> </html>

@ -3,15 +3,21 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- CSS -->
<link rel="stylesheet" href="/~rorossetto/Php_RSS/fluxRSS/templates/CSS/myStyle.css" >
<title>All Flux</title> <title>All Flux</title>
</head> </head>
<body> <body class="myBody margOp">
<a class="btn" href="/~rorossetto/Php_RSS/fluxRSS/admin/">Vue article</a>
<div class="margOp">
<h1 class="d-flex justify-content-center entete">Liste flux</h1>
</div>
{% for value in dVue.data %} {% for value in dVue.data %}
<div> <div class="margOp enTitre caseInfo">
{{ value.getFlux() }} {{ value.getFlux() }}
<form method="post" action="deleteFlux"> <form method="post" action="deleteFlux">
<input type="hidden" name="flux" value="{{ value.getId() }}"> <input type="hidden" name="flux" value="{{ value.getId() }}">
<button type="submit">Delete Flux</button> <button class="margOp" type="submit">Delete Flux</button>
</form> </form>
</div> </div>
{% endfor %} {% endfor %}
@ -19,6 +25,5 @@
<input name="fluxAdd" type="text"> <input name="fluxAdd" type="text">
<button type="submit">Ajouter Flux</button> <button type="submit">Ajouter Flux</button>
</form> </form>
<a href="/~mapoint2/SAE/Php_RSS/fluxRSS/admin/">Vue article</a>
</body> </body>
</html> </html>
Loading…
Cancel
Save