ss #19

Merged
suvo merged 1 commits from b2 into master 2025-02-14 11:46:54 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ $content = $stmt->fetchAll(PDO::FETCH_ASSOC);
<a href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a> &nbsp; <a href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a> &nbsp;
<a target="_blank" href="<?php <a target="_blank" href="<?php
if ($pageData['type'] === 'notice') { if ($pageData['type'] === 'notice') {
echo '/notice/' . $pageData['slug'] . '.html'; echo '/notice/' . $pageData['slug'];
} elseif ($pageData['type'] === 'page') { } elseif ($pageData['type'] === 'page') {
echo '/' . $pageData['slug'] . '.html'; echo '/' . $pageData['slug'];
} }
?>">View</a> ?>">View</a>
</div> </div>