Commit ff12f37b authored by platyhouse's avatar platyhouse

.

parent 2194c4d0
......@@ -89,6 +89,7 @@
</tr>
<?
foreach ($boards as $subItem) {
$url = "/admin/board/board/edit/?board={$subItem->board}&id={$subItem->parentId}";
?>
<tr>
<td><?= $subItem->id ?></td>
......@@ -97,12 +98,16 @@
<td><?= $subItem->board ?></td>
<td><?= $subItem->title ?></td>
<td>
<? if ($subItem->isComment) { ?>
<a href="<?=$url?>">
<? if ($subItem->enabled == 0) echo "<del>"; ?>
<? if ($subItem->isComment == 0) { ?>
<span class='label label-success'>게시물</span>
<? } else { ?>
<span class='label label-primary'>댓글</span>
<? } ?>
<?= ptyCutStr(strip_tags($subItem->content), 100) ?>
<? if ($subItem->enabled == 0) echo "</del>"; ?>
</a>
</td>
</tr>
<? } ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment