1
zj
2024-06-20 8b8e8166ae6180bc959861d5301528edfd40a8e3
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
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
<c:if test="${message != null&&message != ''}">
    <div class="kode-alert kode-alert-icon kode-alert-click alert3">
        <i class="fa fa-check"></i>
        ${message}
    </div>
</c:if>
 
<c:if test="${error != null&&error != ''}">
    <div class="kode-alert kode-alert-icon alert6">
        <i class=" fa fa-warning"></i> <a href="#" class="closed">×</a>
        ${error}
    </div>
</c:if>
 
<!-- Start an Alert -->
<div id="alerttop"
    class="kode-alert kode-alert-icon kode-alert-click alert6 kode-alert-top">
    <div id="alerttop_msg"></div>
</div>
<!-- End an Alert -->
 
<script>
    function alerttop(msg) {
        $("#alerttop_msg").html(msg);
        $("#alerttop").fadeToggle(350);
    }
    
    function sweet(msg) {
        swal(msg);
    }
 
    function sweet_warning(msg) {
        swal({
            title : msg,
            text : "",
            type : "warning",
            confirmButtonText : "确定"
        });
    }
    function sweet_success(msg) {
        swal({
            title : msg,
            text : "",
            type : "success",
            confirmButtonText : "确定"
        }, function() {
            window.location.reload();
        });
    }
</script>