<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" />
<TITLE>编辑产品</TITLE>
<link rel="stylesheet" href="../Images/CssAdmin.css">
<script language="javascript" src="../inc/Admin.js"></script>
<script language="javascript">
function DelPic(pic,ID){
		if(confirm("你确定要删除此图片吗?")==true){
			document.location.href="DelContent.asp?Result=DelPic&pic="+pic+"&delID="+ID;
		}
		else{
			return;
		}
	}
</script>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</HEAD>
<!--#include file="../../Include/Const.asp" -->
<!--#include file="../../Include/Conn1.asp" -->
<!--#include file="../CheckAdmin.asp"-->
<!--
<script language="javascript">
function small_pic(){
var value1 = document.getElementById("SmallPic").value;
	if (value1!=""){

		if (value1.substring(0,7)=="http://"){
			document.getElementById("SmallPicView").src =value1;
		}
		else{
			document.getElementById("SmallPicView").src ="<%=webpath%>"+value1;
		}
		
		document.getElementById("SmallPicView").style.display="block";
		document.getElementById("SmallDown").style.display="none";
		document.getElementById("SmallUp").style.display="block";
		}
	else{
		document.getElementById("SmallPicView").style.display="none";
	}
}

function small_pic2(){
document.getElementById("SmallPicView").style.display="none";
document.getElementById("SmallDown").style.display="block";
document.getElementById("SmallUp").style.display="none"
}


function Big_pic(){
var value2 = document.getElementById("BigPic").value;
	if (value2!=""){
		if (value2.substring(0,7)=="http://"){
			document.getElementById("BigPicView").src = value2;
		}
		else{
			document.getElementById("BigPicView").src = "<%=webpath%>"+value2;
		}
		document.getElementById("BigPicView").style.display="block";
		document.getElementById("BigDown").style.display="none";
		document.getElementById("BigUp").style.display="block";
		}
	else{
		document.getElementById("BigPicView").style.display="none";
	}
}

function Big_pic2(){
document.getElementById("BigPicView").style.display="none";
document.getElementById("BigDown").style.display="block";
document.getElementById("BigUp").style.display="none"
}
</script>
-->
<BODY>
<%
dim sql,rs,sql2,rs2,pic1,pic2,pic3,pic4,pic5,pic6,pic7,pic8,pic9,pic10,pic11,pic12,pic13,pic14,pic15,video,Angel_languageid
Angel_languageid=request("Angel_languageid")
if request.Form("classid")="jk" then 
sql="select * from Angel_img where Angel_languageid="&Angel_languageid&""
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("pic1")=request.Form("pic1")
rs("pic2")=request.Form("pic2")
rs("pic3")=request.Form("pic3")
rs("pic4")=request.Form("pic4")
rs("pic5")=request.Form("pic5")
rs("pic6")=request.Form("pic6")
rs("pic7")=request.Form("pic7")
rs("pic8")=request.Form("pic8")
rs("pic9")=request.Form("pic9")
rs("pic10")=request.Form("pic10")
rs("pic11")=request.Form("pic11")
rs("pic12")=request.Form("pic12")
rs("pic13")=request.Form("pic13")
rs("pic14")=request.Form("pic14")
rs("pic15")=request.Form("pic15")
rs("video")=request.Form("video")
rs("Angel_languageid")=trim(Request.Form("Angel_languageid"))
rs.update
rs.close:set rs=nothing
response.Write("<script language=javascript>alert('修改成功')</script>")
end if 

%>

<div id="Language">
<div style="height:37px;background:#ffffff;border:1px #628ae1 solid;padding-top:5px; width:100%; padding-left:10px;clear:both;">
<h2>简体中文</h2>
</div>

<br/>
<%
  set rs = server.createobject("adodb.recordset")
  sql="select * from Angel_Language order by Lorder desc"
  rs.open sql,conn,1,3
  n=0
  do while not rs.eof
  if request("m")<>"" then
  showm=request("m")
  else
  showm=n
  end if
  if Result = "Add" then
  mLid=rs("id")
  Lid=rs("id")
  else
  mLid=""
  end If
  
sql2="select * from Angel_img where Angel_languageid="&rs("id")&""
set rs2=conn.execute(sql2)
pic1=rs2("pic1")
pic2=rs2("pic2")
pic3=rs2("pic3")
pic4=rs2("pic4")
pic5=rs2("pic5")
pic6=rs2("pic6")
pic7=rs2("pic7")
pic8=rs2("pic8")
pic9=rs2("pic9")
pic10=rs2("pic10")
pic11=rs2("pic11")
pic12=rs2("pic12")
pic13=rs2("pic13")
pic14=rs2("pic14")
pic15=rs2("pic15")
video=rs2("video")
Angel_languageid=rs2("Angel_languageid")
rs2.close:set rs2=nothing


