<?php 
defined('IN_HS') or exit('Access Denied');

include admintpl('header');
echo $menu;
?>

<form method="post" name="myform">
<table width="100%" height="25" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td>当前位置：<a href="?mod=<?=$mod?>&file=<?=$file?>&action=manage">道具管理</a> &gt;&gt; <?=$cat_pos?> </td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan="10">道具管理</th>
  </tr>
<tr align="center">
<td width="30" class="tablerowhighlight">选中</td>
<td width="40" class="tablerowhighlight">ID</td>
<td width="50" class="tablerowhighlight">排序</td>
<td class="tablerowhighlight">道具名称</td>
<td width="140" class="tablerowhighlight">道具代码</td>
<td width="72" class="tablerowhighlight">添加时间</td>
<td width="40" class="tablerowhighlight">已售出</td>
<td width="80" class="tablerowhighlight">管理操作</td>
</tr>
<? if(is_array($products)) foreach($products AS $product) { ?>
<tr align="center" class="mout" onmouseover="this.className='mover'" onmouseout="this.className='mout'">

<td><input name='productids[]' type='checkbox' class='checkbox_style' value='<?=$product['productid']?>'></td>

<td><?=$product['productid']?></td>

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

<td align="left"><? if($product[onsale] ==0 ||!$product[onsale]) { ?><font color="#FF0000"><b>[已停售]</b></font><? } ?><? if(!$catid) { ?>[<a href="<?php echo $CATEGORY[$product['catid']]['linkurl'];?>" target="_blank"><?=$CATEGORY[$product['catid']]['catname']?></a>] <? } ?><a href="<?=$product['linkurl']?>" target="_blank"><?=$product['pdt_name']?></a></td>

<td>
<?=$product['pdt_No']?>
</td>

<td><?=$product['addtime']?></td>
<td><?=$product['sales']?></td>
<td>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&productid=<?=$product['productid']?>&catid=<?=$product['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 class="checkbox_style" name='chkall' type='checkbox'  id='chkall' onclick='checkall(this.form)' value='check'>全选/反选</td>
    <td>
	<input name='submit0' type='submit' class='btn' value='更新排序' onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=listorder&referer=<?=$referer?>'" >&nbsp;
		<input name='submit7' type='submit' class='btn' value='删除道具' onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=action&job=disabled&value=1&referer=<?=$referer?>&isrecycle=<? echo isset($job)&&$job=='recycle'? 1:0;?>'">&nbsp;
        <input name='submit8' type='submit' class='btn' value='移动道具' onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=move&movetype=1'"></td>
  </tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align='center'><?=$pages?></td>
  </tr>
</table>
</form>

</body>
</html>
