<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>网站图片管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<SCRIPT type=text/javascript src="<?=base_url()?>csdj/admin/js/showtitle.js"></SCRIPT>
</head>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;">
	<form name=form method=post action="<?=site_url('admin/pic/pldel/')?>">
	<tr>
   		<td align="center" height="20" colspan="5" class="title">图片管理</td>
	</tr>
	<tr align="center">
		<td width="5%">选中</td>  
		<td width="49%">图片</td>
		<td width="15%">会员</td>
		<td width="4%">审核</td>
		<td width="10%">时间</td>
	</tr>
<?php
 if(empty($pic)) echo '<tr align="center"><td colspan="5" align="center">当前没有记录!</td></tr>';
 foreach ($pic as $row) { 
       $pic=$this->CsdjSkins->piclink('pic',$row->CS_Pic);
       if(!file_exists(FCPATH.'attachment/pic/'.$row->CS_Pic)){
            $aa[0]=0;$aa[1]=0;
       }else{
            $aa=getimagesize(".".Web_Path."attachment/pic/".$row->CS_Pic);
       }
?>
	<tr>
		<td align="center"><input type=checkbox Name="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
		<td><a Cstip="<DIV align=center>图片尺寸：<?=$aa[0]?>×<?=$aa[1]?></DIV><DIV align='center'><img src='<?=$pic?>' onload='ResizeImages(this,200,200);'></DIV>" href="<?=$pic?>" target="_blank"><img width="50" height="37" src='<?=$pic?>'></a><?=$row->CS_Name?></td>
		<td align="center"><a href="<?=$this->CsdjSkins->userlink('index',$this->CsdjSkins->getuser('uid',$row->CS_User,2),$row->CS_User)?>" target="_blank"><?=$row->CS_User?></a></td>
		<td align="center" id="sh<?=$row->CS_ID?>">
<?php
if($row->CS_YID==1){
	echo '<a href="javascript:;" title="点击审核" onClick="dancesh(\''.site_url('admin/ajax/picsh/').'\','.$row->CS_YID.','.$row->CS_ID.');return false"><font color="#ff0033">×</font></a>';
}else{
	echo '<a href="javascript:;" title="点击取消审核" onClick="dancesh(\''.site_url('admin/ajax/picsh/').'\','.$row->CS_YID.','.$row->CS_ID.');return false">√</a>';
}
?>
		</td>
		<td align="center"><?=$this->CsdjSkins->GetDate($row->CS_AddTime)?></td>
	</tr>
<?php } ?>
	<tr>
		<td colspan="5">
		<span style="float:right;">图片数：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span>
		<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">选中本页 
		<input type="submit" class="italk-st" name="put" value="批量删除" onClick="return confirm('确定删除选中的图片吗?');" class="button"> </td>
	</tr></form> 
</table>
</body>
</html>

