<?php include template("admin/header");?>

<div class="midder">

<h2>幻灯片设置</h2>
<?php include pubTemplate("plugin_menu");?>

<div>
<form enctype="multipart/form-data" method="POST" action="<?php echo 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>
    </select>

</td></tr>
<tr><td>标题：</td><td><input name="title" 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 />
(大图755*210)</td></tr>
<tr><td></td><td><input type="submit" value="提交" /></td></tr>
</table>
</form>
</div>


<table  cellpadding="0" cellspacing="0">

<tr class="old"><td>ID</td><td>类型</td><td>标题</td><td>URL</td><td>图片</td><td>操作</td></tr>
<?php foreach($arrData as $item){ ?>
<tr class="odd"><td><?php echo $item['slideid'] ?></td><td><?php echo $item['typeid'] ?></td><td><?php echo $item['title']; ?></td><td><?php echo $item['url']; ?></td><td><img src="<?php echo SITE_URL; ?>uploadfile/slide/<?php echo $item['photo'] ?>?v=<?php echo rand() ?>" width="200" /></td><td>



<a href="<?php echo SITE_URL?>index.php?app=home&ac=plugin&plugin=slide&in=edit&ts=edit&slideid=<?php echo $item['slideid']?>">修改</a>


<a href="<?php echo SITE_URL;?>index.php?app=home&ac=plugin&plugin=slide&in=edit&ts=delete&slideid=<?php echo $item['slideid'];?>">删除</a></td></tr>


<?php } ?>

</table>
</form>
</div>

<?php include template("admin/footer");?>