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

📄 addnew.asp

📁 是一个电子商务网站系统,提供前后台交易源码.
💻 ASP
字号:
<!--#include file="inc/Conn.asp" -->
<!--#include file="inc/fyaspcode.asp" -->
<!--#include file="Admin_IsLogin.asp" -->
<%
m=changechr(request("m"))
dim strtype
Select case m
	  	Case "本站动态"
		  	strtype=1
		  		  	Case "市场动态"
		  	strtype=2
	  	
End Select
if changechr(request("action"))="add" then
call addnewqy()
end if%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../css/style.css" type="text/css">
<link href="Images/Style.css" rel="stylesheet" type="text/css">
<style>
.button { color:#000000; background-color: #4455aa; font-size: 9pt; height: 22px; border: 1px #F0F0F0 solid; padding-top: 2px; padding-left: 2px; padding-right: 2px; background-image: url(../../news/admin/image/bg01.gif); cursor: default}
</style>
</head>
<BODY bgcolor="D6DFF7" leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<script language=javascript>
	// 当上传图片等文件时,往下拉框中填入图片路径,可根据实际需要更改此函数
	function doChange(objText, objDrop){
		if (!objDrop) return;
		var str = objText.value;
		var arr = str.split("|");
		var nIndex = objDrop.selectedIndex;
		objDrop.length=1;
		for (var i=0; i<arr.length; i++){
			objDrop.options[objDrop.length] = new Option(arr[i], arr[i]);
		}
		objDrop.selectedIndex = nIndex;
	}
<!--

function CContext()
{}
var g_cContext = new CContext();
g_cContext.StaticContentServer = '';


function saveIt()
{
if (document.pub_topic.tit.value=="")
	{ 
	 	alert('文章标题不能为空!'); 
		document.pub_topic.tit.focus();
		return false; 
	}
}
//-->
</script>
  <table class=tableBorder width="95%" border=0 align="center" cellpadding=5 cellspacing=1>
  <tbody>
    <tr> 
      <th height=21 sytle="line-height:150%"> </th>
      <th height=21 sytle="line-height:150%">【<%=m%>】</th>
    </tr><FORM name="pub_topic" action=?action=add method=post>
     <input type=hidden name=d_savepathfilename onchange="doChange(this,document.pub_topic.firstImageName)">
    <tr> 
      <td width="10%"  class=forumRow align="right">
      标题:</td>
      <td width="87%"  class=forumRowHighlight>
      <INPUT class="button1" name=tit size="30"></td>
    </tr>
    <tr> 
      <td width="10%"  class=forumRow align="right">
      来源:</td>
      <td width="87%"  class=forumRowHighlight>
      <INPUT class="button1" name=from size="30"></td>
    </tr>
    <tr> 
      <td width="10%"  class=forumRow align="right" valign="top">
      内容:</td>
      <td width="87%"  class=forumRowHighlight>
      <INPUT type="hidden" name="stype" value="<%=strtype%>">
      <INPUT type="hidden" name="m" value="<%=m%>">
            <textarea rows="23" name="content" cols="69"></textarea></td>
    </tr>
    <tr> 
      <td class=forumRow align="right">                      
				 </td>
      <td class=forumRowHighlight align="center">                      
				<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                      
				<input type="submit" name="Submit1" class="button"  value="  确 定 提 交  " onclick="return saveIt();"></td>
    </tr>
    </FORM>
  </tbody>
</table>
<!--#include file="end.asp"-->
</body>
</html>

⌨️ 快捷键说明

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