<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>短信群发</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="<%=request.getContextPath() %>/js/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=request.getContextPath() %>/js/bootstrap/css/bootstrap-theme.min.css">
    <script type="text/javascript" charset="utf-8" src="<%=request.getContextPath() %>/js/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<%=request.getContextPath() %>/js/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
    <div class="alert alert-success" role="alert" style="text-align: center;">
            短信群发
    </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">内容:</label>
            <div class="col-sm-10">
                <input type="text" name="content" id="content" value="" class="form-control" placeholder="内容">
            </div>
        </div>
        <div class="form-group" style="text-align: center;">
            <button type="button" onclick="send()" class="btn btn-default">发送</button>
        </div>
</div>
<script>
    function send(){
        var content = $("#content").val();
        if(content!=null && content!=""){
            $.ajax({
                type: 'GET',
                url: '<%=request.getContextPath() %>/message/sendMessage.do',
                data: {content:content},
                dataType: 'json',
                timeout: 30000,
                success: function(json){

                },
                error: function(xhr, type){

                }
            });
        }
    }
</script>
</body>
</html>
