You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
5.7 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>抽水蓄能电站智能化状态监测系统</title>
<meta name="description" content="Dashboard">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--Basic Styles-->
<link href="__PUBLIC__/style/bootstrap.css" rel="stylesheet">
<link href="__PUBLIC__/style/font-awesome.css" rel="stylesheet">
<link href="__PUBLIC__/style/weather-icons.css" rel="stylesheet">
<!--Beyond styles-->
<link id="beyond-link" href="__PUBLIC__/style/beyond.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/style/demo.css" rel="stylesheet">
<link href="__PUBLIC__/style/typicons.css" rel="stylesheet">
<link href="__PUBLIC__/style/animate.css" rel="stylesheet">
</head>
<body>
<!-- 头部 -->
{include file="public/top" /}
<!-- /头部 -->
<div class="main-container container-fluid">
<div class="page-container">
<!-- Page Sidebar -->
{include file="common/devleft" /}
<!-- /Page Sidebar -->
<!-- Page Content -->
<div class="page-content">
<!-- Page Breadcrumb -->
<div class="page-breadcrumbs">
<ul class="breadcrumb">
<li>
<a href="{:url('zsb/lst')}">监测设备管理</a>
</li>
<li class="active">编辑监测设备</li>
</ul>
</div>
<!-- /Page Breadcrumb -->
<!-- Page Body -->
<div class="page-body">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="widget">
<div class="widget-header bordered-bottom bordered-blue">
<span class="widget-caption">监测设备</span>
</div>
<div class="widget-body">
<div id="horizontal-form">
<form class="form-horizontal" role="form" action="" method="post">
<div class="form-group">
<label for="name" class="col-sm-2 control-label no-padding-right">预置点id</label>
<div class="col-sm-6">
<input class="form-control" placeholder="只能填写数字" name="nPresetId" value="{$hwsb.nPresetId}" type="text">
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label no-padding-right">规则编号</label>
<div class="col-sm-6">
<input class="form-control" placeholder="" name="nRuleId" value="{$hwsb.nRuleId}" type="text">
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label no-padding-right">规则类型</label>
<div class="col-sm-6">
<input class="form-control" placeholder="" name="nMeterType" value="{$hwsb.nMeterType}" type="text">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">保存信息</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /Page Body -->
</div>
<!-- /Page Content -->
</div>
</div>
<!--Basic Scripts-->
<script src="__PUBLIC__/style/jquery_002.js"></script>
<script src="__PUBLIC__/style/bootstrap.js"></script>
<script src="__PUBLIC__/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__PUBLIC__/style/beyond.js"></script>
<script language="JavaScript" type="text/javascript">
function getjg(){
$.getJSON('{:url('msb/getjg')}?bid='+$('#bdzid').val(), function (data){
$("#jgid").empty();
var count = data.length;
var i = 0;
var b="";
for(i=0;i<count;i++){
if(data[i].id==$("#jid").val()) {
b += "<option selected='selected' value='" + data[i].id + "'>" + data[i].mc + "</option>";
}
else
{
b += "<option value='" + data[i].id + "'>" + data[i].mc + "</option>";
}
}
$("#jgid").append(b);
}
);
}
$(function(){
getjg();
$("#bdzid").change(function(){
getjg();
});
});
</script>
</body></html>