⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ads_edit.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_advertisement_ads_edit" ResponseEncoding="utf-8" Codebehind="ads_edit.aspx.cs" %>

<!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>
    <title>修改广告信息</title>
    <link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/css.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
</head>
<body>
    <form id="AdsForm" runat="server" method="post" action="">
      <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="toptable">
        <tr>
          <td width="57%" class="sysmain_navi"  style="PADDING-LEFT: 14px" Height="30">修改广告信息</td>
          <td width="43%"  class="topnavichar"  style="PADDING-LEFT: 14px" ><div align="left">位置导航:<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="list.aspx" target="sys_main" class="list_link">广告系统</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" />修改广告信息</div></td>
        </tr>
      </table>
  <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF" class="table">
    <tr class="TR_BG_list">
      <td width="13%" align="center" class="navi_link" style="width: 15%">广告名称</td>
      <td colspan="2" align="left"><asp:TextBox ID="adName" runat="server" Width="200px" MaxLength="50" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_001',this)">帮助</span><span id="spanadName"></span></td>
    </tr>
    <tr class="TR_BG_list">
      <td align="center" class="navi_link">所属分类</td>
      <td colspan="2" align="left"><asp:DropDownList ID="ClassID" runat="server" CssClass="form" Width="205px"></asp:DropDownList>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_002',this)">帮助</span><span id="spanClassID"></span></td>
    </tr>
    <tr class="TR_BG_list">
      <td align="center" class="navi_link" style="width: 15%">广告类型</td>
      <td colspan="2" align="left"><asp:DropDownList ID="adType" runat="server" CssClass="form" Width="205px" onchange="javascript:checkadType(this.value);">
     </asp:DropDownList>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_003',this)">帮助</span></td>
    </tr>
    <tr class="TR_BG_list" id="TrleftPic">
      <td align="center" class="navi_link" style="width: 15%">(左图片/动画)地址</td>
      <td colspan="2" align="left"><asp:TextBox ID="leftPic" runat="server" Width="200px" MaxLength="200" CssClass="form"></asp:TextBox> <img src="../../sysImages/folder/s.gif" style="cursor:pointer;" title="选择图片"  onclick="selectFile('pic',document.AdsForm.leftPic,280,500);document.AdsForm.leftPic.focus();" />
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_004',this)">帮助</span> <span id="spanleftPic"></span></td>
    </tr>
    <tr class="TR_BG_list" id="TrleftSize">
      <td align="center" class="navi_link" style="width: 15%">(左图片/动画)宽高</td>
      <td colspan="2" align="left"><asp:TextBox ID="leftSize" runat="server" Width="200px" MaxLength="12" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_005',this)">帮助</span><span id="spanleftSize"></span><span id="spanleftSize1"></td>
    </tr>
    <tr class="TR_BG_list" style="display:none;" id="TrrightPic">
      <td align="center" class="navi_link" style="width: 15%">(右图片/动画)地址</td>
      <td colspan="2" align="left"><asp:TextBox ID="rightPic" runat="server" Width="200px" MaxLength="200" CssClass="form"></asp:TextBox> <img src="../../sysImages/folder/s.gif" style="cursor:pointer;" title="选择图片"  onclick="selectFile('pic',document.AdsForm.rightPic,280,500);document.AdsForm.rightPic.focus();" />
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_006',this)">帮助</span><span id="spanRightPic"></span></td>
    </tr>
    <tr class="TR_BG_list" style="display:none;" id="TrrightSize">
      <td align="center" class="navi_link" style="width: 15%">(右图片/动画)宽高</td>
      <td colspan="2" align="left"><asp:TextBox ID="rightSize" runat="server" Width="200px" MaxLength="12" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_007',this)">帮助</span><span id="spanrightSize"></span><span id="spanrightSize1"></span></td>
    </tr>
    <tr class="TR_BG_list" id="TrLinkURL">
      <td align="center" class="navi_link" style="width: 15%">链接地址</td>
      <td colspan="2" align="left"><asp:TextBox ID="LinkURL" runat="server" Width="200px" MaxLength="200" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_008',this)">帮助</span><span id="spanLinkURL"></span><span id="spanLinkURL1"></span></td>
    </tr>
    <tr class="TR_BG_list" id="TrCycID" style="display:none;">
      <td align="center" class="navi_link" style="width: 15%">循环广告位</td>
      <td colspan="2" align="left">
      <asp:DropDownList ID="CycID" runat="server" CssClass="form" Width="205px"> 
     </asp:DropDownList><input type="hidden" id="CycTF" runat="server" name="CycTF" />
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_009',this)">帮助</span><span id="spanCycID"></span></td>
    </tr>
    <tr class="TR_BG_list" id="TrCycSpeed" style="display:none;">
      <td align="center" class="navi_link" style="width: 15%">循环速度</td>
      <td colspan="2" align="left"><asp:TextBox ID="CycSpeed" runat="server" Width="200px" MaxLength="4" CssClass="form" Text="0"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_010',this)">帮助</span><span id="spanCycSpeed"></span><span id="spanCycSpeed1"></span></td>
    </tr>
    <tr class="TR_BG_list" id="TrCycDic" style="display:none;">
      <td align="center" class="navi_link" style="width: 15%">循环方向</td>
      <td align="left"><asp:RadioButtonList ID="CycDic" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Value="0" Selected="true">上</asp:ListItem>
          <asp:ListItem Value="1" >下</asp:ListItem>
          <asp:ListItem Value="2" >左</asp:ListItem>
          <asp:ListItem Value="3" >右</asp:ListItem>
        </asp:RadioButtonList></td>
      <td align="left" Width="65%"><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_011',this)">帮助</span></td>
    </tr>
    <tr class="TR_BG_list" style="display:none;" id="TrAdTxt">
      <td align="center" class="navi_link" style="width: 15%" valign="top">广告内容<br />(<a href="javascript:f_add()" class="list_link">添加</a>)</td>
      <td colspan="2" align="left"><div id="DivadTxt" runat="server"></div></td>
    </tr>
    <tr class="TR_BG_list">
      <td align="center" class="navi_link" style="width: 15%">显示条件</td>
      <td align="left"><asp:RadioButtonList ID="CondiTF" runat="server" RepeatDirection="Horizontal" Width="196px">
          <asp:ListItem Value="1" onclick="javascript:checkCondiTF(this.value);">有</asp:ListItem>
          <asp:ListItem Value="0" Selected="true" onclick="javascript:checkCondiTF(this.value);">无</asp:ListItem>
        </asp:RadioButtonList></td>
      <td align="left" Width="65%"><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_012',this)">帮助</span></td>
    </tr>
    <tr class="TR_BG_list" style="display:none;" id="TrmaxShowClick">
      <td align="center" class="navi_link" style="width: 15%">最大显示数</td>
      <td colspan="2" align="left"><asp:TextBox ID="maxShowClick" runat="server" Width="200px" MaxLength="4" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_014',this)">帮助</span><span id="spanmaxShowClick"></span></td>
    </tr>
    <tr class="TR_BG_list" style="display:none;" id="TrTimeOutDay">
      <td align="center" class="navi_link" style="width: 15%">到期时间</td>
      <td colspan="2" align="left"><asp:TextBox ID="TimeOutDay" runat="server" Width="200px" CssClass="form" ReadOnly="true"></asp:TextBox>  <input class="form" type="button" value="选择日期"  onclick="selectFile('date',document.AdsForm.TimeOutDay,160,400);document.AdsForm.TimeOutDay.focus();" />
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_015',this)">帮助</span></td>
    </tr>
    <tr class="TR_BG_list"  style="display:none;" id="TrmaxClick">
      <td align="center" class="navi_link" style="width: 15%">点击次数</td>
      <td colspan="2" align="left"><asp:TextBox ID="maxClick" runat="server" Width="200px" MaxLength="4" CssClass="form"></asp:TextBox>
        <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_016',this)">帮助</span><span id="spanmaxClick">
          </span></td>
    </tr>
    <tr class="TR_BG_list">
      <td align="center" class="navi_link" style="width: 15%">是否锁定</td>
      <td align="left"><asp:RadioButtonList ID="isLock" runat="server" RepeatDirection="Horizontal" Width="196px">
          <asp:ListItem Value="1">是</asp:ListItem>
          <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
        </asp:RadioButtonList></td>
      <td align="left" Width="65%"><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_AdsAdd_017',this)">帮助</span></td>
    </tr>
    <tr class="TR_BG_list">
      <td class="navi_link" colspan="3"><label>
        <input type="button" name="Sub_mit" value=" 确 定 " class="form" onclick="javascript:checkData(document.AdsForm.adType.value);" id="Button1" />
        </label>
        <label>
        <input type="reset" name="UnDo" value=" 重 填 " class="form" />
            <asp:HiddenField ID="H_AdsID" runat="server" /><asp:HiddenField ID="OldClass" runat="server" />
        </label></td>
    </tr>
  </table>      <br />
      <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px" align="center">
        <tr>
          <td align="center"><label id="copyright" runat="server" /></td>
        </tr>
      </table>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">
