mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-04 14:36:50 +08:00
32 lines
746 B
PHP
32 lines
746 B
PHP
<?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');
|
||
|
||
}
|
||
|
||
}
|