david-PC\david
2018-06-12 f240ac3ccd37c541cab2c21cfc433d3510999a3c
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
<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <title></title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="" name="description">
    <meta content="" name="author">
     <link href="../../css/common.css" rel="stylesheet">
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../js/foundation-2.0.js"></script>
    <style>
        .board-header {
            height: 36px;
            line-height: 36px;
            color: #90B91D;
            font-size: 16px;
            font-weight: bold;
            padding-left: 30px;
            background-color: #f7f2f2;
        }
        
        .board-title {
            height: 40px;
            line-height: 45px;
            text-align: center;
            font-size: 15px;
            font-weight: bold;
        }
        
        .board-content {
            position: absolute;
            top: 80px;
            left: 30px;
            right: 30px;
            bottom: 40px;
            line-height: 26px;
            border: 1px solid #f7f2f2;
            font-weight: normal;
        }
</style>
    <script type="text/javascript">
        var lbl_title, lbl_content, params;
        
        function loadNews(id) {
            lbl_title.html("");
            lbl_content.html(""); 
            
            Server.call("root/console/getNews?id=" + id, function(result){
                if (result) {
                    lbl_title.html(result.title);
                    lbl_content.html(decodeURIComponent(result.contents));
                }
            });         
        }
        
        $(document).ready(function() {
            Loading.hide();
            
            lbl_title = $("#lbl_title");
            lbl_content = $("#lbl_content");
            
            params = getURLParams(window.location.href);
            
            loadNews(params.id);
        });    
    </script>
</head>
<body>
    <div class="board-header">公告详情</div>
    <div class="board-title" id="lbl_title"></div>
    <div class="board-content" id="lbl_content">
    </div>
    <div style="position: fixed; height: 40px; line-height: 40px; width: 100%; bottom: 0px; text-align: right;">
        <div class="btn btn-green" style="margin-right: 100px;" onclick="Win.close()">返回</div>
    </div>
</body>
 
</html>