<%@ codepage ="936" %>
<!--#include file="conn.asp"-->
<!--#include file="checkUser.asp"-->
<%
dim id
id=request("id")
page=request("page")
set res=server.CreateObject("adodb.recordset")
sql="select * from anli where id="&id
res.open sql,conn,1,1
if not res.eof then
%>
<html>
<head>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>

<STYLE type=text/css>
TD {
COLOR: #000; FONT-FAMILY: 宋体; FONT-SIZE: 12px
}
.GR {
COLOR: #666
}
</STYLE>
<script LANGUAGE="JavaScript">
function check()
{
if (document.myform.cpmc.value=="")
{
alert("标题不能为空")
document.myform.cpmc.focus()
document.myform.cpmc.select() 
return
}
if (document.myform.sort_id.value=="")
{
alert("请选择类别")
return
}

if (document.myform.intro.value=="")
{
alert("详细说明不能为空！")
document.myform.intro.focus()
document.myform.intro.select() 
return
}

document.myform.submit() 
}
</SCRIPT>

<SCRIPT language=javascript src="zyok.JS"></SCRIPT>
<link rel="stylesheet" href="Images/Admin_style.css">
</head>
<BODY text=#000000 leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" bgcolor="#F7FBFF">
<div align="center">
<TABLE cellSpacing=0 cellPadding=0 width="99%" bgColor=#ffffff border=0 style="border-collapse: collapse" bordercolor="#111111">
<TBODY>
<tr>
<TD align=middle>
<CENTER>
<TABLE border=0 cellSpacing=0 width="100%" style="border-collapse: collapse" height="505" cellpadding="0">
<TR><TD width="100%" height="34" bgcolor="#EEF7FF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr> 
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="22">
<tr>
<TD width="770" height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="558" id="AutoNumber1" height="22">
<tr>
<td width="1" valign="bottom">
</td>
                                        <td width="116" background="images/b4.gif" height="22">&nbsp;<img src="IMAGES/cl1.gif" width="13" height="11" border="0"> 
                                          <b><font color="#FFFFFF">修改新闻</font></b></td>
<td width="441">
<p align="right"><font color="#FF0000">注：请不要发布重复信息 
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor=999999></td>
</tr>
</table></TD>
</tr>
</table>
</td>
</tr>
</table></TD>
</TR>
<form method="POST" action="anli_save2.asp?id=<%=id%>&page=<%=page%>" name="myform">
<TR><TD width="100%" valign="top" bgcolor="#EEF7FF">
  <table border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<TD colspan="2" height="20" bgcolor="#EEF7FF" width="772">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<TD height="17" bgcolor="#EEF7FF" width="770">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="84%"><span style="font-size: 10.5pt"><b>&nbsp;<img src="IMAGES/bul_arrowGrnSm.gif" width="12" height="12" border="0"> 
工程案例</b></span></td>
<td width="16%">
<p align="left"><font color="#FF6600">&nbsp;*</font><font color="#000080">为必填项 </font>
</td>
</tr>
</table>
</TD>
</tr>
</table>
</TD>
</tr>
<tr>
<TD align=right height="27" bgcolor="#CEDBFF">标题<SPAN class=word9>：</SPAN></td>
<TD height="27" bgcolor="#CEDBFF">
&nbsp;<input name="cpmc" class="f11" title="输入标题，请不要输入空格和特殊特号" value="<%=res("title")%>" size="31">
                          &nbsp;<font color="#FF6600">*</font></td>
</tr>
<tr>
<TD align="right" height="23" bgcolor="#EEF7FF">类别：</TD>
<TD height="23" bgcolor="#EEF7FF">
&nbsp;<select name="sort_id" id="sort_id" title="请选择类别">
<% set rs=server.createobject("adodb.recordset") 
   sql="select * from class2"
   rs.open sql,conn,1,1
   do while not rs.eof
%>
<option value="<%=rs("sort_id")%>" <%if res("sort_id")=rs("sort_id") then response.write "selected"%>><%=rs("sort")%></option>
<% rs.movenext
   loop
   rs.close
   set rs=nothing
%>
</select>
</td>
</tr>
<tr>
  <TD align="right" height="26" bgcolor="#EEF7FF">作者：</td>
  <TD bgcolor="#EEF7FF">
&nbsp;<input name="autor" class="f11" id="autor" title="输入产品名称，请不要输入空格和特殊特号" value="<%=res("autor")%>" size="20">
    &nbsp;</TD>
</tr>
<tr>
<TD align="right" height="26" bgcolor="#EEF7FF">详细：<br>
&nbsp;(最多2000字)</td>
<TD bgcolor="#EEF7FF">
&nbsp;

		<iframe id="myiframe" src="edit/editor.htm?id=intro&ReadCookie=0" frameborder="0" scrolling="no" width="621" height="460"></iframe> 
	
		<textarea name="intro" style="display:none"> <%=res("introduce")%>  </textarea> 

  &nbsp;<font color="#FF6600">&nbsp;*</font></TD>
</tr>
<tr>
<TD align="right" height="25" bgcolor="#CEDBFF">图片：</td>
                        <TD width=623 height="25" bgcolor="#CEDBFF">
						&nbsp;<INPUT name=pic type=hidden value="<%=res("pic")%>">
						<iframe style="top:2px" id="UploadFiles" src="../tc711up/tc711upload.asp?uploadtitle=pic" frameborder="0" scrolling="No" width="150" height="25"></iframe>						 
						<font color="#FF6600">*(注：图片大小不得超过500KB)</font></td>
</tr> 
<tr bgcolor="#EEF7FF">
  <TD colspan="2" align="right" bgcolor="#EEF7FF">&nbsp;</TD>
  </tr>
<tr>
<TD colspan="2" align="center" width="772" height="21" bgcolor="#CEDBFF">
<INPUT class="f11" type="button" value="确 定" onClick="check()">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT class="f11" type="button" value="返 回">
</TD>
</tr>
<tr>
<TD colspan="2" align="center" height="12" bgcolor="#EEF7FF"></TD>
</tr>
</table>
</TD></TR>
</FORM>
</TABLE>
</CENTER></TD>
</tr>
</TBODY></TABLE>
</div> 
</body>
</html>

<% end if
   res.close
   set res=nothing
   conn.close
   set conn=nothing
 %>