📄 mbdiy.jsp
字号:
<%@ page pageEncoding="GB2312" %>
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="/inc/config.jsp" %>
<fmt:requestEncoding value="gb2312" />
<c:choose>
<c:when test="${!empty param.e}">
<c:catch var="isok">
<c:set var="fgid" value="${fn:replace(param.e,'hot','')}"/>
<sql:query var="mbdiy">
Select * from styles where templateId = ?
<sql:param value="${fgid}"/>
</sql:query>
<c:if test="${mbdiy.rowCount <=0}">
<jsp:forward page="error.jsp" />
</c:if>
<sql:query var="show">
Select id,tName,backgroundId from template where id = ?
<sql:param value="${fgid}"/>
</sql:query>
<sql:update>
update template set frequency = frequency+1 where id = ?
<sql:param value="${fgid}"/>
</sql:update>
<sql:query var="bj" sql="Select id,photoPath from background where id = ${show.rowsByIndex[0][2]}"/>
</c:catch>
<c:if test="${!empty isok}">
<jsp:forward page="error.jsp" />
</c:if>
<%out.clear();%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>使用模版《${show.rowsByIndex[0][1]}》快速DIY-<%=webname%></title>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<c:forEach var="row" items="${mbdiy.rows}">
<c:set var="ismb" scope="request" value="yes" />
<c:set var="imgurl" scope="request" value="${bj.rowsByIndex[0][1]}" />
<c:set var="text" scope="request" value="${param.zi}ì!,${param.zi}ì!,${param.zi}ì!,ì${param.zi}" />
<c:set var="isb" scope="request" value="${row.isb}" />
<c:set var="isx" scope="request" value="${row.isx}" />
<c:set var="jc" scope="request" value="${row.jc}" />
<c:set var="fontSize" scope="request" value="${row.fontsSize}" />
<c:set var="fonts" scope="request" value="${row.fonts}" />
<c:set var="d_bgcolor" scope="request" value="${row.d_bgcolor}" />
<c:set var="xz" scope="request" value="${row.xz}" />
<c:set var="yz" scope="request" value="${row.yz}" />
<c:set var="shadow" scope="request" value="${row.shadow}" />
<c:set var="d_shadow" scope="request" value="${row.d_shadow}" />
<c:set var="engrave" scope="request" value="${row.engrave}" />
<c:set var="d_engrave" scope="request" value="${row.d_engrave}" />
<c:set var="outline" scope="request" value="${row.outline}" />
<c:set var="d_outline" scope="request" value="${row.d_outline}" />
<c:set var="effects" scope="request" value="${row.effects}" />
<c:set var="d_3dEffects" scope="request" value="${row.d_3dEffects}" />
<c:set var="d_3dEffects2" scope="request" value="${row.d_3dEffects2}" />
<jsp:forward page="cenerationgif.jsp" />
</c:forEach>
</c:when>
<c:otherwise>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>错误提示</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="300" border="0" cellpadding="5" class="p4">
<tr>
<td align="center">请选择一个你喜欢的风格!</td>
</tr>
<tr>
<td align="center">
<input type="button" name="Button" value="关闭窗口" onClick="window.close();"></td>
</tr>
</table>
</c:otherwise>
</c:choose>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -