<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_info.html', 'a4add1e401777751de1093006a81adf7', 1362484454); ?>
<table class="user_table user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<th>标题</th>
<th style="width:150px;">所属分类</th>
<th style="width:150px;">添加日期</th>
<th style="width:50px;">状态</th>
<th style="width:120px;"><input type="checkbox" id="o_delall" onclick="checkDelAll();" />操作</th>
</tr><?php $stateStyle=array('已停用'=>'content1','待审核'=>'content2','已审核'=>'content3'); if(count($list)>0) { if(is_array($list)) foreach($list as $k => $v) { ?>
<tr id="O_Row_<?php echo $v['id']; ?>" class="row">
<td><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="viewClick(this);"><?php echo $v['title']; ?></a></td>
<td><?php echo $v['type']; ?></td>
<td><?php echo $v['date']; ?></td>
<td><a id="o_<?php echo $v['id']; ?>" onclick="updateStatusClick(this);"><span class="<?php echo $stateStyle[$v['status']]; ?>"><?php echo $v['status']; ?></span></a></td>
<td style="white-space:nowrap;"><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="updateClick(this);">编辑</a> <input type="checkbox" class="delAll" id="o_del<?php echo $v['id']; ?>" value="<?php echo $v['id']; ?>" /><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="delClick(this);">删除</a></td>
</tr>
<?php } } else { ?>
<tr>
<td style="text-align:center" colspan="5">没有找到相关数据。</td>
</tr>
<?php } ?>
</tbody></table>

<table border="0" width="100%">
<tbody>
<tr>
<td>
<?php include $this->tpl->getfile('inc/page'); ?>
</td>
<td align="right">
<div class="delselect" style="width:170px;"><button class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button>&nbsp;<button class="searchbutton" type="button" onclick="addClick();">添加录入</button></div>
<div class="statusNote" style="width:225px">
<span style="color:#000; width:60px;">状态说明:</span>

<?php if(is_array($stateStyle)) foreach($stateStyle as $k => $v) { ?>
<span class="<?php echo $v; ?>" onclick="statusClick('<?php echo $k; ?>');"><?php echo $k; ?></span>
<?php } ?>
</div>
</td></tr>
</tbody>
</table>
