?? newsadd.asp
字號:
<!--#include file="../include/bkconn.asp"-->
<!--#include file="checkUser.asp"-->
<html>
<head>
<title>商品添加</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../main.css" type="text/css">
<script language=Javascript>
<!--
function checkForm(){
//if (form1.productSort.value=='0'){
// alert("請選擇商品具體小類");
// return false;
// }
return true;
}
//-->
</script>
</head>
<body bgcolor="#9CC7EF" text="#000000">
<br>
<%
dim Sort
Sort=Request("newsort")
%>
<%if sort=2 then%>
<form method="post" action="savenewsAdd.asp" name="form1" onClick="return checkForm();" enctype="multipart/form-data" >
<table width="70%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" bgcolor="#4296E7"> <div align="center"><font color="#FFFFFF">添加信息</font></div></td>
</tr>
<tr>
<td width="20%" nowrap> <div align="right">標題</div></td>
<td width="80%"> <input type="text" name="title" size="60"> <input name="newsdate" type="hidden" value="<%=now()%>"> <input name="Sort1" type="hidden" value="2">
</td>
</tr>
<tr>
<td width="20%" nowrap> <div align="right">類別</div></td>
<td width="80%"><select name="Sort">
<option value="2" selected>近視眼</option>
<option value="3">白內(nèi)障</option>
<option value="4">青光眼</option>
<option value="5">屈光疾病</option>
</select> </td>
</tr>
<tr>
<td nowrap> <div align="right">圖片1</div></td>
<td> <input type="file" name="images1">
建議圖片寬度在500象素內(nèi)</td>
</tr>
<tr>
<td nowrap><div align="right">圖片2</div></td>
<td><input type="file" name="images2">
</td>
</tr>
<tr>
<td width="20%" valign="top" nowrap> <div align="right">內(nèi)容</div></td>
<td width="80%"> <textarea name="content" cols="68" rows="30"></textarea></td>
</tr>
<tr>
<td colspan="2" nowrap> <div align="center">
<input type="submit" name="Submit" value="添加" >
<input type="button" name="button" value="清空">
</div></td>
</tr>
</table>
</form><%elseif sort=8 then%>
<form method="post" action="savenewsAdd1.asp" name="form1" onClick="return checkForm();" enctype="multipart/form-data" >
<table width="70%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" bgcolor="#4296E7"> <div align="center"><font color="#FFFFFF">添加信息</font></div></td>
</tr>
<tr>
<td width="20%" nowrap> <div align="right">連接名稱</div></td>
<td width="80%"> <input type="text" name="title" size="41"> <input name="newsdate" type="hidden" value="<%=now()%>">
<input name="Sort" type="hidden" value="<%=Sort%>"> <input name="Sort1" type="hidden" value="1">
</td>
</tr>
<tr>
<td width="20%" valign="top" nowrap> <div align="right">連接地址</div></td>
<td width="80%"> <input name="content" type="text" value="" size="41">
直接填寫,例如:www.gdeyenet.com</td>
</tr>
<tr>
<td colspan="2" nowrap> <div align="center">
<input type="submit" name="Submit" value="添加" >
<input type="button" name="button" value="清空">
</div></td>
</tr>
</table>
</form>
<%else%>
<form method="post" action="savenewsAdd.asp" name="form1" onClick="return checkForm();" enctype="multipart/form-data" >
<table width="70%" border="1" bordercolordark=#9CC7EF bordercolorlight=#145AA0 cellspacing="0" cellpadding="4" align="center">
<tr>
<td colspan="2" bgcolor="#4296E7"> <div align="center"><font color="#FFFFFF">添加信息</font></div></td>
</tr>
<tr>
<td width="20%" nowrap> <div align="right">標題</div></td>
<td width="80%"> <input type="text" name="title" size="60"> <input name="newsdate" type="hidden" value="<%=now()%>"> <input name="Sort" type="hidden" value="<%=Sort%>"><input name="Sort1" type="hidden" value="1">
</td>
</tr>
<tr>
<td nowrap> <div align="right">圖片1</div></td>
<td> <input type="file" name="images1">
建議圖片寬度在500象素內(nèi)</td>
</tr>
<tr>
<td nowrap><div align="right">圖片2</div></td>
<td><input type="file" name="images2"> </td>
</tr>
<tr>
<td width="20%" valign="top" nowrap> <div align="right">內(nèi)容</div></td>
<td width="80%"> <textarea name="content" cols="68" rows="30"></textarea></td>
</tr>
<tr>
<td colspan="2" nowrap> <div align="center">
<input type="submit" name="Submit" value="添加" >
<input type="button" name="button" value="清空">
</div></td>
</tr>
</table>
</form>
<%end if%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -