Newer
Older
alarm / WebRoot / content / alarm / deviceAdd.jsp
zhout on 2 Mar 2022 2 KB first commit
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@include file="/taglibs.jsp" %>

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=10"/>

    <link rel="stylesheet" type="text/css" href="${ctx}/s/jquery-easyui-1.3.2/themes/bootstrap/easyui.css"/>

    <link rel="stylesheet" type="text/css" href="${ctx}/s/jquery-easyui-1.3.2/themes/icon.css"/>

    <link rel="stylesheet" type="text/css" href="${ctx}/s/jquery-easyui-1.3.2/themes/frm.css"/>

    <script type="text/javascript" src="${ctx}/s/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>

    <script type="text/javascript" src="${ctx}/s/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>

    <script type="text/javascript" src="${ctx}/s/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>

    <style type="text/css">

        /*body {*/

            /*padding: 0;*/

            /*margin: 0;*/

        /*}*/

    </style>

    <script>
        $.extend($.fn.validatebox.defaults.rules, {

            intOrFloat: {
                validator: function (value, param) {
                    return /^\d+(\.\d+)?$/i.test(value);
                },
                message: '请输入数值.'
            }
        });
    </script>

</head>

<body style="text-align: left;background-color: #FFFFFF;height:250px;overflow-x:hidden;overflow-y:hidden;">

<input type="hidden" id="context" value="${ctx}"/>

<div>

    <form id="fm_add" method="post" class="fm">

        <table class="fitem" style="width: 100%;">


            <tr>


                <td><label>道路</label></td>
                <td>
                    <input id="id" name ="id" class="easyui-combobox"
                           data-options="panelHeight:140,width:160,valueField:'id',textField:'typeName',
                           url:'${ctx}/alarm/device-type!getRoad.do'"/>
                </td>

            </tr>

            <tr>

                <td colspan="2" style="text-align: center;">

                    <a class="easyui-linkbutton" id="ok">确定</a>

                </td>

            </tr>

        </table>

    </form>

</div>

</body>

</html>

<script type="text/javascript" src="${ctx}/s/alarm/deviceAdd.js"></script>

<script>

    $(function () {

        DeviceAdd.init();

    })

</script>