<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function open(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.action="<!--{$open}-->";
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要操作的评论！" ) ;
	}

	return;
}

function notopen(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.action="<!--{$notopen}-->";
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要操作的评论！" ) ;
	}

	return;
}

function edit(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				window.location.href="<!--{$edit}-->"+c.$A("value");
				window.event.returnValue = false;
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要编辑的分类！" ) ;
	}

	return ;
}

function del(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要删除的评论！" ) ;
	}

	return;
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon034a12.gif" />评论列表</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="open();return false;"><img src="imgs/Icons/icon404a4.gif" width="20" height="20" /><b>审核通过&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="notopen();return false;"><img src="imgs/Icons/icon404a3.gif" width="20" height="20" /><b>审核不通过&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="edit();return false;" priv="article_modify" ><img src="imgs/Icons/icon034a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a>
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon034a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div>
			 </td>
            </tr>
			<form action="<!--{$index}-->" method="post" name="form2" id="form2">
			<tr>
				<td style="padding:2px 10px;">&nbsp;&nbsp;状态&nbsp;<select name='view' id='view'>
								<option value='3'>全部</option>
								<option value='0' <!--{if $view==0}-->selected<!--{/if}-->>未审核</option>
								<option value='1' <!--{if $view==1}-->selected<!--{/if}-->>显示</option>		
								<option value='2' <!--{if $view==2}-->selected<!--{/if}-->>不显示</option>								
							  </select>&nbsp;关键字&nbsp;<input name='keywords' id='keywords' type="text" size="25" value="<!--{$keywords}-->" onblur="if(this.value=='') this.value='标题或正文中的部分文字';" onfocus="if(this.value=='标题或正文中的部分文字') this.value='';">&nbsp;每页显示条数&nbsp;<select name='pages' id='pages'>
								<option value='10' <!--{if 10==$pages}-->selected<!--{/if}-->>10</option>
								<option value='20' <!--{if 20==$pages or 0>=$pages}-->selected<!--{/if}-->>20</option>
								<option value='30' <!--{if 30==$pages}-->selected<!--{/if}-->>30</option>
								<option value='50' <!--{if 50==$pages}-->selected<!--{/if}-->>50</option>
								<option value='100' <!--{if 100==$pages}-->selected<!--{/if}-->>100</option>						
							  </select>&nbsp;<select name='orders' id='orders'>
									<option value='cd' <!--{if $orders eq "cd"}-->selected<!--{/if}-->>撰写时间降序</option>		
									<option value='ca' <!--{if $orders eq "ca"}-->selected<!--{/if}-->>撰写时间升序</option>		
							  </select>&nbsp;&nbsp;<input type="submit" value="查 找">
				</td>
			</tr>
			</form>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->
<table width="100%" border='0' align="center" cellpadding='0' cellspacing='0'>
<form action="<!--{$delete}-->" method="post" name="form1" id="form1">
<tr>
<td style="padding:0px 5px;">
<div id="contentlist">
<!--{foreach from=$results item=rs name=counter}-->
<table width="100%" cellpadding="2" cellspacing="0" class="dataTable">
<tr class="dataTableHead">
	<td width="8%" align="right"><input name="checkbox[<!--{$rs->getFormId()}-->]" id="checkbox[<!--{$rs->getFormId()}-->]" type="checkbox" value="<!--{$rs->getFormId()}-->" /></td>
	<td width="60%"><a href="&nbsp;" title="&nbsp;" target="_blank"><b>&nbsp;</b></a>&nbsp;&nbsp;
	关联ID: &nbsp;<!--{$rs->getFormId()}--></td>
	<td width="32%" align="right" style=" font-weight:normal;">
	<img src="imgs/Icons/icon404a4.gif" style=" margin-bottom:-6px;"><a href="<!--{$open}--><!--{$rs->getFormId()}-->" onClick="Pass(0)">审核通过</a>
	<img src="imgs/Icons/icon404a3.gif" style=" margin-bottom:-6px;"><a href="<!--{$notopen}--><!--{$rs->getFormId()}-->" onClick="NoPass(0)">审核不通过</a>
	<img src="imgs/Icons/icon034a4.gif" style=" margin-bottom:-6px;"><a href="<!--{$edit}--><!--{$rs->getFormId()}-->">编辑</a>
	<img src="imgs/Icons/icon034a3.gif" style=" margin-bottom:-6px;"><a href="<!--{$delete}--><!--{$rs->getFormId()}-->" onClick="del(0)">删除</a>
	</td>
</tr>
<tr>
	<td align="right">评论标题：</td>
	<td style="border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;white-space:normal;" height="20"><span title="<!--{$rs->getTitle()}-->"><a href="<!--{$edit}--><!--{$rs->getFormId()}-->"><!--{$rs->getTitle()}--></a></span></td>
	<td rowspan="2" height="120">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="30%" align="right" style=" border-bottom:none;">评论者：</td>
			<td width="70%" style=" border-bottom:none;"><!--{$rs->getName()}-->&nbsp;<!--{if $rs->getUserId()>0}-->[注册会员]<!--{/if}--></td>
		</tr>
		<tr>
			<td style="border-bottom:none;" align="right">联系方式：</td>
			<td style="border-bottom:none;"><!--{$rs->getEmail()}--></td>
		</tr>
		<tr>
			<td style="border-bottom:none;" align="right">IP：</td>
			<td style="border-bottom:none;"><!--{$rs->getIp()}--></td>
		</tr>
		<tr>
			<td style="border-bottom:none;" align="right">留言时间：</td>
			<td style="border-bottom:none;"><!--{'micefun'|Num2Time:$rs->getCreatedat()}--></td>
		</tr>
		<tr>
			<td style="border-bottom:none;" align="right">审核状态：</td>
			<td style="border-bottom:none;"><!--{if $rs->getIsopen() ==2}--><img src="imgs/Icons/icon404a3.gif" style=" margin-bottom:-6px;">不显示<!--{elseif  $rs->getIsopen() ==1}--><img src="imgs/Icons/icon404a4.gif" style=" margin-bottom:-6px;">显示<!--{else}--><img src="imgs/Icons/icon404a6.gif" style=" margin-bottom:-6px;">未审核<!--{/if}--></td>
		</tr>
	</table>
	</td>
</tr>
<tr>
  <td align="right">内容：</td>
  <td style="border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;white-space:normal" height="100" valign="top">
  <span title="内容"><!--{$rs->getContent()}--></span>
  </td>
</tr>
</table>
<!--{/foreach}-->
</div>
</td>
 </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:right;font-family:Tahoma'><!--{$pager}--></div></div>
		</td>
	</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="8" valign='middle'></div>
		</td>
	</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="open();return false;"><img src="imgs/Icons/icon404a4.gif" width="20" height="20" /><b>审核通过&nbsp;</b></a> 
			<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="notopen();return false;"><img src="imgs/Icons/icon404a3.gif" width="20" height="20" /><b>审核不通过&nbsp;</b></a> 
			<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="edit();return false;" priv="article_modify" ><img src="imgs/Icons/icon034a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a>
			<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon034a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a>&nbsp;<label><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>全选</label></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>