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.

414 lines
12 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">
<script src="/xypg/public__IMG__/cssjs/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<div class="bodyClass">
{include file="public/top" /}
<div class="main-container container-fluid hei">
<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('ied/lst')}">IED管理</a>
</li>
<li class="active">编辑IED</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">IED</span>
</div>
<div class="widget-body">
<div id="horizontal-form">
<input type="hidden" name="id" value="{$ieds.id}">
<input type="hidden" id="cac_id" name="cac_id" value="{$ieds.cacid}">
<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">名称</label>
<div class="col-sm-6">
<input class="form-control" id="name" placeholder="" name="name" value="{$ieds.name}" type="text">
</div>
</div>
<div class="form-group">
<label for="cagid" class="col-sm-2 control-label no-padding-right">所属主站平台</label>
<div class="col-sm-6">
<select class="form-control" id="cagid" name="cagid" >
{volist name="cags" id="cagvo"}
<option {if $ieds.cagid==$cagvo.id} selected="selected" {/if} value="{$cagvo.id}">{$cagvo.name}</option>
{/volist}
</select>
</div>
</div>
<div class="form-group">
<label for="cacid" class="col-sm-2 control-label no-padding-right">所属大数据推送平台</label>
<div class="col-sm-6">
<select class="form-control" id="cacid" name="cacid" >
</select>
</div>
</div>
<div class="form-group">
<label for="manufacture" class="col-sm-2 control-label no-padding-right">生产厂家</label>
<div class="col-sm-6">
<input class="form-control" id="manufacture" placeholder="" name="manufacture" value="{$ieds.manufacture}" type="text">
</div>
</div>
<div class="form-group">
<label for="factoryint" class="col-sm-2 control-label no-padding-right">出厂编号</label>
<div class="col-sm-6">
<input class="form-control" id="factoryint" placeholder="" name="factoryint" value="{$ieds.factoryint}" type="text">
</div>
</div>
<div class="form-group">
<label for="manufacturedate" class="col-sm-2 control-label no-padding-right">出厂日期</label>
<div class="col-sm-6">
<input id="manufacturedate" value="{$ieds.manufacturedate}" class="Wdate form-control" style="height:35px" placeholder="" name="manufacturedate" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
</div>
</div>
<div class="form-group">
<label for="rundate" class="col-sm-2 control-label no-padding-right">投运日期</label>
<div class="col-sm-6">
<input id="rundate" value="{$ieds.rundate}" class="Wdate form-control" style="height:35px" placeholder="" name="rundate" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
</div>
</div>
<div class="form-group">
<label for="location" class="col-sm-2 control-label no-padding-right">安装位置</label>
<div class="col-sm-6">
<input class="form-control" id="location" placeholder="" name="location" value="{$ieds.location}" type="text">
</div>
</div>
<div class="form-group">
<label for="note" class="col-sm-2 control-label no-padding-right">描述</label>
<div class="col-sm-6">
<input class="form-control" id="note" placeholder="" name="note" value="{$ieds.note}" type="text">
</div>
</div>
<div class="form-group">
<label for="diskfree" class="col-sm-2 control-label no-padding-right">磁盘空间</label>
<div class="col-sm-6">
<input class="form-control" id="diskfree" placeholder="" name="diskfree" value="{$ieds.diskfree}" type="text">
</div>
</div>
<div class="form-group">
<label for="downip" class="col-sm-2 control-label no-padding-right">下行IP</label>
<div class="col-sm-6">
<input class="form-control" id="downip" placeholder="" name="downip" value="{$ieds.downip}" type="text">
</div>
</div>
<div class="form-group">
<label for="upip" class="col-sm-2 control-label no-padding-right">上行IP</label>
<div class="col-sm-6">
<input class="form-control" id="upip" placeholder="" name="upip" value="{$ieds.upip}" 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 getcac(){
$.getJSON('{:url('ied/getcac')}?cagid='+$('#cagid').val(), function (data){
$("#cacid").empty();
var count = data.length;
var i = 0;
var b="";
for(i=0;i<count;i++){
if(data[i].id==$("#cac_id").val()) {
b += "<option selected='selected' value='" + data[i].id + "'>" + data[i].name + "</option>";
}
else
{
b += "<option value='" + data[i].id + "'>" + data[i].name + "</option>";
}
}
$("#cacid").append(b);
}
);
}
$(function(){
getcac();
$("#cagid").change(function(){
getcac();
});
});
</script>
</div>
</body></html>