  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk"/>
<title>管理中心 - Powered By phpleft.com</title>
<script src="<?=PL_URL?>js/win/artDialog.js?skin=default"></script>
<script src="<?=PL_URL?>js/win/plugins/iframeTools.js"></script>
 <script type="text/javascript" src="<?=PL_URL?>js/common.js"></script>
  <link href="<?=PL_URL?>css/page.css" type="text/css" rel="stylesheet" />
 <link href="css/main.css" type="text/css" rel="stylesheet">
<script>
function checkall(f, t) {
	var t = t ? t : 1;
	for(var i = 0; i < f.elements.length; i++) {
		var e = f.elements[i];
		if(e.type != 'checkbox') continue;
		if(t == 0) e.checked = false;
		if(t == 1) e.checked = e.checked ? false : true;
		if(t == 2) e.checked = true;	
	}
}
</script>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
<div class="tpis"><img src="images/icos.gif" align="absmiddle"/>当前位置：扩展插件 > 留言</div>

<? include inTemplate(menu);?> 
<? if ($show=='set'){?>
<?php $set=cache_read('cache.inc.php',PL_ROOT.'plugins/'.$in.'/');?>
<form id="form" action="phpleft.php?file=plugins_set&in=<?=$in;?>&post=set" method="post">
<input name="table_name" type="hidden" value="<?=$in;?>" />
<table class="usertableborder bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th colspan="3">
                留言设置</th>
        </tr>
       
        <tr class="list1">
            <td width="135" height="30" class="text" style="padding-right:10px; text-align:right"><strong>开启审核</strong></td>
            <td width="367" height="30">
            <?
            $is_ors[1][0] = '0';
			$is_ors[1][1] = '是';
			$is_ors[2][0] = '1';
			$is_ors[2][1] = '否';
			?>
            <?=add_radio($is_ors, $set['is_or'], '' ,'set[is_or]')?>
           </td>
            <td width="472" height="30"></td>
        </tr>
       
        <tr>
          <td height="30" class="text" style="padding-right:10px; text-align:right"></td>
            <td height="30"><input type="submit" name="button" id="button" value=" 确 认 " class="ok"></td>
            <td height="30">&nbsp;</td>
        </tr>
       
    </table>
</form>
<? }else{?>
<form id="form2" name="form2" method="post" action="phpleft.php?file=plugins_set&in=<?=$in;?>&post=list">
<input name="table_name" type="hidden" value="<?=$in;?>" />
 <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
      <tr>
            <th>
        信息列表</th>
        </tr>
</table>
    <table class="usertableborder bb" cellspacing="0" cellpadding="3" width="100%" align="center"
        border="0">

        <tr align="center" class="list1">
        <td width="37" height="30" align="left"><input type="checkbox" onClick="checkall(this.form);"/></td>
          <td widtd="100" height="30" valign="top">
          姓名
          </td>
          <td widtd="85" height="30">ip地址</td>
         
            <td widtd="93" height="30">发表时间</td>
            <td widtd="74" height="30">联系方式</td>
             <td widtd="102" height="30">email</td>
             <td widtd="102" height="30">状态</td>
             <td widtd="249" height="30">查看评论内容</td>
              <td width="191" height="30" widtd="263">&nbsp;</td>
             
        </tr>
       <?php $list=sql_list("table=$in&page=".$page."&pagesize=13&pageoff=1&order=id desc"); ?>
       <?php if($list) {?>
       <?php foreach($list as $i=>$t) { ?>
                 <tr align="center" class="list<?php if($i%2==1) echo '1'?>">
                 <td height="30" style="padding-right:20px;" align="left"><input type="checkbox" name="tab[]" value="<?=$t['id']?>"/></td>
          <td width="76" height="30" align="left"><?=$t['name']?>          </td>
          <td width="147" height="30"><?=$t['ip']?></td>
         
            <td width="121" height="30"><?=$t['addtime']?></td>
            <td width="137" height="30"><img onclick="art.dialog({padding: 0,title: '查看联系方式',content: '电话：<?=$t[tel]?><br>地址：<?=$t[addr]?><br>其他联系方式：<?=$t[other]?>',lock: true});" src="<?=PL_URL;?>ico/address.png" border="0"/></td>
             <td width="123" height="30"><?=$t['email']?></td>
             <td width="123" height="30"><? if ($t['is_or']=='0'){?><span style="color:#F00">未审核</span><? }else{?>通过<? }?></td>
             <td width="153" height="30"><a href="#" onclick="art.dialog({padding: 0,title: '查看内容',content: '<?=$t['content']?>',lock: true});"><img src="<?=PL_URL;?>ico/comment.png" border="0"/></a>
               </td>
              <td height="30">&nbsp;</td>
      </tr>
      <? }?>
      <? }else {?>
      <tr align="center" class="list">
        <td height="30" colspan="8" align="left">
        暂无信息
        </td>
        </tr>
      <? }?>
           </table>
            <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
<tr>
  <td height="30"><input type="submit" name="button" id="button" value=" 删 除 " class="ok"> <select name="is_or" onChange="this.form.action='phpleft.php?file=plugins_set&in=<?=$in?>&post=is_or';this.form.submit();"><option value="0">批量审核</option><option value="0">取消</option><option value="1">通过</option></td>
            <td height="30">&nbsp;</td>
        </tr>
       
    </table>
           </form>
           <div class="pager" style="margin-top:10px;"><?php echo $pagenav;?></div>
 <? }?>
</body>
</html>
