|
@@ -37,6 +37,15 @@ $userTags = user::getUserById(session::getId())["tags"];
|
|
|
<h2 class="bd-title" id="content">
|
|
<h2 class="bd-title" id="content">
|
|
|
<span><?php echo $titre ?></span>
|
|
<span><?php echo $titre ?></span>
|
|
|
</h2>
|
|
</h2>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if (isset($document["id"]) and access::ifAccesss("add-document")) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div class="fix-container-button-nav">
|
|
|
|
|
+ <a href="/submit.php?from=document-delete&id=<?php echo $document["id"] ?>" style="color: #dc3545; text-decoration:none;" onclick="return confirm('Voulez-vous supprimer ce document ?')"><button type="submit" class="btn btn-outline-danger btn-sm"><?php icon::getFont(["icon" => "bi-trash-fill"]) ?></i> Supprimer</button></a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
</header>
|
|
</header>
|
|
|
<?php
|
|
<?php
|
|
|
if (core::ifGet("add")) {
|
|
if (core::ifGet("add")) {
|
|
@@ -47,14 +56,6 @@ if (core::ifGet("add")) {
|
|
|
$lienFil = "/document-" . core::getGet("id") . ".html";
|
|
$lienFil = "/document-" . core::getGet("id") . ".html";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-if (isset($document["id"]) and access::ifAccesss("add-document")) {
|
|
|
|
|
- ?>
|
|
|
|
|
- <div style="float:right; margin-top: -60px;">
|
|
|
|
|
- <a href="/submit.php?from=document-delete&id=<?php echo $document["id"] ?>" style="color: #dc3545; text-decoration:none;" onclick="return confirm('Voulez-vous supprimer ce document ?')"><button type="submit" class="btn btn-outline-danger btn-sm"><?php icon::getFont(["icon" => "bi-trash-fill"]) ?></i> Supprimer</button></a>
|
|
|
|
|
- </div>
|
|
|
|
|
- <?php
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
echo core::filAriane(array(
|
|
echo core::filAriane(array(
|
|
|
"current" => $labelFil,
|
|
"current" => $labelFil,
|
|
|
"arbo" => array(
|
|
"arbo" => array(
|