<!-- #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 CheckfileInsert()
{
  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_alt=win_frm.tmp_alt.value;
  if (tmp_alt=="" || tmp_alt==null) { tmp_alt="[点击下载]"; }
  var tmp_target=win_frm.tmp_target.value;
  var tmp_temp="<a href=\"<%=web_dim(13)%>"+tmp_pic+"\"";
  if (tmp_target=="yes") { tmp_temp+=" target=_blank"; }
  tmp_temp+=">"+tmp_alt+"</a>";
  var upid=win_frm.upid.value;
  if (upid!="" || upid!=null) { window.opener.add_frm.upid.value+=upid; }
  window.opener.jk_edit_insertFile(tmp_temp,1);
  window.close();
}
//-->
</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> <td>链接文字：<input name="tmp_alt" size="20">　　<input type=checkbox name=tmp_target value="yes" checked>在新窗口打开</td></tr>
    <tr id=tr1><td><iframe frameborder=0 name=upload_frame width="100%" height=30 scrolling=no src="../upload.asp?uptype=files&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 width="98%" border=0 cellpadding=0 cellspacing=0 height="35">
<tr><td align="right"><input type="button" class="btn" name="OK" value=" 确定 " onclick="CheckfileInsert();">　　<input type=button class=btn onclick="javascript:window.close();" value=" 取消 "></td></tr>
</table>
</form>
</body>
</html>