setCookie("ads_txt_num",<% =txtnum-1 %>);
function checkData(value)
{
    spanclear();
    var re = /^[0-9]{0,4}\|[0-9]{0,4}$/;
    var re1 = /^http:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?$/;    
    var re2 = /^[0-9]*$$/;
    if(document.AdsForm.adName.value=="")
    {
        document.getElementById("spanadName").innerHTML="<span class=reshow>(*)请输入广告名称</spna>";
        return false;
    }
    if(document.AdsForm.ClassID.value=="")
    {
        document.getElementById("spanClassID").innerHTML="<span class=reshow>(*)请选择广告栏目</spna>";
        return false;
    }
    if(value=="11")
    {
        var _arr=document.AdsForm.AdTxtContent
        if (typeof(_arr.length)=="undefined")
        {
	        if (_arr.value=="")
	        {
                document.getElementById("spanAdTxtContent").innerHTML="<span class=reshow>(*)请输入文字显示内容</spna>";
		        _arr.focus();
		        return false;
	        }
        }
        if (document.AdsForm.AdTxtColNum.value=="")
        {
            document.getElementById("spanAdTxtNum").innerHTML="<span class=reshow>(*)请输入列数</spna>";
	        return false;
        }
        else
        {
	        for (var j=0;j<_arr.length;j++)
	        {	
		        if (_arr[j].value=="")
		        {
                    document.getElementById("spanAdTxtContent").innerHTML="<span class=reshow>(*)请输入文字显示内容</spna>";
			        _arr[j].focus();
			        return false;
		        }
	        }
        }
    }
    else
    {
        if(document.AdsForm.leftPic.value=="")
        {
            document.getElementById("spanleftPic").innerHTML="<span class=reshow>(*)请输入图片/动画地址</spna>";
            return false;
        }
        if(document.AdsForm.leftSize.value=="")
        {
            document.getElementById("spanleftSize").innerHTML="<span class=reshow>(*)请输入图片/动画大小</spna>";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -