mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1747 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2ba2c7b6ad
commit
919be13ea9
3 changed files with 6 additions and 3 deletions
|
|
@ -16,7 +16,6 @@ function completeGenerateCode(ret_obj) {
|
|||
function completeGenerateCodeInPage(ret_obj,response_tags,params,fo_obj) {
|
||||
var widget_code = ret_obj["widget_code"];
|
||||
var module_srl = fo_obj.module_srl.value;
|
||||
|
||||
if(!opener || !widget_code || !module_srl) {
|
||||
window.close();
|
||||
return;
|
||||
|
|
@ -128,7 +127,7 @@ function doFillWidgetVars() {
|
|||
|
||||
}
|
||||
|
||||
fo_obj.widget_width.value = xWidth(selected_node)+4;
|
||||
fo_obj.widget_width.value = xWidth(selected_node)-6;
|
||||
|
||||
// 컬러셋 설정
|
||||
if(skin && xGetElementById("widget_colorset").options.length<1 && colorset) {
|
||||
|
|
|
|||
|
|
@ -73,6 +73,10 @@
|
|||
<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" /> 선택하시면 이 위젯은 줄을 바꾼후 출력됩니다.
|
||||
</div>
|
||||
|
||||
<div class="widget_header">가로 크기</div>
|
||||
<div class="widget_body">
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@
|
|||
$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));
|
||||
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 {
|
||||
$widget_code = sprintf('<img width="100" height="100" src="%s" class="zbxe_widget_output" widget="%s" %s />', $blank_img_path, $widget, implode(' ',$attribute));
|
||||
}
|
||||
debugPrint($widget_code);
|
||||
|
||||
// 코드 출력
|
||||
$this->add('widget_code', $widget_code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue