114 lines
3.0 KiB
HTML
114 lines
3.0 KiB
HTML
{php include pubTemplate("header")}
|
|
|
|
<div class="container">
|
|
|
|
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
|
<li class="breadcrumb-item"><a href="{tsUrl('attach')}">附件库</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">{$strAlbum['albumname']}</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
|
|
|
|
<h1 class="h3 fw400">{$title}</h1>
|
|
|
|
<hr />
|
|
|
|
<div class="c9 fs12">
|
|
|
|
<span class="mr-2">{$strAlbum[count_view]} 人浏览</span>
|
|
|
|
<span class="mr-2">{$strAlbum[count_attach]} 文件</span>
|
|
<span>{$strAlbum[addtime]} 创建</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mt-3">
|
|
|
|
|
|
{if $arrattach}
|
|
<div class="page">{$pageUrl}</div>
|
|
<table class="table table-sm table-bordered table-hover" style="font-size: 14px;">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>file id</th>
|
|
<th>名称</th>
|
|
<th>Size</th>
|
|
<th>积分</th>
|
|
<th>下载量</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{loop $arrattach $key $item}
|
|
|
|
<tr>
|
|
<td>{$item[attachid]}</td>
|
|
<td><a href="{tsUrl('attach','show',array('id'=>$item['attachid']))}">{$item[attachname]}</a></td>
|
|
<td>{$item[attachsize]}</td>
|
|
<td>{if $item[pay]==0}<font color="red">Free</font>{else}{$item[pay]}{/if}</td>
|
|
<td>{$item[count_view]}</td>
|
|
<td>
|
|
<a href="{tsUrl('attach','down',array('id'=>$item[attachid]))}">下载</a>
|
|
<a href="{tsUrl('attach','edit',array('id'=>$item[attachid]))}">修改</a>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
{/loop}
|
|
</tbody>
|
|
</table>
|
|
{else}
|
|
<br>
|
|
<div class="pl">这个附件库现在还没有文件
|
|
{if $strAlbum[userid] == $TS_USER[userid]}, 你可以<a href="{tsUrl('attach','upload',array('albumid'=>$strAlbum['albumid'],'ts'=>'add'))}">添加文件</a>{/if}
|
|
</div>
|
|
<br>
|
|
{/if}
|
|
</div>
|
|
|
|
|
|
<div class="page">{$pageUrl}</div>
|
|
|
|
<div class="text-black-50">{$strAlbum[albumdesc]}</div>
|
|
|
|
|
|
<hr />
|
|
|
|
<div class="tar fs12 c9 mt-3">
|
|
|
|
{if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}
|
|
{if $albumid!=0}
|
|
> <a href="{tsUrl('attach','album',array('ts'=>'edit','albumid'=>$strAlbum['albumid']))}">修改附件库</a>
|
|
{/if}
|
|
> <a href="{tsUrl('attach','upload',array('albumid'=>$strAlbum['albumid'],'ts'=>'add'))}">添加文件</a>
|
|
{/if}
|
|
|
|
|
|
{if $strAlbum[userid] == $TS_USER[userid] || $TS_USER[isadmin]==1}
|
|
{if $albumid!=0}
|
|
> <a href="{tsUrl('attach','album',array('ts'=>'del','albumid'=>$strAlbum['albumid']))}">删除附件库</a>
|
|
{/if}
|
|
{/if}
|
|
|
|
{if $albumid!=0}
|
|
> <a href="{tsUrl('attach','user',array('id'=>$strAlbum['userid']))}">{$strUser['username']}的附件库</a>
|
|
{/if}
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{php include pubTemplate("footer")} |