<?php /* Smarty version Smarty-3.1.12, created on 2017-04-16 11:11:29
         compiled from "D:\WWW\youkeSY\admin\templates\default\comment.html" */ ?>
<?php /*%%SmartyHeaderCode:1618358f2e0e17bd6e4-82797820%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a29ae57469fb8920e2723db1d293bc23493ea9a4' => 
    array (
      0 => 'D:\\WWW\\youkeSY\\admin\\templates\\default\\comment.html',
      1 => 1492149210,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1618358f2e0e17bd6e4-82797820',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'action' => 0,
    'pagetitle' => 0,
    'fileurl' => 0,
    'cate_id' => 0,
    'sort' => 0,
    'order' => 0,
    'key_url' => 0,
    'status' => 0,
    'comments' => 0,
    'row' => 0,
    'showpage' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_58f2e0e1875097_18295984',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58f2e0e1875097_18295984')) {function content_58f2e0e1875097_18295984($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


	<?php if ($_smarty_tpl->tpl_vars['action']->value=='list'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value;?>
</em></h3>
	<div class="listbox">                    
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
">
		<div class="toolbar">
			<select name="act" id="act" class="sel">
			<option value="del" style="color: #f00;">删除选定</option>
            <option value="passed" style="color: #083;">审核通过</option>
			<option value="cancel" style="color: #f60;">取消审核</option>
			</select>
			<input type="submit" class="btn" value="应用" onClick="if(IsCheck('id[]')==false){alert('请指定您要操作的站点ID！');return false;}else{return confirm('确认执行此操作吗？');}">
			<select class="sel" onChange="if(this.options[this.selectedIndex].value!=''){location='<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
?status='+this.options[this.selectedIndex].value+'&cate_id=<?php echo $_smarty_tpl->tpl_vars['cate_id']->value;?>
&sort=<?php echo $_smarty_tpl->tpl_vars['sort']->value;?>
&order=<?php echo $_smarty_tpl->tpl_vars['order']->value;?>
<?php echo $_smarty_tpl->tpl_vars['key_url']->value;?>
';}">
			<option value="-1">所有状态</option>
			<option value="0" style="color: #f30;"<?php echo opt_selected($_smarty_tpl->tpl_vars['status']->value,0);?>
>待审核</option>
			<option value="1" style="color: #083;"<?php echo opt_selected($_smarty_tpl->tpl_vars['status']->value,1);?>
>已审核</option>
			</select>
		</div>
		
    	<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th><input type="checkbox" id="ChkAll" onClick="CheckAll(this.form)"></th>
				<th>ID</th>
				<th>评论标题</th>
				<th>昵称</th>
				<th>评论内容</th>
				<th>IP地址</th>
				<th>属性状态</th>
				<th>评论时间</th>
				<th>操作选项</th>
			</tr>
			<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['comments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
			<tr>
				<td><input name="id[]" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"></td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['comment_id'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['web_name'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['nick'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['content'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['ip'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['attr'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['time'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['row']->value['oper'];?>
</td>
			</tr>
			<?php }
if (!$_smarty_tpl->tpl_vars['row']->_loop) {
?>
			<tr><td colspan="10">无任何评论！</td></tr>
			<?php } ?>
		</table>
        </form>
        <div class="pagebox"><?php echo $_smarty_tpl->tpl_vars['showpage']->value;?>
</div>
    </div>
    <?php }?>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>