<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
id=request.QueryString("id")
if id="" or IsNumeric(id)<>true then
	response.write"请输入正确的ID号！"
	response.end
end if
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_indexads where ID="&id&""
	rs.open sql,conn,1,1
	if rs.eof then
	response.Write "系统错误非法操作"
	response.End()
	else
	H_sort_id=rs("H_sort")
	H_name=rs("H_name")
	H_TXT=rs("H_TXT")
	H_url=rs("H_url")
	H_px=rs("H_px")
	H_PIC=rs("H_PIC")
	H_W=rs("H_W")
	H_H=rs("H_H")
	end if
	rs.close
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,会员中心</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
        <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">用户中心</a> &gt; 首页</td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
                </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>

			
			<form action="indexads_edit_save.asp?id=<%=id%>" method="post" enctype="multipart/form-data" name="addform" target="_self">
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
                <tr>
                    <td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="uc_huise">增加首页广告                        </td>
                </tr>
                <tr>
                    <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >广告类型：</td>
                    <td height="2" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_sort" type="radio" value="1" <%if H_sort_id=1 then response.Write "checked" end if%>>
                      图片广告
                        <input type="radio" name="H_sort" value="2" <%if H_sort_id=2 then response.Write "checked" end if%>>
动画广告
<input type="radio" name="H_sort" value="3" <%if H_sort_id=3 then response.Write "checked" end if%>>
自定义代码（文字广告）</td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >客户名称：</td>
                  <td height="6" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_name" type="text" id="H_name" value="<%=H_name%>"></td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >链接地址：</td>
                  <td height="3" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_url" type="text" id="H_url" value="<%=H_url%>"></td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >广告排序：</td>
                  <td height="1" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_px" type="text" id="H_px" value="<%=H_px%>"></td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >广告宽度：</td>
                  <td height="1" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_W" type="text" id="H_W" value="<%=H_W%>">
                  自定义代码模式无效</td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >广告高度：</td>
                  <td height="3" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="H_H" type="text" id="H_H" value="<%=H_H%>">
自定义代码模式无效</td>
                </tr>
                <tr>
                  <td width="128" height="14" align="right" bgcolor="#FFFFFF" class="fc_green" >上传广告：</td>
                  <td height="44" align="left" bgcolor="#FFFFFF" class="uc_huise" ><br>
        <input name="H_PIC" type="file" size="40" id="spaceimage" onChange="SeePic($Obj('picview'),$Obj('spaceimage'));" />					
		    <input type="hidden" name="oldimg" value="images/wh.jpg" /></td>
                </tr>
                <tr>
                  <td width="128" height="15" align="right" bgcolor="#FFFFFF" class="fc_green" >广告代码：</td>
                  <td height="45" align="left" bgcolor="#FFFFFF" class="uc_huise" ><textarea name="H_TXT" cols="60" rows="4" id="H_TXT"><%=H_TXT%></textarea> 
                  选择 自定义代码 时有效</td>
                </tr>
                <tr>
                  <td width="128" height="30" align="right" bgcolor="#FFFFFF" class="fc_green" >&nbsp;</td>
                  <td height="30" align="left" bgcolor="#FFFFFF" class="uc_huise" ><input name="Submit" type="submit" class="biao" id="Submit" value="立即修改"></td>
                </tr>
            </table>
	        
			</form>
		</td>
    </tr>
</table>
<!--#include file="end.asp"-->

</BODY></HTML>
