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

📄 publish.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="publish.aspx.cs" Inherits="manage_channel_publish" %>
<!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" />
<style type="text/css">
.divstyle {
overflow:hidden;
position:absolute;
right:20px;
top:5px;
width:150px;
text-align:left;
padding-left:2px;
padding-top:2px;
padding-bottom:2px;
padding-right:2px;
clip:rect(auto, auto, auto, auto);
z-index:50;
</style>
<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="form1" runat="server">
        <div id="pid" class="divstyle" style="text-align:center;display:;">
            <asp:Button ID="Button2" runat="server" Text="立刻发布" OnClick="Button1_Click" />
            <input id="Reset1" type="reset" value="重新选择" onclick="hidunHTMLclass();">
        </div>
        <asp:Panel ID="showweb" runat="server" Width="100%">
            <div id="showpublicdiv" class="divstyle" style="text-align: center; display: none;">
                发布显示层
            </div>
            <div id="News">

                <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
                    <tr class="TR_BG">
                        <td colspan="2" align="left" style="height: 20px;">
                            <strong>发布频道主页/信息</strong></td>
                        <td width="456" align="left" style="height: 20px">
                            <strong>发布栏目</strong></td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px">
                            发布主页</td>
                        <td align="left" style="width: 365px">
                            <asp:CheckBox ID="indexTF" Checked="true" runat="server" />
                            </td>
                        <td rowspan="5" align="left">                        
                            <asp:RadioButton ID="classall" GroupName="class" onclick="showclass(this)" Text="发布所有栏"
                                runat="server" />&nbsp;&nbsp;<asp:RadioButton ID="classselect" Visible="false" onclick="showclass1(this)"
                                    GroupName="class" Text="选择栏目" runat="server" />
                                    
                            <label id="div_classs" style="display: none;">
                            <asp:CheckBox ID="unHTMLclass" runat="server" Text="只发布未发布的" EnableTheming="True" /></label>
                            <br /><asp:ListBox ID="divClassClass" Width="100%" runat="server" Rows="10" SelectionMode="Multiple"></asp:ListBox>
                             </td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px">
                            发布所有信息</td>
                        <td align="left" style="width: 365px">
                            <asp:RadioButton ID="newsall" GroupName="News" runat="server" /></td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px">
                            按照ID发布</td>
                        <td align="left" style="width: 365px">
                            <asp:RadioButton ID="newsid" GroupName="News" runat="server" />从&nbsp;<asp:TextBox
                                ID="startID" runat="server" Width="50px" CssClass="form"></asp:TextBox>&nbsp;到&nbsp;<asp:TextBox
                                    ID="EndID" runat="server" Width="50px" CssClass="form"></asp:TextBox>                        </td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px">
                            发布最新</td>
                        <td align="left" style="width: 365px">
                            <asp:RadioButton ID="newslast" GroupName="News" runat="server" />
                            <asp:TextBox ID="NewNum" runat="server" Width="50px" CssClass="form">10</asp:TextBox>
                            条                        </td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px">
                            只发布未生成</td>
                        <td align="left" style="width: 365px">
                            <asp:RadioButton ID="newsunhtml" GroupName="News" runat="server" />
                            <asp:TextBox ID="unhtmlNum" runat="server" Width="50px" CssClass="form">100</asp:TextBox>
                            条                        </td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px; height: 24px;">
                            按照日期发布</td>
                        <td align="left" style="height: 24px; width: 365px;">
                            <asp:RadioButton ID="newsdate" GroupName="News" runat="server" />
                            <asp:TextBox ID="startTime" runat="server" Width="100px" CssClass="form"></asp:TextBox>
                            <img src="../../sysImages/folder/s.gif" border="0" alt="选择日期" style="cursor: pointer;"
                                onclick="selectFile('date',document.form1.startTime,160,500);document.form1.startTime.focus();" />
                            <asp:TextBox ID="endTime" runat="server" Width="100px" CssClass="form"></asp:TextBox>
                            <img src="../../sysImages/folder/s.gif" border="0" alt="选择日期" style="cursor: pointer;"
                                onclick="selectFile('date',document.form1.endTime,160,500);document.form1.endTime.focus();" />                        </td>
                        <td width="456" align="left" class="TR_BG" style="height: 24px">
                            <strong>发布专题</strong></td>
                    </tr>
                    <tr class="TR_BG_list">
                        <td width="90" align="right" class="navi_link" style="width: 90px;">
                            按照栏目发布</td>
                        <td align="left" valign="top" class="navi_link" style="width: 365px;">
                            <asp:RadioButton ID="newsclass" GroupName="News" onclick="shownewsclass();" runat="server" /><asp:CheckBox ID="unHTMLnews" runat="server" Text="只发布未发布的" />
                            <asp:ListBox ID="divClassNews" Width="100%" runat="server" Rows="10" SelectionMode="Multiple">                            </asp:ListBox>
                            <label id="div_newsclass" style="display: none;">                            </label>                        </td>
                        <td width="456" rowspan="2" align="left" valign="top">
                            <asp:RadioButton ID="specialall" GroupName="special" Text="发布所有专题" runat="server" />
                            <asp:RadioButton ID="specialselect" Text="选择专题" onclick="showSpecial1(this)" Visible="false"
                                GroupName="special" runat="server" />
                            <asp:ListBox ID="DivSpecial" Width="100%" runat="server" Rows="10" SelectionMode="Multiple">                            </asp:ListBox>
                            <label id="div_special" style="display: none;">                            </label>                        </td>
                    </tr>
                    <tr>
                      <td colspan="3" class="TR_BG_list" style="text-align: right;padding-right:12px;">
                      <asp:Button ID="Button1" runat="server" Text="立刻发布" OnClick="Button1_Click" />                      
                      <input name="reset" type="reset" id="buttons" onclick="hidunHTMLclass();" value="重新选择" />
                      </td>
                    </tr>
                </table>
            </div>
            <br />
            <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>
        </asp:Panel>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript">
    function checkform()
    {
        var re = /^[0-9]*$$/;
        var newsid = document.getElementById("newsid");
        if(newsid.checked)
        {
            if(re.test(document.getElementById("startID").value)==false||re.test(document.getElementById("EndID").value)==false)
            {
               alert("请正确填写开始ID和结束ID");
               document.getElementById('startID').focus();
               return false;
            }
        }
        
        var newsal = document.getElementById("newsall");
        if(newsal.checked)
        {
            if(!confirm('您确定要刷新所有新闻吗?\n刷新所有新闻将占用大量服务器资源\n建议按条件分批生成\n如果在参数设置中的[分组刷新]里设置了[信息每次刷新数],将按照要求生成\n确定要生成,请点[确定]'))
            {
                 return false;
            }
        }
        var Newss = document.getElementById("newslast");
        if(Newss.checked)
        {
            if(re.test(document.getElementById("NewNum").value)==false)
            {
               alert("请正确填写发布条数");
                document.getElementById('NewNum').focus();
               return false;
            }
        }
        var newsdate = document.getElementById("newsdate");
        if(newsdate.checked)
        {
            if(document.getElementById("startTime").value==""||document.getElementById("endTime").value=="")
            {
               alert("请填写开始时间和结束时间");
                document.getElementById('startTime').focus();
               return false;
            }
        }
        
        var newsclass = document.getElementById("newsclass");
        if(newsclass.checked)
        {
            if(document.getElementById("divClassNews").value=="")
            {
               alert("请选择栏目发布");
               return false;
            }
        }
        
//        var classselect = document.getElementById("classselect");
//        if(classselect.checked)
//        {
//            if(document.getElementById("divClassClass").value=="")
//            {
//               alert("请选择栏目发布");
//               return false;
//            }
//        }
//        
//        var specialselect = document.getElementById("specialselect");
//        if(specialselect.checked)
//        {
//            if(document.getElementById("DivSpecial").value=="")
//            {
//               alert("请选择专题发布");
//               return false;
//            }
//        }
    }

    function showSpecial(obj)
    {
          var divobj= document.getElementById('div_special');
          if(divobj.style.display=="")
          {
//            divobj.style.display="none";
          }
          else
          {
            divobj.style.display="";
          }
    }

    function showSpecial1(obj)
    {
          var divobj= document.getElementById('div_special');
          divobj.style.display="none";
    }
    
    function showclass(obj)
    {
          var divobj= document.getElementById('unHTMLclass');
          var div_classsobj=document.getElementById('div_classs');
          if(divobj.style.display=="")
          {
//            divobj.style.display="none";
          }
          else
          {
              divobj.style.display="";            
          }
          if(div_classsobj.style.display="")
          {          
          }
          else
          {
              div_classsobj.style.display="";
          }
    }

    function showclass1(obj)
    {
          var divobj= document.getElementById('div_classs');
          divobj.style.display="none";
    }
    
    function shownewsclass()
    {
          var divobj= document.getElementById('newsclass');
          var divobj1 = document.getElementById('div_newsclass');
          if(divobj.checked)
          {
            divobj1.style.display="";
          }
          else
          {
            divobj1.style.display="none";
          }
    } 
    
    function hidunHTMLclass()
    {          
          document.getElementById('unHTMLclass').style.display="none";
          document.getElementById('div_classs').style.display="none";          
    }
</script>

⌨️ 快捷键说明

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