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

📄 jsmodify.asp

📁 很好的企业网站管理系统!可以适应各种不同的小型企业!
💻 ASP
字号:
<%Admin="InfoJS"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_info.asp"-->
<!--#include file = JSSave.asp-->
<%
'#################################################################
'#  晓宇听幽网站内容管理系统(xoYu CMS)
'# 
'#  版权所有: 晓宇听幽工作室
'#
'#  制作人  :  xoyu(晓宇)            
'#           
'#  主页地址: http://www.xoYu.com	    晓宇听幽工作室
'#  论坛地址: http://www.xoYu.com/bbs/	晓宇听幽讨论区
'#
'#【版权声明】
'#################################################################
'# 本软体为共享软体(shareware)提供个人网站免费使用,请勿非法修改,
'# 转载,散播,或用于其他图利行为,并请勿删除版权声明。
'# 如果您的网站正式起用了这个脚本,请您通知我们,以便我们能够知晓!
'# 如果可能,请在您的网站做上我们的链接,希望能给予合作。谢谢!
'#################################################################
'# 程序名称:晓宇听幽网站内容管理系统·网站内容管理系统
'# 英文名称:xoYu News 2004 Professional For xoYu CMS
'# 程序创建时间:2003-7-10
'# 程序完成时间:2003-9-11
'# 最后修改时间:2003-11-15
'#################################################################
'# 请您尊重我们的劳动和版权,不要删除以上的版权声明部分,谢谢合作
'# 如有任何问题请到我们的论坛(http://www.xoyu.com/bbs/)告诉我们。 
'#################################################################
  if request.form("operation")="Modify" then
    Call MoJs
  end if
  if request.querystring("ID")="" then response.redirect"JSManage.asp"
  set rs=Server.CreateObject("adodb.recordset")
  sql="select * from JS where id="&request.querystring("ID")
  rs.open sql,conn,1,1
  if rs("type")="文字新闻" then
    WordNews=""
  else
    WordNews="none"
  end if
  if rs("type")="图片新闻" then
    PhotoNews=""
  else
    PhotoNews="none"
  end if
