<? defined('ROOT_PHPLEFT') or exit(require '../../../404.php');?>
<!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=gb2312" />
 <link href="css/main.css" type="text/css" rel="stylesheet">
 <link href="<?=PL_URL?>css/page.css" type="text/css" rel="stylesheet" />
<script src="<?=PL_URL?>js/win/artDialog.js?skin=default"></script>
<script src="<?=PL_URL?>js/win/plugins/iframeTools.js"></script>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
<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>
<div class="tpis"><img src="images/icos.gif" align="absmiddle"/>当前位置：栏目内容 > <?=modname($menuid,'name')?> > 信息列表</div>
    <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                提示信息</th>
        </tr>
        </table>
            <div class="tsc"> 
1. 级别用于调用的时候显示相应级别的文章，例：1级别为专题文章，或者头条文章。 <br>
2. 需要显示什么点击 列表显示，即会显示相应字段，并且记录您的操作。
</div>

            <table cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <td>
         <form id="form1" name="form1" method="post" action="phpleft.php?file=user&in=list&tb=1">
 列表显示：<?php foreach($tablekey as $id=>$t) { ?> <input name="tab[<?=$t['thiskeys']?>]" type="checkbox" value="<?=$t['thiskeys']?>" onClick="document.form1.submit()" <? if ($key[$t['thiskeys']]==$t['thiskeys']) echo 'checked'?>><?=$t['name']?> <? }?></form></td>
        </tr>
        </table>
               <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                信息列表</th>
        </tr>
        </table>
         <form id="form2" name="form2" method="post" action="phpleft.php?file=user&in=list&post=del">
         <table class="usertableborder bb" cellspacing="0" cellpadding="3" width="100%" align="center"
        border="0">
        <?php $list=sql_list("table=".$menuid."&page=".$page."&pagesize=13&pageoff=1&order=id desc"); ?>
           
        <tr align="center" class="list1">
         
           
             
       
        <td height="30" style="padding-right:10px; text-align:left" align="left"><input type="checkbox" onClick="checkall(this.form);"/></td>
       <td height="30" style="padding-right:10px; text-align:left" align="left">序列</td>
           <?php foreach($key as $it=>$s) { ?>
            <?php foreach($tabs as $i=>$tt) { ?>
            <? if ($tt[thiskeys]==$s) {?>
          <td height="30" style="padding-right:10px; text-align:left" align="left"><?=$tt[name]?></td>
            <? }?>
              <? }?>
  <? }?>
 <td height="30" style="padding-right:10px;" align="left">编辑</td>
          
        </tr>
         <?php foreach($list as $id=>$t) { ?>
    <tr align="center" class="list<?php if($id%2==1) echo '1'?>">
    <td height="30" style="text-align:left" align="left"><input name="tab[]" type="checkbox" value="<?=$t[id]?>"></td>
     <td height="30"  class="usertablerow1" align="left"><?=$t[id]?></td>
    <?php foreach($key as $it=>$s) { ?>
    <? if($s=='title'){?>
          <td height="30"  class="usertablerow1" style="padding-right:10px;" align="left"><a href='<?=modurl($menuid).$t['linkurl']?>' target="_blank"><?=$t[$s]?></a></td>
          <? } elseif ($s=='catid'){?>
          <td height="30"  class="usertablerow1" style="padding-right:10px;" align="left"><?=$t[$s]?></td>
        <? } elseif ($s=='image'){?>
          <td height="30" valign="top"  class="usertablerow1" style="padding-right:10px;" align="left"><? if ($t[$s]<>''){?><Img src="<?=PL_URL?>ico/illustration.png" onClick="art.dialog({padding: 0,title: '照片',content: '<img src=<?=$t[$s]?> />',lock: true});"><? }?></td>
          <? } elseif ($s=='is_or'){?>
          <td height="30" valign="top"  class="usertablerow1" style="padding-right:10px;" align="left"><? if ($t[$s]=='0'){?>未审核<? }else{?>审核通过<? }?></td>
          <? } elseif ($s=='groupid'){?>
          <?php foreach($group as $i=>$v) { ?>
          <? if ($v['id']==$t[$s]){?>
          <td height="30" valign="top"  class="usertablerow1" style="padding-right:10px;" align="left"><?=$v['name']?></td>
     
          <? } }?>
           <? } elseif ($s=='logintime' or $s=='addtime'){?>
          <td height="30" valign="top"  class="usertablerow1" style="padding-right:10px;" align="left"><? if($t[$s]){?><?=date('Y-m-d H:i:s',$t[$s]);?><? }?></td>
         
          <? }else{?>
          <td height="30"  class="usertablerow1" style="padding-right:10px;" align="left"><?=$t[$s]?></td>
  <? } }?>
           <td height="30"  class="usertablerow2" style="padding-right:10px;" align="left"><a href="phpleft.php?file=user&in=add&id=<?=$t['id']?>"><img src="<?=PL_URL?>ico/edit.png" align="absmiddle" alt="编辑字段" border="0"></a></td>
        </tr>
      <? }?>
    </table>
    <? if (!$list){?>
<table class="usertableborder input bb" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
  <tr>
    <td>暂无信息！</td>
    </tr>
</table>
<? }?>
    <table class="usertableborder input" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
    <tr>
          
            <td height="30" class="usertablerow1"><input type="submit" name="button" id="button" value=" 删 除 " class="ok"> <select name="level" onChange="this.form.action='phpleft.php?file=user&in=list&post=level';this.form.submit();"><option value="0">批量审核</option><option value="0">未审核</option><option value="1">审核通过</option></select></td>
            <td height="30" class="usertablerow1">&nbsp;</td>
        </tr>
       
    </table>
    </form>
<div class="pager"><?php echo $pagenav;?></div>

</body>
</html>
