checkField.html 3.34 KB
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列表|后台管理系统</title>
<link rel="stylesheet" type="text/css" href="__PUB__style/pp.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<style>
	#colid1 {
		font-family: "宋体";
	}
	.table tr td{line-height:150% !important;}
	.bline span{display:inline-block;padding:5px 0; width:22%; padding-right:3%; vertical-align: top;}
	.bline span.cle_right{padding-right:0;}
</style>
</head>
<body style="margin: 10px 0px;">
<div style="margin:0 auto; width:98%;">
<form action="<{:U('download')}>" method="post" target="_blank">
<table class="table table-condensed table-bordered table-hover">
<tbody><tr>
	<td colspan="12" style="padding-left:10px;">
	<div style="padding-top:10px; overflow:hidden">
		<div style="float:left;">
	    	<b><{$web_title}></b>
	    </div>
	    <div style="float:right">[<a href="<{:U($action)}>">返回列表</a>]</div>
	</div>
	</td>
</tr>
<tr>
	<td style="text-align:right; width:10%;"><font color="red">请选择下载信息:</font></td>
	<td class="bline">
		<div style="padding-top:8px;"><button type="button" name="all" class="btn btn-mini" style="font-weight:bold;">全  选</button> <button type="button" name="invert" class="btn btn-mini" style="font-weight:bold;">反  选</button> <button name="cancel" type="button" class="btn btn-mini" style="font-weight:bold;">取消全选</button></div>
		<php>$empty="该夏令营暂未设置申请应填信息";</php>
		<volist name="info" id="vo" key="k" empty="$empty" mod="4">
			<span <eq name="mod" value="3">class="cle_right"</eq>><input type="checkbox" name="field[]" value="<{$vo.name}>" /> <{$vo.description}></span>
		</volist>
	</td>
</tr>
<tr>
	<td colspan="2" style="text-align:center">
		<input name="domain" type="submit" class="btn btn-mini" style="line-height:25px; font-weight:bold;" value="点击下载"> &nbsp;&nbsp;&nbsp;<input type="button" class="btn btn-mini" value="返 回"  style="line-height:25px;font-weight:bold" onclick="javascript:history.back();" />
	</td>
</tr>
</tbody>
</table>
<input type="hidden" name="action" value="<{$action}>" />
<input type="hidden" name="sumid" value="<{$sumid}>" />
</form>
</div>
</body>
</html>
<script>
	$(function(){
		$(':input[name="all"]').click(function(){
			$(this).parent('div').siblings('span').children(':input[name="field[]"]').prop('checked',true);
		});
		$(':input[name="invert"]').click(function(){
			$(this).parent('div').siblings('span').children(':input[name="field[]"]').each(function(){
				$(this).prop('checked',!$(this).prop('checked'));
			});
		});
		$(':input[name="cancel"]').click(function(){
			$(this).parent('div').siblings('span').children(':input[name="field[]"]').prop('checked',false);
		});
		$(':input[type="submit"]').click(function(){
			var len=$(':input[name="field[]"]:checked').length;
			if(len == 0){
				alert('请选择下载信息');
				return false;
			}
		});
	});
</script>