<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_visaquestion.html', '0e4a08b3b30624a079fdf8e99a285385', 1349921614); ?>
<table class="user_table user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<th>问题</th>
<th>答案</th>
<th>发表人</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="updateClick(this);"><?php echo $v['title']; ?></a></td>
<td><?php echo $v['adminReply']; ?></td>
<td>
<?php if($v['m_name'] == '') { ?>匿名用户<?php } else { echo $v['m_name']; } ?>
</td>
<td><span class="<?php echo $stateStyle[$v['status']]; ?>"><?php echo $v['date']; ?></span></a></td>
<td><span class="<?php echo $stateStyle[$v['status']]; ?>">
<?php if($v['question_status'] == '0') { ?>未解决<?php } else { ?>已解决<?php } ?></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="6">没有找到相关数据。</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;</div>
<div class="statusNote" style="width:225px">

</div>
</td></tr>
</tbody>
</table>
