<!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=<?php echo $cfg_soft_lang; ?>">
<title>采集内容管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript">
//获得选中文件的文件名
function getCheckboxItem()
{
	var allSel="";
	if(document.form1.aids.value) return document.form1.aids.value;
	for(i=0;i<document.form1.aids.length;i++)
	{
		if(document.form1.aids[i].checked)
		{
			if(allSel=="")
				allSel=document.form1.aids[i].value;
			else
				allSel=allSel+","+document.form1.aids[i].value;
		}
	}
	return allSel;	
}
function ReSel()
{
	for(i=0;i<document.form1.aids.length;i++)
	{
		if(document.form1.aids[i].checked) document.form1.aids[i].checked = false;
		else document.form1.aids[i].checked = true;
	}
}
function DelSel()
{
	var nid = getCheckboxItem();
	location.href = "co_taobao_start.php?dopost=clear&ids="+nid;
}
 
function ClearCt()
{ 
	location.href = "co_taobao_start.php?dopost=list";
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center">
  <tr> 
    <td height="28" colspan="8" background='images/tbg.gif'>
    	<table width="96%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="20%" height="18" style="padding-left:10px;"><strong>临时内容管理：</strong></td>
          <td width="80%" align="right">
 
          	</td>
        </tr>
      </table>
     </td>
  </tr>
  <tr align="center" height="26" bgcolor="#FBFCE2"> 
    <td width="6%">选择</td>
      <td width="20%">图片</td>
    <td width="30%">内容标题</td>
    <td width="15%">价格</td>
  <td width="15%">佣金</td>
 
  </tr>
  <form name="form1">
<?php foreach($taokeArr as  $k=> $vl){ ?>
  <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
  
    <td><input type='checkbox' name='aids' value='<?php echo $k?>' class='np'></td>
       <td><a href="<?php echo $vl[pic_url];?>"  target="_blank"><img src="<?php echo $vl[pic_url];?>" width="50" height="50"/></a></td>   
    <td><?php echo iconv("utf-8","gb2312",$vl[title]);?></td>
    <td><?php echo $vl[price];?></td>
<td><?php echo $vl[commission];?></td>
  </tr>
<?php
}
?>
</form>
  <tr> 
    <td height="30" colspan="8" bgcolor="#FCFDF7">&nbsp;
	  <input type="button" name="b11" value="反选" class="coolbg np" style="width:40px" onClick="ReSel();" /> 　
	  <input type="button" name="b12" value="删除记录" class="coolbg np" style="width:80px" onClick="DelSel();" /> 　
	  <input type="button" name="b13" value="保存下一步" class="coolbg np" style="width:80px" onClick="ClearCt();" /
    </td>
  </tr>
  <tr> 
    <td height="36" colspan="8" bgcolor="#F9FCEF" align="center">
 
    </td>
  </tr>
</table>
</body>
</html>
