mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-01 13:36:45 +08:00
43 lines
1.6 KiB
PHP
43 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/**
|
|
* @Author: xueding@shopex.cn
|
|
* @Vsersion: 2022/10/13
|
|
* @Describe: 预警模板finder类
|
|
*/
|
|
class monitor_finder_event_template
|
|
{
|
|
var $column_edit = '操作';
|
|
var $column_edit_width = "75";
|
|
|
|
function column_edit($row)
|
|
{
|
|
$finder_vid = $_GET['finder_vid'];
|
|
$btn = '<a href="index.php?app=monitor&ctl=admin_alarm_template&act=edit&p[0]=' . $row['template_id'] . '&finder_id=' . $_GET['_finder']['finder_id'] . '&finder_vid=' . $finder_vid . '" >编辑</a> ';
|
|
|
|
return $btn;
|
|
}
|
|
var $detail_basic = '基本信息';
|
|
function detail_basic($template_id){
|
|
$render = app::get('ome')->render();
|
|
$eventTemplateMdl = app::get('monitor')->model('event_template');
|
|
$templateInfo = $eventTemplateMdl->db_dump($template_id);
|
|
$render->pagedata['templateInfo'] = $templateInfo;
|
|
return $render->fetch("admin/alarm/event/template/template_detail.html",'monitor');
|
|
}
|
|
} |