Modify editor page (for add lang file)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9087 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2011-09-07 09:58:46 +00:00
parent 56a2ae027c
commit 6cba486dfb
2 changed files with 262 additions and 88 deletions

View file

@ -1,88 +1,5 @@
<!--%import("js/editor_module_config.js")-->
<div class="content" id="content">
<h1 class="h1">WYSIWYG Editor</h1>
<h2 class="h2">Editor Preview</h2>
<!-- Editor Preview -->
<a href="{getUrl('module', 'admin', 'act', 'dispEditorConfigPreview')}" target="_blank">미리보기</a>
<!-- /Editor Preview -->
<form action="./" method="post" class="form" ruleset="generalConfig">
<input type="hidden" name="act" value="procEditorAdminGeneralConfig " />
<fieldset class="section">
<h2 class="h2">Editor Option</h2>
<ul>
<li>
<p class="q">본문 에디터를 선택하세요.</p>
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="editor_skin" value="{$editor}" id="doc_{$editor}" onClick="getEditorSkinColorList(this.value, null, 'document','doc_{$editor}')" <!--@if($editor==$editor_config->editor_skin)-->checked="checked" <!--@end-->/>
<label for="doc_{$editor}" value='sdf'>{$editor}</label>
<select name="sel_editor_colorset" <!--@if($editor==$editor_config->editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="editor_height">본문 에디터의 높이를 설정하세요.</label></p>
<p class="a"><input type="text" name="editor_height" id="editor_height" value="<!--@if($editor_config->editor_height)-->{$editor_config->editor_height}<!--@else-->{$editor_config_default['editor_height']}<!--@end-->" style="width:30px" /> px</p>
</li>
<li>
<p class="q">댓글 에디터를 선택하세요.</p>
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="comment_editor_skin" value="{$editor}" id="com_{$editor}" onclick="getEditorSkinColorList(this.value, null, 'reply','com_{$editor}')" <!--@if($editor == $editor_config->comment_editor_skin)-->checked="checked" <!--@end-->/>
<label for="com_{$editor}">{$editor}</label>
<select name="sel_comment_editor_colorset" <!--@if($editor==$editor_config->comment_editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_comment_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="comment_editor_height">댓글 에디터의 높이를 설정하세요.</label></p>
<p class="a"><input type="text" name="comment_editor_height"id="comment_editor_height" value="<!--@if($editor_config->comment_editor_height)-->{$editor_config->comment_editor_height}<!--@else-->{$editor_config_default['comment_editor_height']}<!--@end-->" style="width:30px" /> px</p>
</li>
<li>
<p class="q">본문 서식을 선택하세요.</p>
<p class="a">
<!--@foreach($content_style_list as $key => $val)-->
<input type="radio" name="content_style" value="{$key}" id="style_{$key}" <!--@if($key==$editor_config->content_style||!$editor_config->content_style&&$key=='default')-->checked="checked"<!--@end-->><label for="style_{$key}">{$key}</label>
<!--@end-->
</p>
</li>
<li>
<p class="q">본문 글꼴을 선택하세요.</p>
<textarea rows="3" cols="42" class="fontPreview" title="Font Preview">
The quick brown fox jumps over the lazy dog.
いろはにほへと / ちりぬるを / わかよたれそ / つねならむ / うゐのおくやま / けふこえて / あさきゆめみし / ゑひもせす
키스의 고유 조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다.</textarea>
<p class="answer fontSelector">
<input type="radio" name="content_font" id="font_noFont" value="" <!--@if(!$editor_config->content_font)-->checked="checked" <!--@end-->/> <label for="font_noFont" style="font-family:''">none(inherit)</label><br />
<!--@foreach($lang->edit->fontlist as $name => $detail)-->
<input type="radio" name="content_font" id="font_{$name}" value="{$name}" <!--@if($editor_config->content_font==$name)-->checked="checked" <!--@end-->/> <label for="font_{$name}" style="font-family:{$detail}">{$detail}</label><br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="fontSize">본문 글꼴 크기를 선택하세요.</label></p>
<textarea rows="3" cols="42" class="fontPreview" title="Font Preview">
The quick brown fox jumps over the lazy dog.
いろはにほへと / ちりぬるを / わかよたれそ / つねならむ / うゐのおくやま / けふこえて / あさきゆめみし / ゑひもせす
키스의 고유 조건은 입술끼리 만나야 하고 특별한 기술은 필요치 않다.</textarea>
<p class="a"><input type="text" id="fontSize" name="content_font_size" value="<!--@if($editor_config->content_font_size)-->{str_replace('px','',$editor_config->content_font_size)}<!--@else-->{str_replace('px','',$editor_config_default['content_font_size'])}<!--@end-->" style="width:30px" /> px</p>
</li>
<script type="text/javascript">
<script type="text/javascript">
jQuery(function($){
var fontPreview = $('.fontPreview');
var fontRadio = $('.fontSelector>:radio');
@ -105,7 +22,83 @@
};
});
});
</script>
</script>
<div class="content" id="content">
<h1 class="h1">{$lang->editor}</h1>
<h2 class="h2">{$lang->editor_preview}</h2>
<!-- Editor Preview -->
<a href="{getUrl('module', 'admin', 'act', 'dispEditorConfigPreview')}" target="_blank">{$lang->cmd_preview}</a>
<!-- /Editor Preview -->
<form action="./" method="post" class="form" ruleset="generalConfig">
<input type="hidden" name="act" value="procEditorAdminGeneralConfig " />
<fieldset class="section">
<h2 class="h2">{$lang->editor_option}</h2>
<ul>
<li>
<p class="q">{$lang->guide_choose_main_editor}</p>
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="editor_skin" value="{$editor}" id="doc_{$editor}" onClick="getEditorSkinColorList(this.value, null, 'document','doc_{$editor}')" <!--@if($editor==$editor_config->editor_skin)-->checked="checked" <!--@end-->/>
<label for="doc_{$editor}" value='sdf'>{$editor}</label>
<select name="sel_editor_colorset" <!--@if($editor==$editor_config->editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="editor_height">{$lang->guide_set_height_main_editor}</label></p>
<p class="a"><input type="text" name="editor_height" id="editor_height" value="<!--@if($editor_config->editor_height)-->{$editor_config->editor_height}<!--@else-->{$editor_config_default['editor_height']}<!--@end-->" style="width:30px" /> px</p>
</li>
<li>
<p class="q">{$lang->guide_choose_comment_editor}</p>
<p class="a">
<!--@foreach($editor_skin_list as $editor)-->
<input type="radio" name="comment_editor_skin" value="{$editor}" id="com_{$editor}" onclick="getEditorSkinColorList(this.value, null, 'reply','com_{$editor}')" <!--@if($editor == $editor_config->comment_editor_skin)-->checked="checked" <!--@end-->/>
<label for="com_{$editor}">{$editor}</label>
<select name="sel_comment_editor_colorset" <!--@if($editor==$editor_config->comment_editor_skin)--> >
<!--@foreach($editor_colorset_list as $key => $val)-->
<option value="{$val->name}" <!--@if($editor_config->sel_comment_editor_colorset == $val->name)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<!--@else-->style="display:none"> <!--@end-->
</select>
<br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="comment_editor_height">{$lang->guide_set_height_comment_editor}</label></p>
<p class="a"><input type="text" name="comment_editor_height"id="comment_editor_height" value="<!--@if($editor_config->comment_editor_height)-->{$editor_config->comment_editor_height}<!--@else-->{$editor_config_default['comment_editor_height']}<!--@end-->" style="width:30px" /> px</p>
</li>
<li>
<p class="q">{$lang->guide_choose_text_formatting}</p>
<p class="a">
<!--@foreach($content_style_list as $key => $val)-->
<input type="radio" name="content_style" value="{$key}" id="style_{$key}" <!--@if($key==$editor_config->content_style||!$editor_config->content_style&&$key=='default')-->checked="checked"<!--@end-->><label for="style_{$key}">{$key}</label>
<!--@end-->
</p>
</li>
<li>
<p class="q">{$lang->guide_choose_font_body}</p>
<textarea rows="3" cols="42" class="fontPreview" title="Font Preview">{$lang->font_preview}</textarea>
<p class="answer fontSelector">
<input type="radio" name="content_font" id="font_noFont" value="" <!--@if(!$editor_config->content_font)-->checked="checked" <!--@end-->/> <label for="font_noFont" style="font-family:''">none(inherit)</label><br />
<!--@foreach($lang->edit->fontlist as $name => $detail)-->
<input type="radio" name="content_font" id="font_{$name}" value="{$name}" <!--@if($editor_config->content_font==$name)-->checked="checked" <!--@end-->/> <label for="font_{$name}" style="font-family:{$detail}">{$detail}</label><br />
<!--@end-->
</p>
</li>
<li>
<p class="q"><label for="fontSize">{$lang->guide_choose_font_size_body}</label></p>
<textarea rows="3" cols="42" class="fontPreview" title="Font Preview">{$lang->font_preview}</textarea>
<p class="a"><input type="text" id="fontSize" name="content_font_size" value="<!--@if($editor_config->content_font_size)-->{str_replace('px','',$editor_config->content_font_size)}<!--@else-->{str_replace('px','',$editor_config_default['content_font_size'])}<!--@end-->" style="width:30px" /> px</p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="Save" /></span>
@ -123,7 +116,7 @@
</caption>
<thead>
<tr>
<th scope="col">이동</th>
<th scope="col">{$lang->cmd_move}</th>
<th scope="col" class="title">{$lang->component_name} {$lang->user_name}</th>
<th scope="col">{$lang->version}</th>
<th scope="col">{$lang->author}</th>
@ -141,7 +134,7 @@
<p><b>{$xml_info->title}</b></p>
<p>{nl2br($xml_info->description)}</p>
<!--@if($xml_info->version && $xml_info->need_update == 'Y')-->
<p class="update">이 항목 업데이트가 가능합니다. <a href="#">업데이트 하시겠습니까?</a></p>
<p class="update">{$lang->msg_avail_easy_update}<a href="{getUrl('act','dispAutoinstallAdminInstall','package_srl',$xml_info->package_srl)}">{$lang->msg_do_you_like_update}</a></p>
<!--@end-->
</td>
<td>{$xml_info->version}</td>