Commit c5f25cc5 authored by platyhouse's avatar platyhouse

- encrypted

parent 2c0403b2
......@@ -252,8 +252,19 @@
});
*/
</script>
<? if ($this->request->req->ptyScrollToId != "" ) { ?>
<script>
function scrollToAnchor(aid){
var tag = $("#"+aid);
tag.addClass("animated flash");
$('html,body').animate({scrollTop: tag.offset().top},'fast');
}
scrollToAnchor('<?=$this->request->req->ptyScrollToId?>');
</script>
<? } ?>
<script>
var needsCheckBeforeUnload = false;
var needsCheckBeforeUnload = false;
$(function () {
$(window).bind('beforeunload', function (e) {
e = e || window.event;
......
......@@ -176,6 +176,7 @@ namespace platyFramework;
</div>
</div>
<? if (true && $this->request->functionName == "edit") { ?>
<div class="row">
<div class="col-md-12">
<!-- Box Comment -->
......@@ -186,8 +187,7 @@ namespace platyFramework;
<div class="box-footer box-comments" style="background-color: white;">
<? /** @var ptyboardItemModel $item */
foreach ($item->getComments() as $commentItem) { ?>
<div class="box-comment"
style='margin-left: <?= strlen($commentItem->commentDepth) * 15 ?>px;'>
<div class="box-comment" id="commentId_<?=$commentItem->id?>" style='margin-left: <?= strlen($commentItem->commentDepth) * 15 ?>px;'>
<!-- User image -->
<img class="img-circle img-sm" src="<?= $commentItem->user_profileImageUrl ?>" alt="">
<div class="comment-text">
......@@ -196,13 +196,18 @@ namespace platyFramework;
<?= $commentItem->userId ?> (<?= $commentItem->user_nickName ?>)</a>
<span class="text-muted pull-right"><?= $commentItem->regDateTime ?></span>
</span>
<? if ($commentItem->enabled == 1) { ?>
<? if ($commentItem->enabled == false) { ?>
<del><?= nl2br(html_entity_decode($commentItem->content)) ?></del>
<? } else { ?>
<?= nl2br(html_entity_decode($commentItem->content)) ?>
&nbsp;
<? } ?>
&nbsp;
<? if ($commentItem->abuseComment == 1) { ?>
<button type="button" href="<?= $this->request->controllerUrl ?>/item/unsetAbuseComment/<?= ptyStayParams("id={$commentItem->id}") ?>" title='안내' content='게시물을 신고 해제 하시겠습니까?' class="ptyShowConfirmDialog pull-right btn btn-danger btn-xs"><i class="fa fa-trash"></i> 신고 해제 (신고자:<?=$commentItem->abuseUserId?>)</button>&nbsp;
<? } else if ($commentItem->enabled == 1) { ?>
<button type="button" href="<?= $this->request->controllerUrl ?>/item/setEnableDisable/<?= ptyStayParams("id={$commentItem->id}") ?>" title='안내' content='게시물을 숨김 처리하시겠습니까?' class="ptyShowConfirmDialog pull-right btn btn-default btn-xs"><i class="fa fa-trash"></i> 숨김</button>
<? } else { ?>
<del><?= nl2br(html_entity_decode($commentItem->content)) ?></del>
&nbsp;
<button type="button" href="<?= $this->request->controllerUrl ?>/item/setEnableDisable/<?= ptyStayParams("id={$commentItem->id}") ?>" title='안내' content='게시물을 노출 처리하시겠습니까?' class="ptyShowConfirmDialog pull-right btn btn-default btn-xs"><i class="fa fa-eye"></i> 노출</button>
<? } ?>
<a type="button" href='<?= "{$this->request->classUrl}/edit/" . ptyStayParams("id={$commentItem->id}"); ?>' style='margin-right: 5px' class="pull-right btn btn-primary btn-xs"><i class="fa fa-edit"></i> 수정 </a>
......
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