📄 shop_alipay.jsp
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="cn.js.fan.util.*"%>
<%@ page import="cn.js.fan.db.*"%>
<%@ page import="cn.js.fan.web.*"%>
<%@ page import="cn.js.fan.module.nav.*"%>
<%@ page import="com.redmoon.forum.plugin.auction.*"%>
<%@ page import="com.redmoon.forum.plugin.info.*"%>
<%@ page import="com.redmoon.forum.plugin2.alipay.*"%>
<%@ page import="com.redmoon.forum.MsgDb"%>
<%@ page import="com.redmoon.forum.person.UserDb"%>
<%@ page import="cn.js.fan.module.guestbook.*"%>
<%
int id = -1;
try {
id = ParamUtil.getInt(request, "id");
}
catch (Exception e) {
}
AuctionShopDb as = new AuctionShopDb();
String userName = "";
if (id!=-1)
userName = StrUtil.getNullString(as.getShopUserNameById(id));
if (userName.equals(""))
userName = ParamUtil.get(request, "userName");
if (userName.equals("")) {
out.print(SkinUtil.makeErrMsg(request, "对不起,缺少参数!"));
return;
}
as = as.getAuctionShopDb(userName);
if (as==null || !as.isLoaded()) {
out.print(cn.js.fan.web.SkinUtil.makeInfo(request, AuctionSkin.LoadString(request, "info_not_exist")));
return;
}
if (!as.isValid()) {
out.print(cn.js.fan.web.SkinUtil.makeInfo(request, AuctionSkin.LoadString(request, "info_invalid")));
return;
}
MsgDb md = new MsgDb();
UserDb user = new UserDb();
user = user.getUser(userName);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><%=as.getShopName()%>-<%=Global.AppName%>社区专卖店</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<script language="JavaScript">
function openWin(url,width,height)
{
var newwin = window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,top=50,left=120,width="+width+",height="+height);
}
</script>
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
</HEAD>
<LINK href="shopskin/<%=as.getSkinCode()%>/skin.css" type=text/css rel=stylesheet>
<BODY>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="banner">
<tr>
<td height="23" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="topnav_table">
<tr>
<td width="7%" height="23"> </td>
<td width="21%" align="center" class="topnav_td"><%=as.getShopName()%></td>
<td width="17%" align="center"><a href="shopdesc.jsp?userName=<%=StrUtil.UrlEncode(userName)%>" class="link_topnav">【店铺介绍】</a></td>
<td width="55%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="50%"><div class="shopInfo">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="45%" rowspan="6" align="center"><%
String logo = StrUtil.getNullStr(as.getLogo());
if (!logo.equals("")) {
String w = "";
if (as.getLogoWidth()>as.LOGO_NO_WIDTH)
w = "width=" + as.getLogoWidth();
%>
<img src="<%=request.getContextPath() + "/" + logo%>" <%=w%>>
<%}
%> </td>
<td width="20%"><span>店 长:</span></td>
<td width="35%"><%=userName%></td>
</tr>
<tr>
<td><span>信 用 值:</span></td>
<td><%=user.getCredit()%></td>
</tr>
<tr>
<td><span>开店时间:</span></td>
<td><%=DateUtil.format(as.getOpenDate(), "yy-MM-dd")%></td>
</tr>
<tr>
<td><span>地 址:</span></td>
<td><%=as.getAddress()%></td>
</tr>
<tr>
<td><span>域 名:</span></td>
<td><a href="http://<%=as.getId()%>.zjrj.cn">http://<%=as.getId()%>.zjrj.cn</a></td>
</tr>
<tr>
<td> </td>
<td><a href="javascript:openWin('<%=request.getContextPath()%>/message/send.jsp?receiver=<%=userName%>',320,260)">站内消息</a> <a href="manager/index.jsp?userName=<%=StrUtil.UrlEncode(userName)%>">管理店铺</a> </td>
</tr>
</table>
</div></td>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="announce_bg">
<tr>
<td width="100%" colspan="2" class=""> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td height="21" colspan="2" valign="middle" class="notice_title_td"><span class="text_14_bold">本店消息</span></td>
</tr>
<tr>
<td height="13" colspan="2"><hr size="1" class="notice_hr"></td>
</tr>
<%
InfoDb idb = new InfoDb();
Iterator idbir = idb.list(0, 4, userName).iterator();
while (idbir.hasNext()) {
idb = (InfoDb)idbir.next();
md = md.getMsgDb(idb.getId());
%>
<tr>
<td width="83%" height="22">【<%=idb.getTypeName()%>】<span class="dirItem"><a href="../../showtopic.jsp?rootid=<%=md.getId()%>" target=_blank><%=md.getTitle()%></a></span></td>
<td width="17%" height="22"><%=DateUtil.format(idb.getAddDate(), "yy-MM-dd")%></td>
</tr>
<%}%>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" class="recommand">
<tr>
<td><%
AuctionDb ad = new AuctionDb();
Iterator rcir = ad.listRecommand(userName).iterator();
while (rcir.hasNext()) {
%>
<table border="0" align="left">
<tr>
<td width="139" height="106" align="center" valign="bottom"><%
ad = (AuctionDb) rcir.next();
String fileName = StrUtil.getNullString(ad.getImage());
if (!fileName.equals("")) {
%>
<img src="../../<%=fileName%>" width=80>
<%}else{%>
<img src="shopskin/default/images/noimg.jpg" width="80" height="105">
<%}%>
</td>
</tr>
<tr>
<td height="22" align="center"><a href="../../showtopic.jsp?rootid=<%=ad.getMsgRootId()%>" class="link_commodity"><%=ad.getName()%></a></td>
</tr>
<tr>
<td align="center"><%=ad.getSellTypeDesc(request)%>
<%
AuctionWorthDb aw = new AuctionWorthDb();
long[] ary = aw.getWorthOfAuction(ad.getMsgRootId());
if (ad.getSellType()==ad.SELL_TYPE_AUCTION) {
aw = aw.getAuctionWorthDb((int)ary[0]);
%>
<span class="text_price"><%=aw.getMoneyName()%><%=aw.getPrice()%> <%=aw.getMoneyDanWei()%></span>
<%} else {
int len = ary.length;
for (int i=0; i<len; i++) {
aw = aw.getAuctionWorthDb((int)ary[i]);
%>
<span class="text_price"><%=aw.getMoneyName()%><%=aw.getPrice()%> <%=aw.getMoneyDanWei()%></span><br>
<%}
}%>
</td>
</tr>
</table>
<%}%>
</td>
</tr>
</table>
<TABLE width=98% border=0 align="center" cellPadding=0 cellSpacing=0 class="main_table_bg">
<TBODY>
<TR>
<TD width="19%" align=middle vAlign=top><TABLE cellSpacing=0 cellPadding=0 width=100% border=0 class="dir_frame">
<TBODY>
<TR>
<TD height=33 valign="top" class=p3><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dir_title">
<tr>
<td><span id=dir_title class="text_white_bold">商品目录</span></td>
</tr>
</table>
<table width="99%" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="11%" class="text_dir_all"> </td>
<td align="left" class="text_dir_all"><img src="images/default/arrow.gif" width="13" height="12" border="0" align="absmiddle"> <span class="dirItem"><a href="shop.jsp?userName=<%=StrUtil.UrlEncode(userName)%>">全部商品</a></span></td>
</tr>
</table>
<%
AuctionShopDirDb asd = new AuctionShopDirDb();
Iterator irdir = asd.list(userName).iterator();
while (irdir.hasNext())
{
asd = (AuctionShopDirDb) irdir.next();
%>
<table width=100% border=0 cellspacing=0 cellpadding=0 class="p9">
<tr>
<td width=11% height=20> </td>
<td width=89%><img src="images/default/arrow.gif" width="13" height="12" border="0" align="absmiddle"> <span class="dirItem"><a href="?userName=<%=StrUtil.UrlEncode(userName)%>&dirCode=<%=StrUtil.UrlEncode(asd.getCode())%>"><%=asd.getDirName()%></a></span></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -