79 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			HTML
		
	
	
		
		
			
		
	
	
			79 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			HTML
		
	
	
|  | {php} | ||
|  | use app\service\Image as CImage; | ||
|  | {/php} | ||
|  | {layout name="manager/layout" /} | ||
|  | 
 | ||
|  | {if isset($history) && count($history) > 0} | ||
|  | <div class="layui-card layui-col-md12"> | ||
|  |     <div class="layui-card-body"> | ||
|  |         <div class="layui-col-xs12 between-center"> | ||
|  |             <div class="layui-inline"> | ||
|  |                 <a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.history/addInfo',['history_id'=>$history['id']])}" title="添加历程事例" data-width="1000"><i class="layui-icon layui-icon-add-1"></i>添加历程事例</a> | ||
|  |             </div> | ||
|  |         </div> | ||
|  |         <div class="layui-clear"></div> | ||
|  |         <hr style="margin: 20px 0;"> | ||
|  |         <div class="mgb15"><strong>历程:</strong>{$history.title}</div> | ||
|  | 
 | ||
|  |         {empty name="items"} | ||
|  |         <div class="empty-404">该历程暂无相关事例信息!</div> | ||
|  |         {else /} | ||
|  |         <table class="layui-table layui-form"> | ||
|  |             <colgroup> | ||
|  |                 <col > | ||
|  |                 <col width="400px"> | ||
|  |                 <col width="75px"> | ||
|  |                 <col width="310px"> | ||
|  |             </colgroup> | ||
|  |             <thead> | ||
|  |             <tr> | ||
|  |                 <td>事例标题</td> | ||
|  |                 <td>图组</td> | ||
|  |                 <td>状态</td> | ||
|  |                 <td>操作</td> | ||
|  |             </tr> | ||
|  |             </thead> | ||
|  |             {foreach $items as $item} | ||
|  |             <tbody class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.history/sortInfo')}"> | ||
|  |             <tr> | ||
|  |                 <td>{$item.title}</td> | ||
|  |                 <td class="layer-photos"> | ||
|  |                     {if !empty($item.imgs)} | ||
|  |                     {php} $imgArr = json_decode($item['imgs'], true);{/php} | ||
|  |                     {if !empty($imgArr)} | ||
|  |                     {foreach $imgArr as $img} | ||
|  |                         <img src="{:CImage::getThumb($img.src, 50, 50)}" layer-src="{$img.src}" width="50" /> | ||
|  |                     {/foreach} | ||
|  |                     {/if} | ||
|  |                     {/if} | ||
|  |                 </td> | ||
|  |                 <td>{:$item.visible == 0 ? '<span class="text-warning">隐藏</span>' : '<span class="text-green">正常</span>'}</td> | ||
|  |                 <td > | ||
|  |                     <a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="up" data-url="{:url('manager.history/sortInfo')}" href="javascript:void(0);"> | ||
|  |                         <i class=""></i>向上 | ||
|  |                     </a> | ||
|  |                     <a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="down" data-url="{:url('manager.history/sortInfo')}" href="javascript:void(0);"> | ||
|  |                         <i class=""></i>向下 | ||
|  |                     </a> | ||
|  |                     <a data-href="{:url('manager.history/editInfo',['id' => $item['id']])}" class="layui-btn layui-btn-warm layui-btn-xs" title="编辑"> | ||
|  |                         <i class=""></i>编辑 | ||
|  |                     </a> | ||
|  |                     <a class="del layui-btn layui-btn-danger layui-btn-xs" data-id="{$item.id}" data-url="{:url('manager.history/delInfo')}" href="javascript:void(0);" > | ||
|  |                         <i class=""></i>删除 | ||
|  |                     </a> | ||
|  |                 </td> | ||
|  |             </tr> | ||
|  |             </tbody> | ||
|  |             {/foreach} | ||
|  |         </table> | ||
|  |         {/empty} | ||
|  |     </div> | ||
|  | </div> | ||
|  | {else /} | ||
|  | <div class="layui-card layui-col-md12"> | ||
|  |     <div class="layui-card-body"> | ||
|  |         <div class="empty-404">该历程信息不存在!</div> | ||
|  |     </div> | ||
|  | </div> | ||
|  | {/if} |