Files
thinksaas_lmve/app/message/html/my.html
T
2023-06-22 13:33:25 +08:00

98 lines
2.2 KiB
HTML
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 include pubTemplate("header")}
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="my_left">
{php include pubTemplate("my")}
</div>
</div>
<div class="col-md-9">
<div class="card">
<div class="card-body position-relative">
{template menu}
<div class="position-absolute" style="top:20px;right:20px;"><a class="btn btn-sm btn-outline-info" href="{SITE_URL}index.php?app=message&ac=read">设为全部已读</a></div>
{if $arrMessage}
<table class="table">
<thead class="thead-light">
<tr>
<th>消息</th>
<th>状态</th>
<th class="text-right">操作</th>
</tr>
</thead>
<tbody>
{loop $arrMessage $key $item}
<tr>
<td>
<p class="c9">{php echo date('Y-m-d H:i:s',$item[addtime])}</p>
{if $item['userid']}{$item['user']['username']}{/if} {$item[content]}
</td>
<td>
{if $item['isread']==1}
已读
{else}
未读
{/if}
</td>
<td class="text-right">
{if $item['tourl']}
<a class="btn btn-sm btn-outline-secondary" target="_blank" href="{$item['tourl']}">查看</a>
{/if}
{if $item['userid'] && $item['tourl']==''}
<a class="btn btn-sm btn-outline-secondary" href="{tsUrl('message','user',array('touserid'=>$item['userid']))}">聊天</a>
{/if}
</td>
</tr>
{/loop}
</tbody>
</table>
<!--
<div class="newmsg fs13 mt-2">
<ul>
{loop $arrMsg $key $item}
<li>{if $item['userid']}<img src="{$item['user']['face']}" width="16" align="absmiddle" /> {$item['user']['username']}{$item['content']} <a href="{tsUrl('message','user',array('touserid'=>$item['userid']))}">[回复]</a>{else}系统消息:<a href="{tsUrl('message','system')}">[查看]</a>{/if}</li>
{/loop}
</ul>
</div>
-->
{else}
<div class="text-black-50">暂无消息</div>
{/if}
</div>
</div>
</div>
</div>
</div>
{php include pubTemplate("footer")}