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

📄 news_add.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
📖 第 1 页 / 共 5 页
字号:
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_SavePath',this)">帮助</span>
         </td>
        </tr>         
        
        <tr class="TR_BG_list" id="div_FileName" style="display:">
          <td style="width:10%;">文件名</td>
          <td style="width:90%;">
          <asp:TextBox ID="FileName" Width="40%" MaxLength="100" runat="server" onclick="selectFile('rulePram',this,100,650);document.Form1.FileName.focus();" CssClass="form"></asp:TextBox>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_FileName',this)">帮助</span>
          </td>
        </tr>   
 
        <tr class="TR_BG_list" id="div_FileEXName" style="display:">
          <td style="width:10%;">扩展名</td>
          <td style="width:90%;">
                <asp:DropDownList ID="FileEXName" runat="server" Height="21px" Width="92px" CssClass="form">
                    <asp:ListItem>.html</asp:ListItem>
                    <asp:ListItem>.htm</asp:ListItem>
                    <asp:ListItem>.shtml</asp:ListItem>
                    <asp:ListItem>.shtm</asp:ListItem>
                    <asp:ListItem>.aspx</asp:ListItem>
                </asp:DropDownList>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_FileEXName_2',this)">帮助</span>
          </td>
        </tr>  
        
        <tr class="TR_BG_list" id="div_CheckStat" style="display:">
          <td style="width:10%;">审核状态</td>
          <td style="width:90%;">
                <asp:DropDownList ID="CheckStat" runat="server" Height="21px" Width="92px" CssClass="form">
                    <asp:ListItem Value="0">不审核</asp:ListItem>
                    <asp:ListItem Value="1">一级审核</asp:ListItem>
                    <asp:ListItem Value="2">二级审核</asp:ListItem>
                    <asp:ListItem Value="3">三级审核</asp:ListItem>
                </asp:DropDownList>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_FileEXName',this)">帮助</span>
          </td>
        </tr>                          
        <tr class="TR_BG_list" id="div_UserPop1" style="display:">
          <td style="width:10%;">浏览权限</td>
          <td style="width:90%;">
          <uc1:UserPop ID="UserPop1" runat="server" />
          </td>
        </tr>  
                
        <tr class="TR_BG_list" id="div_VoteTF" style="display:">
          <td style="width:10%;">允许投票</td>
          <td style="width:90%;">
            <asp:CheckBox ID="VoteTF" runat="server" onclick="IsVoteTF(this);" />
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_VoteTF',this)">帮助</span>
          </td>
        </tr> 
         <tr class="TR_BG_list" id="div_VoteContent" style="display:none;">
          <td style="width:10%;">投票参数</td>
          <td style="width:90%;">
           <asp:CheckBox ID="ismTF" runat="server" Text="允许多选" /><asp:CheckBox ID="isMember" runat="server" Text="会员才能投票" />
           &nbsp;&nbsp;&nbsp;过期日期:<asp:TextBox ID="isTimeOutTime" MaxLength="20" Width="20%" runat="server" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="选择日期" border="0" style="cursor:pointer;" onclick="selectFile('date',document.Form1.isTimeOutTime,180,400);document.Form1.isTimeOutTime.focus();" />
           <br />
           <asp:TextBox ID="VoteContent" runat="server" Width="60%" Height="100px" TextMode="MultiLine"></asp:TextBox>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_VoteContent',this)">如何设置投票项?</span>
          </td>
        </tr>         

        <tr class="TR_BG_list" id="div_ContentPicTF" style="display:">
          <td style="width:10%;">画中画广告</td>
          <td style="width:90%;">
            <asp:CheckBox ID="ContentPicTF" runat="server" onclick="ContentPicURLTF(this);" />
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_ContentPicTF',this)">帮助</span>
          </td>
        </tr> 
         
        <tr class="TR_BG_list" id="div_ContentPicURL" style="display:none;">
          <td style="width:10%;">地址或代码</td>
          <td style="width:90%;">
            <asp:TextBox ID="ContentPicURL" MaxLength="200" TextMode="MultiLine" Width="50%" runat="server" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="选择图片地址" border="0" style="cursor:pointer;" onclick="selectFile('pic',document.Form1.ContentPicURL,280,500);document.Form1.ContentPicURL.focus();" />
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_ContentPicURL',this)">帮助</span>
         </td>
        </tr> 
        
        <tr class="TR_BG_list" id="div_tHight" style="display:none;">
          <td style="width:10%;">参数</td>
          <td style="width:90%;">
             <asp:TextBox ID="tHight" runat="server" MaxLength="3" Width="20%" CssClass="form">200</asp:TextBox>&nbsp;px(高)
            &nbsp;&nbsp;┊&nbsp;&nbsp;
            <asp:TextBox ID="tWidth" runat="server" Width="20%" MaxLength="3" CssClass="form">200</asp:TextBox>&nbsp;px(宽)
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_ContentPicSize',this)">帮助</span>
            </td>
        </tr>  
                                        
        <tr class="TR_BG_list">
          <td align="center" colspan="2">
          </td>
        </tr>   
       </table>
      </div>
        <table width="98%" align="center" border="0" cellpadding="3" cellspacing="0" class="table">
        <tr>
          <td style="width:30%;PADDING-LEFT: 14px;text-align:center;" class="TR_BG_list">
          <asp:HiddenField ID="EditAction" runat="server" />
          <asp:HiddenField ID="NewsID" runat="server" />
          <asp:Button ID="Button2" runat="server" Text="保存新闻" OnClick="Buttonsave_Click" />
          </td>
        </tr>
        </table>
         <br />
         <br />
          
         <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px">
          <tr>
            <td class="list_link" align="center"><%Response.Write(CopyRight);%></td>
          </tr>
        </table>
</form>
</body>
</html>
<script type="text/javascript" language="javascript">
function getDivsPicFromContent()
{
   var gtf=document.getElementById("sPicFromContent"); 
   var gid=document.getElementById("getContentNum"); 
   if(gtf.checked)
   {
       gid.style.display="";
   }
   else
   {
       gid.style.display="none";
   }
}

function checkNews()
{
    if(document.getElementById("ClassID").value=="")
    {
        alert("填写栏目."); 
        document.getElementById("baseinfo").style.display="";
        document.getElementById("ClassName").focus();
        return false;
    }
    if(document.getElementById("NewsTitle").value=="")
    {
        alert("请填写标题."); 
        document.getElementById("baseinfo").style.display="";
        document.getElementById("NewsTitle").focus();
        return false;
    }
    if(document.getElementById("sPicFromContent").checked)
    {
        if(oUtil.oEditor.document.body.innerHTML.toLowerCase().indexOf("<img")==-1&&oUtil.oEditor.document.body.innerHTML.toLowerCase().indexOf("src="))
        {
            alert("您设置了把内容中第一条图片设置为图片地址\n但内容中并没有图片");
            document.getElementById("baseinfo").style.display="";
            return false;
        }
    }
    
    if(!document.getElementById("at2RandButton").checked)
    {
    /*
        if(oUtil.oEditor.document.body.innerHTML=="")
        {
            alert("请填写内容.");
            document.getElementById("baseinfo").style.display="";
            return false;
        }
        
         if(document.getElementById("FileContent").value=="")
        {
            alert("请填写内容.");
            document.getElementById("baseinfo").style.display="";
            return false;
        }*/
    }
    else
    {
        if(document.getElementById("URLaddress").value=="")
        {
            alert("请填写外部连接地址."); 
            document.getElementById("baseinfo").style.display="";
            document.getElementById("URLaddress").focus();
            return false;
        }
    }
    if(document.getElementById("RemoteTF").checked)
    {
        alert('您选择了新闻内容中的图片下载到本地.\n在保存新闻需要较长时间。请耐心等待,不要刷新本页面。')
        return true;
    }
}

function titleFlag(obj)
{
   var t = document.getElementById("NewsTitle");
  if(t.value!="")
  {
   t.value = obj + t.value;
   }
   else
   {
     t.value = obj;
   }
}

//function selectDefineFile(pa,obj)
//{
//       var WWidth = (window.screen.width-500)/2;
//       var Wheight = (window.screen.height-600)/2;
//       window.open('../../configuration/system/selectFiles.aspx?FileType='+pa+'&df=t&o='+obj+'',"选择文件",'toolbar=0,location=0,maximize=1,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,top=5,left=5,width=500,height=600 top='+Wheight+', left='+WWidth+', toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no','');
//}

function sdefine(obj,str)
{
   var objstrName = str;
   document.getElementById(objstrName).value=obj;
   return;
}

        
setCookie("subTitle_num",0);
function ShowAdanceTF(obj)
{
       if(obj.checked)
       {
            document.getElementById("captionadv").src = "../../sysImages/folder/hidead.gif";
            document.getElementById('div_Click').style.display = "";
            document.getElementById('div_metakey').style.display="";
            document.getElementById('div_metadesc').style.display="";
            document.getElementById('div_SavePath').style.display = "";
            document.getElementById('div_FileName').style.display = "";
            document.getElementById('div_FileEXName').style.display = "";
            document.getElementById('div_CheckStat').style.display = "";
            document.getElementById('div_UserPop1').style.display = "";
            document.getElementById('div_VoteTF').style.display = "";
            document.getElementById('div_VoteContent').style.display = "";
            document.getElementById('div_ContentPicTF').style.display = "";
            document.getElementById('div_ContentPicURL').style.display = "";
            document.getElementById('div_tHight').style.display = "";
            
        }
        else
        {
            document.getElementById("captionadv").src = "../../sysImages/folder/showad.gif";
            document.getElementById('div_Click').style.display = "none";
            document.getElementById('div_metakey').style.display="none";
            document.getElementById('div_metadesc').style.display="none";

⌨️ 快捷键说明

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