<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/common.css"/>
        <style type="text/css">
		table{
			width: 100%;
			text-align: center;
			border: solid #bdccd2;
			border-width: 1px 0px 0px 1px;
		}
		.column-list-title{
			background: #def6ff;
			font-size: 15px;
			font-weight: bold;
		}
		td{
			border: solid #bdccd2;
			border-width:0px 1px 1px 0px;
			padding: 5px;
		}
		table input{
			width: 15px;
			height: 15px;
		}
		.colunm-list-display{
			font-size: 13px;
		}
		

	</style>
    <script language="javascript" src="<?php echo ADMIN_PUC ?>/js/jquery-1.4.2.min.js" ></script>
	</head>
	<body>
		<div class="content">
			<div class="column-name">
				<div class="lmlb">文章列表</div>
				<div class="caozuo-title">
					<div class="quanxuan caozuo-lanmu"><input type="checkbox" name="" id=""  value="" />全选</div>
				    <div class="caozuo-lanmu"><a href="/salary/index.php/Admin/Article/add" target="right" >添加</a></div>
				    <div class="caozuo-lanmu"><a href="/salary/index.php/Admin/Article/del/ar_id/<?php echo ($vo["ar_id"]); ?>" target="right">删除</a></div>
				    <div class="caozuo-lanmu"><a href="/salary/index.php/Admin/Article/edt/ar_id/<?php echo ($vo["cate_id"]); ?>" target="right">编辑</a></div>
			    </div>				
		</div>
        <form method="POST" action="/salary/index.php/Admin/Article/bdel" >
			<table border="0" cellspacing="0" cellpadding="0">
				<tr class="column-list-title">
					<td>
						<input type="checkbox"  name="" id="selall" value="" />
					</td>
					<td>文章ID</td>
					<td>文章标题</td>
                    <td>作者</td>
					<td>缩略图</td>
                    <td>是否推荐</td>
					<td>所属栏目</td>
                    <td>发布时间</td>
					<td>基本操作</td>
				</tr>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="colunm-list-display">
					<td><input type="checkbox" name="bdel[]" id="" class="selall" value="<?php echo ($vo["ar_id"]); ?>" /></td>
					<td><?php echo ($vo["ar_id"]); ?> </td>
					<td><?php echo ($vo["ar_title"]); ?>  </td>
					<td><?php echo ($vo["ar_author"]); ?></td>
					<td>
                    <?php if($vo[ar_pic] != ''): ?><img src="/salary<?php echo ($vo["ar_pic"]); ?>"  width="100px;"/> 
                    <?php else: ?>
                      暂无缩略图<?php endif; ?> 
                    </td>
					<td><?php if($vo[ar_rem] == 0): ?>不推荐<?php else: ?>推荐<?php endif; ?> </td>
                    <td><?php echo ($vo["ar_cateid"]); ?> </td>
                    <td><?php echo ($vo["ar_time"]); ?> </td>
					<td>
                    <span style="margin-right: 5px;"><a href="/salary/index.php/Admin/Article/edt/ar_id/<?php echo ($vo["ar_id"]); ?>" target="right">修改</a></span>|
                    <span style="margin-left: 5px;"><a href="/salary/index.php/Admin/Article/del/ar_id/<?php echo ($vo["ar_id"]); ?>" onClick="return confirm('您确定要删除栏目吗')" target="right">删除</a></span> 
                    </td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</table>
            <div style="margin-top:20px;"><input type="submit" value="删除选中" onClick="return confirm('您确定要删除这些栏目吗！')"/></div>
            <div style="margin-top:20px;"><?php echo ($page); ?></div>
            </form>
		</div>
	</body>
</html>
<script>
   $("#selall").click(function(){
	   if($(this).attr("checked")){
		   $(".selall").attr("checked","checked");
		   }else{
			$(".selall").removeAttr("checked");   
			   }
	   }
   
   );
</script>