<%On Error Resume Next%>
<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->



<%
id=trim(request("id"))
lb=trim(request("lb"))
set rs=server.createobject("adodb.recordset")
	sql="select * from xinwen where id="&id&""
	rs.open sql,conn,1,1

%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>企业信息发布平台V8.0</title>
<style type="text/css">
<!--
@import url("css2.css");
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>

<body class="admin-top-bg">
<table width="100%" height="480" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="480" align="left" valign="top">&nbsp;</td>
    <td width="99%" align="left" valign="top"><table width="100%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
      <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="163" valign="top" bgcolor="3AA3D0"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td height="25" bgcolor="254B8F"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left"><span class="bsz">&nbsp; ⊙ 文章查看/修改</span></td>
                <td align="right"><span class="bsz">当前位置：网站后台管理___文章查看/修改</span>&nbsp;&nbsp; </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="135" valign="top" bgcolor="#E4F4FC">
			<form name="myform" method="post" action="xinwen_xiugai_do.asp" onSubmit="return CheckForm();">
                <table width="99%"  border="0" cellpadding="2" cellspacing="1" bgcolor="#012567">
                
				  <tr bgcolor="#FFFFFF">
                    <td align="right" bgcolor="#DCEDFA" class="wz">标题：</td>
                    <td align="left" bgcolor="#DCEDFA" class="wz"><input name="f01" type="text" class="textline" id="f01" value="<%=rs("f01")%>" size="60">
                      <%if lb="学校新闻" or lb="教研成果" then%>
                      <select name="lx" size="1" id="lx">
                        <option value="<%=rs("lx")%>"><%=rs("lx")%></option>
                        <option value="隐藏">隐藏</option>
                        <option value="显示">显示</option>
                      </select>
                      <%end if%></td>
                  </tr>  
				  <% if lb<>"最新公告" then %>
                  <tr bgcolor="#FFFFFF">
                  <td width="10%" align="right" bgcolor="#DCEDFA" class="wz"><%if lb="友情链接" then%>链接地址<%else%>信息来源
                    <%end if%>
                    ： </td>
                    <td align="left" bgcolor="#DCEDFA" class="wz"><input name="f02" type="text" class="textline" id="f02" value="<%=rs("f02")%>" size="30"></td>
                  </tr>
				  <% end if %>
                  <tr bgcolor="#FFFFFF">
                    <td align="right" bgcolor="#DCEDFA" class="wz">文章内容： </td>
                    <td align="left" bgcolor="#DCEDFA" class="wz"><iframe id="eWebEditor1" src="ewebeditor/ewebeditor.asp?id=content&style=s_blue" frameborder="0" scrolling="no" width="600" height="400"></iframe>
                        <textarea cols="" name="content" rows="" class="textarea" style="display:none"><%=rs("f04")%></textarea></td>
                  </tr>
				   <% if lb<>"最新公告" then %>
           <tr >
                  <td width="30%" align="right" bgcolor="#E8F1FF" class="wz"><span class="STYLE3">修改附件</span>：</td>
                  <td width="86%" bgcolor="#E8F1FF" class="wz"><label>
              <input name="xtp" type="text" id="xtp" value="<%=rs("xtp")%>" size="30">
              <span class="STYLE3"><span class="STYLE1">
              <input type="button" name="Submit2" value="修改附件" onClick="window.open('upload_flash.asp?formname=myform&editname=xtp&uppath=up_photo&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
              </span></span></label></td>
          </tr>
		  <tr bgcolor="#E8F1FF">
		  <td align="right" class="wz">图片预览：</td>
		  <td class="wz">
		    <img src="<%=rs("xtp")%>"border="0" width="200" ID="idImg" onLoad="dispOriginalSize(this);" onMouseWheel="zoomObj(this);dispCurrentSize();">
		   <div ID="idPicOriginalSize"></div><P><P>
            <div ID="idPicCurrentSize"></div><P><P>
<input type="hidden" name="picwidth" id="picwidth">
<input type="hidden" name="picheight" id="picheight">
		    </td>
                  </tr>
				  <% end if %>
                  <tr bgcolor="#FFFFFF">
                    <td align="center" bgcolor="#DCEDFA" class="wz">&nbsp;</td>
                    <td align="left" bgcolor="#DCEDFA" class="wz"><input type="submit" name="Submit" value="修改">
                        <input name="id" type="hidden" id="id" value="<%=id%>">
						<input name="lb" type="hidden" id="lb" value="<%=lb%>"></td>
                  </tr>
                </table>
            </form>
			</td>
          </tr>
          
        </table></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html>
