<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn.asp"-->
<!--#include file="../seeion.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=site_info("title")%>-后台管理系统</title>
<script language="javascript">
function showUploadDialog(s_Type, s_Link, s_Thumbnail){
var arr = showModalDialog("../eWebEditor/dialog/i_upload.htm?style=pcfinal&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");}
</script>
<script language = "JavaScript">
<%
Set Rs = Server.CreateObject("Adodb.Recordset")
Rs.Open "SELECT * FROM products_category_sub ORDER BY sub_id asc", conn, 1, 1
%>
var onecount;
onecount=0;
subcat = new Array();
<%
i = 0
Do While Not Rs.EOF
%>
subcat[<%=i%>] = new Array("<%= Trim(Rs("sub_title"))%>","<%= Rs("main_id")%>","<%= Rs("sub_id")%>");
<%
i = i + 1
Rs.MoveNext
Loop
Rs.Close
%>
  
onecount=<%=i%>;

function changelocation(locationid,formname)
    {
    formname.sub_id.length = 0; 

    var locationid = locationid;
    var i;
    for (i = 0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            {
             formname.sub_id.options[formname.sub_id.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script>
<link href="../css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="52"><img src="../images/main_1.jpg" width="52" height="55" /></td>
              <td background="../images/main_2.jpg" class="title1">产品管理</td>
              <td width="52"><img src="../images/main_3.jpg" width="52" height="55" /></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="15" background="../images/main_4.gif">&nbsp;</td>
              <td background="../images/main_9.gif"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="table">
                <%
Set rs = server.CreateObject("adodb.recordset")
exec = "select * from news_image where id="& request.QueryString("id")
rs.Open exec, conn, 1, 1
%>
                <form action="news_image_upd_pass.asp" method="post" name="news_image_upd" id="news_image_upd">
                  <tr>
                    <th width="80" class="td">新闻标题：</th>
                    <td class="td"><input name="id" type="hidden" value="<%=request.querystring("id")%>" />
                        <input name="title" type="text" class="input" value="<%=rs("title")%>" size="50" /></td>
                  </tr>
                  <tr>
                    <th class="td">新闻图片：</th>
                    <td class="td"><input name="thumbnail" type="text" class="input" value="<%=rs("thumbnail")%>" size="50"/>
                        <input name="button" type="button" class="button" onclick="showUploadDialog('image', 'news_image_upd.thumbnail', '')" value="上传图片" />
						<img src="../../<%=rs("thumbnail")%>" width="80" height="20"  align="middle"/>						</td>
                  </tr>
				  <tr>
				  	<th class="td">排序：</th>
					<td class="td"><input name="order_id" type="text" class="input" size="5" value="<%=rs("order_id")%>" /></td>
				  </tr>
                  <tr>
                    <td class="td"><p class="submit">&nbsp;</p></td>
                    <td class="td"><span class="submit">
                      <input name="submit" type="submit" class="button" value="确认修改" />
                    </span></td>
                  </tr>
                </form>
<%
rs.close
set rs=nothing
%>				
              </table></td>
              <td width="15" background="../images/main_5.gif">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="52"><img src="../images/main_6.gif" width="52" height="16" /></td>
              <td background="../images/main_7.gif" width="100%"></td>
              <td width="52"><img src="../images/main_8.gif" width="52" height="16" /></td>
            </tr>
        </table></td>
      </tr>
</table>
</body>
</html>
<!--#include file="../close.asp"-->
