41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
{php}
 | 
						|
use app\service\Image as FImage;
 | 
						|
{/php}
 | 
						|
{layout name="manager/layout" /}
 | 
						|
<div class="layui-card layui-col-md12">
 | 
						|
    <div class="layui-card-body">
 | 
						|
        <table class="layui-table layui-form" style="width: 50%;">
 | 
						|
            <colgroup>
 | 
						|
                <col width="30px" >
 | 
						|
                <col width="75px">
 | 
						|
                <col >
 | 
						|
                <col >
 | 
						|
                <col width="60px">
 | 
						|
                <col width="50%">
 | 
						|
            </colgroup>
 | 
						|
            <thead>
 | 
						|
                <td>类型</td>
 | 
						|
                <td>名称</td>
 | 
						|
                <td>尺寸</td>
 | 
						|
                <td>大小</td>
 | 
						|
            </thead>
 | 
						|
            {foreach $items as $item}
 | 
						|
            <tr>
 | 
						|
                <td>{$types[$item.type]}</td>
 | 
						|
                <td>{$item.name}</td>
 | 
						|
                <td>
 | 
						|
                    {if $item['type'] == 'img'}
 | 
						|
                    <div class="layer-photos"><img src="{$item['src']}" data-src="{$item['src']}" width="50" /> <span>{$item.w_h}</span></div>
 | 
						|
                    {elseif $item['type'] == 'video'}
 | 
						|
                    <div class="layer-video"><video src="{$item['src']}" width="50" /></div>
 | 
						|
                    {else /}
 | 
						|
                    {$item.src}
 | 
						|
                    {/if}
 | 
						|
                </td>
 | 
						|
                <td>{:sizeToSTr($item.size)}</td>
 | 
						|
            </tr>
 | 
						|
            {/foreach}
 | 
						|
        </table>
 | 
						|
        <div class="page" style="width: 50%;">{$items->render()|raw}</div>
 | 
						|
    </div>
 | 
						|
</div> |