Compare commits

..

No commits in common. "8622436cb7b2f24da087fd50917d9f30573ed2ee" and "2c7c13a0199b666d066c4c6d6d28443056d6110e" have entirely different histories.

1 changed files with 7 additions and 1 deletions

View File

@ -47,7 +47,13 @@ $content = $stmt->fetchAll(PDO::FETCH_ASSOC);
<td style="border: 2px solid #7a7a7a;">
<div style="display: flex; flex-direction: row; justify-content: center; color: blue; gap: 10px;">
<a href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a>
<a target="_blank" href="/<?php echo $pageData['slug']; ?>">View</a>
<a target="_blank" href="<?php
if ($pageData['type'] === 'notice') {
echo '/notice/' . $pageData['slug'];
} elseif ($pageData['type'] === 'page') {
echo '/' . $pageData['slug'];
}
?>">View</a>
<button class="copy-btn" data-slug="<?php echo $_SERVER['HTTP_HOST'] .'/'. $pageData['slug']; ?>">Copy</button>
</div>
</td>