%>
<ul>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#628AE1">
  <tr>
    <td height="24" nowrap><font color="#FFFFFF"><img src="../Images/Explain.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;<strong>添加，修改广告信息</strong></font></td>
  </tr>
  <tr>
    <td height="24" align="center" nowrap  bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#628AE1">
  <form name="editForm<%=mLid%>" method="post" action="GuanggaoEdit.asp?m=<%=n%>">
  <tr>
    <td height="24" nowrap bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" id=editProduct idth="100%">

      <tr>
        <td width="119" height="20" align="right">&nbsp;</td>
        <td width="594">&nbsp;</td>
      </tr>
      <tr>
        <td height="25" align="right"><strong>产品BANNER图：</strong></td>
        <td>
		<input name="pic8" type="text" class="textfield" id="pic8" style="WIDTH: 445px                  v   ;" value="<%=pic8%>" maxlength="100" >&nbsp;&nbsp;<div style="height:26px;line-height:26px;width:180px;float:left">
<input name="pic1" type="text" class="textfield" id="pic1" style="WIDTH: 180px;" value="<%=pic1%>" maxlength="100" > 
</div>
<div style="height:26px;line-height:26px;width:360px;float:left">
<iframe src="../upload.asp?action=banner&fpicid=pic1&formname=editForm<%=mLid%>" width="270" height="25" frameborder="0" scrolling="no"></iframe></div>尺寸：762px*280px</td>
      </tr>
<tr>
        <td height="25" align="right"><strong>首页滚动广告：</strong></td>
        <td width="594">&nbsp;</td>
      </tr>	  
	   <tr>
        <td height="25" align="right">滚 动 图1：</td>
        <td><input name="pic9" type="text" class="textfield" id="pic9" style="WIDTH: 445px;" value="<%=pic9%>" maxlength="100" >&nbsp;&nbsp;<div style="height:26px;line-height:26px;width:180px;float:left">
<input name="pic2" type="text" class="textfield" id="pic2" style="WIDTH: 180px;" value="<%=pic2%>" maxlength="100" > 
</div>
<div style="height:26px;line-height:26px;width:360px;float:left">
<iframe src="../upload.asp?action=banner&fpicid=pic2&formname=editForm<%=mLid%>" width="270" height="25" frameborder="0" scrolling="no"></iframe></div>尺寸：941px*316px</td>
      </tr>
	   <tr>
        <td height="25" align="right">滚 动 图2：</td>
        <td><input name="pic10" type="text" class="textfield" id="pic10" style="WIDTH: 445px;" value="<%=pic10%>" maxlength="100" >&nbsp;&nbsp;<div style="height:26px;line-height:26px;width:180px;float:left">
<input name="pic3" type="text" class="textfield" id="pic3" style="WIDTH: 180px;" value="<%=pic3%>" maxlength="100" > 
</div>
<div style="height:26px;line-height:26px;width:360px;float:left">
<iframe src="../upload.asp?action=banner&fpicid=pic3&formname=editForm<%=mLid%>" width="270" height="25" frameborder="0" scrolling="no"></iframe></div> </td>
      </tr>
<tr>
        <td height="25" align="right">滚 动 图3：</td>
        <td><input name="pic11" type="text" class="textfield" id="pic11" style="WIDTH: 445px;" value="<%=pic11%>" maxlength="100" >&nbsp;&nbsp;<div style="height:26px;line-height:26px;width:180px;float:left">
<input name="pic4" type="text" class="textfield" id="pic4" style="WIDTH: 180px;" value="<%=pic4%>" maxlength="100" > 
</div>
<div style="height:26px;line-height:26px;width:360px;float:left">
<iframe src="../upload.asp?action=banner&fpicid=pic4&formname=editForm<%=mLid%>" width="270" height="25" frameborder="0" scrolling="no"></iframe></div></td>
      </tr>
<tr>
        <td height="25" align="right">滚 动 图4：</td>
        <td><input name="pic12" type="text" class="textfield" id="pic12" style="WIDTH: 445px;" value="<%=pic12%>" maxlength="100" >&nbsp;&nbsp;<div style="height:26px;line-height:26px;width:180px;float:left">
<input name="pic5" type="text" class="textfield" id="pic5" style="WIDTH: 180px;" value="<%=pic5%>" maxlength="100" > 
</div>
<div style="height:26px;line-height:26px;width:360px;float:left">
<iframe src="../upload.asp?action=banner&fpicid=pic5&formname=editForm<%=mLid%>" width="270" height="25" frameborder="0" scrolling="no"></iframe></div></td>
      </tr>
<tr>
        <td width="119" height="20" align="right">&nbsp;</td>
        <td width="594">&nbsp;</td>
      </tr>	  
<tr  style="display:none">
        <td height="25" align="right"><strong>体验中心：</strong></td>
        <td><input name="pic7" type="text" class="textfield" id="pic7" style="WIDTH: 240px;" value="<%=pic7%>" maxlength="100" >&nbsp;&nbsp;<input name="pic6" type="text" class="textfield" id="pic6" style="WIDTH:180px;" value="<%=pic6%>" maxlength="100" >          
          <a href="javaScript:OpenScript('../inc/UpFileForm.asp?Result=pic6',460,250)"><img src="../Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> 尺寸：982px*108px</td>
      </tr>	
<tr style="display:none">
        <td width="119" height="20" align="right"><strong>首页右侧广告：</strong></td>
        <td width="594">&nbsp;</td>
      </tr>	  
	
	

	

	  
<tr  style="display:none">
        <td height="25" align="right">新闻咨询：</td>
        <td><input name="pic13" type="text" class="textfield" id="pic13" style="WIDTH: 340px;" value="<%=pic13%>" maxlength="100" >          
          <a href="javaScript:OpenScript('../inc/UpFileForm.asp?Result=pic13',460,250)"><img src="../Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> 尺寸：708px*361px</td>
      </tr>	
<tr  style="display:none">
        <td height="25" align="right">服务支持：</td>
        <td><input name="pic14" type="text" class="textfield" id="pic14" style="WIDTH: 340px;" value="<%=pic14%>" maxlength="100" >          
          <a href="javaScript:OpenScript('../inc/UpFileForm.asp?Result=pic14',460,250)"><img src="../Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> 尺寸：708px*361px</td>
      </tr>	
<tr  style="display:none">
        <td height="25" align="right">留言中心：</td>
        <td><input name="pic15" type="text" class="textfield" id="pic15" style="WIDTH: 340px;" value="<%=pic15%>" maxlength="100" >          
          <a href="javaScript:OpenScript('../inc/UpFileForm.asp?Result=pic15',460,250)"><img src="../Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> 尺寸：708px*361px</td>
      </tr>	      	    	        	  	  
      <tr>
        <td height="25" align="right">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr style="display:none">
        <td height="25" align="right">首页视频：</td>
        <td><input name="video" type="text" class="textfield" id="video" style="WIDTH: 340px;" value="<%=video%>" >          
          <a href="javaScript:OpenScript('../inc/UpFileForm.asp?Result=video',460,250)"><img src="../Images/Upload.gif" width="30" height="16" border="0" align="absmiddle"></a> 视频格式：.FLV</td>
      </tr>
      <tr>
        <td height="30" align="right">&nbsp;<input name="Angel_languageid" value="<%=Angel_languageid%>" type="hidden" /></td>
        <td valign="bottom"><input name="submitSaveEdit" type="submit" class="button"  id="submitSaveEdit" value="保存" style="WIDTH: 80;" ><input type="hidden" name="classid" value="jk"><input type=hidden name=method value=1></td>
      </tr>
      <tr>
        <td height="20" align="right">&nbsp;</td>
        <td valign="bottom">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  </form>
</table>
</ul>
<%
rs.movenext
n=n+1
If Result = "Modify" then
if n>0 then exit do
end if
loop
rs.close%>

<%If Result <> "Modify" then%>

<%dim m
m=request.QueryString("m")
if m="" then m=0
%>
<script>
function $(id){return document.getElementById(id);}
function $tag(id,tagName){return $(id).getElementsByTagName(tagName)}
var onum=<%=m%>;//用于控制默认打开的标签
var Ds=$tag("Language","ul");
var Ts=$tag("Language","h2");
for(var i=0; i<Ds.length;i++){
if(i==onum){
Ds[i].style.display="block";
Ts[i].className = "title_current";
}
else{
Ds[i].style.display="none";
Ts[i].className = "title_normal";
}
Ts[i].value=i;
Ts[i].onmousedown=function(){
if(onum==this.value){return false;};
Ts[onum].className="title_normal";
Ts[this.value].className="title_current";
Ds[onum].style.display="none";
Ds[this.value].style.display="block";
onum=this.value;
}
}
</script>
<%
end If
%>
</div>
</BODY>
</HTML>
