mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1595 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6377a7cdba
commit
7863a3b3ec
10 changed files with 48 additions and 47 deletions
|
|
@ -39,7 +39,7 @@
|
|||
Context::set('comment_srl', $upload_target_srl);
|
||||
|
||||
// template 가져옴
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile($template_path, 'comment_form');
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@
|
|||
$option->enable_default_component = true;
|
||||
$option->enable_component = true;
|
||||
$option->resizable = true;
|
||||
$option->height = 400;
|
||||
$option->height = 600;
|
||||
$editor = $oEditorModel->getEditor($document_srl, $option);
|
||||
Context::set('editor', $editor);
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@
|
|||
$option->enable_default_component = true;
|
||||
$option->enable_component = true;
|
||||
$option->resizable = true;
|
||||
$option->height = 400;
|
||||
$option->height = 600;
|
||||
$editor = $oEditorModel->getEditor($document_srl, $option);
|
||||
Context::set('editor', $editor);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,50 +28,45 @@
|
|||
<!--@end-->
|
||||
|
||||
<!-- 글쓰기 폼 -->
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" <!--@if($grant->fileupload)-->enctype="multipart/form-data"<!--@end-->>
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl?$document_srl:$comment->document_srl}" />
|
||||
<input type="hidden" name="comment_srl" value="{$comment_srl}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($comment->content)}" />
|
||||
<input type="hidden" name="parent_srl" value="{$parent_srl}" />
|
||||
<div class="boardWrite">
|
||||
|
||||
<table width="100%" border="1">
|
||||
<col width="120" />
|
||||
<col width="*" />
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" <!--@if($grant->fileupload)-->enctype="multipart/form-data"<!--@end--> class="boardEditor" id="fo_comment_write" >
|
||||
<fieldset>
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl?$document_srl:$comment->document_srl}" />
|
||||
<input type="hidden" name="comment_srl" value="{$comment_srl}" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($comment->content)}" />
|
||||
<input type="hidden" name="parent_srl" value="{$parent_srl}" />
|
||||
|
||||
<!--@if(!$is_logged)-->
|
||||
<tr>
|
||||
<th>{$lang->writer}</th>
|
||||
<td><input type="text" name="nick_name" value="{htmlspecialchars($comment->nick_name)}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->password}</th>
|
||||
<td><input type="password" name="password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->email_address}</th>
|
||||
<td><input type="text" name="email_address" value="{htmlspecialchars($comment->email_address)}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->homepage}</th>
|
||||
<td><input type="text" name="homepage" value="{htmlspecialchars($comment->homepage)}" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@if(!$is_logged)-->
|
||||
<div class="userNameAndPw">
|
||||
<label for="userName">{$lang->writer}</label>
|
||||
<input type="text" name="nick_name" value="{$comment->nick_name}" class="userName inputTypeText" id="userName"/>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{$comment_editor}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<label for="userPw">{$lang->password}</label>
|
||||
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
|
||||
|
||||
<label for="emailAddress">{$lang->email_address}</label>
|
||||
<input type="text" name="email_address" value="{htmlspecialchars($comment->email_address)}" id="emailAddress" class="emailAddress inputTypeText"/>
|
||||
|
||||
<label for="homePage">{$lang->homepage}</label>
|
||||
<input type="text" name="homepage" value="{htmlspecialchars($comment->homepage)}" id="homePage" class="homePage inputTypeText"/>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div>{$comment_editor}</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div class="buttonWrite">
|
||||
<!--@if($act&&$act!='dispBoardContent')-->
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','')}'" />
|
||||
<!--@end-->
|
||||
<a href="#" onclick="doCommentSubmit();return false;" class="buttonTypeA" accesskey="s"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_registration}<img src="./images/blank.gif" alt="" class="rightCap" /></a>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!--@if($source_comment)-->
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ function doAddCart(mid, obj) {
|
|||
/* 글쓰기 submit */
|
||||
function doSubmit() {
|
||||
var fo_obj = xGetElementById('fo_write');
|
||||
procFilter(fo_write, insert);
|
||||
procFilter(fo_obj, insert);
|
||||
}
|
||||
|
||||
/* 글쓰기 작성후 */
|
||||
|
|
@ -79,6 +79,12 @@ function completeReload(ret_obj) {
|
|||
location.href = location.href;
|
||||
}
|
||||
|
||||
/* 댓글쓰기 submit */
|
||||
function doCommentSubmit() {
|
||||
var fo_obj = xGetElementById('fo_comment_write');
|
||||
procFilter(fo_obj, insert);
|
||||
}
|
||||
|
||||
/* 댓글 글쓰기 작성후 */
|
||||
function completeInsertComment(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
</fieldset>
|
||||
|
||||
<div class="buttonWrite">
|
||||
<a href="#" onclick="doSubmit();return false;" class="buttonTypeA"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_registration}<img src="./images/blank.gif" alt="" class="rightCap" /></a>
|
||||
<a href="#" onclick="doSubmit();return false;" class="buttonTypeA" accesskey="s"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->cmd_registration}<img src="./images/blank.gif" alt="" class="rightCap" /></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@
|
|||
$oEditorController->insertComponent('url_link',true);
|
||||
$oEditorController->insertComponent('image_link',true);
|
||||
$oEditorController->insertComponent('multimedia_link',true);
|
||||
$oEditorController->insertComponent('poll_maker',true);
|
||||
$oEditorController->insertComponent('quotation',true);
|
||||
$oEditorController->insertComponent('image_gallery',true);
|
||||
$oEditorController->insertComponent('table_maker',true);
|
||||
$oEditorController->insertComponent('poll_maker',true);
|
||||
$oEditorController->insertComponent('image_gallery',true);
|
||||
|
||||
// 에디터 모듈에서 사용할 디렉토리 생성
|
||||
FileHandler::makeDir('./files/cache/editor');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue