<?php if (!defined('THINK_PATH')) exit();?>
<!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=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo C('softname'); ?></title>
<link href="__PUBLIC__/admin/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/zh-cn-system.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/table_form.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/images/metinfo.css" />
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/js/admin_common.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/js/styleswitch.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/common.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
$(".spec_delete").click(function(){
        if(confirm("确认删除吗")){
        var id     = $(this).attr('sid');
        $.post("<?php echo U('store/ajax_spec_delete');?>",{id:id},function(result){
            if(result.status=='1'){
                window.top.art.dialog({content:result.info,lock:true,width:'200',height:'50',time:1.5},function(){});
                window.location.reload();
            }else{
                window.top.art.dialog({content:result.info,lock:true,width:'200',height:'50',time:1.5},function(){});
            }
            // alert(result);
        });
      }
});
});
</script>
</head>
<body>
<div class="metinfotop">
    <div class="position">简体中文：内容模块 > <a href="<?php echo U('content/content_list');?>">内容管理</a></div>
    </div>
    <div class="clear"></div>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    <a class="add fb" href="<?php echo U('content/content_content_add');?>"><em>添加内容</em></a>
    <span>|</span>
    <a href="javascript:;" class="on"><em>已审核</em></a>
    <span>|</span>
    <a href="<?php echo U('content/content_list_check');?>"><em>待审核</em></a>
    </div>
</div>
<style type="text/css">
    html{_overflow-y:scroll}
</style><div class="pad-lr-10">

<form name="myform" action="<?php echo U('content/content_content_update');?>" method="post">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='left' width="5%"><input type="checkbox" value="" id="check_box" onclick="selectall('all_check[]');"></th>
            <th align='left' width="40%">标题</th>
            <th align='left' width="10%">类型</th>
            <th align='left' width="20%">图片</th>
            <th align='left'  width="10%">访问量/赞/踩</th>
            <th align='left' width="10%">访问</th>
            <th align='left' width="20%">管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?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>
                    <td align='left'><input type="checkbox" name="all_check[]" value="<?php echo ($vo["id"]); ?>"></td>
                    <td align='left'><?php echo ($vo["title"]); ?></td>
                    <td align='left'><?php if($vo['type'] == '1'): ?>图文<?php else: ?>视频<?php endif; ?></td>
                    <td align='left'><?php if($vo['thumb'] != ''): ?><a href="<?php echo ($vo["thumb"]); ?>" target="_blank"><img src="<?php echo ($vo["thumb"]); ?>" width="80" height="80"></a><?php endif; ?></td>
                    <td align='left'><?php echo ($vo["view"]); ?>/<?php echo ($vo["yes"]); ?>/<?php echo ($vo["no"]); ?></td>
                    <td align='left'><a href="<?php echo (gurl($vo["id"],'article','view')); ?>" target='_blank'>访问</a></td>
                    <td align='left' >
                    <a href="<?php echo U('content/content_content_edit',array('id'=>$vo['id']));?>">修改</a> | 
                    <a href="javascript:all_deletes('<?php echo U('content/content_content_delete',array('id'=>$vo['id']));?>');">删除</a>
                    </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </volist>
                </tbody>
    </table>

    <div class="btn">
    <label for="check_box">全选/取消</label> 
    <input type="submit" class="button" name="delete" value="删除" onclick="return confirm('您确定要删除吗？')"/>
    </div>
    <div id="pages"><?php echo ($page); ?></div>
</div>

</form>

</div>
</body>
</html>