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

📄 addthing.jsp

📁 jsp注册
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="errorpage.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {	color: #FFFFFF;
	font-weight: bold;
}
.STYLE7 {
	color: #000000;
	font-weight: bold;
}
.STYLE5 {color: #0000FF}
.STYLE9 {color: #0000FF; font-weight: bold; }
.STYLE10 {color: #FF0000; font-weight: bold; }
body,td,th {
	font-size: 12px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>
</head>
<%request.setCharacterEncoding("gb2312");
String id=(String)session.getAttribute("id");
String head="";
String pic="";
if (request.getParameter("head")!=null) pic=request.getParameter("head");
else pic=(String)session.getAttribute("pic");
session.setAttribute("shoppic", pic);
%>
<script>
function check(form)
{
	if (form.thingname.value==null || form.thingname.value=="" )
	{
		alert('信息请全输入');
		return false;
	}
	else if(form.thingmes.value==null || form.thingmes.value=="" )
	{
		alert('信息请全输入');
		return false;
	}
	else if(form.starttime.value==null || form.starttime.value=="" )
	{
		alert('信息请全输入');
		return false;
	}
	else if(form.endtime.value==null || form.endtime.value=="" )
	{
		alert('信息请全输入');
		return false;
	}else if(form.find.value==null || form.find.value=="" )
	{
		alert('信息请全输入');
		return false;
	}else if(form.money.value==null || form.money.value=="" )
	{
		alert('信息请全输入');
		return false;
	}
	else
	{
		return true;
	}
}
</script>

<body>
<table width="622" height="313" border="1" align="left" cellspacing="0" bordercolor="#993300">
  <tr>
    <td width="616" height="16" bgcolor="#993300"><span class="STYLE1">我的店铺:</span></td>
  </tr>
  <tr>
    <td><table width="618" height="294" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td background="../pic/bbgg.jpg"><div align="center">
          <p class="STYLE7">上架:</p>
          <p class="STYLE10">**所有项目都必须填写**</p>
        </div>
          <form id="form1" name="form1" method="post" action="things" onsubmit="return check(this);">
            <table width="400" height="153" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="213" height="26"><table width="212" height="160" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666">
                    <tr>
                      <td width="77" height="23"><span class="STYLE9">物品名称:</span></td>
                      <td width="129"><input name="thingname" type="text" id="thingname" size="15" maxlength="20" /></td>
                    </tr>
                    <tr>
                      <td height="68"><span class="STYLE9">物品描述:</span></td>
                      <td><textarea name="thingmes" cols="15" rows="4" id="thingmes"></textarea></td>
                    </tr>
                    <tr>
                      <td height="67"><span class="STYLE9">物品图像:</span></td>
                      <td>
                        <%if(head.length()!=0){%>                        <img src="../shoppic/<%=head%>" width="50" height="50" /> <a href="changepic.jsp">浏览
                          <%}else if(pic==null){%>
                          <a href="changethingpic.jsp">浏览</a>
                          <%}else{%>
                          <img src="../shoppic/<%=pic%>" width="50" height="50" /> <a href="changethingpic.jsp">浏览</a>
                        <%}%></td>
                    </tr>
                  </table>
                    <span class="STYLE5"></span></td>
                <td width="187"><table width="189" height="159" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666">
                    <tr>
                      <td width="71" height="23"><span class="STYLE5"><strong>上架时间:</strong></span></td>
                      <td width="112"><span class="STYLE5">
                        <input name="starttime" type="text" id="starttime" size="15" maxlength="30" />
                      </span></td>
                    </tr>
                    <tr>
                      <td height="31"><span class="STYLE5"><strong>截止日期:</strong></span></td>
                      <td><span class="STYLE5">
                        <input name="endtime" type="text" id="endtime" size="15" maxlength="30" />
                      </span></td>
                    </tr>
                    <tr>
                      <td height="34"><span class="STYLE5"><strong>物品价格:</strong></span></td>
                      <td><span class="STYLE9">
                        <input name="money" type="text" id="money" size="15" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" onkeydown="if   (event.keyCode==32||event.keyCode==110||event.keyCode==109||event.keyCode==189)   event.returnValue=null;" />
                      </span></td>
                    </tr>
                    <tr>
                      <td height="29"><span class="STYLE5"><strong>联系方式:</strong></span></td>
                      <td><span class="STYLE5">
                        <input name="find" type="text" id="find" size="15" maxlength="20" />
                      </span></td>
                    </tr>
                    <tr>
                      <td height="35" colspan="2">日期方式如:2008-04-25</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td height="26" colspan="2"><div align="center">
                    <input name="login" type="image" id="login" onclick="document.formName.submit()" src="../pic/shangjia.png" width="88" height="30" />
                </div></td>
              </tr>
            </table>
          </form></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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