123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?php
- /* Smarty version 3.1.30, created on 2018-05-07 00:08:31
- from "D:\phpStudy\WWW\workorder\application\views\templates\warning\view.html" */
- /* @var Smarty_Internal_Template $_smarty_tpl */
- if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
- 'version' => '3.1.30',
- 'unifunc' => 'content_5aef287fb00311_49930050',
- 'has_nocache_code' => false,
- 'file_dependency' =>
- array (
- '1bb55b7d0a7f79387cf6ccb9e8a2a12fc6b47c7a' =>
- array (
- 0 => 'D:\\phpStudy\\WWW\\workorder\\application\\views\\templates\\warning\\view.html',
- 1 => 1525621096,
- 2 => 'file',
- ),
- ),
- 'includes' =>
- array (
- ),
- ),false)) {
- function content_5aef287fb00311_49930050 (Smarty_Internal_Template $_smarty_tpl) {
- if (!is_callable('smarty_modifier_date_format')) require_once 'D:\\phpStudy\\WWW\\workorder\\application\\libraries\\smarty\\plugins\\modifier.date_format.php';
- ?>
- <!DOCTYPE html>
- <html lang="zh-CN" xmlns="http://www.w3.org/1999/html">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="robots" content="noindex,nofollow">
- <title><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
- </title>
- <base href="<?php echo base_url();?>
- "/>
- <link href="static/css/bootstrap.min.css" rel="stylesheet">
- <link href="static/css/select2.min.css" rel="stylesheet">
- <link rel="stylesheet" href="static/css/style.css">
- <?php echo '<script'; ?>
- language="javascript" type="text/javascript"> var SITE_URL = "/";<?php echo '</script'; ?>
- >
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <?php echo '<script'; ?>
- src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"><?php echo '</script'; ?>
- >
- <![endif]-->
- </head>
- <body style="background: #fff; min-width: auto;">
- <form class="form-horizontal bv-form" role="form" id="validateform" name="validateform" action="" novalidate="novalidate">
- <div class="panel panel-default">
- <div class="panel-body">
- <fieldset>
- <div class="form-group">
- <label class="col-xs-2 control-label">告警名称:</label>
- <div class="col-xs-9">
- <?php echo $_smarty_tpl->tpl_vars['warning']->value['warning_name'];?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">告警类型:</label>
- <div class="col-xs-9 text-left">
- <span class="level warning_type<?php echo $_smarty_tpl->tpl_vars['warning']->value['type'];?>
- "><?php echo $_smarty_tpl->tpl_vars['warning_type']->value[$_smarty_tpl->tpl_vars['warning']->value['type']];?>
- </span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">告警等级:</label>
- <div class="col-xs-4 text-left">
- <span class="level level<?php ob_start();
- echo $_smarty_tpl->tpl_vars['warning']->value['level'];
- $_prefixVariable1=ob_get_clean();
- echo $_prefixVariable1;?>
- "><?php echo $_smarty_tpl->tpl_vars['warning_level']->value[$_smarty_tpl->tpl_vars['warning']->value['level']];?>
- </span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">分支机构:</label>
- <div class="col-xs-9">
- <?php if (array_key_exists($_smarty_tpl->tpl_vars['warning']->value['branch']['branch_id'],$_smarty_tpl->tpl_vars['branch']->value)) {
- echo $_smarty_tpl->tpl_vars['branch']->value[$_smarty_tpl->tpl_vars['warning']->value['branch']['branch_id']]['branch_name'];
- } else { ?>未配置分支<?php }?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">告警内容:</label>
- <div class="col-xs-9">
- <?php echo $_smarty_tpl->tpl_vars['warning']->value['content'];?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">设备ID:</label>
- <div class="col-xs-9">
- <?php echo $_smarty_tpl->tpl_vars['warning']->value['device']['device_id'];?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">设备类型:</label>
- <div class="col-xs-9">
- <?php echo $_smarty_tpl->tpl_vars['warning']->value['device']['device_type'];?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">创建时间:</label>
- <div class="col-xs-9">
- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['warning']->value['create_time']->toDateTime(),'%Y-%m-%d %H:%M:%S');?>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-2 control-label">告警状态:</label>
- <div class="col-xs-9">
- <span class="w_status<?php echo $_smarty_tpl->tpl_vars['warning']->value['status'];?>
- "><?php echo $_smarty_tpl->tpl_vars['warning_status']->value[$_smarty_tpl->tpl_vars['warning']->value['status']];?>
- </span>
- </div>
- </div>
- </fieldset>
- <div class="form-actions text-left">
- <button type="button" id="cannel" class="btn btn-default">关闭</button>
- </div>
- </div>
- </div>
- </form>
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/jquery.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/bootstrap.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/select2.full.min.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- language="javascript" type="text/javascript">
- $(function(){
- var layer_index = parent.layer.getFrameIndex(window.name);
- $("#cannel").click(function () {
- parent.layer.close(layer_index);
- })
- })
- <?php echo '</script'; ?>
- >
- </body>
- </html><?php }
- }
|