mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 21:25:33 +08:00
54 lines
2.0 KiB
PHP
54 lines
2.0 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.
|
|
*/
|
|
|
|
|
|
class desktop_finder_builder_recycle extends desktop_finder_builder_prototype{
|
|
|
|
function main(){
|
|
$render = app::get('desktop')->render();
|
|
$oRecycle = app::get('desktop')->model('recycle');
|
|
$recycle_item = array();
|
|
$recycle_item['drop_time'] = time();
|
|
$recycle_item['item_type'] = $this->object->table_name();
|
|
$o = $this->app->model($this->object->table_name());
|
|
$this->dbschema = $this->object->get_schema();
|
|
$textColumn = $this->dbschema['textColumn'];
|
|
foreach($this->dbschema['columns'] as $k=>$col){
|
|
if($col['is_title']&&$col['sdfpath']){
|
|
$textColumn = $col['sdfpath'];
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$filter = $_POST;
|
|
unset($filter['_finder']);
|
|
$count_method = $this->object_method['count'];
|
|
$render->pagedata['count'] = $this->object-> $count_method($filter);
|
|
$render->pagedata['tags'] = (array)$tags;
|
|
$render->pagedata['selected_item'] = implode('|',$_POST[$this->dbschema['idColumn']]);
|
|
$render->pagedata['object_name'] = $this->object_name;
|
|
$render->pagedata['used_tag'] = array_keys((array)$used_tag);
|
|
$render->pagedata['intersect'] = (array)$intersect;
|
|
$render->pagedata['url'] = $this->url;
|
|
echo $render->fetch('common/dialog_recycle.html');
|
|
|
|
}
|
|
|
|
}
|