<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<?=$menu?>
<table width="100%" height="25" border="0" cellpadding="3" cellspacing="0" class="tableborder">
  <tr>
    <td class="tablerow"> <img src="<?=HS_PATH?>admin/skin/images/pos.gif" align="absmiddle" alt="当前位置" > 当前位置：<a href="?mod=<?=$mod?>&file=<?=$file?>&action=main&channelid=<?=$channelid?>">图片首页</a> &gt;&gt; <a href="?mod=<?=$mod?>&file=<?=$file?>&action=manage&channelid=<?=$channelid?>">管理图片</a> &gt;&gt; <?=$cat_pos?> </td>

  </tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
</table>

<form method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan="9">图片管理</th>
  </tr>
<tr align="center">
<td width="30" class="tablerowhighlight">选中</td>
<td width="40" class="tablerowhighlight">ID</td>
<td width="40" class="tablerowhighlight">排序</td>
<td class="tablerowhighlight">标题</td>
<td width="70" class="tablerowhighlight">录入</td>
<td width="80" class="tablerowhighlight">发表时间</td>
<td width="50" class="tablerowhighlight">点击</td>
<td width="70" class="tablerowhighlight">管理操作</td>
</tr>

<? if(is_array($pictures)) foreach($pictures AS $picture) { ?>
<tr align="center" title="图片ID:<?=$picture['pictureid']?>&#10;添加时间:<?=$picture['addtime']?>&#10;审核:<?=$picture['checker']?>&#10;审核时间:<?=$picture['checktime']?>&#10;编辑:<?=$picture['editor']?>&#10;编辑时间:<?=$picture['edittime']?>" ondblclick="$('picture_<?=$picture['pictureid']; ?>').checked = ($('picture_<?=$picture['pictureid']; ?>').checked ? false : true);">

<td><input name="pictureids[]" type="checkbox" class="checkbox_style" value="<?=$picture['pictureid']?>" id="picture_<?=$picture['pictureid']?>"></td>

<td><?=$picture['pictureid']?></td>

<td><input name='listorders[<?=$picture['pictureid']?>]' type='input' value='<?=$picture['listorder']?>' size="3" /></td>

<td align="left"><? if(!$catid) { ?>[<a href="<?=$CATEGORY[$picture['catid']]['linkurl']?>" target="_blank"><?=$CATEGORY[$picture['catid']]['catname']?></a>] <? } ?><?php if($picture['typeid']) { ?> <a href="?mod=<?=$mod?>&file=<?=$file?>&action=manage&channelid=<?=$channelid?>&typeid=<?=$picture['typeid']?>"><font color="green"><?=$picture['typename']?></font></a> <?php } ?><a href="<?=$picture['linkurl']?>" target="_blank"><?=$picture['title']?></a>

<?php if($picture['arrposid']) { ?> <font color="green">荐</font><?php } ?>

</td>

<td title="编辑:<?=$picture['checker']?>"><a href="<?=$MODULE['member']['linkurl']?>member.php?username=<?=urlencode($picture['username'])?>" target="_blank"><?=$picture['username']?></a></td>
<td><?=$picture['adddate']?></td>
<td><?=$picture['hits']?></td>
<td>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channelid?>&pictureid=<?=$picture['pictureid']?>&catid=<?=$picture['catid']?>&referer=<?=$referer?>" title="编辑图片">编辑</a>
</td>
</tr>
<? } ?>


<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><input name='chkall' type='checkbox' class='checkbox_style' id='chkall' onclick='checkall(this.form)' value='check'>全选/反选</td>
    <td>
	<input type='submit' class='btn' value='更新排序' onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=listorder&channelid=<?=$channelid?>&referer=<?=$referer?>'" >&nbsp;&nbsp;		
	<input type='submit' class='btn' value='更新地址' onClick="document.myform.action='?mod=<?=$mod?>&file=createhtml&action=update_url&channelid=<?=$channelid?>&referer=<?=$referer?>'" >&nbsp;
	<input type='submit' class='btn' value='删除图片'		onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=action&job=status&value=-1&channelid=<?=$channelid?>&referer=<?=$referer?>'">&nbsp;
	<input type='submit' class='btn' value='移动图片' onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=move&movetype=1&channelid=<?=$channelid?>'"></td>
  </tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align='center'><?=$pages?></td>
  </tr>
</table>
</form>
<br />
</body>
</html>
