git-svn-id: http://xe-core.googlecode.com/svn/trunk@1748 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-22 09:22:13 +00:00
parent 919be13ea9
commit d98ba9a9b5
4 changed files with 38 additions and 20 deletions

View file

@ -13,6 +13,22 @@
$lang->widget_info = '위젯 정보';
$lang->widget_code = '코드';
$lang->widget_fix_width = '가로크기 고정';
$lang->widget_width = '가로크기';
$lang->widget_position = '위치';
$lang->widget_position_none = '줄바꿈';
$lang->widget_position_left = '왼쪽';
$lang->widget_position_right = '오른쪽';
$lang->widget_margin = '여백';
$lang->widget_margin_top = '위';
$lang->widget_margin_right = '오른쪽';
$lang->widget_margin_bottom = '아래 ';
$lang->widget_margin_left= '왼쪽';
$lang->about_widget_fix_width = '선택하시면 가로크기가 고정됩니다.';
$lang->about_widget_width = '가로 크기를 선택해주세요.';
$lang->about_widget_position = '한 줄에 여러개의 위젯을 나열하고 싶을때에는 위치를 선택해주세요.';
$lang->about_widget_margin = '한 줄에 여러개의 위젯을 나열하고 싶을때에는 위치를 선택해주세요.';
$lang->msg_widget_is_not_exists = '%s 위젯을 찾을 수 없습니다';
$lang->msg_widget_object_is_null = '%s 위젯의 객체 생성을 할 수가 없습니다';
$lang->msg_widget_proc_is_null = '%s 위젯의 proc() 를 실행할 수가 없습니다';

View file

@ -127,7 +127,11 @@ function doFillWidgetVars() {
}
fo_obj.widget_width.value = xWidth(selected_node)-6;
var marginLeft = parseInt(selected_node.style.marginLeft.replace(/px$/,''),10);
var marginRight = parseInt(selected_node.style.marginRight.replace(/px$/,''),10);
var border = parseInt(selected_node.style.border);
fo_obj.widget_width.value = xWidth(selected_node) + marginLeft + marginRight - 6;
// 컬러셋 설정
if(skin && xGetElementById("widget_colorset").options.length<1 && colorset) {

View file

@ -69,39 +69,36 @@
</div>
<div style="border:1px solid #EEEEEE;margin-bottom:5px; ">
<div class="widget_header">가로 크기 고정</div>
<div class="widget_header">{$lang->widget_fix_width}</div>
<div class="widget_body">
<input type="checkbox" value="Y" name="widget_fix_width" /> 선택하시면 가로크기가 고정됩니다.
</div>
<div class="widget_header">줄변경</div>
<div class="widget_body">
<input type="checkbox" value="Y" name="widget_cr" /> 선택하시면 이 위젯은 줄을 바꾼후 출력됩니다.
<input type="checkbox" value="Y" name="widget_fix_width" />
{$lang->about_widget_fix_width}
</div>
<div class="widget_header">가로 크기</div>
<div class="widget_header">{$lang->widget_width}</div>
<div class="widget_body">
<input type="text" value="400" name="widget_width" size="3" />px
가로 크기를 선택해주세요.
{$lang->about_widget_width}
</div>
<div class="widget_header">위치</div>
<div class="widget_header">{$lang->widget_position}</div>
<div class="widget_body">
<select name="widget_position">
<option value="">줄차지</option>
<option value="left">왼쪽</option>
<option value="right">오른쪽</option>
<option value="">{$lang->widget_position_none}</option>
<option value="left">{$lang->widget_position_left}</option>
<option value="right">{$lang->widget_position_right}</option>
</select>
한 줄에 여러개의 위젯을 나열하고 싶을때에는 위치를 선택해주세요.
{$lang->about_widget_position}
</div>
<div class="widget_header">여백</div>
<div class="widget_header">{$lang->widget_margin}</div>
<div class="widget_body">
<input type="text" name="widget_margin_top" value="0" size="2" />
오른쪽 <input type="text" name="widget_margin_right" value="0" size="2" />
아래 <input type="text" name="widget_margin_bottom" value="0" size="2" />
왼쪽 <input type="text" name="widget_margin_left" value="0" size="2" />
{$lang->widget_margin_top} <input type="text" name="widget_margin_top" value="0" size="2" />
{$lang->widget_margin_right} <input type="text" name="widget_margin_right" value="0" size="2" />
{$lang->widget_margin_bottom} <input type="text" name="widget_margin_bottom" value="0" size="2" />
{$lang->widget_margin_left} <input type="text" name="widget_margin_left" value="0" size="2" />
<br />
한 줄에 여러개의 위젯을 나열하고 싶을때에는 위치를 선택해주세요.
{$lang->about_widget_margin}
</div>
</div>

View file

@ -42,6 +42,7 @@
$style .= sprintf("%s:%spx;", "width", trim($vars->widget_width));
$style .= sprintf("margin:%dpx %dpx %dpx %dpx;", $vars->widget_margin_top, $vars->widget_margin_right,$vars->widget_margin_bottom,$vars->widget_margin_left);
if($vars->widget_position) $style .= sprintf("%s:%s;", "float", trim($vars->widget_position));
else $style .= "clear:both;";
if($vars->widget_cr == 'Y') $style .= "clear:left;";
$widget_code = sprintf('<img src="%s" class="zbxe_widget_output" widget="%s" %s style="%s" />', $blank_img_path, $widget, implode(' ',$attribute), $style);
} else {