<!--#include file="admin_start.asp" -->
<%
id=request("id")
if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的栏目id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

rs.open"select * from jins_site_ads where object_id="&id&" ",conn,1,1
if rs.eof then
   MySys.Error.info = "您请求的广告不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If
%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=site_ads action="admin_site_ads_edit_handle.asp?id=<%=id%>" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(help_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		广告属性编辑
	    </td>
	</tr>		
	<tr id="help_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				·广告的链接地址需包含"http://"<br>
				·广告的高度和宽度请参照页面的样式！<br>
				·如果广告为flash类型，请在广告类型一栏选择 Flash 否则选择 图片 ！<br>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="15%" align=right>广告链接:</td>
				<td  width="85%" align=left>
				  <input name=ads_url type=text value="<%=rs("ads_url")%>" size=71>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right valign="top">广告描述:</td>
				<td  width="85%" align=left valign="top">
				  <textarea name="ads_alt" cols="60" rows="6"><%=rs("ads_alt")%></textarea>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right>广告宽度:</td>
				<td  width="85%" align=left>
				  <input name=ads_width type=text value="<%=rs("ads_width")%>" size=5>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right>广告高度:</td>
				<td  width="85%" align=left>
				  <input name=ads_height type=text value="<%=rs("ads_height")%>"  size=5>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right>广告类型:</td>
				<td  width="85%" align=left><select name=ads_flash >
                  <option value=0  <%if rs("ads_flash")=0 then response.write"selected" %> >图片</option>
                  <option value=1  <%if rs("ads_flash")=1 then response.write"selected" %> >Flash</option>
                </select></td>
			</tr>
			<tr>
				<td  width="15%" align=right>广告图片:</td>
				<td  width="85%" align=left >
		          <input name=ads_src type=text size=56  value="<%=rs("ads_src")%>" >
				  <%
					session("FB_EM_1_SQL_uppath")="../object/images/site_ads"
					'session("FB_EM_1_SQL_filelx")=
				  %>
                  <input type="button"  value="从本地上传" onClick="window.open('admin_upload.asp?formname=site_ads&editname=ads_src&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
			      <a target=_blank href='../<%=rs("ads_src")%>'><img border=0 src='images/btn_pre2.gif' align='absbottom' >
				  </td>
			</tr>
		</table>
		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
		<td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交设置！" >
	  <input type=reset value="重置" >
		</td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}
	
</SCRIPT>
</form>
<%
rs.close
%>
<!--#include file="admin_end.asp" -->