Commit 0ec9be32 authored by 马超's avatar 马超

值班管理

parent c0267c6e
......@@ -73,20 +73,46 @@
}
return days;
}
public static int getUserOrder(ConnectionFactory cf,Connection conn,String username) {
int order_num =1;
if(username.indexOf(",")>0){
username=username.substring(username.lastIndexOf(",")+1,username.length());
public static String getBeforeDay(String specifiedDay)
{
Calendar c = Calendar.getInstance();
Date date = null;
try
{
date = new SimpleDateFormat("yyyy-MM-dd").parse(specifiedDay);
}
catch (ParseException e)
{
e.printStackTrace();
}
c.setTime(date);
int day = c.get(Calendar.DATE);
c.set(Calendar.DATE, day - 1);
String dayBefore = new SimpleDateFormat("yyyy-MM-dd").format(c.getTime());
return dayBefore;
}
public static int getUserOrder(ConnectionFactory cf,Connection conn,String username) {
int order_num=0;
Vector userList = cf.doQuery(conn,"select order_num from zb_user where user_name=?",null,new Object[]{username});
if(userList!=null && userList.size()>0){
for(int i=0;i<userList.size();i++) {
Hashtable ht1 = (Hashtable) userList.get(i);
order_num = Integer.parseInt((String) ht1.get("order_num"));
}
Hashtable ht1 = (Hashtable) userList.get(0);
order_num = Integer.parseInt((String) ht1.get("order_num"));
}
return order_num;
}
public static int getStartIndexByDate(ConnectionFactory cf,Connection conn,String date)
{
String zb_user ="";
Vector userList = cf.doQuery(conn,"select zb_user from zb_user_gl where year=? order by id desc",null,new Object[]{date});
if(userList!=null && userList.size()>0) {
Hashtable ht1 = (Hashtable) userList.get(0);
zb_user = (String) ht1.get("zb_user");
}
if(zb_user.indexOf(",")>0){
zb_user=zb_user.substring(zb_user.lastIndexOf(",")+1,zb_user.length());
}
return getUserOrder(cf,conn,zb_user);
}
%>
<%
ConnectionFactory cf = new ConnectionFactory();
......@@ -97,23 +123,34 @@
String mx_id = pub.trimNull(request.getParameter("mx_id"));
String b_time = pub.trimNull(request.getParameter("b_time"));
String e_time = pub.trimNull(request.getParameter("e_time"));
String date_left = pub.trimNull(request.getParameter("date_left"));
String date_right = pub.trimNull(request.getParameter("date_right"));
String user_left = pub.trimNull(request.getParameter("user_left"));
String user_right = pub.trimNull(request.getParameter("user_right"));
String zb_type_left = pub.trimNull(request.getParameter("zb_type_left"));
String zb_type_right = pub.trimNull(request.getParameter("zb_type_right"));
String mx_day ="";
String mxId="";
if(!"".equals(mx_id)){
mx_day = mx_id.substring(mx_id.indexOf("_")+1,mx_id.length());
mxId=mx_id.substring(0,mx_id.indexOf("_"));;
mx_day = mx_id.substring(mx_id.indexOf("_")+1,mx_id.length());//模型天数
mxId=mx_id.substring(0,mx_id.indexOf("_"));;//模型id
}
int mxDay=1;
if(!"".equals(mx_day)){
mxDay=Integer.parseInt(mx_day);
}
String userNames="";
List<String> list= getDays(b_time,e_time);
int selectDay=list.size();
List<String> list=null;
int selectDay=0;
if(!"".equals(b_time)&&!"".equals(e_time)){
list= getDays(b_time,e_time);//获取两个时间点之间的日期
selectDay=list.size();
}
String add_user = pub.trimNull((String) session.getAttribute("session_login_id"));
if ("".equals(add_user)) {
System.out.println("当前没有用户信息");
}
int startIndexBefore=0;
String add_time = pub.getCurrentServerTime();
StringBuffer sql_add=new StringBuffer("insert into zb_zdpb (b_time,e_time,mx_id,add_time,add_user) values (?,?,?,?,?)");
try {
......@@ -127,6 +164,10 @@
conn.setAutoCommit(false);
boolean is_oper = false;
if("add".equals(action)){
if(!"".equals(b_time)){
String beforeDate=getBeforeDay(b_time);//获取开始时间的上一天
startIndexBefore=getStartIndexByDate(cf,conn,beforeDate);//根据上一天获取最后人员的序号
}
action_msg="新增";
is_oper = cf.executeUpdate(conn, sql_add.toString(),list_add.toArray());
if (!is_oper) {
......@@ -134,61 +175,28 @@
System.out.println("新增zb_zdpb表出错了" + cf.getMsg());
return;
}
int startIndex=0;
int index=0;
int count=1;
int startIndex=startIndexBefore;
StringBuffer sql1=new StringBuffer("insert into zb_user_gl (year,zb_type,zb_user,order_num,add_user,add_time) values (?,?,?,?,?,?)");
Vector zb_type_list = cf.doQuery(conn,"select * from zb_type where mx_id=? order by order_num asc",null,new Object[]{mxId});
if(selectDay/mxDay>0){
for(int a=0;a<selectDay/mxDay;a++){
if(zb_type_list!=null && zb_type_list.size()>0) {
for (int i = 0; i < zb_type_list.size(); i++) {
Hashtable ht = (Hashtable) zb_type_list.get(i);
String ren_num = pub.trimNull((String) ht.get("ren_num"));
String zb_type = pub.trimNull((String) ht.get("zb_type"));
for(int n=0;n<mxDay;n++){
index=a*mxDay+n;
if(n==mxDay){
index=0;
}
userNames=getUserNames(cf,conn,startIndex,Integer.parseInt(ren_num));
if(!"".equals(userNames)){
startIndex = Integer.parseInt(userNames.substring(0,userNames.indexOf("_")));
userNames = userNames.substring(userNames.indexOf("_")+1,userNames.length()-1);
}
is_oper = cf.executeUpdate(conn, sql1.toString()
, new Object[]{list.get(index),zb_type, userNames,index+1,add_user,add_time});
if (!is_oper) {
System.out.println("新增zb_user_gl表出错了" + cf.getMsg());
conn.rollback();
return;
}
}
count++;
}
}
}
}
if(selectDay%mxDay>0) {
for (int i = 0; i < zb_type_list.size(); i++) {
Hashtable ht = (Hashtable) zb_type_list.get(i);
String ren_num = pub.trimNull((String) ht.get("ren_num"));
String zb_type = pub.trimNull((String) ht.get("zb_type"));
index=selectDay-(selectDay%mxDay);
for(int n=0;n<selectDay%mxDay;n++){
for(int a=0;a<selectDay;a++){
if(zb_type_list!=null && zb_type_list.size()>0) {
for (int i = 0; i < zb_type_list.size(); i++) {
Hashtable ht = (Hashtable) zb_type_list.get(i);
String ren_num = pub.trimNull((String) ht.get("ren_num"));
String zb_type = pub.trimNull((String) ht.get("zb_type"));
//根据开始人员序号索引和人数进行插入
userNames=getUserNames(cf,conn,startIndex,Integer.parseInt(ren_num));
if(!"".equals(userNames)){
startIndex = Integer.parseInt(userNames.substring(0,userNames.indexOf("_")));
userNames = userNames.substring(userNames.indexOf("_")+1,userNames.length()-1);
}
is_oper = cf.executeUpdate(conn, sql1.toString()
, new Object[]{list.get(index),zb_type, userNames,index+1,add_user,add_time});
, new Object[]{list.get(a),zb_type, userNames,a+1,add_user,add_time});
if (!is_oper) {
System.out.println("新增zb_user_gl表出错了" + cf.getMsg());
conn.rollback();
return;
}
index++;
}
}
}
......@@ -207,6 +215,21 @@
conn.rollback();
return;
}
}else if("changeUser".equals(action)){
is_oper = cf.executeUpdate(conn, "update zb_user_gl set zb_user=REPLACE(zb_user,?,?) where year=? and zb_type=?"
, new Object[]{user_left,user_right,date_left,zb_type_left});
if (!is_oper) {
System.out.println("交换zb_user_gl表出错了" + cf.getMsg());
conn.rollback();
return;
}
is_oper = cf.executeUpdate(conn, "update zb_user_gl set zb_user=REPLACE(zb_user,?,?) where year=? and zb_type=?"
, new Object[]{user_right,user_left,date_right,zb_type_right});
if (!is_oper) {
System.out.println("交换zb_user_gl表出错了" + cf.getMsg());
conn.rollback();
return;
}
}
if (!is_oper) {
conn.rollback();
......
This diff is collapsed.
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
.col-sm-2{
width:100px;
}
.btn-green{ background-color:green;border: green}
</style>
<div class="">
<form class="form form-horizontal" method="post" id="form1" name="form1" action="exportWeek.jsp" >
<div style="height:450px;overflow: hidden;text-align: center">
<div style="width:45%;height:90%;float:left;border: solid 1px #eee;margin-left: 40px">
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2" style="width:100px;">
日期&nbsp;
</label>
<div class="formControls col-xs-8 col-sm-5">
<input type="text" class="input-text Wdate" autocomplete="off" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:refrashTask})" name="b_time" id="b_time" value="" >
</div>
</div>
<div id="leftUserList" >
</div>
</div>
<div style="width:45%;height:90%;float:left;border: solid 1px #eee;margin-left: 20px">
<div class="row cl">
<label class="form-label col-xs-2 col-sm-2" style="width:100px;">
日期&nbsp;
</label>
<div class="formControls col-xs-8 col-sm-5">
<input type="text" class="input-text Wdate" autocomplete="off" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:refrashTask2})" name="e_time" id="e_time" value="" >
</div>
</div>
<div id="rightUserList" >
</div>
</div>
<div class="cl mb-10 " style="height: 50px;">
<div class="col-sm-3 pd-10" style="width:100%;text-align: center;">
<input class="btn btn-primary radius btn-green" type="button" onclick="javascript:saveForm();" value="&nbsp;&nbsp;换班&nbsp;&nbsp;">
</div>
</div>
</div>
</form>
</div>
<script>
function saveForm() {
var date_left=$("#b_time").val();
var date_right=$("#e_time").val();
var user_left=$("input[name='leftUserList_1']:checked").val();
var zb_type_left=user_left.substring(user_left.indexOf("_")+1,user_left.length);
user_left=user_left.substring(0,user_left.indexOf("_"));
var user_right=$("input[name='rightUserList_1']:checked").val();
var zb_type_right=user_right.substring(user_right.indexOf("_")+1,user_right.length);
user_right=user_right.substring(0,user_right.indexOf("_"));
$.ajax({
type: "post",
url: "action.jsp?action=changeUser&date_left="+date_left+"&date_right="+date_right
+"&user_left="+user_left+"&user_right="+user_right+"&zb_type_left="+zb_type_left+"&zb_type_right="+zb_type_right,
success: function (msg) {
if (msg.indexOf("success") >= 0) {
layer.msg('操作成功!', {icon: 1, time: 1000},
function () {
window.parent.location.reload();
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
} else {
layer.msg('操作失败', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
// console.log("********************8")
});
}
}
});
}
function refrashTask() {
var value=$("#b_time").val();
$.ajax({
type: "post",
url: "getUserBydate-t.jsp?year="+value+"&divId=leftUserList",
success: function (msg) {
$("#leftUserList").html(msg);
}
});
}
function refrashTask2() {
var value=$("#e_time").val();
$.ajax({
type: "post",
url: "getUserBydate-t.jsp?year="+value+"&divId=rightUserList",
success: function (msg) {
$("#rightUserList").html(msg);
}
});
}
</script>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Vector" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
String year = pub.trimNull(request.getParameter("year"));
String divId = pub.trimNull(request.getParameter("divId"));
Hashtable ht = new Hashtable();
StringBuffer sb = new StringBuffer();
try {
conn = com.censoft.db.DBUtil.getConnection();
sb.append("select t1.zb_user,t1.zb_type from zb_user_gl t1 where 1=1 ");
sb.append(" and t1.year=? ");
sb.append(" order by t1.id asc");
v_list=cf.doQuery(conn,sb.toString(),null,new Object[]{year});
if(v_list==null){
System.out.println("查询该日期值班人员出错"+cf.getMsg());
}
%>
<div class="">
<form class="form form-horizontal" method="post" id="form1" name="form1" action="export_query.jsp" >
<div id="content" class="cl pd-5 divOverflow" style="overflow:hidden;margin-top: 10px;">
<%
if(v_list.size()>0){
for(int i=0;i<v_list.size();i++){
ht = (Hashtable)v_list.get(i);
String zb_type= pub.trimNull((String) ht.get("zb_type"));
String user_name= pub.trimNull((String) ht.get("zb_user"));
%>
<div style="height:110px;float:left;margin-left: 50px;border:0.5px solid #000;">
<div style="width:120px;height:110px;float:left;border-right:0.5px solid #000;text-align: center;line-height: 80px;">
<p style="height:30px;"> <%=zb_type%></p>
</div>
<div style="text-align:center;width:180px;height:110px;line-height:30px;float:left;position: relative">
<%
String[] user_names=user_name.split(",");
for(int n=0;n<user_names.length;n++){
%>
<div style="height:20px;margin:0px;">
<input type="radio" name="<%=divId%>_1" value="<%=user_names[n]%>_<%=zb_type%>" />
<%=user_names[n]%>
</div>
<%
}
%>
</div>
</div>
<%
}
}
%>
</div>
</form>
</div>
<%
} catch (Exception e) {
out.println("查询用户信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
\ No newline at end of file
......@@ -22,7 +22,7 @@
<a class="btn btn-primary radius" onclick="viewUserWeek();" >
周排班表
</a>
<a class="btn btn-primary radius" onclick="operList();" >
<a class="btn btn-primary radius" onclick="changeZb();" >
换班
</a>
</div>
......@@ -42,7 +42,7 @@
var nowYear = now.getFullYear();// 年份
var nowMonth = now.getMonth() + 1;// 月份
let daysElement = arrayfrom(this.container.querySelectorAll('.sc-item'));
let day = new Date(year, month - 1, 1);
let day = new Date(year, month - 1, 0);
let week = day.getDay();
if (week == 0) week = 7;
if (week == 7) week = 0;
......@@ -60,7 +60,7 @@
}
daysElement[i].querySelector('.day').innerHTML = writeday;
getZbUser(writeyear,writemonth,writeday,i);
daysElement[i].querySelector('.zb_user_button').innerHTML = '<span onclick="editUser('+writeyear+','+writemonth+','+writeday+');" style="text-align:center;position:absolute; right:0; bottom:0;"><img src="../../images/edit.png" width="20" height="15" /></span>';
//daysElement[i].querySelector('.zb_user_button').innerHTML = '<span onclick="editUser('+writeyear+','+writemonth+','+writeday+');" style="text-align:center;position:absolute; right:0; bottom:0;"><img src="../../images/edit.png" width="20" height="15" /></span>';
//判断是否添加阴历
if (true) {
daysElement[i].querySelector('.lunar-day').innerHTML = (new LunarHelp(writeyear, writemonth, writeday)).getLunarDayName();
......@@ -105,6 +105,10 @@
var url = './viewUser-t.jsp?year='+year+'&month='+month+'&day='+day;
viewDeptOrUserInfo(year+''+month+''+day+'日值班表', url, '1000', '500');
}
function changeZb() {
var url = './changeZb-t.jsp';
viewDeptOrUserInfo('换班', url, '1000', '500');
}
function viewUserWeek() {
var url = './viewUserWeek-t.jsp';
viewUserWeekFull('周值班表', url, '1000', '500');
......
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2020/9/11
Time: 12:54
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.*" %>
<%@ page import="com.censoft.common.db.ConnectionFactory" %>
<%@ page import="com.censoft.common.base.Pub" %>
<%@ page import="com.censoft.db.Logger" %>
<%
ConnectionFactory cf = new ConnectionFactory();
Pub pub = new Pub();
Connection conn = null;
Vector v_list = null;
Vector v_list_day = null;
String user_names ="";
String login_id = (String) session.getAttribute("session_login_id");
if ("".equals(login_id)) {
System.out.println("当前没有用户信息");
}
String page_number = pub.trimNull(request.getParameter("page_number"));
String year = pub.trimNull(request.getParameter("year"));
String zb_type = pub.trimNull(request.getParameter("zb_type"));
String action = pub.trimNull(request.getParameter("action"));
if ("".equals(page_number)) page_number = "1";
String page_size = pub.trimNull(request.getParameter("page_size"));
if ("".equals(page_size)) page_size = "10";
StringBuffer sql = new StringBuffer();
List list = new ArrayList();
sql.append("select * from zb_user order by id asc");
try {
conn = com.censoft.db.DBUtil.getConnection();
conn.setAutoCommit(false);
if("update".equals(action)){
String[] userids = request.getParameterValues("userids");
String get_user_names="";
if(userids!=null && userids.length>0) {
for (int i = 0; i < userids.length; i++) {
get_user_names+=userids[i]+",";
}
}
if(!"".equals(get_user_names)){
get_user_names=get_user_names.substring(0,get_user_names.length()-1);
}
System.out.println("get_user_names="+get_user_names+year+zb_type);
boolean is_oper = cf.executeUpdate(conn, "update zb_user_gl set zb_user=? where year=? and zb_type=?",
new Object[]{get_user_names,year,zb_type});
if (!is_oper) {
conn.rollback();
System.out.println("修改zb_user_gl表出错了" + cf.getMsg());
return;
}
conn.commit();
}
v_list = cf.doPageQueryWithCount(conn, sql.toString(), page_number, page_size, null, list.toArray());
if (v_list == null) {
out.println("查询用户出错");
return;
}
v_list_day = cf.doQuery(conn, "select zb_user from zb_user_gl where year=? and zb_type=?", null, new Object[]{year,zb_type});
if (v_list_day != null && v_list_day.size()>0) {
Hashtable ht1= (Hashtable) v_list_day.get(0);
user_names = pub.trimNull((String) ht1.get("zb_user"));
}
Hashtable ht_row = (Hashtable) v_list.get(0);
String rowCnt = pub.trimNull((String) ht_row.get("ROWCOUNT"));
%>
<div style="margin-top: 10px;">
<a class="btn btn-primary radius" onclick="saveGroupForm();" >
确定
</a>
</div>
<form action="selectUser-t.jsp" method="post" id="groupUser" name="groupUser">
<input type="hidden" name="action" id="action" value="update">
<input type="hidden" name="year" id="year" value="<%=year%>">
<input type="hidden" name="zb_type" id="zb_type" value="<%=zb_type%>">
<table class="table table-border table-bordered table-hover table-bg table-sort">
<thead>
<tr class="text-c">
<th width="30">序号</th>
<th width="30">
<input id="checkboxAll" type="checkbox" onclick="checkAll(this);"></input>
</th>
<th width="100">人员姓名</th>
<th width="100">联系电话</th>
<th width="100">工号</th>
</tr>
</thead>
<tbody id="groupUserInfo">
<%
Hashtable ht_1 =null;
if (v_list != null && v_list.size() > 0) {
for (int i = 1; i < v_list.size(); i++) {
Hashtable ht = (Hashtable) v_list.get(i);
String user_name = pub.trimNull((String) ht.get("user_name"));
String tel = pub.trimNull((String) ht.get("tel"));
String gh = pub.trimNull((String) ht.get("gh"));
%>
<tr class="text-c">
<td><%=i%>
</td>
<td >
<input type="checkbox" class="info" id="userids" name="userids" value="<%=user_name%>"
<%if(user_names.indexOf(user_name)>=0){%>checked="checked"<%}%>/>
</td>
<td><%=user_name%>
</td>
<td><%=tel%>
</td>
<td><%=gh%>
</td>
</tr>
<%
}
}
%>
</tbody>
</table>
</form>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/pagination.css">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.pagination.js"></script>
<jsp:include page="/common/page_ajax.jsp" >
<jsp:param name="page_number" value="<%=page_number%>" />
<jsp:param name="rowCnt" value="<%=rowCnt%>" />
<jsp:param name="page_size" value="<%=page_size%>" />
</jsp:include>
<script type="text/javascript">
var checkAll = function (checkbox) {
$(".info").prop("checked", checkbox.checked);
}
function saveGroupForm(){
var isChecked=false;
var us = document.getElementsByName("userids");
for(var i=0;i<us.length;i++){
if(us[i].checked){
isChecked = true;
}
}
if(!isChecked){
layer.alert("请勾选用户",{icon:5,title:"提示"});
return false;
}
$.ajax({
type: "POST",
url: "./selectUser-t.jsp",
data: $('#groupUser').serialize(),
success: function (msg) {
if (msg.indexOf("success") >= 0) {
layer.msg('操作成功!', {icon: 1, time: 1000},
function () {
//window.parent.location.reload();
window.parent.parent.location.reload();
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
} else {
layer.msg('操作失败', {
icon: 5,
time: 2000 //2秒关闭(如果不配置,默认是3秒)
}, function () {
// console.log("********************8")
});
}
}
});
}
</script>
<%
} catch (Exception e) {
out.println("查询用户信息异常" + e);
return;
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
}
}
}
%>
\ No newline at end of file
......@@ -72,17 +72,6 @@
}
%>
<style>
.col-sm-2{
width:14%;
}
.col-sm-3{
width:19%;
}
.btn-green{ background-color:green;border: green}
</style>
<div >
<a class="btn btn-primary radius" onclick="operList();" >
导出
......@@ -101,7 +90,7 @@
String time=getZbTyTime(cf,conn,mxId,zb_type);
%>
<div style="width:900px;height:120px;float:left;margin-left: 50px;border:0.5px solid #000;">
<div style="width:900px;height:120px;float:left;margin-left: 50px;border:0.5px solid #000;position:relative;">
<div style="width:140px;height:120px;float:left;border-right:0.5px solid #000;text-align: center;line-height: 80px;">
<p style="height:30px;"> <%=zb_type%></p>
<p style="height:30px;">(<%=time%>)</p>
......@@ -122,12 +111,15 @@
<div style="height:20px;line-height: 10px;">
<%=telphone%>
</div>
</div>
</div>
<%
}
%>
<span onclick="editUser('<%=year+month+day%>','<%=zb_type%>');" style="text-align:center;position:absolute; right:0; bottom:0;">
<img src="../../images/edit.png" width="20" height="15" />
</span>
</div>
<%
}
......@@ -140,6 +132,19 @@
function operList() {
document.form1.submit();
}
function editUser(year,zb_type) {
var url = './selectUser-t.jsp?year='+year+"&zb_type="+zb_type;
var abc = layer.open({
title: '选择人员',
type: 2,
content: url,
area: ['1000px', '500px'],
maxmin: true,
end:function () {
//searchModel1($("#check_mx_id").val());
}
});
}
</script>
<%
} catch (Exception e) {
......
......@@ -257,7 +257,7 @@
user_name=user_name.replace(",","</br>");
%>
<div style="text-align:center;width:150px;height:160px;float:left;border:0.5px solid #000;position: relative">
<p style="height:10px;"></p>
<p style="height:20px;"></p>
<%=user_name%>
</div>
<%}}%>
......
......@@ -83,9 +83,10 @@
user_name=user_name.replace(",","</br>");
%>
<div style="text-align:center;width:140px;height:160px;float:left;border:0.5px solid #000;position: relative">
<p style="height:10px;"></p>
<p style="height:10px;display:none;">
<%=user_name%>
<button class="btn btn-success" onclick="editUser('<%=day_id%>','<%=mx_id%>');" style="text-align:center;position:absolute; right:0; bottom:0;">
</p>
<button class="btn btn-success" onclick="editUser('<%=day_id%>','<%=mx_id%>');" style="display:none;text-align:center;position:absolute; right:0; bottom:0;">
修改</button>
</div>
<%}}%>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment