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

📄 newsadd.asp

📁 人民医院眼科全站
💻 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">白内障</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象素内</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">内容</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">
        &nbsp;直接填写,例如: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象素内</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">内容</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 + -