<?php
include("../../config.inc.php");
include($CommonPath."/admin/func/adm.inc.php");
include($CommonPath."/admin/func/common.inc.php");
include($CommonPath."/admin/func/db.inc.php");
$msql=new SHARP_SQL;
NeedAuth(0);
?><html>
<head>
<title>Flash属性</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" content="no-cache">
<meta HTTP-EQUIV="Expires" content="0">
<link rel=stylesheet type=text/css href=style.css>
<script language=javascript>
 window.onload = function setValues() {
  flashForm.txtname.value = dialogArguments.name;
  flashForm.flash_src.value = dialogArguments.Movie;
  flashForm.txtWidth.value = dialogArguments.width;
  flashForm.txttitle.value = dialogArguments.title;
  flashForm.sltalign.value = dialogArguments.align;
  flashForm.txtborder.value = dialogArguments.border;
  flashForm.txtHeight.value = dialogArguments.height;
  flashForm.txthspace.value = dialogArguments.hspace;
  flashForm.txtvspace.value = dialogArguments.vspace;
  if(!flashForm.sltalign.value){flashForm.sltalign.value=""}
}

function chose_flash (){
	var res = showModalDialog('slibFlash.php', null, 'dialogWidth: 700px; dialogHeight: 380px; center: yes; resizable: no; scroll: no; status: no;');
	if (res) {
		res = res.split("*");
		flashForm.flash_src.value = res[0];
		flashForm.txtWidth.value = res[1];
		flashForm.txtHeight.value = res[2];
	} 
}

function returnvar () {
	if (flashForm.flash_src.value == "") {
		alert ("请输入Flash文件的路径！");
		return false;
	} else {
		window.returnValue = flashForm.flash_src.value + "*" + flashForm.txtname.value + "*" + flashForm.txtborder.value
		 + "*" + flashForm.txttitle.value + "*" + flashForm.txtWidth.value + "*" + flashForm.WidthUnits.value
	 	 + "*" + flashForm.txtHeight.value  + "*" + flashForm.HeightUnits.value  + "*" + flashForm.txthspace.value
	 	  + "*" + flashForm.txtvspace.value + "*" + flashForm.chkplay.value + "*" + flashForm.chkmenu.value 
	 	  + "*" + flashForm.chkloop.value + "*" + flashForm.chkdevicefont.value + "*" + flashForm.sltalign.value
	 	   + "*" + flashForm.tmpquality.value + "*" + flashForm.tmpscale.value;
		window.close();
		return true;
	}
	return true;
}
</script>
</head>
<body class="bodybackground">
<table width="20" border="0" cellspacing="0" cellpadding="0" height="11">
  <tr> 
    <td><img src="dot.gif" height="7" width="1"></td>
  </tr>
</table>
<table align=center>
<form name=flashForm>
  <tr>
      <td> <fieldset><legend>Flash属性</legend> 
        <table width="20" border="0" cellspacing="0" cellpadding="0" height="11">
          <tr> 
            <td><img src="dot.gif" height="7" width="1"></td>
          </tr>
        </table>
        <table border="0" align="center">
          <tr valign="baseline"> 
            <td width="81" align="right" nowrap><lable>FLASH文件：</td>
            <td colspan="3" align="left" nowrap> 
              <input name="flash_src" type="text" size="38">
              <img src="images/folder.gif" width="16" height="16" onClick="chose_flash()" style="cursor:hand"></td>
          </tr>
          <tr valign="baseline"> 
            <td align="right" nowrap><label>名称：</label></td>
            <td width="95"  align="left" nowrap>
              <input name="txtname" type="text" size="7">
            </td>
            <td width="60" align="right" nowrap>边框：</td>
            <td width="107" align="left" nowrap>
              <input name="txtborder" type="text" size="7" maxlength="5">
            </td>
          </tr>
          <tr valign="baseline"> 
            <td align="right" nowrap><label>标题：</label></td>
            <td colspan="3"  align="left" nowrap>
              <input type="text" name="txttitle" style="width:195px">
            </td>
          </tr>
          <tr> 
            <td align="right" valign="baseline" nowrap>宽度：</td>
            <td colspan="3" valign="baseline" nowrap> 
              <input name="txtWidth" type="text" size="8" >
              <select name="WidthUnits">
                <option value="%" name="percent">百分比</option>
                <option value="px" selected name="pixels" nowrap>像素</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td align="right" valign="baseline" nowrap>高度：</td>
            <td colspan="3" valign="baseline" nowrap> 
              <input name="txtHeight" type="text" size="8" >
              <select name="HeightUnits">
                <option value="%" name="percent">百分比</option>
                <option value="px" selected name="pixels" nowrap>像素</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td align="right" valign="baseline" nowrap>水平间踞：</td>
            <td valign="baseline" nowrap>
              <input type="text" name="txthspace" size="8" >
            </td>
            <td align="right" valign="baseline" nowrap>垂直间踞：</td>
            <td valign="baseline" nowrap>
              <input type="text" name="txtvspace" size="8" >
            </td>
          </tr>
          <tr> 
            <td align="right" valign="top" nowrap>播放：</td>
            <td colspan="3" valign="baseline" nowrap>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td>
                    <input name="chkplay" type="checkbox" value="-1" checked>
                    自动 </td>
                  <td>
                    <input name="chkmenu" type="checkbox" value="-1" checked>
                    显示菜单 </td>
                </tr>
                <tr> 
                  <td>
                    <input name="chkloop" type="checkbox" value="-1" checked>
                    循环 </td>
                  <td>
                    <input type="checkbox" name="chkdevicefont" value="0">
                    字体 </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr valign="baseline"> 
            <td align="right" nowrap><label>对齐：</label></td>
            <td colspan="3"  align="left" nowrap>
              <select name="sltalign" style="width:150px">
                <option value="" selected>默认</option>
                <option value="top">顶部</option>
                <option value="middle">居中</option>
                <option value="bottom">底部</option>
                <option value="left">居左</option>
                <option value="center">水平居中</option>
                <option value="right">居右</option>
              </select>
            </td>
          </tr>
          <tr valign="baseline"> 
            <td align="right" nowrap><label>品质：</label></td>
            <td colspan="3"  align="left" nowrap>
              <select name="tmpquality" style="width:150px">
                <option value="Low">低</option>
                <option value="AutoLow">自动低</option>
                <option value="AutoHigh">自动高</option>
                <option value="Medium">中</option>
                <option value="High" selected>高</option>
                <option value="Best">最佳</option>
              </select>
            </td>
          </tr>
          <tr valign="baseline"> 
            <td align="right" nowrap><label>比例：</label></td>
            <td colspan="3"  align="left" nowrap>
              <select name="tmpscale" style="width:150px">
                <option>默认(显示全部)</option>
                <option value="noborder">无边框</option>
                <option value="exactfit">严格匹配</option>
                <option value="noscale">无比例</option>
              </select>
            </td>
          </tr>
        </table>
        </fieldset> 
        <table border="0" align="right" cellpadding="0" cellspacing="5">
          <tr>
            <td><input name="button" type=button onclick="returnvar();" value="确 定"> 
              <input name="button" type=button onClick="self.close();" value="取 消"> 
            </td>
          </tr>
        </table>        </td>
</tr>
</form>
</table>
</body>
</html>