You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
13 KiB
124 lines
13 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Énigme Solo</title>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
|
|
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
|
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script
|
|
src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
|
|
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<link rel="stylesheet" href="./View/src/CSS/Admin.css" />
|
|
<script src="./View/src/JS/Admin.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="d-flex">
|
|
<!-- Menu -->
|
|
<div class="col-3 user-select-none" style=" border-right: 1px solid #323232; height: 100vh; margin: 0; width: 18%;">
|
|
<nav class="navbar justify-content-center">
|
|
<!-- Title -->
|
|
<div class="row px-3 pt-4 pb-5 m-0 text-center" style="width: fit-content">
|
|
<a style="font-family: Equinox; font-size: 1.5em; font-weight: bold;" href="index.php?action=goToHome">Scripted</a>
|
|
</div>
|
|
<!-- End Title -->
|
|
|
|
<ul class="nav flex-column">
|
|
<!-- ANCHOR Global Link -->
|
|
<li class="nav-item d-flex align-items-center px-1 py-2 mb-3">
|
|
<a class="nav-link d-flex align-items-center nav-button" href="index.php?action=goToAdmin" onclick="changeCurrent(this)">
|
|
<svg class="mr-2" width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <path d="M17.79 22.75H6.21C3.47 22.75 1.25 20.52 1.25 17.78V10.37C1.25 9.01 2.09 7.3 3.17 6.46L8.56 2.26C10.18 1 12.77 0.940005 14.45 2.12L20.63 6.45C21.82 7.28 22.75 9.06 22.75 10.51V17.79C22.75 20.52 20.53 22.75 17.79 22.75ZM9.48 3.44L4.09 7.64C3.38 8.2 2.75 9.47 2.75 10.37V17.78C2.75 19.69 4.3 21.25 6.21 21.25H17.79C19.7 21.25 21.25 19.7 21.25 17.79V10.51C21.25 9.55001 20.56 8.22 19.77 7.68L13.59 3.35C12.45 2.55 10.57 2.59 9.48 3.44Z" fill="currentColor" ></path> <path d="M12 18.75C11.59 18.75 11.25 18.41 11.25 18V15C11.25 14.59 11.59 14.25 12 14.25C12.41 14.25 12.75 14.59 12.75 15V18C12.75 18.41 12.41 18.75 12 18.75Z" fill="currentColor" ></path></g></svg>
|
|
Global
|
|
</a>
|
|
</li>
|
|
<!-- End Overview Link -->
|
|
|
|
<!-- ANCHOR Enigme Solo Link -->
|
|
<li class="nav-item current d-flex align-items-center px-1 py-2 mb-3">
|
|
<a class="nav-link d-flex align-items-center currentText" onclick="changeCurrent(this)">
|
|
<svg class="mr-2" fill="currentColor" height="20px" width="20px" version="1.1" id="XMLID_241_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g id="code"> <g> <path d="M9.9,22.3L8,21.7l6-20l1.9,0.6L9.9,22.3z M17.6,18.7l-1.5-1.4L21,12l-4.9-5.3l1.5-1.4l6.2,6.7L17.6,18.7z M6.2,18.7 L0.1,12l6.1-6.7l1.5,1.4L2.8,12l4.9,5.3L6.2,18.7z" ></path> </g> </g></g></svg>
|
|
Énigmes Solo
|
|
</a>
|
|
</li>
|
|
<!-- End Enigme Solo Link -->
|
|
|
|
<!-- ANCHOR Enigme Multi Link -->
|
|
<li class="nav-item d-flex align-items-center px-1 py-2 mb-3">
|
|
<a class="nav-link d-flex align-items-center nav-button" href="index.php?action=goToAdminMulti" onclick="changeCurrent(this)">
|
|
<svg class="mr-2" fill="currentColor" height="20px" width="20px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 468.493 468.493" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M138.321,161.831h-17.437v-17.437c0-3.615-2.287-6.835-5.701-8.026c-5.319-1.855-10.904-2.796-16.6-2.796 c-5.696,0-11.281,0.941-16.6,2.796c-3.414,1.191-5.701,4.411-5.701,8.026v17.437H58.847c-3.615,0-6.834,2.287-8.025,5.7 c-1.856,5.318-2.797,10.904-2.797,16.601s0.941,11.283,2.797,16.601c1.191,3.413,4.411,5.699,8.025,5.699h17.437v17.437 c0,3.615,2.287,6.834,5.7,8.025c5.318,1.856,10.904,2.797,16.601,2.797c5.697,0,11.283-0.941,16.601-2.797 c3.413-1.191,5.7-4.41,5.7-8.025v-17.437h17.437c3.615,0,6.835-2.287,8.026-5.7c1.855-5.318,2.796-10.903,2.796-16.6 c0-5.696-0.941-11.281-2.796-16.6C145.156,164.118,141.937,161.831,138.321,161.831z M131.729,189.432h-19.344 c-4.694,0-8.5,3.806-8.5,8.5v19.344c-3.481,0.553-7.12,0.552-10.601,0v-19.344c0-4.694-3.806-8.5-8.5-8.5H65.44 c-0.276-1.741-0.415-3.511-0.415-5.3s0.139-3.56,0.415-5.301h19.344c4.694,0,8.5-3.806,8.5-8.5v-19.343 c3.482-0.553,7.12-0.553,10.601,0v19.343c0,4.694,3.806,8.5,8.5,8.5h19.343c0.276,1.741,0.415,3.511,0.415,5.301 C132.143,185.921,132.004,187.692,131.729,189.432z" ></path> <path d="M254.329,166.478c0.009,0,0.019,0,0.028,0c7.996-0.009,14.459-6.501,14.44-14.497c-0.02-7.987-6.501-14.449-14.497-14.439 c-7.987,0.019-14.459,6.511-14.439,14.497C239.879,160.025,246.351,166.478,254.329,166.478z" ></path> <path d="M413.655,176.853c-15.05-16.238-39.613-18.106-57.137-4.34c-4.789,3.762-10.376,6.982-16.534,9.625 c-6.765-39.084-24.521-74.946-51.786-104.346c-15.049-16.24-39.611-18.11-57.141-4.344c-14.5,11.397-36.2,17.934-59.535,17.934 c-23.341,0-45.044-6.537-59.545-17.935C94.463,59.683,69.9,61.551,54.838,77.791C19.475,115.946,0,165.618,0,217.657 c0,19.499,2.732,38.81,8.122,57.398c3.94,13.584,14.402,24.161,27.984,28.293c4.044,1.23,8.175,1.833,12.271,1.833 c9.678,0,19.154-3.365,26.782-9.76c16.623-13.948,35.986-24.059,56.702-29.731c-4.216,16.521-6.402,33.645-6.402,51.037 c0,19.509,2.731,38.819,8.117,57.393c3.94,13.586,14.402,24.164,27.988,28.295c4.042,1.229,8.17,1.831,12.264,1.831 c9.679,0,19.157-3.367,26.782-9.764c26.931-22.595,61.155-35.038,96.366-35.038s69.435,12.443,96.365,35.038 c10.851,9.104,25.448,12.069,39.046,7.934c13.586-4.132,24.048-14.709,27.988-28.295c5.386-18.573,8.117-37.883,8.117-57.393 C468.493,264.68,449.018,215.006,413.655,176.853z M62.306,280.097c-5.739,4.811-13.167,6.312-20.378,4.117 c-7.197-2.189-12.518-7.559-14.598-14.729C22.466,252.708,20,235.27,20,217.657c0-46.981,17.582-91.825,49.505-126.269 c7.915-8.536,20.861-9.489,30.114-2.217c17.957,14.115,44.165,22.21,71.904,22.21c27.732,0,53.937-8.095,71.89-22.207 c9.265-7.274,22.208-6.321,30.118,2.214c25.198,27.172,41.391,60.45,47.16,96.697c-6.77,1.379-13.891,2.167-21.197,2.315 c0.952-1.937,1.498-4.11,1.49-6.416c-0.02-7.986-6.521-14.449-14.517-14.42c-7.986,0.019-14.439,6.52-14.419,14.516 c0.005,1.344,0.207,2.639,0.554,3.873c-13.69-2.876-25.901-8.161-35.168-15.44c-17.522-13.765-42.085-11.899-57.137,4.34 c-18.159,19.591-32.116,42.226-41.41,66.654C110.767,248.981,84.397,261.56,62.306,280.097z M441.167,368.549 c-2.08,7.173-7.4,12.542-14.599,14.731c-7.209,2.193-14.636,0.692-20.371-4.121c-30.527-25.611-69.316-39.716-109.221-39.716 s-78.693,14.105-109.22,39.716c-5.735,4.812-13.158,6.313-20.373,4.121c-7.197-2.189-12.519-7.558-14.598-14.731 c-4.861-16.763-7.326-34.199-7.326-51.823c0-46.989,17.582-91.835,49.506-126.277c4.349-4.692,10.22-7.09,16.164-7.09 c4.866,0,9.782,1.608,13.949,4.882c17.962,14.11,44.168,22.203,71.897,22.203s53.936-8.093,71.897-22.203 c9.258-7.273,22.203-6.326,30.113,2.208c31.924,34.443,49.506,79.289,49.506,126.277 C448.493,334.351,446.028,351.786,441.167,368.549z" ></path> <path d="M263.776,260.896h-17.437V243.46c0-3.615-2.287-6.835-5.7-8.026c-5.318-1.855-10.903-2.796-16.6-2.796 c-5.696,0-11.281,0.941-16.6,2.796c-3.414,1.191-5.701,4.411-5.701,8.026v17.437h-17.436c-3.615,0-6.834,2.287-8.025,5.7 c-1.856,5.318-2.797,10.904-2.797,16.601s0.941,11.283,2.797,16.601c1.191,3.413,4.41,5.7,8.025,5.7h17.436v17.436 c0,3.615,2.287,6.834,5.7,8.025c5.319,1.856,10.905,2.797,16.601,2.797c5.697,0,11.283-0.941,16.601-2.797 c3.413-1.191,5.699-4.411,5.699-8.025v-17.436h17.437c3.614,0,6.834-2.286,8.025-5.699c1.855-5.317,2.797-10.903,2.797-16.602 s-0.941-11.285-2.797-16.602C270.61,263.182,267.39,260.896,263.776,260.896z M257.183,288.498h-19.344c-4.694,0-8.5,3.806-8.5,8.5 v19.343c-3.481,0.553-7.12,0.552-10.601,0v-19.343c0-4.694-3.806-8.5-8.5-8.5h-19.343c-0.276-1.741-0.415-3.511-0.415-5.301 s0.139-3.56,0.415-5.301h19.343c4.694,0,8.5-3.806,8.5-8.5v-19.343c3.482-0.553,7.12-0.552,10.601,0v19.344 c0,4.694,3.806,8.5,8.5,8.5h19.344c0.276,1.741,0.415,3.511,0.415,5.301S257.459,286.757,257.183,288.498z" ></path> <path d="M411.973,297.569c0.01,0,0.029,0,0.039,0c7.996-0.029,14.449-6.521,14.43-14.517c-0.029-7.986-6.52-14.449-14.516-14.42 c-7.987,0.019-14.449,6.52-14.42,14.507C397.524,291.116,403.996,297.569,411.973,297.569z" ></path> <path d="M347.715,268.758c-7.987,0.01-14.459,6.491-14.448,14.487c0.01,7.986,6.491,14.459,14.487,14.449 c7.987-0.01,14.459-6.491,14.449-14.478C362.192,275.221,355.711,268.749,347.715,268.758z" ></path> <path d="M379.931,300.849c-0.087,0-0.164,0-0.251,0c-7.909,0.096-14.295,6.53-14.295,14.468c0,7.986,6.481,14.468,14.468,14.468 c0.019,0,0.039,0,0.048,0c0.029,0,0.058,0,0.087,0c0.02,0,0.039,0,0.058,0c7.986-0.029,14.439-6.54,14.41-14.526 C394.418,307.263,387.917,300.81,379.931,300.849z" ></path> <path d="M379.786,265.546c0.009,0,0.02,0,0.029,0c7.996-0.019,14.459-6.51,14.439-14.497c-0.019-7.996-6.511-14.459-14.497-14.439 c-7.995,0.019-14.458,6.511-14.439,14.497C365.327,259.084,371.81,265.546,379.786,265.546z" ></path> </g></g></svg>
|
|
Énigmes Multi
|
|
</a>
|
|
</li>
|
|
<!-- End Enigme Multi Link -->
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<!-- End Menu -->
|
|
|
|
<!-- Modify Part -->
|
|
<div class="container-fluid mx-5 d-flex justify-content-between" style="height: 100vh">
|
|
<div class="col m-5 dashboard-card" style="height: auto;">
|
|
|
|
<!-- Title -->
|
|
<div class="row my-4 m-0 d-flex justify-content-center align-items-center">
|
|
<div class="col d-flex justify-content-center">
|
|
<h4>Énigmes Solo</h4>
|
|
</div>
|
|
</div>
|
|
<!-- End Title -->
|
|
|
|
<!-- Legend part -->
|
|
<div class="row px-3 pb-2 mx-0">
|
|
<div class="col-3">
|
|
<h6 class="legend">Ordre</h6>
|
|
</div>
|
|
<div class="col pr-4">
|
|
<h6 class="legend">Nom Énigme</h6>
|
|
</div>
|
|
<div class="col-2 d-flex justify-content-center">
|
|
<a href="index.php?action=goToAddEnigmeSolo" class="send py-1 px-2 d-flex align-items-center">
|
|
<svg class="mr-2" width="20px" height="20px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g stroke="currentColor" stroke-linecap="round" stroke-width="2"> <path d="M12 19V5"></path> <path d="M19 12H5"></path> </g> </g></svg>
|
|
Add
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<!-- End Legend part -->
|
|
|
|
<!-- Pour chaque Enigme dans la BD -->
|
|
<?php
|
|
foreach ($lesEnigmesSolo as $enigmeSolo) {
|
|
echo '<div class="row px-3 pt-4 pb-2 mx-0 d-flex align-items-baseline" style="border-top: 1px solid #323232">';
|
|
echo '<div class="col-3">';
|
|
echo '<h6>' . $enigmeSolo->getOrdre(). '</h6>';
|
|
echo '</div>';
|
|
echo '<div class="col pr-4">';
|
|
echo '<a class="font" href=index.php?action=goToDetailEnigme&id='.$enigmeSolo->getIdEnigme().'>' . $enigmeSolo->getNom() . '</a>';
|
|
echo '</div>';
|
|
echo '<div class="col-2 d-flex justify-content-center">';
|
|
echo '<a href="index.php?action=goToSeeOrdre">';
|
|
echo '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 24 24" id="more-vertical" data-name="Flat Line" xmlns="http://www.w3.org/2000/svg" class="icon flat-line" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"><line id="primary-upstroke" x1="12" y1="5.95" x2="12" y2="6.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-2" data-name="primary-upstroke" x1="12" y1="11.95" x2="12" y2="12.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-3" data-name="primary-upstroke" x1="12" y1="17.95" x2="12" y2="18.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line></g></svg>';
|
|
echo '</a>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
}
|
|
?>
|
|
<!-- End Pour chaque Enigme dans la BD -->
|
|
</div>
|
|
</div>
|
|
<!-- End Modify Part -->
|
|
</div>
|
|
</body>
|
|
</html>
|