1bb55b7d0a7f79387cf6ccb9e8a2a12fc6b47c7a_0.file.view.html.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. /* Smarty version 3.1.30, created on 2018-05-07 00:08:31
  3. from "D:\phpStudy\WWW\workorder\application\views\templates\warning\view.html" */
  4. /* @var Smarty_Internal_Template $_smarty_tpl */
  5. if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  6. 'version' => '3.1.30',
  7. 'unifunc' => 'content_5aef287fb00311_49930050',
  8. 'has_nocache_code' => false,
  9. 'file_dependency' =>
  10. array (
  11. '1bb55b7d0a7f79387cf6ccb9e8a2a12fc6b47c7a' =>
  12. array (
  13. 0 => 'D:\\phpStudy\\WWW\\workorder\\application\\views\\templates\\warning\\view.html',
  14. 1 => 1525621096,
  15. 2 => 'file',
  16. ),
  17. ),
  18. 'includes' =>
  19. array (
  20. ),
  21. ),false)) {
  22. function content_5aef287fb00311_49930050 (Smarty_Internal_Template $_smarty_tpl) {
  23. if (!is_callable('smarty_modifier_date_format')) require_once 'D:\\phpStudy\\WWW\\workorder\\application\\libraries\\smarty\\plugins\\modifier.date_format.php';
  24. ?>
  25. <!DOCTYPE html>
  26. <html lang="zh-CN" xmlns="http://www.w3.org/1999/html">
  27. <head>
  28. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  29. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  30. <meta name="robots" content="noindex,nofollow">
  31. <title><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
  32. </title>
  33. <base href="<?php echo base_url();?>
  34. "/>
  35. <link href="static/css/bootstrap.min.css" rel="stylesheet">
  36. <link href="static/css/select2.min.css" rel="stylesheet">
  37. <link rel="stylesheet" href="static/css/style.css">
  38. <?php echo '<script'; ?>
  39. language="javascript" type="text/javascript"> var SITE_URL = "/";<?php echo '</script'; ?>
  40. >
  41. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  42. <!--[if lt IE 9]>
  43. <?php echo '<script'; ?>
  44. src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"><?php echo '</script'; ?>
  45. >
  46. <?php echo '<script'; ?>
  47. src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"><?php echo '</script'; ?>
  48. >
  49. <![endif]-->
  50. </head>
  51. <body style="background: #fff; min-width: auto;">
  52. <form class="form-horizontal bv-form" role="form" id="validateform" name="validateform" action="" novalidate="novalidate">
  53. <div class="panel panel-default">
  54. <div class="panel-body">
  55. <fieldset>
  56. <div class="form-group">
  57. <label class="col-xs-2 control-label">告警名称:</label>
  58. <div class="col-xs-9">
  59. <?php echo $_smarty_tpl->tpl_vars['warning']->value['warning_name'];?>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="col-xs-2 control-label">告警类型:</label>
  64. <div class="col-xs-9 text-left">
  65. <span class="level warning_type<?php echo $_smarty_tpl->tpl_vars['warning']->value['type'];?>
  66. "><?php echo $_smarty_tpl->tpl_vars['warning_type']->value[$_smarty_tpl->tpl_vars['warning']->value['type']];?>
  67. </span>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-xs-2 control-label">告警等级:</label>
  72. <div class="col-xs-4 text-left">
  73. <span class="level level<?php ob_start();
  74. echo $_smarty_tpl->tpl_vars['warning']->value['level'];
  75. $_prefixVariable1=ob_get_clean();
  76. echo $_prefixVariable1;?>
  77. "><?php echo $_smarty_tpl->tpl_vars['warning_level']->value[$_smarty_tpl->tpl_vars['warning']->value['level']];?>
  78. </span>
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <label class="col-xs-2 control-label">分支机构:</label>
  83. <div class="col-xs-9">
  84. <?php if (array_key_exists($_smarty_tpl->tpl_vars['warning']->value['branch']['branch_id'],$_smarty_tpl->tpl_vars['branch']->value)) {
  85. echo $_smarty_tpl->tpl_vars['branch']->value[$_smarty_tpl->tpl_vars['warning']->value['branch']['branch_id']]['branch_name'];
  86. } else { ?>未配置分支<?php }?>
  87. </div>
  88. </div>
  89. <div class="form-group">
  90. <label class="col-xs-2 control-label">告警内容:</label>
  91. <div class="col-xs-9">
  92. <?php echo $_smarty_tpl->tpl_vars['warning']->value['content'];?>
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label class="col-xs-2 control-label">设备ID:</label>
  97. <div class="col-xs-9">
  98. <?php echo $_smarty_tpl->tpl_vars['warning']->value['device']['device_id'];?>
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <label class="col-xs-2 control-label">设备类型:</label>
  103. <div class="col-xs-9">
  104. <?php echo $_smarty_tpl->tpl_vars['warning']->value['device']['device_type'];?>
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="col-xs-2 control-label">创建时间:</label>
  109. <div class="col-xs-9">
  110. <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['warning']->value['create_time']->toDateTime(),'%Y-%m-%d %H:%M:%S');?>
  111. </div>
  112. </div>
  113. <div class="form-group">
  114. <label class="col-xs-2 control-label">告警状态:</label>
  115. <div class="col-xs-9">
  116. <span class="w_status<?php echo $_smarty_tpl->tpl_vars['warning']->value['status'];?>
  117. "><?php echo $_smarty_tpl->tpl_vars['warning_status']->value[$_smarty_tpl->tpl_vars['warning']->value['status']];?>
  118. </span>
  119. </div>
  120. </div>
  121. </fieldset>
  122. <div class="form-actions text-left">
  123. <button type="button" id="cannel" class="btn btn-default">关闭</button>
  124. </div>
  125. </div>
  126. </div>
  127. </form>
  128. <?php echo '<script'; ?>
  129. type="text/javascript" charset="utf-8" src="static/js/jquery.js"><?php echo '</script'; ?>
  130. >
  131. <?php echo '<script'; ?>
  132. type="text/javascript" charset="utf-8" src="static/js/bootstrap.js"><?php echo '</script'; ?>
  133. >
  134. <?php echo '<script'; ?>
  135. type="text/javascript" charset="utf-8" src="static/js/select2.full.min.js"><?php echo '</script'; ?>
  136. >
  137. <?php echo '<script'; ?>
  138. type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"><?php echo '</script'; ?>
  139. >
  140. <?php echo '<script'; ?>
  141. language="javascript" type="text/javascript">
  142. $(function(){
  143. var layer_index = parent.layer.getFrameIndex(window.name);
  144. $("#cannel").click(function () {
  145. parent.layer.close(layer_index);
  146. })
  147. })
  148. <?php echo '</script'; ?>
  149. >
  150. </body>
  151. </html><?php }
  152. }