Commit ff12f37b authored by platyhouse's avatar platyhouse

.

parent 2194c4d0
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
</tr> </tr>
<? <?
foreach ($boards as $subItem) { foreach ($boards as $subItem) {
$url = "/admin/board/board/edit/?board={$subItem->board}&id={$subItem->parentId}";
?> ?>
<tr> <tr>
<td><?= $subItem->id ?></td> <td><?= $subItem->id ?></td>
...@@ -97,12 +98,16 @@ ...@@ -97,12 +98,16 @@
<td><?= $subItem->board ?></td> <td><?= $subItem->board ?></td>
<td><?= $subItem->title ?></td> <td><?= $subItem->title ?></td>
<td> <td>
<? if ($subItem->isComment) { ?> <a href="<?=$url?>">
<? if ($subItem->enabled == 0) echo "<del>"; ?>
<? if ($subItem->isComment == 0) { ?>
<span class='label label-success'>게시물</span> <span class='label label-success'>게시물</span>
<? } else { ?> <? } else { ?>
<span class='label label-primary'>댓글</span> <span class='label label-primary'>댓글</span>
<? } ?> <? } ?>
<?= ptyCutStr(strip_tags($subItem->content), 100) ?> <?= ptyCutStr(strip_tags($subItem->content), 100) ?>
<? if ($subItem->enabled == 0) echo "</del>"; ?>
</a>
</td> </td>
</tr> </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