123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <meta charset="utf-8">
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta content="black" name="apple-mobile-web-app-status-bar-style">
- <meta content="telephone=no" name="format-detection">
- <link rel="stylesheet" href="__PUBLIC__/html/bootstrap-3.3.7/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="__PUBLIC__/wxapp/css/style1.css">
- <script src="__PUBLIC__/html/jquery-1.11.3.min.js"></script>
- <script src="__PUBLIC__/html/bootstrap-3.3.7/js/bootstrap.js"></script>
- <title>消息推送设置</title>
- <style>
- .checkbox{
- text-align: center;
- font-size: 20px;
- }
- .boxs{
- padding: 10px;
- width: 50%;
- font-size: 20px;
- float: left;
- text-align: center;
- }
- </style>
- </head>
- <body style="font-size: 20px;">
- <div class="header"><a class="comblack" href="__MODULE__/Index/index{$tokenurl}"></a> 消息推送设置</div>
- <form class="form-inline" id="formid" role="form" style=" margin-top: 30px; text-align: center; font-size: 20px;">
- <div class="mians">
- <div class="checkbox">
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m1 eq 1 ">checked</if> name="m1" value="1" id="m1"> 火警报警
- <!--</label>-->
- </div>
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m2 eq 1 ">checked</if> name="m2" value="2" id="m2"> 火警故障
- <!--</label>-->
- </div>
- </div>
- <div class="checkbox">
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m3 eq 1 ">checked</if> name="m3" value="3" id="m3"> 水压越限
- <!--</label>-->
- </div>
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m4 eq 1 ">checked</if> name="m4" value="4" id="m4"> 开关变化
- <!--</label>-->
- </div>
- </div>
- <div class="checkbox">
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m5 eq 1 ">checked</if> name="m5" value="5" id="m5"> 设备离线
- <!--</label>-->
- </div>
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m6 eq 1 ">checked</if> name="m6" value="6" id="m6"> 烟感报警
- <!-- <input type="checkbox" <if condition="$m6 eq 1 ">checked</if> name="m6" value="6" id="m6">离线 -->
- <!--</label>-->
- </div>
- </div>
- <div class="checkbox">
- <div class="boxs">
- <!--<label>-->
- <input type="checkbox" style="font-size: 20px; height: 23px;" <if condition="$m7 eq 1 ">checked</if> name="m7" value="7" id="m7"> 电气火灾
- <!--</label>-->
- </div>
- <div class="boxs" style="height:60px;">
- </div>
- </div>
- <!--<div style="text-align: center; ">-->
- <button type="button" class="btn btn-default" style="font-size: 18px;" onclick="postform()">提交</button>
- <!--</div>-->
- </div>
- </form>
- <script>
- function postform(){
- var m1=$('#m1').prop('checked');
- var m2=$('#m2').prop('checked');
- var m3=$('#m3').prop('checked');
- var m4=$('#m4').prop('checked');
- var m5=$('#m5').prop('checked');
- var m6=$('#m6').prop('checked');
- var m7=$('#m7').prop('checked');
- //var m6=$('#m6').prop('checked');
- $.post('__MODULE__/PushSettings/setperm', {'m1': m1,'m2': m2,'m3': m3,'m4': m4,'m5': m5,'m6':m6,'m7':m7}, function(data, textStatus, xhr) {
-
- if (data>0) {
- alert('修改成功');
- }else {
- alert("未修改"+data);
- }
- });
- }
- </script>
- </body>
- </html>
|