%>
<html>
<head>
<title>管理中心 - 晓宇听幽 网站内容管理系统</title>
<meta copy="程序制作:xoyu(QQ:5964887)www.xoyu.com">
<link rel="stylesheet" href="admin.css" type="text/css">
</head>
<body background="images/BLogo.gif">
<form name="form1" method="POST" action="">
<table width="384" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
    <tr> 
      <th height="25" bgcolor="#99CCFF" colspan="2" align="center" valign="middle"><b>
      <img border="0" src="images/NEWWIN.GIF"> 修改JS列表</b></th>
    </tr>
    <tr> 
      <td class=forumrow height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS中文名称:</td>
      <td class=forumrow width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';> 
        <input type="text" name="JSNameCN" value=<%=rs("JSNameCN")%> class=InputStyle Disabled size="20">
      </td>
    </tr>
    <tr> 
      <td class=forumrow height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS英文名称:</td>
      <td class=forumrow width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';> 
        <input type="text" name="JSNameEN" value=<%=rs("JSNameEN")%> Class=InputStyle Disabled size="20">
      </td>
    </tr>
    <tr> 
      <td class=forumrow height="20" valign="middle" width="131" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS类型: 
      </td>
      <td class=forumrow width="243" valign="middle" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';> 
        <input id=WordNews type="radio" name="Type" value="文字新闻" <% if rs("Type")="文字新闻" then response.write"checked"%> onclick="return CheckType()" class=InputStyle Disabled>
        文字新闻 
        <input id=PhotoNews type="radio" name="Type" value="图片新闻" <% if rs("Type")="图片新闻" then response.write("checked") %> onclick="return CheckType()" class=InputStyle Disabled>
        图片新闻 </td>
    </tr>
    <tr align="center"> 
      <td class=forumrow height="27" valign="middle" colspan="2" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';> 
        <table width="100%" border="0" cellspacing="1" cellpadding="0" id=WordNews style="DISPLAY:<%=WordNews%>">
          <tr> 
            <td class=forumrow width="35%">新闻调用数量</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="IndexCount1" size="5" value=<%=rs("IndexCount")%>>
            </td>
          </tr>
		  <tr> 
            <td class=forumrow width="35%">新闻标题导航图标</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="NewsTP1" size="20" value="<%=rs("NewsTP")%>">
            </td>
          </tr>
             <tr> 
            <td class=forumrow width="35%">是否显示文章栏目</td>
            <td class=forumrow width="65%">
            <select size="1" name="sort1">
            <% if rs("sort")="1" then %>
            <option value="1" selected>不显示</option>
            <option value="2">显示</option>
            <% else %>
            <option value="1">不显示</option>
            <option value="2" selected>显示</option>
            <% end if %>
            </select></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="0" id=PhotoNews style="DISPLAY: <%=PhotoNews%>">
          <tr> 
            <td class=forumrow width="35%">新闻调用数量</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="IndexCount" size="5" value=<%=rs("IndexCount")%>>
            </td>
          </tr>
          <tr>
            <td class=forumrow width="35%" height="23">样式</td>
            <td class=forumrow width="65%" height="23"> 
              <input id=CSS1 type="radio" name="PhotoCSS" value="CSS1" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS1" then response.write("checked"):CSS1="":else: CSS1="none":end if %> class=InputStyle Disabled>
              样式一 
              <input id=CSS2 type="radio" name="PhotoCSS" value="CSS2" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS2" then response.write("checked"):CSS2="":else: CSS2="none":end if %> class=InputStyle Disabled>
              样式二
              <input id=CSS3 type="radio" name="PhotoCSS" value="CSS3" onclick="return CheckCSS()" <% if rs("PhotoCSS")="CSS3" then response.write("checked"):CSS3="":else: CSS3="none":end if %> class=InputStyle Disabled>
              样式三</td>
          </tr>
          <tr> 
            <td class=forumrow width="35%">图片高度</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="PicHi" size="5" value=<%=rs("PicHi")%>>
            </td>
          </tr>
          <tr> 
            <td class=forumrow width="35%">图片宽度</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="PicWi" size="5" value=<%=rs("PicWi")%>>
            </td>
          </tr>
		  <tr> 
            <td class=forumrow width="35%">新闻标题导航图标</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="NewsTP" size="20" value="<%=rs("NewsTP")%>">
            </td>
          </tr>
          <tr ID=Depict style="DISPLAY: <%=CSS2%> "> 
            <td class=forumrow width="35%">新闻描述文字数量</td>
            <td class=forumrow width="65%"> 
              <input type="text" name="Depict" size="5" value=<%=rs("depict")%>>
            </td>
          </tr>
          <tr> 
            <td class=forumrow width="35%">是否显示文章栏目</td>
            <td class=forumrow width="65%">
            <select size="1" name="sort">
            <% if rs("sort")="1" then %>
            <option value="1" selected>不显示</option>
            <option value="2">显示</option>
            <% else %>
            <option value="1">不显示</option>
            <option value="2" selected>显示</option>
            <% end if %>
            </select></td>
          </tr>
          <tr> 
            <td class=forumrow colspan="2" height="23"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS1 style="DISPLAY: <%=CSS1%>">
                <tr align="center"> 
                  <td class=forumrow><a href="images/type1.jpg" target="_blank">
                  <img src="images/type1.jpg" border="0" alt="样式一 图片高度:80 图片宽度:80" ></a></td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS2 style="DISPLAY:  <%=CSS2%> ">
                <tr align="center"> 
                  <td class=forumrow height="2">
                  <a href="images/type2.jpg" target="_blank">
                  <img src="images/type2.jpg" border="0" alt="样式二 图片高度:80 图片宽度:80"></a></td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS3 style="DISPLAY:  <%=CSS3%> ">
                <tr align="center"> 
                  <td class=forumrow height="163">
                  <a href="images/type3.jpg" target="_blank">
                  <img src="images/type3.jpg" border="0" alt="样式三 图片高度:80 图片宽度:80"></a></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr align="center"> 
      <th height="51" valign="middle" colspan="2" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';> 
        <input type="Hidden" name="operation" value="Modify">
		<input type="Hidden" name="ID" value="<%=request.querystring("ID")%>">	
		<input type="Hidden" name="Type" value="<%=rs("Type")%>">
        <input type="submit" name="Submit" value=" 修 改 JS " onclick="return modify()">
      </th>
    </tr>
  </table>
</form>
<script>
function CheckType(){
if (document.form1.WordNews.checked == true){
        WordNews.style.display = "";

}else{
        WordNews.style.display = "none";

}

if (document.form1.PhotoNews.checked == true) {
        PhotoNews.style.display = "";

}else{
        PhotoNews.style.display = "none";

}
}
function CheckCSS(){
if (document.form1.CSS1.checked == true) {
        CSS1.style.display = "";
}else{
        CSS1.style.display = "none";

}
if (document.form1.CSS2.checked == true) {
        CSS2.style.display = "";

}else{
        CSS2.style.display = "none";

}
if (document.form1.CSS3.checked == true) {
        CSS3.style.display = "";

}else{
        CSS3.style.display = "none";

}
}

</script>
</body>
</html>

⌨️ 快捷键说明

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