📄 addnews.asp
字号:
<!--#include file=../common/conn.asp-->
<html>
<head>
<title>增加购物课堂</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../shop/.css" type="text/css">
<link rel="stylesheet" href="../shop/admin/.css" type="text/css">
<link rel="stylesheet" href="../images/font.css" type="text/css">
<script language="javascript">
function isok(theform)
{
if (theform.caption.value=="")
{
alert("标题不能为空!")
theform.caption.focus();
return false;
}
if (theform.content.value=="")
{
alert("新闻内容不能为空!")
theform.content.focus();
return false;
}
}
function switches(content)
{
whichDiv=event.srcElement;
if (content.style.display=="none")
{content.style.display="";
whichDiv.src="../images/notetag.gif";
}
else
{
content.style.display="none";
whichDiv.src="../images/plus.gif";
}
}
//---/---
</SCRIPT>
<link href="../images/font.css" rel="stylesheet" type="text/css">
<link href="../cbebcss.css" rel="stylesheet" type="text/css">
<link href="../../gq.css" rel="stylesheet" type="text/css">
<link href="../users/.css" rel="stylesheet" type="text/css">
</head>
<body text="#B2B2F9" background="../images/bgpic.gif">
<br>
<table border="0" width="598" align=center>
<tr>
<td width="100%" class="unnamed1"><b>增加购物课堂</b></td>
</tr>
<tr>
<td width="100%"> <hr size="1"> </td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
<table width="599" height="219" border="0" align="center" cellpadding="1">
<form name="form1" method="post" action="Addnews_submit.asp" enctype="multipart/form-data" onSubmit="return isok(this)">
<tr bgcolor="">
<td height="20" align="right" class="unnamed1">标 题:</td>
<td height="23" class="unnamed1">
<input name="caption" type="text" class="button" id="caption" size="40">
</td>
</tr>
<tr bgcolor="">
<td height="20" align="right" class="unnamed1">图片1:</td>
<td class="unnamed1">
<input name="file" type="file" class="button" size="30">
<img onmouseup=switches(type1) style="CURSOR: hand" src="../images/plus.gif" width="9" height="9">
添加图片
<input type="hidden" name="filepath" value="../manage/image"> <input type="hidden" name="act" value="upload">
</td>
</tr>
<tr id=type1 style="DISPLAY: none">
<td align="right" class="unnamed1">图片2: </td>
<td class="unnamed1">
<input name="file2" type="file" class="button" size="30">
<img onMouseUp="switches(type2)" style="CURSOR: hand" src="../images/plus.gif" width="9" height="9">
添加图片</td>
</tr>
<tr id=type2 style="DISPLAY: none">
<td align="right" class="unnamed1">图片3:</td>
<td class="unnamed1">
<input name="file3" type="file" class="button" size="30">
</td>
</tr>
<tr bgcolor="">
<td width="20%" height="109" align="right" class="unnamed1">内 容:</td>
<td class="unnamed1">
<textarea name="content" class="button" cols="35" rows="7" id="content"></textarea></td>
</tr>
<tr bgcolor="">
<td width="20%" height="20" align="right" class="unnamed1"> </td>
<td class="unnamed1"> <input type="submit" name="Submit3" value="添加" class="button">
<input type="reset" name="Submit22" value="取消" class="button"> </td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -