<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>选择文章</title>
<link rel="stylesheet" type="text/css" href="base.css">
<script type="text/javascript" src="main.js"></script>
<script language="javascript">
//获得选中文件的文件名
function getCheckboxItem()
{
	var allSel="";
	if(document.form2.arcID.value) return document.form2.arcID.value;
	for(i=0;i<document.form2.arcID.length;i++)
	{
		if(document.form2.arcID[i].checked)
		{
			if(allSel=="")
				allSel = document.form2.arcID[i].value;
			else
				allSel = allSel+","+document.form2.arcID[i].value;
		}
	}
	return allSel;	
}
function selAll()
{
	for(i=0;i<document.form2.arcID.length;i++)
	{
		if(!document.form2.arcID[i].checked)
		{
			document.form2.arcID[i].checked=true;
		}
	}
}
function noSelAll()
{
	for(i=0;i<document.form2.arcID.length;i++)
	{
		if(document.form2.arcID[i].checked)
		{
			document.form2.arcID[i].checked=false;
		}
	}
}
function ReturnValue()
{
	if(window.opener.document.<?php echo $f?>.value==""){
		window.opener.document.<?php echo $f?>.value = getCheckboxItem();
	}
	else{
		window.opener.document.<?php echo $f?>.value += ","+getCheckboxItem();
	}
	window.opener=true;
  window.close();
}
</script>
</head>
<body leftmargin="0" topmargin="0" background='img/allbg.gif'>
<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center">
<tr> 
<td align='center' valign='top'>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFFFFF"><td height="4"></td></tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#98CAEF">
<tr bgcolor="#E7E7E7"> 
<td height="24" colspan="10" background="img/tbg.gif">
<strong> §文章列表</strong>
</td>
</tr>
<form name="form2">
<tr align="center" bgcolor="#F8FBFB" height="22"> 
<td width="6%">ID</td>
<td width="4%">选择</td>
<td width="30%">文章标题</td>
<td width="10%">录入时间</td>
<td width="11%">类目</td>
<td width="8%">点击</td>
<td width="5%">图片</td>
<td width="7%">HTML</td>
<td width="10%">权限</td>
<td width="8%">推荐</td>
</tr>
<?php 
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
?>
<tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#EFEFEF';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22"> 
<td><?php echo $row['ID']?></td>
<td><input name="arcID" type="checkbox" id="arcID" value="<?php echo $row['ID']?>" class="np"></td>
<td align='left'>
<a href='archives_do.php?aid=<?php echo $row['ID']?>&dopost=editArchives'>
	<u><?php echo $row['title']?></u>
</a>
</td>
<td><?php echo GetDateMk($row['senddate'])?></td>
<td><?php echo $row['typename']?></td>
<td><?php echo $row['click']?></td>
<td><?php echo IsPicArchives($row['litpic'])?></td>
<td><?php echo IsHtmlArchives($row['ismake'])?></td>
<td><?php echo GetRankName($row['arcrank'])?></td>
<td><?php echo IsCommendArchives($row['iscommend'])?></td>
</tr>
<?php 
}
?>
<tr bgcolor="#F8FBFB"> 
<td height="24" colspan="10">
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a> 
&nbsp;
<a href="javascript:noSelAll()" class="coolbg">取消</a> 
&nbsp;
<a href="javascript:ReturnValue()" class="coolbg">把选定值加到列表</a> 
</td>
</tr>
</form>
<tr align="right" bgcolor="#E5F9FF"> 
<td height="20" colspan="10" align="center">
	<?php echo $dlist->GetPageList(7);?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td height="4"></td>
</tr>
<tr bgcolor="#FFFFFF"> 
<td style="border: 1px solid #525252;" height="26">
<table width='100%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC'>
   <tr bgcolor='#E5F9FF'> 
     <form name='form3' action='content_select_list.php' method='get'>
        <input type='hidden' name='f' value='<?php echo $f?>'> 
          <td background='img/wbg.gif'>
          	<table width='600' border='0' cellpadding='0' cellspacing='0'>
          	<tr>
          	<td width='90' align='center'>请选择类目：</td>
          	<td width='160'>
          	<?php echo $optionarr?>
        </td>
        <td width='70'>
          关键字：
        </td>
          <td width='160'>
          	<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
          </td>
          <td>
          <input name="imageField" type="image" src="img/button_search.gif" width="60" height="22" border="0" class="np">
         </td>
        </tr>
        </table>
          </td>
        </form>
        </tr>
      </table>
      
</td>
</tr>
<tr> 
<td colspan="2" height="4"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>