mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
52 lines
1.6 KiB
PHP
52 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.
|
|
*/
|
|
|
|
/**
|
|
* 特性列表项扩展Lib
|
|
*
|
|
* @author kamisama.xia@gmail.com
|
|
* @version 0.1
|
|
*/
|
|
|
|
class flowctrl_finder_feature{
|
|
|
|
var $addon_cols = "type,config";
|
|
|
|
var $column_edit = '操作';
|
|
function column_edit($row){
|
|
if($_GET['ctl'] == 'admin_feature' && $_GET['act'] == 'index'){
|
|
return "<a href='javascript:void(0);' onclick=\"new Dialog('index.php?app=flowctrl&ctl=admin_feature&act=edit&p[0]={$row[ft_id]}&finder_id={$_GET[_finder][finder_id]}',{width:600,height:600,title:'编辑特性'});\">编辑</a>";
|
|
}else{
|
|
return '-';
|
|
}
|
|
}
|
|
|
|
|
|
//处理的模式
|
|
var $column_process_mode = '处理方式';
|
|
var $column_process_mode_width = 200;
|
|
var $column_process_mode_order = 300;
|
|
function column_process_mode($row)
|
|
{
|
|
$node = $row[$this->col_prefix.'type'];
|
|
$config = $row[$this->col_prefix.'config'];
|
|
$flowConfLib = kernel::single('flowctrl_conf');
|
|
$desc = $flowConfLib->getNodeCnfDescByNode($node, $config);
|
|
return $desc ? $desc : '-';
|
|
}
|
|
}
|