<!-- #include file="../../include/common.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>插入图片</title>
<link rel="stylesheet" href="html_edit.css" type="text/css">
<script language="javascript">
<!--
function CheckImgInsert()
{
  var tmp_pic=win_frm.pic.value;
  if (tmp_pic=="" || tmp_pic==null || tmp_pic=="http://")
  {
    alert("请先填写图片地址或上传图片！");
    win_frm.pic.focus();
    return false;
  }
  var tmp_width=win_frm.tmp_width.value;
  var tmp_height=win_frm.tmp_height.value;
  var tmp_border=win_frm.tmp_border.value;
  var tmp_alt=win_frm.tmp_alt.value;
  var tmp_align=win_frm.tmp_align.value;
  var tmp_style=win_frm.tmp_style.value;
  var tmp_temp="<img src=\"<%=web_dim(13)%>"+tmp_pic+"\"";
  if (tmp_border!="" && tmp_border!=null) { tmp_temp+=" border="+tmp_border; }
  if (tmp_width!="" && tmp_width!=null) { tmp_temp+=" width="+tmp_width; }
  if (tmp_height!="" && tmp_height!=null) { tmp_temp+=" height="+tmp_height; }
  if (tmp_alt!="" && tmp_alt!=null) { tmp_temp+=" alt=\""+tmp_alt+"\""; }
  if (tmp_align!="" && tmp_align!=null) { tmp_temp+=" align="+tmp_align; }
  if (tmp_style!="" && tmp_style!=null) { tmp_temp+=" style=\""+tmp_style+";\""; }
  tmp_temp+=">";
  var upid=win_frm.upid.value;
  if (upid!="" || upid!=null) { window.opener.add_frm.upid.value+=upid; }
  window.opener.onImage(tmp_temp,1);
  window.close();
}

function is_int()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
//-->
</script>
</head>
<body bgcolor="menu" style="border:0;overflow: hidden;">
<form name="win_frm" method="post">
<input type=hidden name=upid value="">
<fieldset style="padding-bottom:5px"><legend disabled>插入图片</legend>
  <table width="100%" border=0 cellpadding=0 cellspacing=0>
  <tr><td align=center>
    <table width="98%" border=0 cellpadding=0 cellspacing=2>
    <tr id=tr1><td>图片地址：<input name="pic" size="40" value="http://"></td></tr>
    <tr id=tr1><td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='../../common/upload.asp?uptype=pics&uppath=<%response.write trim(request.querystring())%>&upname=<%response.write left(trim(request.querystring()),1)%>&uptext=pic'></iframe></td></tr>
    </table>
  </td></tr>
  </table>
</fieldset>
<table border=0><tr><td height=3></td></tr></table>
<fieldset style="padding-bottom:5px"><legend disabled>图片属性</legend>
  <table width="100%" border=0 cellpadding=0 cellspacing=0>
  <tr><td align=center>
    <table border=0 cellpadding=0 cellspacing=2 width="98%">
    <tr>
    <td>宽度：<input name="tmp_width" id=width2 onKeyPress="event.returnValue=is_int();" size=5 maxlength="4">&nbsp;像素</td>
    <td>高度：<input name="tmp_height" id="height2" onKeyPress="event.returnValue=is_int();" size=5 maxlength="4">&nbsp;像素</td>
    </tr>
    <tr>
    <td>边框：<input name="tmp_border" value="0" onKeyPress="event.returnValue=IsDigit();" size=5 maxlength="4">&nbsp;像素</td>
    <td>说明：<input name="tmp_alt" size="15" maxlength="20"></td>
    </tr>
    <tr>
    <td>对齐：<select name="tmp_align">
<option value="">&nbsp;</option>
<option value="absmiddle"> 绝对居中</option>
<option value="middle"> 居中</option>
<option value="bottom"> 底端</option>
<option value="top"> 顶部</option>
<option value="left" selected> 居左</option>
<option value="right"> 居右</option>
<option value="baseline"> 基线</option>
<option value="texttop"> 文本项部</option>
<option value="absbottom"> 绝对底端</option>
</select></td>
    <td>效果：<select name="tmp_style" id=styletype>
<option selected>不应用</option>
<option value="filter:Alpha(Opacity=50)">半透明效果</option>
<option value="filter:Alpha(Opacity=0, FinishOpacity=100, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=140)">线型透明效果</option>
<option value="filter:Alpha(Opacity=10, FinishOpacity=100, Style=2, StartX=30, StartY=30, FinishX=200, FinishY=200)">放射透明效果</option>
<option value="filter:blur(add=1,direction=14,strength=15)">模糊效果</option>
<option value="filter:blur(add=true,direction=45,strength=30)">风动模糊效果</option>
<option value="filter:Wave(Add=0, Freq=60, LightStrength=1, Phase=0, Strength=3)">正弦波纹效果</option>
<option value="filter:gray">黑白照片效果</option>
<option value="filter:Chroma(Color=#FFFFFF)">白色为透明</option>
<option value="filter:DropShadow(Color=#999999, OffX=7, OffY=4, Positive=1)">投射阴影效果</option>
<option value="filter:Shadow(Color=#999999, Direction=45)">阴影效果</option>
<option value="filter:Glow(Color=#ff9900, Strength=5)">发光效果</option>
<option value="filter:flipv">垂直翻转显示</option>
<option value="filter:fliph">左右翻转显示</option>
<option value="filter:grays">降低彩色度</option>
<option value="filter:xray">X光照片效果</option>
<option value="filter:invert">底片效果</option>
</select></td>
    </tr>
    </table>
  </td></tr>
  </table>
</fieldset>
<table width="98%" border=0 cellpadding=0 cellspacing=0 height="35">
<tr><td align="right"><input type="button" class="btn" name="OK" value=" 确定 " onclick="CheckImgInsert();">　　<input type=button class=btn onclick="javascript:window.close();" value=" 取消 "></td></tr>
</table>
</form>
</body>
</html>