-
Notifications
You must be signed in to change notification settings - Fork 1
/
_comment_write.html
106 lines (101 loc) · 6.35 KB
/
_comment_write.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<div class="cmt_editor" style="margin-top:30px"|cond="$mi->cmt_wrt_position=='cmt_wrt_btm' && $oDocument->getCommentcount()">
<label for="editor_{$oDocument->document_srl}" class="cmt_editor_tl fl"><em>✔</em><strong>{$lang->write_comment}</strong></label>
<!--// Editor Select -->
<div cond="$mi->select_editor!='N'" class="editor_select bubble fr m_no" title="{$lang->noti_rfsh}">
<a class="tg_btn2" href="#" data-href="#editor_select"><em class="fa fa-info-circle bd_info_icon"></em> {$lang->select_editor}</a>
<div cond="$rd_idx==0" id="editor_select" class="tg_cnt2 wrp m_no"><button type="button" class="tg_blur2"></button>
<a class="on"|cond="$mi->cmt_wrt=='simple'" href="#" onclick="jQuery.cookie('bd_editor','simple');location.reload();return false"><em>✔ </em>{$lang->textarea}</a>
<a class="on"|cond="$mi->cmt_wrt=='editor'" href="#" onclick="jQuery.cookie('bd_editor','editor');location.reload();return false"><em>✔ </em>{$lang->wysiwyg}</a>
<a cond="$mi->select_editor=='2' || $mi->cmt_wrt=='sns'" class="on"|cond="$mi->cmt_wrt=='sns'" href="#" onclick="jQuery.cookie('bd_editor','sns');location.reload();return false"><em>✔ </em>{$lang->sxc_editor}</a>
<span class="edge"></span><button type="button" class="tg_blur2"></button>
<!--// ie8; --><i class="ie8_only bl"></i><i class="ie8_only br"></i>
</div>
</div>
<!--@if($grant->write_comment && $oDocument->isEnableComment())-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="bd_wrt cmt_wrt clear">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div cond="$mi->cmt_wrt=='editor'" class="wysiwyg">{$oDocument->getCommentEditor()}</div>
<div cond="$mi->cmt_wrt=='simple'" class="simple_wrt">
<img cond="$logged_info->profile_image->src" class="profile img" src="{$logged_info->profile_image->src}" alt="profile" />
<span cond="!$logged_info->profile_image->src" class="profile img no_img">?</span>
<div class="text">
<input type="hidden" name="use_html" value="Y" />
<input type="hidden" id="htm_{$oDocument->document_srl}" value="n" />
<textarea id="editor_{$oDocument->document_srl}" cols="50" rows="4"></textarea>
</div>
<input type="submit" value="{$lang->cmd_submit}" class="bd_btn bd_btns" />
</div>
<div class="edit_opt clear" style="display:none"|cond="$mi->cmt_wrt!='editor'">
<block cond="!$is_logged">
<input type="hidden" name="nick_name" id="nick_name_{$oDocument->document_srl}" class="itx n_p" value="{getenv("REMOTE_ADDR");}" />
<input type="hidden" name="password" id="password_{$oDocument->document_srl}" class="itx n_p" value="{getenv("REMOTE_ADDR");}" />
<input type="hidden" name="email_address" id="email_address_{$oDocument->document_srl}" class="itx m_h" />
<input type="hidden" name="homepage" id="homepage_{$oDocument->document_srl}" class="itx m_h" />
</block>
<input cond="$mi->cmt_wrt=='editor'" type="submit" value="{$lang->cmd_submit}" class="bd_btn fr" />
<div class="opt_chk">
<block cond="$is_logged">
<input type="checkbox" name="notify_message" value="Y" id="notify_message_{$oDocument->document_srl}" checked="checked"|cond="@in_array('notify',$mi->wrt_opt)" />
<label for="notify_message_{$oDocument->document_srl}">{$lang->notify}</label>
</block>
<block cond="$mi->use_status!='PUBLIC'">
<input type="checkbox" name="is_secret" value="Y" id="is_secret_{$oDocument->document_srl}" checked="checked"|cond="@in_array('secret',$mi->wrt_opt)" />
<label for="is_secret_{$oDocument->document_srl}">{$lang->secret}</label>
</block>
</div>
</div>
</form>
<!--// 대댓글 -->
<div cond="$rd_idx==0" id="re_cmt">
<label for="editor_2" class="cmt_editor_tl fl"><i class="fa fa-share fa-flip-vertical re"></i><strong>{$lang->write_comment}</strong></label>
<div class="editor_select fr">
<a class="wysiwyg m_no" href="#"><em class="fa fa-info-circle bd_info_icon"></em> {$lang->use_wysiwyg}</a>
<a class="close" href="#" onclick="jQuery('#re_cmt').fadeOut().parent().find('.re_comment').focus();return false"><i class="fa fa-times"></i> {$lang->cmd_close}</a>
</div>
<form action="./" method="post" onsubmit="return procFilter(this,insert_comment)" class="bd_wrt clear">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="content" value="" />
<input type="hidden" name="parent_srl" value="" />
<input type="hidden" name="use_html" value="Y" />
<div class="simple_wrt">
<input type="hidden" id="htm_2" value="n" />
<textarea id="editor_2" cols="50" rows="8"></textarea>
</div>
<div class="edit_opt">
<block cond="!$is_logged">
<input type="hidden" name="nick_name" id="nick_name" class="itx n_p" value="{getenv("REMOTE_ADDR");}" />
<input type="hidden" name="password" id="password" class="itx n_p" value="{getenv("REMOTE_ADDR");}" />
<input type="hidden" name="email_address" id="email_address" class="itx m_h" />
<input type="hidden" name="homepage" id="homepage" class="itx m_h" />
</block>
<input type="submit" value="{$lang->cmd_submit}" class="bd_btn fr" />
</div>
<span class="opt_chk">
<block cond="$is_logged">
<input type="checkbox" name="notify_message" value="Y" id="notify_message" checked="checked"|cond="@in_array('notify',$mi->wrt_opt)" />
<label for="notify_message">{$lang->notify}</label>
</block>
<block cond="$mi->use_status!='PUBLIC'">
<input type="checkbox" name="is_secret" value="Y" id="is_secret" checked="checked"|cond="@in_array('secret',$mi->wrt_opt)" />
<label for="is_secret">{$lang->secret}</label>
</block>
</span>
</form>
</div>
<!--@else-->
<div class="bd_wrt clear">
<div class="simple_wrt">
<span class="profile img no_img">?</span>
<div class="text">
<a cond="!$is_logged" class="cmt_disable bd_login" href="#">{$lang->write_comment} {$lang->msg_not_permitted} {$lang->bd_login}</a>
<div cond="$is_logged" class="cmt_disable bd_login">{$lang->write_comment} {$lang->msg_not_permitted}</div>
</div>
<input type="button" value="{$lang->cmd_submit}" disabled="disabled" class="bd_btn bd_btns" />
</div>
</div>
<!--@end-->
</div>