jsadd.asp
来自「很好的企业网站管理系统!可以适应各种不同的小型企业!」· ASP 代码 · 共 228 行
ASP
228 行
<%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")="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="程序制作:xoyu(QQ:5964887)www.xoyu.com">
<link rel="stylesheet" href="admin.css" type="text/css">
</head>
<body >
<form name="form1" method="POST" action="" onsubmit="return CheckJS()">
<p> </p>
<table width="98%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
<tr>
<th height="25" bgcolor="#99CCFF" colspan="2" align="center" valign="middle" width="728"><b>
<img border="0" src="images/NEWWIN.GIF"> 新建JS列表</b></th>
</tr>
<tr>
<td class="forumrow" height="20" valign="middle" width="229" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS中文名称:</td>
<td class="forumrow" width="492" 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="229" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS英文名称:</td>
<td class="forumrow" width="492" 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="229" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>JS类型:
</td>
<td class="forumrow" width="492" 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=''; width="728">
<table width="100%" border="0" cellspacing="1" cellpadding="0" id=WordNews style="DISPLAY:">
<tr>
<td width="32%" class="forumrow">新闻调用数量</td>
<td width="68%" class="forumrow">
<input type="text" name="IndexCount1" size="5" value="5" onblur="Isvalidity(IndexCount1,'新闻调用数量')">
</td>
</tr>
<tr>
<td width="32%" class="forumrow">新闻标题导航图标</td>
<td width="68%" class="forumrow">
<input type="text" name="NewsTP1" size="20" value="">
</td>
</tr>
<tr>
<td width="32%" class="forumrow">是否显示文章栏目</td>
<td width="68%" class="forumrow">
<select size="1" name="sort1">
<option selected value="1">不显示</option>
<option value="2">显示</option>
</select>
</td>
</tr>
</table>
<table width="728" border="0" cellspacing="1" cellpadding="0" id=PhotoNews style="DISPLAY: none">
<tr>
<td width="231" class="forumrow">新闻调用数量</td>
<td width="494" class="forumrow">
<input type="text" name="IndexCount" size="5" value=5 onblur="Isvalidity(IndexCount,'新闻调用数量')">
</td>
</tr>
<tr>
<td width="231" class="forumrow">是否显示文章栏目</td>
<td width="494" class="forumrow">
<select size="1" name="sort">
<option selected value="1">不显示</option>
<option value="2">显示</option>
</select>
</td>
</tr>
<tr>
<td width="231" height="23" class="forumrow">样式</td>
<td width="494" 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="231" class="forumrow">图片高度</td>
<td width="494" class="forumrow">
<input type="text" name="PicHi" size="5" value="80" onblur="Isvalidity(PicHi,'图片高度')">
</td>
</tr>
<tr>
<td width="231" class="forumrow">图片宽度</td>
<td width="494" class="forumrow">
<input type="text" name="PicWi" size="5" value="80" onblur="Isvalidity(PicWi,'图片宽度')">
</td>
</tr>
<tr>
<td width="231" class="forumrow">新闻标题导航图标</td>
<td width="494" class="forumrow">
<input type="text" name="NewsTP" size="20" value="">
</td>
</tr>
<tr ID=Depict style="DISPLAY: none ">
<td width="231" class="forumrow">新闻描述文字数量</td>
<td width="494" class="forumrow">
<input type="text" name="Depict" size="5" value="100" onblur="Isvalidity(Depict,'新闻描述文字数量')">
</td>
</tr>
<tr>
<td colspan="2" height="23" width="726">
<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=''; width="728">
<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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?