2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!--
功能描述:资源目录-图文列表
-->
<style type="text/css">
    .div_zy{
        float: left;
        width: 523px;
        height: 215px;
        /*padding: 7px 0 0 15px;*/
        background-color: white;
        border-radius: 10px;
        box-shadow: 0px 0px 1px 1px #bfbfbf;
        margin-bottom: 12px;
    }
 
    .div_zy:nth-child(2n) {
        margin-left: 7px;
    }
 
    .div_img{
        float: left;
        width: 180px;
        height: 110px;
        position: relative;
        top: 50%;
        margin-top: -93px;
        margin-left: 15px;
    }
    .div_img img {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
    .div_info{
        width: 56%;
        /*height: 100%;*/
        float: left;
        margin-left:20px;
        /*margin-top: 10px;*/
        font-size: 16px;
        line-height: 28px;
    }
    .ShuJuGuanJianZi{
        font-size: 12px;
        background-color: #B6DAFA;
        padding: 3px 8px;
        border-radius: 4px;
    }
    .div_zy:hover {
        background-color: #ebf8fe;
    }
 
    .div_zy:hover .div_img{
        -webkit-animation:blink 1s;
        animation:blink 1s;
    }
 
    @-webkit-keyframes blink {
        0% {
            opacity: 1
        }
 
        50% {
            opacity: .7
        }
 
        100% {
            opacity: 1
        }
    }
 
    @keyframes blink {
        0% {
            opacity: 1
        }
 
        50% {
            opacity: .7
        }
 
        100% {
            opacity: 1
        }
    }
 
    .pagination {
        margin: 13px 15px;
        float: right;
    }
 
    #div_title {
        font-size: 20px;
        color: #2B56BF;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    #div_title div {
        display: inline-block;
    }
</style>
<div width="100%"  xmlns:th="http://www.w3.org/1999/xhtml">
    <div th:each="Ziyuan,ZiyuanStat:${ZyList}" class="div_zy">
        <div id="div_title">
            <div style='margin-top:20px;margin-left: 15px;'>
                <!--th:onclick="'javascript:showMap('+${Ziyuan.resourceid}+',\''+${Ziyuan.resourcetype}+'\','+${Ziyuan.isquanxian}+',\''+${Ziyuan.firstmapurl}+'\')'"-->
                <div class="divtitle" style='float: left; display: inline-block; overflow: hidden;text-overflow: ellipsis; white-space: nowrap;' th:onclick="'javascript:OpenZiYuan('+${Ziyuan.resourceid}+')'"  th:title="${Ziyuan.title}" th:text="${Ziyuan.title}"></div>
                <div style="float: left;" th:if="${Ziyuan.status == 1}"><span style="font-size: 16px;color: #f01c00;">【异常】</span></div>
                <div style="float: left;" th:if="${Ziyuan.status == 3}"><span style="font-size: 16px;color: #f01c00;">【注销】</span></div>
            </div>
        </div>
 
 
        <div class="div_img" th:onclick="'javascript:showMap('+${Ziyuan.resourceid}+',\''+${Ziyuan.resourcetype}+'\','+${Ziyuan.isquanxian}+',\''+${Ziyuan.firstmapurl}+'\')'">
            <img th:src="${Ziyuan.imgurl}"  />
        </div>
        <div class="div_info">
            <div style="width:100%;"><span th:text="'审核状态:'+${Ziyuan.auditstatusname}"></span><span th:text="' | '+'资源类型:'+${Ziyuan.resourceclass}"></span></div>
            <div style="width:100%;"><span th:text="'发布时间:'+${Ziyuan.pubdate}"></span>
                <!--<span th:if="${Ziyuan.status == 1}">| 资源状态:<span style="color: #f01c00;">【异常】</span></span>-->
                <!--<span th:if="${Ziyuan.status == 3}">| 资源状态:<span style="color: #f01c00;">【注销】</span></span>-->
            </div>
            <div style="width:100%;">发布单位:<span th:text="${Ziyuan.pubunitname} == null?'':${Ziyuan.pubunitname}"></span></div>
            <div style="width:100%;"><span th:text="'发布人:'+${Ziyuan.createusername}"></span></div>
            <div style="width:100%;"><span class="td-title">关键字:</span>
                <span class="ShuJuGuanJianZi" th:each="item:${Ziyuan.list}"  th:if="${Ziyuan.Keywords!=''}"   th:text="${item}"></span></div>
        </div>
    </div>
</div>
<div class="row-fluid" style="float:left;height: 60px;width: 100%;margin-bottom: 50px; box-shadow: 0px 0px 1px 1px #bfbfbf;border-radius: 10px;background-color: white;line-height: 60px;">
    <span style="font-size: 16px;margin-left: 25px;color: grey;">搜索到<span th:text="${Count}"></span>笔资源</span>
    <input th:value="${Page}" type="hidden"  id="curren"/>
    <input th:value="${Count}"  type="hidden" id="total"/>
    <div id="Paginator" class="pagination">
    </div>
</div>
<script type="text/javascript" th:inline="javascript">
    var gisPortal = [[${gisPortal}]];
    var userId = [[${userid}]];
    $(function () {
        var count = [[${Count}]];
        $("#countNum").text(count);
        $(".divtitle").each(function(){
            $(this).css("max-width",$(".div_zy").width()-150+"px");
        })
    })
    function showMap(resourceid,resourcetype,isquanxian,firsturl) {
        if (isquanxian == 1 && (resourcetype == "KJ_JCDT" || resourcetype == "KJ_YWTC" || resourcetype == "KJ_ZTDT")) {
            var url = "";
            if(firsturl != null && firsturl != ""){
                url = firsturl;
            }else{
                url = gisPortal + "leafportal.html?resourceid=" + resourceid + "&uid=" + userId;
            }
            window.open(url);
        }
        else{
            OpenZiYuan(resourceid);
        }
    }
</script>