www.gusucode.com > 共享世纪内容管理系统 2.1 build 080704 全站开源版 > admin/JSAdd.asp

    <%Admin="InfoJS"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_info.asp"-->
<!--#include file = JSSave.asp-->
<!--#include file="top.asp"-->
<%
'==========================================
'
'  晓宇听幽新闻文章管理系统 2004
'
'  主页地址:http://www.xoYu.com
'
'==========================================
'程序名称:晓宇听幽新闻文章管理系统
'英文名称:xoYu News 2004 Professional
'程序创建时间:2003-7-10
'程序完成时间:2003-9-11
'最后修改时间:2003-10-10
'==========================================
  if request.form("operation")="ADD" then
    Call CrJs
  end if
  set rs=Server.CreateObject("adodb.recordset")
  sql="select * from JS order by Date Desc"
  rs.open sql,conn,1,1
%>
<html>
<head>
<title>管理中心 - 共享世纪新闻文章管理系统</title>
<meta copy="WWW.2KY.CN 共享世纪">
<link rel="stylesheet" href="admin.css" type="text/css">
</head>
<body >
<form name="form1" method="POST" action="" onsubmit="return CheckJS()">
  <p> </p>
<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" 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" 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="文字新闻" checked onclick="return CheckType()">
        文字新闻 
        <input id=PhotoNews type="radio" name="Type" value="图片新闻" onclick="return CheckType()">
        图片新闻 </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:">
          <tr> 
            <td width="35%" class="forumrow">新闻调用数量</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="IndexCount1" size="5" value="5" onblur="Isvalidity(IndexCount1,'新闻调用数量')">
            </td>
          </tr>
		  <tr> 
            <td width="35%" class="forumrow">新闻标题导航图标</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="NewsTP1" size="20" value="">
            </td>
          </tr>
          <tr> 
            <td width="35%" class="forumrow">是否显示文章栏目</td>
            <td width="65%" class="forumrow"> 
              <select size="1" name="sort1">
              <option selected value="1">不显示</option>
              <option value="2">显示</option>
              </select>
            </td>
          </tr>
         </table>
        <table width="100%" border="0" cellspacing="1" cellpadding="0" id=PhotoNews style="DISPLAY: none">
          <tr> 
            <td width="35%" class="forumrow">新闻调用数量</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="IndexCount" size="5" value=5 onblur="Isvalidity(IndexCount,'新闻调用数量')">
            </td>
          </tr>
            <tr> 
            <td width="35%" class="forumrow">是否显示文章栏目</td>
            <td width="65%" class="forumrow"> 
              <select size="1" name="sort">
              <option selected value="1">不显示</option>
              <option value="2">显示</option>
              </select>
            </td>
          </tr>
          <tr>
            <td width="35%" height="23" class="forumrow">样式</td>
            <td width="65%" height="23" class="forumrow"> 
              <input id=CSS1 type="radio" name="PhotoCSS" value="CSS1" onclick="return CheckCSS()" checked>
              样式一 
              <input id=CSS2 type="radio" name="PhotoCSS" value="CSS2" onclick="return CheckCSS()">
              样式二
              <input id=CSS3 type="radio" name="PhotoCSS" value="CSS3" onclick="return CheckCSS()">
              样式三</td>
          </tr>
          <tr> 
            <td width="35%" class="forumrow">图片高度</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="PicHi" size="5" value="80" onblur="Isvalidity(PicHi,'图片高度')">
            </td>
          </tr>
          <tr> 
            <td width="35%" class="forumrow">图片宽度</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="PicWi" size="5" value="80" onblur="Isvalidity(PicWi,'图片宽度')">
            </td>
          </tr>
		  <tr> 
            <td width="35%" class="forumrow">新闻标题导航图标</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="NewsTP" size="20" value="">
            </td>
          </tr>
          <tr ID=Depict style="DISPLAY: none "> 
            <td width="35%" class="forumrow">新闻描述文字数量</td>
            <td width="65%" class="forumrow"> 
              <input type="text" name="Depict" size="5" value="100" onblur="Isvalidity(Depict,'新闻描述文字数量')">
            </td>
          </tr>
          <tr> 
            <td colspan="2" height="23"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" id=CSS1 style="DISPLAY: ">
                <tr align="center"> 
                  <td class="forumrow"><a href="images/type1.gif" alt="sdfsdf" 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: none ">
                <tr align="center"> 
                  <td height="2" class="forumrow"><a href="images/type2.gif" 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: none ">
                <tr align="center"> 
                  <td height="163" class="forumrow"><a href="images/type3.gif" target="_blank">
                  <img src="images/type3.jpg" border="0" alt="样式三 图片高度:80 图片宽度:80"></a></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF" 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="ADD">
        <input type="submit" name="Submit" value=" 创 建 JS ">
      </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 = "";
		Depict.style.display = "";

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

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

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

}
}

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