<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="/WEB-INF/jsp/error/error.jsp"%>
<%@ include file="/WEB-INF/jsp/common/tagInclude.jsp"%>
<%@ include file="/WEB-INF/jsp/common/declareInclude.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="Content-Type" content="text/html;no-cache; charset=UTF-8">
<title>按钮列表</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/css/keshihua.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/faqi.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/common.js"></script>
<script type="text/javascript">
//提交
function saveWin(){
var buttonIds = "";
var buttonNames = "";
var selectButtonOption = "";
$("input[name='butId']").each(function(i,obj){
if($(obj).is(":checked")){
buttonIds += $(obj).attr("value") +";";
buttonNames += $(obj).attr("title") +";";
selectButtonOption += "<option value='"+$(obj).attr("value")+"'>"+$(obj).attr("title")+"</option>";
}
});
if(buttonIds.lastIndexOf(";")>=0){
buttonIds = buttonIds.substring(0,buttonIds.lastIndexOf(";"));
buttonNames = buttonNames.substring(0,buttonNames.lastIndexOf(";"));
}
$("#${param.buttonId}", parent.document).val(buttonIds);
$("#${param.buttonName}", parent.document).val(buttonNames);
var selectButton = "${param.selectButton}";
if(selectButton != undefined && selectButton !=null && selectButton !="" ){
$("#${param.selectButton}", parent.document).html(selectButtonOption);
}
window.parent.portal.close();
}
</script>
<script type="text/javascript">
$(function(){
$("#selectAll").click(function(){
if($(this).is(":checked")){
$("input[name='butId']").each(function(i,obj){
this.checked=true;
});
}else{
$("input[name='butId']").each(function(i,obj){
this.checked=false;
});
}
});
$("input[name='butId']").click(function(){
if($(this).is(":checked")){
}else{
this.checked=false;
}
});
});
</script>
</head>
<body style="background-color: rgb(255, 255, 255); overflow-x:none; overflow-y:auto;">
<div class="tanchu_con" >
<div class="ml10 fl" style="overflow-y:auto;overflow-x:hidden; width: 500px; height: 340px;">
<form name="listForm" method="post">
<table class="faqi_tableStyle"style="width: 480px; text-align: left">
<tr >
<th class="thStyle" style="text-align: left;">
<input type="checkbox" id="selectAll" style="margin-left: 10px;">
</th>
<th class="thStyle" style=" text-align: left;">
<strong>按钮名称</strong>
</th>
<th class="thStyle" style="text-align: left;">
<strong>按钮编码</strong>
</th>
</tr>
<c:forEach var="item" items="${buttonList}">
<tr>
<td class="wp70">
<input type="checkbox" id="butId" name="butId" <c:if test="${item.isChecked eq '1'}">checked='checked'</c:if>
title="${item.buttonName}" class="ml10" style="margin-top: -5px;" value="${item.id}">
</td>
<td class="wp70">
${item.buttonName}
</td>
<td class="wp70">
${item.flag}
</td>
</tr>
</c:forEach>
</table>
</form>
</div>
<p class="width100 mt15 ml10 fl">
<a class="leader_close btn_white txtc" style="width:200px;margin:0 auto; float: center; cursor: pointer;" onclick="saveWin();">确认</a>
</p>
</div>
</body>
</html>
相关文章
- 基于 Vue.js 之 iView UI 框架非工程化实践记要 使用 Newtonsoft.Json 操作 JSON 字符串 基于.net core实现项目自动编译、并生成nuget包 webpack + vue 在dev和production模式下的小小区别 这样入门asp.net core 之 静态文件 这样入门asp.net core,如何
- jq实现全选或者全不选
- 原生JS和jQuery版实现文件上传功能
- 原生JS版和jQuery 版实现文件上传功能
- -第2章 JS方法实现下拉菜单显示和隐藏
- css和js实现硬件加速渲染自定义滚动条
- js MD5加密 和 base64编码实现!
- js MD5加密 和 base64编码实现!
- 基于Node.js和vue的博客系统的设计与实现
- wemall app商城源码中实现带图片和checkbox的listview