python会议室系统预定_会议室预定系统

会议室预定

height: 60px;

width:100%;

background-color: #2446AB;

font-size: 30px;

}

.crm {

font-family: inherit;

color: white;

}

td.setting{

background-color: red;

}

会议室预定系统


保存

会议室{% for time in time_list %}{{ time.1 }}{% endfor %}

{# 简单展示#}

{# {% for room in room_list %}#}

{#

#}

{#

{{ room.title }}#}

{# {% for time in time_list %}#}

{#

#}

{# {% endfor %}#}

{#

#}

{# {% endfor %}#}

{# Ajax获取#}

{#日期选择器#}

language:'zh-CN',//显示中文

format: 'yyyy-mm-dd',//显示格式

minView: "month",//设置只显示到月份

initialDate: new Date(),//初始化当前日期

autoclose: true,//选中自动关闭

todayBtn: true//显示今日按钮

});

$("#datetimepicker").datetimepicker({

format:'yyyy-mm-dd',

minView:'month',

language:'zh-CN',

autoclose:true,

startDate:newDate()

});{#ajax获取数据----------#}

{#执行下面的函数#}

ajax_rom()

});

{# 定义一个函数#}

function ajax_rom() {

$.ajax({

url:'/booking/',

type:'GET',

success: function (arg) {

console.log(arg);if(arg.status) {

$.each(arg.data, function (i, item) {

{# 循环生成每一条数据,创建一个tr标签#}var tr = $("

");

{# 循环属性 #}

{# 循环生成每一条数据,创建一个td标签#}

$.each(item, function (k, j) {var td = $("

");

td.text(j.text);

$.each(j.attr, function (w,l) {

{# 给每一个td添加属性#}

$(td).attr(w,l);

});

tr.append(td);

});

$("#Tbody").append(tr)

})

}else{

}

}

})

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值