TaoLer/view/taoler/index/public/crud.html

29 lines
1.7 KiB
HTML
Raw Normal View History

2022-08-16 15:21:08 +08:00
{//管理帖子加精、置顶、编辑、删除模块}
2022-11-18 10:31:44 +08:00
{if (session('?user_name'))}
2022-08-16 15:21:08 +08:00
<div class="detail-assist">
<div class="fly-admin-box" data-id="{$article.id}">
{if ($user.auth ?? '')}
{if($article.is_top == 0)}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1" style="background-color:#ccc;" title="置顶"></span>
{else /}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" title="取消置顶"></span>
{/if}
{if($article.is_hot == 0)}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1" style="background-color:#ccc;" title="加精"></span>
{else /}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" title="取消加精"></span>
{/if}
{if($article.is_reply == 1)}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="0" title="禁评"></span>
{else /}
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="1" style="background-color:#ccc;" title="可评"></span>
{/if}
<span id="color">{:lang('title color')}</span>
<span class="layui-btn layui-btn-xs jie-admin" type="del" title="删除"><i class="layui-icon layui-icon-delete"></i></span>
{/if}
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
2022-11-18 10:31:44 +08:00
<a href="{$Request.domain}{:url('article/edit',['id'=>$article.id])}" title="编辑"><span class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i></span></a>
2022-08-16 15:21:08 +08:00
{/if}
</div>
</div>
{/if}