' + this.comment + ' ';
if (this.isnew) {
html += ' ';
}
if (modperm) {
html += ' ';
html += '';
}
if (delperm) {
html += ' ';
}
html += '';
html += '
';
html += '
' + this.dateStr + '
';
html += '
';
html += '
';
// 꼬리말 꼬리말 레이어
html += '
';
html += '
';
html += '
';
html += '
';
html += '꼬리말에 코멘트 쓰기';
html += '
';
html += '
꼬리말에 코멘트란? 꼬리말에 대한 답변입니다.
';
html += ' ';
html += '현재 0/최대 300byte (한글 150자, 영문 300자) ';
html += '
';
html += '';
html += '';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
return html;
};
this.renderRowCommentComment = function() {
var html = '';
var mine = '2mMN4ylT_sQ0' == this.e_userid;
var modperm = mine;
var delperm = mine;
html += '
';
html += '' + this.comment + ' ';
if (this.isnew) {
html += ' ';
}
if (modperm) {
html += ' ';
html += '';
}
if (delperm) {
html += '';
}
html += '
';
html += '
' + this.dateStr + '
';
html += '
';
html += '
';
html += '
';
html += '
';
return html;
};
this.renderRowCommentDelete = function() {
var html = '';
html += '
꼬리말이 삭제되었습니다.
';
return html;
}
this.viewMember = function (obj) {
showSideView(obj, this.e_userid, this.profile_userid, this.nickName);
};
this.viewModify = function () {
/* var emo = '';
modifySeqEmo = this.seq;
if (this.parseq == 0) {
document.getElementById("_emo" + this.seq).innerHTML = emo;
}
*/ var cmt = '
';
cmt += '
';
document.getElementById("_cmt" + this.seq).innerHTML = cmt;
};
}
var comments = new Array();
var idx = 0;
comments[idx] = new ShortComment(idx, 1, 0, '01', false, '련산', '', '2mMN4ylT_sQ0', '반갑습니다. 저는 지금 보스턴 밑 프로비던스에 잠깐 있습니다. 혼자서 정한 제호가 역시 "무량"입니다. 더욱 반갑군요... 멀리 상파울로에서도 함께 할 수 있다니 새삼 사이버공간의 위력을 느낍니다. 자주 들러서 활동부탁합니다.', '2005/04/25');
idx++;
comments[idx] = new ShortComment(idx, 2, 0, '01', false, '자광화(慈光華)', '', 'Iawuuo.OOnc0', '부처님의인연이 보스턴으로 브라질 쌍파울로로 아비라 카페가 전세계로....열심히 정진하시는 법우님들 의 수행이 항상 여여하시기를 기원드리겠습니다.', '2005/04/25');
idx++;
comments[idx] = new ShortComment(idx, 3, 0, '01', false, '어질이', '', 'ouPovyLjhtc0', '어서오십시오.반갑습니다()', '2005/04/25');
idx++;
comments[idx] = new ShortComment(idx, 4, 0, '01', false, '이미화', '', 'bfkZLCSPQlE0', '세계가 한지붕이군요. 여기는 필리핀이랍니다. 자주 들러서 여러분들의 글을 읽고만 갑니다. 언젠가 동참할 날이 있겠죠.', '2005/04/25');
idx++;
comments[idx] = new ShortComment(idx, 5, 0, '01', false, '낭유', '', 'HC4Onm9MNLg0', '복동이님, 이미화님 모두 반갑습니다.', '2005/04/25');
idx++;
comments[idx] = new ShortComment(idx, 6, 0, '01', false, '환성', '', 'RLCAqxHoOts0', '미국 련산님, 브라질 북동이님, 필리핀 이미화님 부처님을 32상으로 보는게 아니군요. 우리나라 절같은 법당이 없어도 부처님은 어디든 계시다. 그러니 우리 국내 불제자들 요즘 절이 좋네 여전네하며 골라 다니는걸 보면 쿡쿡 웃음이 납니다. 성불하십시요.()()()', '2005/04/26');
idx++;
function showShortComment() {
var html = '
';
var prevSeq = 0;
var idx = 0;
var hasParents = false;
for (var i = 0; i < comments.length; i++) {
if (comments[i].parseq == 0) {
// 부모 꼬리말이 삭제된 꼬리말 댓글
html += showShortCommentComment(prevSeq, comments[i].seq);
}
if (comments[i].parseq == 0) {
prevSeq = comments[i].seq;
var rank = '';
// 부모 꼬리말
html += comments[i].renderRow(rank);
hasParents = true;
// 부모 꼬리말이 삭제되지 않은 꼬리말 댓글
for (var j = i + 1; j < comments.length; j++) {
if (comments[j].parseq != 0 && comments[j].parseq == comments[i].seq) {
html += comments[j].renderRowCommentComment();
}
}
}
}
// 부모 꼬리말 모두 삭제된 경우, 자식 꼬리말 뿌려주기
if (!hasParents && comments.length > 0) {
html += showShortCommentComment(0, comments[comments.length - 1].seq + 1);
}
html += '
';
document.getElementById("shortCommentPlaceHolder").innerHTML = html;
}
function showShortCommentComment(beginSeq, endSeq) {
// 부모 꼬리말이 삭제된 꼬리말 댓글
var html = '';
for (var l = beginSeq + 1; l < endSeq; l++ ) {
var isNoteDelete = 0;
for (var k = 0; k < comments.length; k++ ) {
if (comments[k].parseq != 0 && comments[k].parseq == l) {
if (isNoteDelete == 0) {
html += comments[k].renderRowCommentDelete();
isNoteDelete = 1;
}
html += comments[k].renderRowCommentComment();
}
}
}
return html;
}
showShortComment();