<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<meta name="viewport" charset="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>文件浏览</title>
|
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
|
<link rel="stylesheet" type="text/css" media="all" href="static/plugins/iipmooviewer-2.0/css/iip.css" />
|
<!--[if lt IE 9]>
|
<link rel="stylesheet" type="text/css" media="all" href="static/plugins/iipmooviewer-2.0/css/ie.css" />
|
<![endif]-->
|
|
<link rel="shortcut icon" href="static/plugins/iipmooviewer-2.0/images/iip-favicon.png" />
|
<link rel="apple-touch-icon" href="static/plugins/iipmooviewer-2.0/images/iip.png" />
|
|
<script type="text/javascript" src="static/plugins/iipmooviewer-2.0/javascript/mootools-core-1.3.2-full-nocompat.js"></script>
|
<script type="text/javascript" src="static/plugins/iipmooviewer-2.0/javascript/mootools-more-1.3.2.1.js"></script>
|
<script type="text/javascript" src="static/plugins/iipmooviewer-2.0/javascript/protocols.js"></script>
|
<script type="text/javascript" src="static/plugins/iipmooviewer-2.0/javascript/iipmooviewer-2.0.js"></script>
|
|
<!--[if lt IE 7]>
|
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js">IE7_PNG_SUFFIX = ".png";</script>
|
<![endif]-->
|
|
|
<script type="text/javascript">
|
|
// The iipsrv server path (/fcgi-bin/iipsrv.fcgi by default)
|
var server = 'fcgi-bin/iipsrv.fcgi';
|
|
// The *full* image path on the server. This path does *not* need to be in the web
|
// server root directory. On Windows, use Unix style forward slash paths without
|
// the "c:" prefix
|
var images = '${fn:replace(attachUrl, "\\", "/")}';
|
|
// Copyright or information message
|
var credit = '';
|
<c:if test = "${enableWatermark}">
|
credit = "${watermarkText}";
|
</c:if>
|
|
// Create our viewer object
|
// See documentation for more details of options
|
var iipmooviewer = new IIPMooViewer("viewer", {
|
image : images,
|
prefix: "static/plugins/iipmooviewer-2.0/images/",
|
server : server,
|
credit : credit,
|
scale : 20.0,
|
showNavWindow : true,
|
showNavButtons : true,
|
winResize : true,
|
protocol : 'iip'
|
});
|
</script>
|
|
<style type="text/css">
|
body {
|
height: 100%;
|
}
|
|
div#viewer {
|
width: 100%;
|
height: 100%;
|
}
|
</style>
|
</head>
|
<body>
|
<div id="viewer"></div>
|
</body>
|
</html>
|