<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--
'##################################################################                                                                 
'★         web08.net - 威博购物系统                                              
'★  版权所有: web08.net                                                                                                       
'★  程序制作: 威博网络技术公司                                     
'★           email:web08net@hotmail.com                           
'★            Q Q :645095280,475980829 
'★	       电话:021-55520018                                                                                                         
'★  相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html
'★            [支持论坛] http://bbs.web08.net/                                                                                     
'★  主页地址: http://www.web08.net/   
'★		http://www.021web.com.cn/			                                                                 
'###################################################################
-->
<html>
<head>
<title>其他系统-威博多用户商城后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<!-- #include file="../include2.asp" -->
<%#@~^DgAAAA==(kb[sk	`J8v8E#0gMAAA==^#~@%>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background" onLoad="LoadFinish()">
<!-- #include file="../loading2.asp" -->
<center>
<!--#include file="../other/web_other_include.asp"-->
<div class="div-top">
<span class="right-span"><a href="javascript:history.go(-1);"><font color="#990000">返回幻灯片广告管理</font></a>&nbsp;&nbsp;</span>
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - 添加幻灯片广告 </span>
</div>
<div class="tab-div">
<form action="wadsave.asp?action=addhdp" name="myform" method="post" >
<table width="100%"border="0" align="center" cellspacing="0" bordercolorlight="#FFffff"  bordercolordark="#CCCCCC" bgcolor="#CCCCCC" >			  
<tr>
  <td width="20%" height="20" align="right" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
  <td height="20" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">幻灯片广告类型：</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><select name="AdType" id="AdType" onChange="ChooseadType(this.value);">
<%=#@~^EAAAAA==!Y49wzNSb/DcJr#MgUAAA==^#~@%>
</select></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">广告名称：</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><input name="flash_name" type="text" id="flash_name"></td>
</tr>

<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">广告的宽度：</td>
<td width="80%" height="30" bgcolor="#FFFFFF" class="hback"><label>
<input name="flash_w" type="text" id="flash_w">
</label></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">广告的高度：</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><input name="flash_h" type="text" id="flash_h"></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">名称显示高度：</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><input name="flash_wordw" type="text" id="flash_wordw"><span id="showtip" class="showtip"></span></td>
</tr>
<tr>
<script language="VBScript" type="text/VBScript">
function nt_spshux()
sp_xianshishu="<table width='100%' border=0 cellspacing=0 cellpadding=3>"
for s_s=1 to myform.amount.value
sp_xianshishu=sp_xianshishu&" <tr> <td width='28%'><div align=right>图片名称：<input name=sp_name"&s_s&" type='text' id=sp_name"&s_s&"  size=10  ></div></td><td width='72%'>图片链接地址：<input name=sp_value"&s_s&"  type='text'   id=sp_value"&s_s&" > 图片地址：<input type='text' name=ord"&s_s&" value=''><input name=SelectPic"&s_s&" type='button' id=SelectPic"&s_s&" value='选择图片' onClick='javascript:uppic('one','ord"&s_s&"');'></td></tr>"
next
sp_xianshishu=sp_xianshishu&"</table>"
sp_sx.innerhtml=sp_xianshishu

end function
function nt_spshuzeng()
s_ss=myform.amount.value+1
myform.amount.value=s_ss
jiaspxianshi="<table width='100%' border=0 cellspacing=0 cellpadding=3><tr> <td width='28%'><div align=right>图片名称：<input name=sp_name"&s_ss&" type='text'  id=sp_name"&s_ss&"  size=10 ></div></td><td width='72%'>图片链接地址：<input name=sp_value"&s_ss&"  type='text'   id=sp_value"&s_ss&" > 图片地址：<input type='text' name=ord"&s_ss&" value='' ><input name=SelectPic"&s_ss&" type='button' id=SelectPic"&s_ss&" value='选择图片' onClick='javascript:uppic(""one"",""ord"&s_ss&""");'></td></tr></table>"
sp_sx.innerhtml=sp_sx.innerhtml&jiaspxianshi

end function
</script>
<td width="20%" height="30" align="right" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
<td height="30" bgcolor="#FFFFFF" class="hback"><input name="amount" type="hidden"  class="input10b" id="amount" value="1" size="5">  <input type="button" name="Submit2"  value="增加1个" onClick="nt_spshuzeng()"></td>
</tr>
<tr>
<td height="30" colspan="2" align="right" bgcolor="#FFFFFF" class="hback"><span id="sp_sx">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="28%" align="right">图片名称：<input name="sp_name1" type="text" id="sp_name1" value="" size="10"></td>
<td width="30%">图片链接地址：<input name="sp_value1" type="text" id="sp_value1" value=""></td>
<td width="42%">图片地址：<input name="ord1" type="text" id="ord1" value=""><input name="SelectPic" type="button" id="SelectPic" value="选择图片" onClick="javascript:uppic('one','ord1');"></td>
</tr>
</table>
</span></td>
</tr>
<tr >
  <td height="0" align="right" bgcolor="#FFFFFF" class="hback"></td>
  <td height="0" bgcolor="#FFFFFF"  align="left"><span id="showtext" style="color:#FF0000"></span></td>
</tr>
<tr id="tr6">
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">说明文字</td>
<td height="30" align="left" bgcolor="#FFFFFF" class="hback"><input name="AdCaptionTxt" type="text"  title="广告说明文字，可选项" size="32" maxlength="100"></td>
</tr>
<tr>
<td height="9" align="right" valign="top" bgcolor="#FFFFFF" class="hback">广告备注</td>
<td height="9" align="left" bgcolor="#FFFFFF" class="hback"><textarea name="AdRemarks" cols="80" rows="5" title="广告备注,仅供后台查阅,不做前台调用"><%=#@~^DgAAAA==O:2|l9D+slMV/zwUAAA==^#~@%></textarea></td>
</tr>
<tr>
<td height="9" align="right" valign="top" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
<td height="40" align="left" bgcolor="#FFFFFF" class="hback"><label>
<input type="submit" name="Submit" value=" 确 定 " onClick="return check();">
<input type="reset" name="Submit3" value="  取 消  ">
</label></td>
</tr>
<tr>
<td height="80" colspan="2" align="left" valign="top" bgcolor="#FFFFFF" class="showtip">备注：1、当图片名称为空时，则默认不记录该条信息<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2、幻灯片广告只支持JPG格式<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   &nbsp;&nbsp;&nbsp; 3、flash视频播放只支持flv格式 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4、幻灯片类型最多支持6个图片显示或者文字 </td>
</tr>
</table>
</form>
</div>
</center>
<!-- #include file="../bottom2.asp" -->
<script language="JavaScript" type="text/JavaScript">
function uppic(model,frmname) 
{
window.open("../upload/upload.asp?uppath=showpic&ProdId="+model+"&frmname="+frmname,"upload", " width=550, height=280, resizable=no,menubar=1,scrollbars=1")
}
</script>
<script language="JavaScript" type="text/JavaScript">
function check()
{  
if(document.myform.flash_name.value=='') {
alert("广告名称不能为空！");
document.myform.flash_name.focus();
return false;
}
if(document.myform.flash_w.value=='') {
alert("广告的宽度不能为空！");
document.myform.flash_w.focus();
return false;
}
if(document.myform.flash_h.value=='') {
alert("广告的高度不能为空！");
document.myform.flash_h.focus();
return false;
}
if(document.myform.flash_wordw.value=='') {
alert("图片显示的名称不能为空！");
document.myform.flash_wordw.focus();
return false;
}
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function ChooseadType(MallsType)
{
	switch (MallsType)
	{
		case "0":
			document.getElementById('showtip').innerHTML="广告标题显示高度";
			document.getElementById('showtext').innerHTML="只支持JPG格式，最多只能显示6张图片";
			break;
		case "1":

			document.getElementById('showtip').innerHTML="广告标题显示高度";
			document.getElementById('showtext').innerHTML="最多只能显示7张广告图片";
			break;
		case "5":
			document.getElementById('showtip').innerHTML="无需填写";
			document.getElementById('showtext').innerHTML="flash视频播放只支持flv格式,图片名称为视频名称，图片链接地址无需填写，图片上传为视频地址";
			break;
		case "9":
			document.getElementById('SelectPic').disabled=true;
			document.getElementById('showtip').innerHTML="文字之间的行距";
			document.getElementById('showtext').innerHTML="图片名称为文字广告名称，图片链接地址为文字广告链接地址，图片无需上传";
			break;
	default:
		 	document.getElementById('SelectPic').disabled=false;
		 	document.getElementById('showtext').innerHTML="提示：当图片名称为空时，则默认不记录该条信息";
			document.getElementById('showtip').innerHTML="";
		break;
	}
 }
-->
</script> 

</body>
</html>





