appstore.jsp
2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@page import="com.weaver.formmodel.mobile.manager.MobileAppBaseManager"%>
<%@page import="com.weaver.formmodel.mobile.model.MobileAppBaseInfo"%>
<%@ include file="/mobilemode/init2.jsp"%>
<%
MobileAppBaseManager mobileAppBaseManager=MobileAppBaseManager.getInstance();
List<MobileAppBaseInfo> applist = mobileAppBaseManager.getPublishAppList();
%>
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
*{
font-family: 'Microsoft YaHei', Arial;
}
html,body{background-color:#fff;margin:0;padding:0;}
h1{border:1px solid #aaa;font-weigh: normal;}
.clearfix:after {
visibility: hidden;
display: block;
content: "";
clear: both;
}
.gallery{
float: left;
width:100%;
}
.gallery-entries{
list-style:none;
padding:0;
float: left;
}
.gallery-entries .gallery-item{
float: left;
}
.gallery-entries .gallery-item img{
border: 0;
width: 60px;
height: 60px;
}
.gallery-entries .gallery-item a{
text-decoration:none;
color: #000;
}
.gallery-entries .gallery-item a div{
width: 60px;
text-align: center;
white-space:nowrap;
overflow: hidden;
text-overflow:ellipsis;
font-family: 'Microsoft YaHei', Arial;
font-size: 12px;
}
</style>
<script>
window.onload = function(){
document.getElementById("divWidthHeight").innerHTML = window.screen.availWidth + "*" + window.screen.height + "," + window.localStorage;
}
function openAppBaseInfo(appid){
location.href="/mobilemode/appHomepageViewWrap.jsp?appid="+appid;
}
</script>
</HEAD>
<body>
<div data-role="page" data-theme="a" id="jqm-home">
<div data-role="header" data-theme="a">
<h1>Test</h1>
<!--
<a href="grid-listview.html" data-shadow="false" data-iconshadow="false" data-icon="arrow-l" data-iconpos="notext" data-rel="back" data-ajax="false">Back</a>
-->
<div id="divWidthHeight"></div>
</div>
<div data-role="content" data-theme="a">
<section class="gallery">
<ul class="gallery-entries clearfix">
<%for(MobileAppBaseInfo iappinfo : applist){
MobileAppBaseInfo appinfo = (MobileAppBaseInfo)iappinfo;%>
<li class="gallery-item" >
<a href="#" onclick="openAppBaseInfo(<%=appinfo.getId()%>)"><img src="<%=appinfo.getPicpath() %>" >
<div><%=appinfo.getAppname() %></div>
</a>
</li>
<%} %>
</ul>
</div>
</div>
</body>
</html>