Commit f9c5d235 authored by platyhouse's avatar platyhouse

.

parent 826a6933
......@@ -62,7 +62,7 @@
<?= $form->getInput("공유수", "shareCount"); ?>
<?= $form->getInput("좋아요수", "likeCount"); ?>
<? } ?>
<?= $form->getFile("첨부1", "file1", 0, " onchange='checkUpload(this, 1);'", "모든 파일 첨부는 최대 ".ini_get("post_max_size") ." 까지 가능합니다"); ?>
<?= $form->getFile("첨부1", "file1", 0, " onchange='checkUpload(this, 1);'", "모든 파일 첨부는 최대 " . ini_get("post_max_size") . " 까지 가능합니다"); ?>
<?= $form->getFile("첨부2", "file2", 0, " onchange='checkUpload(this, 2);'"); ?>
<?= $form->getFile("첨부3", "file3", 0, " onchange='checkUpload(this, 3);'"); ?>
<?= $form->getFile("첨부4", "file4", 0, " onchange='checkUpload(this, 4);'"); ?>
......@@ -77,6 +77,7 @@
<?= $form->getFile("첨부13", "file13", 0, " onchange='checkUpload(this, 13);'"); ?>
<?= $form->getFile("첨부14", "file14", 0, " onchange='checkUpload(this, 14);'"); ?>
<?= $form->getFile("첨부15", "file15", 0, " onchange='checkUpload(this, 15);'"); ?>
<?= $form->getInput("푸시 상단바 선택시 이동 URL", "pushNotificationDirectUrl", "", "푸시 수신후 선택시 앱 실행 직후 URL 로 이동됩니다."); ?>
<? if ($this->request->functionName == "edit") { ?>
<?= $form->getInput("짧은글주소", "shortUrl"); ?>
<? if (false) { ?>
......@@ -99,7 +100,7 @@
<label class="col-sm-2 control-label"></label>
<div class="col-sm-7">
<div class="callout callout-info">
<p>푸쉬 예약 시간을 5분 단위 또는 <?=date("Y-m-d H:i:s") ?> 형식의 초 단위까지 설정 하여 보낼 수 있습니다. 또한 예약된 시간에는 자동으로 게시 상태가 '공개' 로 변경된 후 발송됩니다.<br>
<p>푸쉬 예약 시간을 5분 단위 또는 <?= date("Y-m-d H:i:s") ?> 형식의 초 단위까지 설정 하여 보낼 수 있습니다. 또한 예약된 시간에는 자동으로 게시 상태가 '공개' 로 변경된 후 발송됩니다.<br>
현재보다 이전의 시간을 지정할 경우 즉시 전송되니 유의하세요.</p>
</div>
</div>
......@@ -109,7 +110,7 @@
<div class="box-footer">
<div class="pull-right">
<? if ($this->request->functionName == "edit") { ?>
<button type="button" class="btn btn-danger ptyConfirm2" caption='삭제' title="삭제하시겠습니까?<br><br><font color=red>삭제 이후 해당 글은 복구할 수 없으며, SNS 에 이미 공유된 컨텐츠의 경우에는 다시 한번 고려하시기 바랍니다</font><br><font color=blue>일시적으로 노출을 원하지 않을 경우</font> 취소 버튼을 누른 후 상단의 <b>'게시여부' 를 비게시로 설정</b>하세요." href="javascript:deleteItem(<?=$item->id?>)" yesButtonTitle='삭제'><i class="fa fa-remove"></i> 삭제</button>
<button type="button" class="btn btn-danger ptyConfirm2" caption='삭제' title="삭제하시겠습니까?<br><br><font color=red>삭제 이후 해당 글은 복구할 수 없으며, SNS 에 이미 공유된 컨텐츠의 경우에는 다시 한번 고려하시기 바랍니다</font><br><font color=blue>일시적으로 노출을 원하지 않을 경우</font> 취소 버튼을 누른 후 상단의 <b>'게시여부' 를 비게시로 설정</b>하세요." href="javascript:deleteItem(<?= $item->id ?>)" yesButtonTitle='삭제'><i class="fa fa-remove"></i> 삭제</button>
<? } ?>
<button type="button" class="btn btn-default ptyGoBack"><i class="fa"></i>취소</button>
</div>
......@@ -140,14 +141,14 @@
<? } ?>
<div class="comment-text">
<span class="username">
<a href="<?=PLATYFRAMEWORK_APPURL?>/user/list/edit/?id=<?=$commentItem->userId?>"><? if ($commentItem->user_enabled == 0) echo "<del>{$commentItem->user_nickName} (ID : {$commentItem->user_userId}</del>"; else echo "{$commentItem->user_nickName} (ID : {$commentItem->user_userId})"; ?></a>
<a href="<?= PLATYFRAMEWORK_APPURL ?>/user/list/edit/?id=<?= $commentItem->userId ?>"><? if ($commentItem->user_enabled == 0) echo "<del>{$commentItem->user_nickName} (ID : {$commentItem->user_userId}</del>"; else echo "{$commentItem->user_nickName} (ID : {$commentItem->user_userId})"; ?></a>
<span class="text-muted pull-right"><?= $commentItem->regDateTime ?></span>
</span>
<? if ($commentItem->enabled) { ?>
<button type="button" itemId=<?=$commentItem->id?> class="btnRemoveComment pull-right btn btn-default btn-xs"><i class="fa fa-trash"></i> 숨김</button>
<button type="button" itemId=<?= $commentItem->id ?> class="btnRemoveComment pull-right btn btn-default btn-xs"><i class="fa fa-trash"></i> 숨김</button>
<?= nl2br($commentItem->content) ?>
<? } else { ?>
<button type="button" itemId=<?=$commentItem->id?> class="btnEnableComment pull-right btn btn-warning btn-xs"><i class="fa fa-normal"></i> 노출</button>
<button type="button" itemId=<?= $commentItem->id ?> class="btnEnableComment pull-right btn btn-warning btn-xs"><i class="fa fa-normal"></i> 노출</button>
<del><?= nl2br($commentItem->content) ?></del>
<? } ?>
<? if ($commentItem->abuseComment == 1) { ?>
......@@ -254,9 +255,8 @@
}
}
function deleteItem(itemId)
{
ptyPost("<?=$this->request->appUrl?>/board/api/delete/", {id:itemId, returnCode:"json"}, function (result) {
function deleteItem(itemId) {
ptyPost("<?=$this->request->appUrl?>/board/api/delete/", {id: itemId, returnCode: "json"}, function (result) {
window.location.href = '<?=$this->request->classUrl?>/<?=ptyRebuildParams("id={NULL}")?>';
});
}
......@@ -283,9 +283,8 @@
$(".btnRemoveComment").click(function () {
itemId = $(this).attr("itemId");
if (confirm("댓글을 삭제하시겠습니까?")) {
ptyPost("<?=$this->request->appUrl?>/board/api/setDisable/", {id:itemId, returnCode:"json"}, function (result) {
if (result == true)
{
ptyPost("<?=$this->request->appUrl?>/board/api/setDisable/", {id: itemId, returnCode: "json"}, function (result) {
if (result == true) {
window.location.reload();
}
......@@ -296,9 +295,8 @@
$(".btnEnableComment").click(function () {
itemId = $(this).attr("itemId");
if (confirm("댓글을 노출하시겠습니까?")) {
ptyPost("<?=$this->request->appUrl?>/board/api/setEnable/", {id:itemId, returnCode:"json"}, function (result) {
if (result == true)
{
ptyPost("<?=$this->request->appUrl?>/board/api/setEnable/", {id: itemId, returnCode: "json"}, function (result) {
if (result == true) {
window.location.reload();
}
......
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