@@ -0,0 +1,63 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
|
||||
{php include pubTemplate("plugin_menu")}
|
||||
|
||||
<div>
|
||||
<form enctype="multipart/form-data" method="POST" action="{SITE_URL}index.php?app=home&ac=plugin&plugin=slide&in=edit&ts=do">
|
||||
<table>
|
||||
<tr><td>类型:</td><td>
|
||||
|
||||
<select name="typeid">
|
||||
<option value="0">PC端-首页</option>
|
||||
<option value="1">手机端-首页</option>
|
||||
<option value="2">手机端-商品首页</option>
|
||||
</select>
|
||||
|
||||
</td></tr>
|
||||
<tr><td>标题:</td><td><input name="title" style="width:600px" /></td></tr>
|
||||
<tr><td>内容:</td><td><input name="info" style="width:600px" /></td></tr>
|
||||
|
||||
<tr><td>URL:</td><td><input name="url" style="width:600px" /></td></tr>
|
||||
|
||||
<tr><td>图片:</td><td><input type="file" name="photo" /><br />
|
||||
(PC端图1110*300;手机端图640*320)</td></tr>
|
||||
<tr><td></td><td><input type="submit" value="提交" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>ID</th><th>类型</th><th>标题</th><th>URL</th><th>图片</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
{loop $arrSlide $key $item}
|
||||
<tr class="odd">
|
||||
<td>{$item['slideid']}</td>
|
||||
<td>{$item['typeid']}</td>
|
||||
<td>{$item['title']}</td>
|
||||
<td>{$item['url']}</td>
|
||||
<td><img src="{$item['photo_url']}" width="200" /></td>
|
||||
|
||||
<td>
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{SITE_URL}index.php?app=home&ac=plugin&plugin=slide&in=edit&ts=edit&slideid={$item['slideid']}">修改</a>
|
||||
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{SITE_URL}index.php?app=home&ac=plugin&plugin=slide&in=edit&ts=delete&slideid={$item['slideid']}">删除</a></td></tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
Reference in New Issue
Block a user