Files
OMS/app/brush/lib/finder/farm.php
2025-12-28 23:13:25 +08:00

42 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* @author ykm 2015-11-16
* @describe 特殊订单条件列表
*/
class brush_finder_farm{
public $column_edit = '操作';
var $column_edit_width = 120;
var $column_edit_order = 1;
/**
* column_edit
* @param mixed $row row
* @return mixed 返回值
*/
public function column_edit($row){
$farm_id = $row['farm_id'];
$finder_id = $_GET['_finder']['finder_id'];
return '<a href="index.php?app=brush&ctl=admin_condition&act=edit&farm_id='.$row['farm_id'].'&finder_id='.$finder_id.'" target="_blank">编辑</a>';
}
public $detail_log = '操作日志';
/**
* detail_log
* @param mixed $farmId ID
* @return mixed 返回值
*/
public function detail_log($farmId) {
$render = app::get('brush')->render();
$logObj = app::get('ome')->model('operation_log');
$log = $logObj->read_log(array('obj_id'=>$farmId,'obj_type'=>'farm@brush'), 0, -1);
foreach($log as $k=>$v){
$log[$k]['operate_time'] = date('Y-m-d H:i:s',$v['operate_time']);
}
$render->pagedata['arrLog'] = $log;
return $render->fetch('admin/farm/detail/log.html');
}
}