?? addnew.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">
<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 + -