Files
OMS/app/desktop/lib/finder/builder/packet.php
2025-12-28 23:13:25 +08:00

32 lines
746 B
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.
*/
class desktop_finder_builder_packet extends desktop_finder_builder_prototype{
function main(){
$this->controller->pagedata['data'] = $this->get_views();
/** 判断是否要显示归类视图 **/
$is_display_packet = 'false';
foreach ($this->controller->pagedata['data'] as $arr){
if ($arr['addon'])
{
$is_display_packet = 'true';
break;
}
else
{
$is_display_packet = 'false';
}
}
$this->controller->pagedata['haspacket'] = ($is_display_packet=='true') ? true : false;
$this->controller->display('finder/view/packet.html','desktop');
}
}