#18033904 관련/ 멀티미디어 배경 설정 추가.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6489 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-06-07 11:54:38 +00:00
parent 3983c16078
commit 53ca39ddfb
5 changed files with 33 additions and 3 deletions

View file

@ -10,4 +10,9 @@
$lang->multimedia_width = "가로크기";
$lang->multimedia_height = "세로크기";
$lang->multimedia_auto_start = "자동시작";
$lang->multimedia_wmode = '위치';
$lang->multimedia_wmode_window = '항상 위';
$lang->multimedia_wmode_opaque = '배경 불투명';
$lang->multimedia_wmode_transparent = '배경 투명';
?>

View file

@ -53,12 +53,18 @@
if($auto_start!="true") $auto_start = "false";
else $auto_start = "true";
$wmode = $xml_obj->attrs->wmode;
if($wmode == 'window') $wmode = 'window';
elseif($wmode == 'opaque') $wmode = 'opaque';
else $wmode = 'transparent';
$caption = $xml_obj->body;
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
$src = str_replace('&', '&', $src);
return sprintf("<div><script type=\"text/javascript\">displayMultimedia(\"%s\", \"%s\",\"%s\", { autostart : %s });</script></div>", $src, $width, $height, $auto_start);
return sprintf("<div><script type=\"text/javascript\">displayMultimedia(\"%s\", \"%s\",\"%s\", { \"autostart\" : %s, \"wmode\" : \"%s\" });</script></div>", $src, $width, $height, $auto_start, $wmode);
}
}
?>

View file

@ -31,6 +31,16 @@
<th scope="row"><div>{$lang->multimedia_auto_start}</div></th>
<td><input type="checkbox" id="multimedia_auto_start" value="Y" /></td>
</tr>
<tr>
<th scope="row"><div>{$lang->multimedia_wmode}</div></th>
<td>
<select name="multimedia_wmode">
<option value="window">{$lang->multimedia_wmode_window}</option>
<option value="opaque">{$lang->multimedia_wmode_opaque}</option>
<option value="transparent" selected="selected">{$lang->multimedia_wmode_transparent}</option>
</select>
<p>{$lang->about_ccl_allow_modification}</p>
</td>
</table>
</div>
<div id="popFooter">

View file

@ -14,6 +14,9 @@ function getMultimedia() {
var width = xWidth(node);
var height = xHeight(node);
var auto_start = node.getAttribute("auto_start");
var wmode = node.getAttribute("wmode");
var fo_obj = xGetElementById('fo');
xGetElementById("multimedia_url").value = url;
xGetElementById("multimedia_caption").value = caption;
@ -21,6 +24,9 @@ function getMultimedia() {
xGetElementById("multimedia_height").value = height-4;
if(auto_start=="true") xGetElementById("multimedia_auto_start").checked = true;
if(wmode == 'window') fo_obj.multimedia_wmode.selectedIndex = 0;
else if(wmode == 'opaque') fo_obj.multimedia_wmode.selectedIndex = 1;
else fo_obj.multimedia_wmode.selectedIndex = 2;
}
function insertMultimedia(obj) {
@ -29,6 +35,9 @@ function insertMultimedia(obj) {
var url = xGetElementById("multimedia_url").value;
url = url.replace(request_uri,'');
// url = encodeURI(url);
var fo_obj = xGetElementById('fo');
var wmode = fo_obj.multimedia_wmode.options[fo_obj.multimedia_wmode.selectedIndex].value;
var caption = xGetElementById("multimedia_caption").value;
@ -46,7 +55,7 @@ function insertMultimedia(obj) {
return;
}
var text = "<img src=\"./common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+url+"\" width=\""+width+"\" height=\""+height+"\" style=\"display:block;width:"+width+"px;height:"+height+"px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\""+auto_start+"\" alt=\""+caption+"\" />";
var text = "<img src=\"./common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+url+"\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" style=\"display:block;width:"+width+"px;height:"+height+"px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\""+auto_start+"\" alt=\""+caption+"\" />";
opener.editorFocus(opener.editorPrevSrl);

View file

@ -395,7 +395,7 @@ function insertUploadedFile(editorSequence) {
text.push(temp_code);
// 이미지외의 경우는 multimedia_link 컴포넌트 연결
} else {
text.push("<img src=\"common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+file.download_url+"\" width=\"400\" height=\"320\" style=\"display:block;width:400px;height:320px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\"false\" alt=\"\" />");
text.push("<img src=\"common/tpl/images/blank.gif\" editor_component=\"multimedia_link\" multimedia_src=\""+file.download_url+"\" width=\"400\" height=\"320\" style=\"display:block;width:400px;height:320px;border:2px dotted #4371B9;background:url(./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif) no-repeat center;\" auto_start=\"false\" wmode=\"transparent\" alt=\"\" />");
}
// binary파일의 경우 url_link 컴포넌트 연결