<!--#include file=CONN.ASP-->
<!--#include file=cookies.asp-->
<%
dim flag
flag=request.cookies("foxwww")("fox")
if flag=10 then
response.Write "<script LANGUAGE='javascript'>alert('您只是后台测试员，请注意身份！');window.location='right.asp';</script>"
response.end
end if%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文章资讯修改</title>
<link rel="stylesheet" type="text/css" href="images/fox.css">
<style type=text/css>
BODY{
	margin:0px;
	FONT-SIZE: 12px;
	FONT-FAMILY: "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	background-color: #CCCC99; 
	scrollbar-highlight-color: #CC9933; 
	scrollbar-arrow-color: #FFFFFF; 
	scrollbar-base-color: #CC9933
}
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#111111; text-decoration:none; }
a:hover { color:#384780;text-decoration:underline; }
.sec_menu { border-left:2px solid #CC3300; border-right:2px solid #CC3300; border-bottom:2px solid #CC3300; overflow:hidden; background:#ffffff; }
.menu_title {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title span { position:relative; top:2px; left:8px; color:#FFFF00; font-weight:bold; }
.menu_title2 {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title2 span { position:relative; top:2px; left:8px; color:#FEFEFE; font-weight:bold; }
input,select,Textarea{
font-family:宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
</style>

</head>

<body topmargin="0" leftmargin="0">

  <center>


<table cellSpacing="0" cellPadding="0" width="742" align="center" border="0" id="table163">
	<tr>
		<td vAlign="top" width="742">
		<table cellSpacing="0" cellPadding="1" width="91%" border="0" id="table164">
			<tr>
				<td style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 0px"><!-- Body Table Start -->
				<table cellSpacing="0" cellPadding="0" width="91%" bgColor="#ffffff" border="0" id="table165">
					<tr vAlign="top">
						<td height="100%">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table166">
							<tr>
								<td>
								</td>
							</tr>
							</table>
  <%
dim rs
dim sql,i
dim count
dim id,class1,class2,company,memo,comname,xxid,xinxipic
id=trim(request("id"))
%>
<table width="742" height="455" border="1" cellpadding="0" cellspacing="0" bordercolor="#CC0000" style="border-width:1px; border-collapse: collapse" id="table170">
    <FORM action=zixun_editchk.asp name=myform method=POST onSubmit="return CheckForm();">
    <tr bgcolor="#BDBEDE">
                      <td width="735" height="28" colspan="2" style="border-style: solid; border-width: 1" bgcolor="#CC0000">
                      <p class="style1" style="MARGIN-LEFT: 6px">
                <span style="font-size: 9pt"><font size="2">&nbsp;</font><font color="#FFFFFF"><b>查看修改资讯内容</b></font></span></td>
              </tr>
    <tr>
<td width="4" background="img/obj_waku3_03.gif">
                  　</td>
                  <td width="730" bgcolor="#EEEEEE">
                    <table width="729" border="0" cellspacing="0" cellpadding="0" height="391">
                      
                    <tr> 
                        <td height="21" bgcolor="#EEEEEE" colspan="2">
                        <p align="center">修改文章内容</td>
                      </tr>
                      <tr> 
                        <td height="25" bgcolor="#EEEEEE">
                        <p>　</td>
                        <td height="25" bgcolor="#EEEEEE" width="665">
                        　</td>
                      </tr>
                      <tr> 
                        <td height="25" bgcolor="#EEEEEE">
                        <p align="center">文章类别</td>
                        <td height="25" bgcolor="#EEEEEE" width="665">
<%
set rs=server.createobject("adodb.recordset")
sql = "select * from FOX_zixun where id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
errijob(0)
response.end
end if
xxid=rs("xxid")
class1=rs("class1")
class2=rs("class2")
company=rs("company")
memo=rs("memo")
comname=rs("comname")
xinxipic=rs("xinxipic")
rs.close
sql = "select * from FOX_wzclass2 order by paixu desc"
rs.open sql,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
        subcat[<%=count%>] = new Array("<%= trim(rs("class2"))%>","<%= trim(rs("class1"))%>","<%= trim(rs("id"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.class2.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.class2.options[document.myform.class2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>
  <%
sql = "select * from FOX_wzclass1 order by paixu desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加分类。"
response.end
else
%>
  <SELECT name="class1" onChange="changelocation(document.myform.class1.options[document.myform.class1.selectedIndex].value)" size="1">
	  <OPTION value="0">==分类==</OPTION>
	  <%do while not rs.eof%>
	  <OPTION  <%if trim(class1)=cstr(rs("id")) then%>selected<%end if%>  value="<%=trim(rs("id"))%>"><%=trim(rs("class1"))%></OPTION>
          <%
        rs.movenext
        loop
	    end if
        rs.close
        %>
  </SELECT>
  <SELECT name="class2">
  <%
sql = "select id,class2 from FOX_wzclass2 where id="&cstr(class2)
rs.open sql,conn,1,1
%>
  <OPTION  <%if trim(class2)=cstr(rs("id")) then%>selected<%end if%>  value="<%=trim(rs("id"))%>"><%=trim(rs("class2"))%></OPTION>
  <%rs.close%>
  </SELECT><input type="hidden" name="id" size="7" maxlength="6" value="<%=id%>"></td>
                      </tr>
                      <tr> 
                        <td height="25" bgcolor="#EEEEEE">
                        <p align="center">文章标题</td>
                        <td height="25" bgcolor="#EEEEEE" width="665">
                        <input type="text" maxlength="40" name="company" size="47" value="<%=company%>">（<font color="#CC5200">40字以内</font>）</td>
                      </tr>
          <tr> 
            <td width="64" align="right" valign="middle">文章内容：</td>
            <td> 
              <textarea name="memo" style="display:none" rows="1" cols="20"><%=memo%></textarea> 
              <iframe ID="eWebEditor1" src="../scgjb/ewebeditor.asp?id=memo&style=s_mini" frameborder="0" scrolling="no" width="640" HEIGHT="350"></iframe>
            </td>
          </tr>

                      <tr>
                        <td height="25" bgcolor="#EEEEEE">
                        是否图片：</td>
                        <td height="25" bgcolor="#EEEEEE" width="665">
                        <input type="text" name="xinxipic" size="23" maxlength="15" value="<%=xinxipic%>">&nbsp;&nbsp;
						<a target="_blank" href="../newsupfiles/<%=xinxipic%>">查看</a></td>
                      </tr>
                                            
                      <tr>
                        <td height="25" bgcolor="#EEEEEE">
                        <p align="center">文章来源：</td>
                        <td height="25" bgcolor="#EEEEEE" width="665">
                        <input type="text" name="comname" size="23" maxlength="15" value="<%=comname%>"></td>
                      </tr>
                                            
                  </table>
                  </td>
              </tr>
    <tr valign="middle" bgcolor="#eeeeee">
                <td height="36" style="border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-bottom-style: solid; border-bottom-width: 1" colspan="2">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0" id="table171">
                  <tr>
                    <td><div align="center">
                      <input type="submit" value="确认添加" name="B2">
                    </div></td>
                    <td><div align="center">
                      <input type="reset" value="取消添加" name="B1">
                    </div></td>
                  </tr>
                </table></td>
              </tr>
</form>
  </table>
						</td>
					</tr>
					</table>
				<!-- Left Table End --></td>
			</tr>
		</table>
		</td>
	</tr>
	</table>
  </center>
</div>
</body>
</html></body></html>