📄 showimg.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" %>
<%
String copnewpics = "";
String urlname = new StringBuffer(request.getRequestURL()).toString();
urlname=urlname.substring(0,urlname.lastIndexOf("/"));
%>
<%out.clear();%>
<c:catch var="isok">
<sql:query var="show">
Select id,tName,imgurl,backgroundId,addTime,frequency,click from template where id = ?
<sql:param value="${param.id}"/>
</sql:query>
<c:if test="${show.rowCount <=0}">
<jsp:forward page="error.jsp" />
</c:if>
<sql:update>
update template set click = click+1 where id = ?
<sql:param value="${param.id}"/>
</sql:update>
<sql:query var="bj" sql="Select id,photoPath from background where id = ${show.rowsByIndex[0][3]}"/>
</c:catch>
<c:if test="${!empty isok}">
<jsp:forward page="error.jsp" />
</c:if>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>${show.rowsByIndex[0][1]}-<%=webname%></title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="images/img.js"></script>
</head>
<body>
<table width="780" border="0" cellspacing="0" style="margin-bottom:5px">
<tr>
<td width="370"><a href="/"><img src="images/logo.gif" alt="<%=webname%>" width="368" height="82" border="0"></a></td>
<td align="center"><script src="/ad/ad400.js"></script></td>
</tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:1px">
<tr>
<td width="70" height="40"><img src="images/show_r2_c2.jpg" width="70" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="showlist.jsp"><img src="images/showimg.gif" width="59" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="background.jsp"><img src="images/bjimg.gif" width="74" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="up.jsp" target="_blank"><img src="images/diy.gif" width="83" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="help"><img src="images/help.gif" width="89" height="15" border="0"></a></td>
<td width="61"><img src="images/show_r2_c8.jpg" width="61" height="40"></td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" style="margin-bottom:5px">
<tr>
<td><script src="/ad/ad780.js"></script></td>
</tr>
</table>
<table width="780" border="0" cellpadding="5" cellspacing="0" class="p4" style="margin-bottom:5px">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="center"><img src="${show.rowsByIndex[0][2]}" title="${show.rowsByIndex[0][1]}" id="show" onClick="CopyImage(this)" onMouseOver="OverDemo(this)" onMouseOut="OutDemo(this)" alt="" onload="if(this.width>700) {this.alt=this.title; this.width=700;}" border="0"></td>
</tr>
<tr>
<td align="center"><table width="300" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>模版名称:${show.rowsByIndex[0][1]}</td>
</tr>
<tr>
<td>添加时间:${show.rowsByIndex[0][4]}</td>
</tr>
<tr>
<td>使用次数:${show.rowsByIndex[0][5]} 次</td>
</tr>
<tr>
<td>点击次数:${show.rowsByIndex[0][6]} 次</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#F1FAF9" class="p42">
<form name="form2" method="post" action="mbdiy.jsp" target="_blank">
<span class="zi">输入文字:</span>
<input name="zi" type="text" id="zi" style="background:#FBFDFF;border:1px solid #0066B2;padding:2px;height:23px;width:300px;font-weight: bold; font-size: 16px; color: #0066b2" size="40">
<input type="submit" name="button2" id="button2" value="生成QQ闪字" style="font-weight: bold; font-size: 13px">
<input name="e" id="e" value="${show.rowsByIndex[0][0]}" type=hidden>
</form> </td>
</tr>
<tr>
<td align="center"><a href="mobi.jsp?imgurl=<%=urlname%>${show.rowsByIndex[0][2]}" target="_blank"><img src="images/mobi.gif" alt="发送到手机" width="80" height="25" border="0"></a> <img src="images/copyimg.gif" alt="复制" width="80" height="25" onClick="CopyImage(document.getElementById('show'))"> <a href="diy.jsp?imgurl=${bj.rowsByIndex[0][1]}" target="_blank"><img src="images/ytdiy.gif" width="100" height="25" border="0"></a></td>
</tr>
<tr>
<td align="center"><input type="button" value="把图片保存到本地硬盘,以便以后使用!" name="bsave" id="BtnSave" onClick="SaveImage(document.getElementById('show'))"></td>
</tr>
<tr>
<td align="center">
<script language="javascript">
function copy_url2() { window.clipboardData.setData("text", "<%=urlname%>${show.rowsByIndex[0][2]}"); alert("复制成功!你可以去论坛贴图了!"); }
document.writeln('图片临时地址:<input type="text" size="65" value="<%=urlname%>${show.rowsByIndex[0][2]}" onclick="copy_url2()">');
document.writeln('<input type="button" value=" 复制图片地址 " onclick="copy_url2()">');
</script>
</td>
</tr>
<tr>
<td align="center">
<script language="javascript">
function copy_url1() { window.clipboardData.setData("text", "[img]<%=urlname%>${show.rowsByIndex[0][2]}[/img]"); alert("复制成功!你可以去论坛贴图了!"); }
document.writeln('网络贴图代码:<input type="text" size="65" value="[img]<%=urlname%>${show.rowsByIndex[0][2]}[/img]" onclick="copy_url1()">');
document.writeln('<input type="button" value=" 复制贴图代码 " onclick="copy_url1()">');
</script> </td>
</tr>
<tr>
<td align="center">
<iframe width="1" id="saveform" name="saveform" height="1" style="display:none;" src="about:blank"></iframe>
<script language="javascript">
var weburl = window.location.href;
function copy_url() { window.clipboardData.setData("text", weburl); alert("复制成功!赶快发给你的好友吧!"); }
document.writeln('本页URL地址:<input type="text" size="65" value="' + weburl + '" onclick="copy_url()">');
document.writeln('<input type="button" value=" 复制给QQ好友 " onclick="copy_url()">');
</script> </td>
</tr>
</table></td>
</tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><jsp:include page="bottom.jsp" /></td>
</tr>
</table>
<div id="DemoImg" style="background-color:#ffffff;position:absolute;left:30px;top:100px;z-index:99;border:1px solid #B1E3DC;display:none;"><img src=""></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -