-
Notifications
You must be signed in to change notification settings - Fork 4
/
comment_form.html
115 lines (110 loc) · 5.4 KB
/
comment_form.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
107
108
109
110
111
112
113
114
115
<include target="_header.html" />
<load target="js/editor.js" type="body" />
<!--@if($oSourceComment->isExists())-->
<div class="context_data">
<div class="fdb_itm" style="margin:0;padding:0;border:0">
<div class="meta">
<b>{$oSourceComment->getNickName()}</b><span class="date">{$oSourceComment->getRegdate("Y.m.d H:i")}</span>
</div>
{$oSourceComment->getContent(false)}
</div>
</div>
<div class="context_message"></div>
<div class="cmt_line">▼</div>
<!--@else-->
<div class="context_data">
<h3 class="title">"{$lang->cmd_reply} {$lang->cmd_modify}"</h3>
<p cond="Mobile::isMobileCheckByAgent()">※ {$lang->m_editor_notice}.</p>
</div>
<div class="context_message" style="margin-bottom:40px"></div>
<!--@end-->
<!--// 댓글 수정화면 -->
<form action="./" method="post" onsubmit="<!--@if(Mobile::isMobileCheckByAgent() && !$mi->m_editor)-->jQuery(this).find('input[name=content]').val(jQuery('#editor').html());<!--@end-->return procFilter(this, insert_comment)" class="bd_wrt bd_wrt_main clear">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oComment->get('document_srl')}" />
<input type="hidden" name="comment_srl" value="{$oComment->get('comment_srl')}" />
<input type="hidden" name="content" value="{escape($oComment->get('content'))}" />
<input type="hidden" name="parent_srl" value="{$oComment->get('parent_srl')}" />
<div cond="!Mobile::isMobileCheckByAgent() || $mi->m_editor==3" class="get_editor">{$oComment->getEditor()}</div>
<div cond="Mobile::isMobileCheckByAgent() && $mi->m_editor!=3" class="m_editor">
<!-- Textarea -->
<block cond="$mi->m_editor==2">
<load target="../../../editor/tpl/js/editor_common.min.js" />
<load target="../../../editor/skins/xpresseditor/js/xe_textarea.min.js" />
<input type="hidden" name="use_html" value="Y" />
<input type="hidden" id="htm_1" value="n" />
<textarea id="editor_1" col="50" rows="8"></textarea>
<script>
editorStartTextarea(1,"content","document_srl");
</script>
</block>
<!-- WYSIWYG -->
<block cond="!$mi->m_editor">
<load target="css/m_editor.css" />
<load target="js/editor_wysiwyg.js" />
<load target="js/bootstrap-wysiwyg.js" />
<load target="js/jquery.hotkeys.js" />
<div id="alerts"></div>
<div class="btn-toolbar clear" data-role="editor-toolbar" data-target="#editor">
<div class="btn-group">
<a class="btn" data-edit="bold" title="Bold (Ctrl/Cmd+B)"><i class="fa fa-bold"></i></a>
<a class="btn" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i class="fa fa-underline"></i></a>
<a class="btn" data-edit="strikethrough" title="Strikethrough"><i class="fa fa-strikethrough"></i></a>
</div>
<div class="btn-group">
<a class="btn" data-edit="justifyleft" title="Align Left (Ctrl/Cmd+L)"><i class="fa fa-align-left"></i></a>
<a class="btn" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)"><i class="fa fa-align-center"></i></a>
<!--//
<a class="btn" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)"><i class="fa fa-align-right"></i></a>
<a class="btn" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)"><i class="fa fa-align-justify"></i></a>
-->
</div>
<div class="btn-group hide_w320">
<a class="btn" data-edit="insertunorderedlist" title="Bullet list"><i class="fa fa-list-ul"></i></a>
<!--//<a class="btn" data-edit="insertorderedlist" title="Number list"><i class="fa fa-list-ol"></i></a>-->
</div>
<div class="btn-group fr">
<a class="btn" data-edit="undo" title="Undo (Ctrl/Cmd+Z)"><i class="fa fa-undo"></i></a>
<a class="btn" data-edit="redo" title="Redo (Ctrl/Cmd+Y)"><i class="fa fa-repeat"></i></a>
</div>
<div class="blind"><input type="text" data-edit="inserthtml" id="inserthtml" /></div>
</div>
<div id="editor"><p> </p></div>
</block>
</div>
<div class="edit_opt">
<block cond="!$is_logged">
<span class="itx_wrp">
<label for="nick_name">{$lang->writer}</label>
<input type="text" name="nick_name" id="nick_name" class="itx n_p" value="{$oComment->getNickName()}" />
</span>
<span class="itx_wrp">
<label for="password">{$lang->password}</label>
<input type="password" name="password" id="password" class="itx n_p" />
</span>
<span class="itx_wrp">
<label for="email_address">{$lang->email_address}</label>
<input type="text" name="email_address" id="email_address" class="itx m_h" />
</span>
<span class="itx_wrp">
<label for="homepage">{$lang->homepage}</label>
<input type="text" name="homepage" id="homepage" class="itx m_h" />
</span>
</block>
</div>
<div class="opt_chk clear">
<block cond="$is_logged">
<input type="checkbox" name="notify_message" value="Y" id="notify_message" checked="checked"|cond="$oComment->get('notify_message')=='Y' || ($oComment->get('notify_message')!='Y' && @in_array('notify',$mi->wrt_opt))" />
<label for="notify_message">{$lang->notify}</label>
</block>
<block cond="strpos($mi->use_status, 'SECRET') !== false">
<input type="checkbox" name="is_secret" value="Y" id="is_secret" checked="checked"|cond="$oComment->get('is_secret')=='Y' || ($oComment->get('is_secret')!='Y' && @in_array('secret',$mi->wrt_opt))" />
<label for="is_secret">{$lang->secret}</label>
</block>
</div>
<div class="regist">
<button type="button" onclick="history.back()" class="bd_btn">{$lang->cmd_back}</button>
<input type="submit" value="{$lang->cmd_registration}" class="bd_btn blue" />
</div>
</form>
<include target="_footer.html" />