?? soldshop.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">
<!--
.STYLE8 {color: #FFFFFF; font-weight: bold; }
body,td,th {
font-size: 12px;
}
-->
</style>
</head>
<jsp:useBean id="db" class="data.shopdb"/>
<%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.shopname.value==null || form.shopname.value=="" )
{
alert('請輸入店鋪名稱');
return false;
}
else if(form.shopmes.value==null || form.shopmes.value=="" )
{
alert('請輸入店鋪信息');
return false;
}
else
{
return true;
}
}
</script>
<body>
<%if(id!=null){ %>
<table width="622" height="320" border="1" align="left" cellspacing="0" bordercolor="#993300">
<tr>
<td width="616" background="../pic/bbgg.jpg"><form id="form1" name="form1" method="post" action="openshop">
<table width="503" height="214" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#ECE9D8">
<tr>
<td width="68" height="23">店鋪名稱:</td>
<td width="429"><input name="shopname" type="text" id="shopname" />
<input name="find" type="submit" id="find" value="檢查" />
請先檢查。不然....</td>
</tr>
<tr>
<td height="58">店鋪說明:</td>
<td><textarea name="shopmes" cols="35" rows="5" id="shopmes"></textarea></td>
</tr>
<tr>
<td height="93">店鋪圖標:</td>
<td><a href="changeshoppic.jsp">
<%if(head.length()!=0){%>
<table width="80" height="80" border="1" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../shoppic/<%=head%>" width="80" height="80" /></td>
</tr>
</table>
<a href="changepic.jsp">瀏覽</a>
<%}else if(pic==null){%>
<a href="changeshoppic.jsp">瀏覽</a>
<%}else{%>
<table width="80" height="80" border="1" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../shoppic/<%=pic%>" width="80" height="80" /></td>
</tr>
</table>
<a href="changeshoppic.jsp">瀏覽</a>
<%}%></td>
</tr>
<tr>
<td height="26" colspan="2"><div align="center">
<input name="open" type="submit" id="open" value="開啟" />
</div></td>
</tr>
</table>
</form>
</td>
</tr>
</table><%}else{%> <script language="JavaScript">
alert("出錯!您還沒登陸!點確定返回首頁登陸部落....");
</script>
<meta HTTP-EQUIV=REFRESH CONTENT="0;URL=/xunibuluo/index.jsp"><%}%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -