-
Notifications
You must be signed in to change notification settings - Fork 82
/
calendar.html
executable file
·643 lines (596 loc) · 31.7 KB
/
calendar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="renderer" content="webkit">
<title>素材火www.sucaihuo.com - 日历</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
<link href="css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css?v=4.3.0" rel="stylesheet">
<link href="css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="css/plugins/fullcalendar/fullcalendar.css" rel="stylesheet">
<link href="css/plugins/fullcalendar/fullcalendar.print.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css?v=2.2.0" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="side-menu">
<li class="nav-header">
<div class="dropdown profile-element"> <span>
<img alt="image" class="img-circle" src="img/profile_small.jpg" />
</span>
<a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">Beaut-zihan</strong>
</span> <span class="text-muted text-xs block">超级管理员 <b class="caret"></b></span> </span>
</a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">
<li><a href="form_avatar.html">修改头像</a>
</li>
<li><a href="profile.html">个人资料</a>
</li>
<li><a href="contacts.html">联系我们</a>
</li>
<li><a href="mailbox.html">信箱</a>
</li>
<li class="divider"></li>
<li><a href="login.html">安全退出</a>
</li>
</ul>
</div>
<div class="logo-element">
H+
</div>
</li>
<li>
<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">主页</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="index_1.html">主页示例一</a>
</li>
<li><a href="index_2.html">主页示例二</a>
</li>
<li><a href="index_3.html">主页示例三</a>
</li>
<li><a href="index_4.html">主页示例四</a>
</li>
</ul>
</li>
<li>
<a href="layouts.html"><i class="fa fa-columns"></i> <span class="nav-label">布局</span><span class="label label-danger pull-right">2.0</span></a>
</li>
<li>
<a href="index.html#"><i class="fa fa fa-globe"></i> <span class="nav-label">v2.0新增</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="toastr_notifications.html">Toastr通知</a>
</li>
<li><a href="nestable_list.html">嵌套列表</a>
</li>
<li><a href="timeline_v2.html">时间轴</a>
</li>
<li><a href="forum_main.html">论坛</a>
</li>
<li><a href="code_editor.html">代码编辑器</a>
</li>
<li><a href="modal_window.html">模态窗口</a>
</li>
<li><a href="validation.html">表单验证</a>
</li>
<li><a href="tree_view_v2.html">树形视图</a>
</li>
<li><a href="chat_view.html">聊天窗口</a>
</li>
</ul>
</li>
<li>
<a href="index.html#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">图表</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="graph_echarts.html">百度ECharts</a>
</li>
<li><a href="graph_flot.html">Flot</a>
</li>
<li><a href="graph_morris.html">Morris.js</a>
</li>
<li><a href="graph_rickshaw.html">Rickshaw</a>
</li>
<li><a href="graph_peity.html">Peity</a>
</li>
<li><a href="graph_sparkline.html">Sparkline</a>
</li>
</ul>
</li>
<li>
<a href="mailbox.html"><i class="fa fa-envelope"></i> <span class="nav-label">信箱 </span><span class="label label-warning pull-right">16</span></a>
<ul class="nav nav-second-level">
<li><a href="mailbox.html">收件箱</a>
</li>
<li><a href="mail_detail.html">查看邮件</a>
</li>
<li><a href="mail_compose.html">写信</a>
</li>
</ul>
</li>
<li>
<a href="widgets.html"><i class="fa fa-flask"></i> <span class="nav-label">小工具</span></a>
</li>
<li>
<a href="index.html#"><i class="fa fa-edit"></i> <span class="nav-label">表单</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="form_basic.html">基本表单</a>
</li>
<li><a href="form_validate.html">表单验证</a>
</li>
<li><a href="form_advanced.html">高级插件</a>
</li>
<li><a href="form_wizard.html">步骤条</a>
</li>
<li><a href="form_webuploader.html">百度WebUploader</a>
</li>
<li><a href="form_file_upload.html">文件上传</a>
</li>
<li><a href="form_editors.html">富文本编辑器</a>
</li>
<li><a href="form_simditor.html">simditor</a>
</li>
<li><a href="form_avatar.html">头像裁剪上传</a>
</li>
<li><a href="layerdate.html">日期选择器layerDate</a>
</li>
</ul>
</li>
<li class="active">
<a href="index.html#"><i class="fa fa-desktop"></i> <span class="nav-label">页面</span></a>
<ul class="nav nav-second-level">
<li><a href="contacts.html">联系人</a>
</li>
<li><a href="profile.html">个人资料</a>
</li>
<li><a href="projects.html">项目</a>
</li>
<li><a href="project_detail.html">项目详情</a>
</li>
<li><a href="file_manager.html">文件管理器</a>
</li>
<li class="active"><a href="calendar.html">日历</a>
</li>
<li><a href="faq.html">帮助中心</a>
</li>
<li><a href="timeline.html">时间轴</a>
</li>
<li><a href="pin_board.html">标签墙</a>
</li>
<li><a href="invoice.html">单据</a>
</li>
<li><a href="login.html">登录</a>
</li>
<li><a href="register.html">注册</a>
</li>
</ul>
</li>
<li>
<a href="index.html#"><i class="fa fa-files-o"></i> <span class="nav-label">其他页面</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="search_results.html">搜索结果</a>
</li>
<li><a href="lockscreen.html">登录超时</a>
</li>
<li><a href="404.html">404页面</a>
</li>
<li><a href="500.html">500页面</a>
</li>
<li><a href="empty_page.html">空白页</a>
</li>
</ul>
</li>
<li>
<a href="index.html#"><i class="fa fa-flask"></i> <span class="nav-label">UI元素</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="typography.html">排版</a>
</li>
<li><a href="icons.html">字体图标</a>
</li>
<li><a href="iconfont.html">阿里巴巴矢量图标库</a>
</li>
<li><a href="draggable_panels.html">拖动面板</a>
</li>
<li><a href="buttons.html">按钮</a>
</li>
<li><a href="tabs_panels.html">选项卡 & 面板</a>
</li>
<li><a href="notifications.html">通知 & 提示</a>
</li>
<li><a href="badges_labels.html">徽章,标签,进度条</a>
</li>
<li><a href="layer.html">Web弹层组件layer</a>
</li>
<li><a href="tree_view.html">树形视图</a>
</li>
</ul>
</li>
<li>
<a href="grid_options.html"><i class="fa fa-laptop"></i> <span class="nav-label">栅格</span></a>
</li>
<li>
<a href="index.html#"><i class="fa fa-table"></i> <span class="nav-label">表格</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="table_basic.html">基本表格</a>
</li>
<li><a href="table_data_tables.html">数据表格(DataTables)</a>
</li>
<li><a href="table_jqgrid.html">jqGrid</a>
</li>
</ul>
</li>
<li>
<a href="index.html#"><i class="fa fa-picture-o"></i> <span class="nav-label">图库</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="basic_gallery.html">基本图库</a>
</li>
<li><a href="carousel.html">图片切换</a>
</li>
</ul>
</li>
<li>
<a href="index.html#"><i class="fa fa-sitemap"></i> <span class="nav-label">菜单 </span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li>
<a href="index.html#">三级菜单 <span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li>
<a href="index.html#">三级菜单 01</a>
</li>
<li>
<a href="index.html#">三级菜单 01</a>
</li>
<li>
<a href="index.html#">三级菜单 01</a>
</li>
</ul>
</li>
<li><a href="index.html#">二级菜单</a>
</li>
<li>
<a href="index.html#">二级菜单</a>
</li>
<li>
<a href="index.html#">二级菜单</a>
</li>
</ul>
</li>
<li>
<a href="webim.html"><i class="fa fa-comments"></i> <span class="nav-label">即时通讯</span><span class="label label-danger pull-right">New</span></a>
</li>
<li>
<a href="css_animation.html"><i class="fa fa-magic"></i> <span class="nav-label">CSS动画</span></a>
</li>
<li>
<a href="index.html#"><i class="fa fa-cutlery"></i> <span class="nav-label">工具 </span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="form_builder.html">表单构建器</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<div id="page-wrapper" class="gray-bg dashbard-1">
<div class="row border-bottom">
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="calendar.html#"><i class="fa fa-bars"></i> </a>
<form role="search" class="navbar-form-custom" method="post" action="search_results.html">
<div class="form-group">
<input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
</div>
</form>
</div>
<ul class="nav navbar-top-links navbar-right">
<li>
<span class="m-r-sm text-muted welcome-message"><a href="index.html" title="返回首页"><i class="fa fa-home"></i></a>欢迎使用H+后台主题</span>
</li>
<li class="dropdown">
<a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
<i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
</a>
<ul class="dropdown-menu dropdown-messages">
<li>
<div class="dropdown-messages-box">
<a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="img/a7.jpg">
</a>
<div class="media-body">
<small class="pull-right">46小时前</small>
<strong>小四</strong> 项目已处理完结
<br>
<small class="text-muted">3天前 2014.11.8</small>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box">
<a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="img/a4.jpg">
</a>
<div class="media-body ">
<small class="pull-right text-navy">25小时前</small>
<strong>国民岳父</strong> 这是一条测试信息
<br>
<small class="text-muted">昨天</small>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="text-center link-block">
<a href="mailbox.html">
<i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
</a>
</div>
</li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
<i class="fa fa-bell"></i> <span class="label label-primary">8</span>
</a>
<ul class="dropdown-menu dropdown-alerts">
<li>
<a href="mailbox.html">
<div>
<i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
<span class="pull-right text-muted small">4分钟前</span>
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="profile.html">
<div>
<i class="fa fa-qq fa-fw"></i> 3条新回复
<span class="pull-right text-muted small">12分钟钱</span>
</div>
</a>
</li>
<li class="divider"></li>
<li>
<div class="text-center link-block">
<a href="notifications.html">
<strong>查看所有 </strong>
<i class="fa fa-angle-right"></i>
</a>
</div>
</li>
</ul>
</li>
<li>
<a href="login.html">
<i class="fa fa-sign-out"></i> 退出
</a>
</li>
</ul>
</nav>
</div>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-8">
<h2>日历</h2>
<ol class="breadcrumb">
<li>
<a href="index.html">主页</a>
</li>
<li>
页面
</li>
<li>
<strong>日历</strong>
</li>
</ol>
</div>
</div>
<div class="wrapper wrapper-content">
<div class="row animated fadeInDown">
<div class="col-lg-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Draggable Events</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="calendar.html#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="calendar.html#">选项1</a>
</li>
<li><a href="calendar.html#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div id='external-events'>
<p>可拖动的活动</p>
<div class='external-event navy-bg'>确定活动目标</div>
<div class='external-event navy-bg'>各部门职责及分工</div>
<div class='external-event navy-bg'>案例分享</div>
<div class='external-event navy-bg'>xxx</div>
<p class="m-t">
<input type='checkbox' id='drop-remove' class="i-checks" checked />
<label for='drop-remove'>移动后删除</label>
</p>
</div>
</div>
</div>
<div class="ibox float-e-margins">
<div class="ibox-content">
<h2>FullCalendar</h2> 这是一个jQuery插件,它提供了全尺寸,可拖动,使用Ajax的操作方式,并且可以使用自己的feed格式,如谷歌日历。
<p>
<a href="http://arshaw.com/fullcalendar/" target="_blank">FullCalendar开发文档</a>
</p>
</div>
</div>
</div>
<div class="col-lg-9">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>FullCalendar示例 </h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="calendar.html#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="calendar.html#">选项1</a>
</li>
<li><a href="calendar.html#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div id="calendar"></div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="pull-right">
By:<a href="http://www.zi-han.net" target="_blank">zihan's blog</a>
</div>
<div>
<strong>Copyright</strong> H+ © 2014
</div>
</div>
</div>
</div>
</div>
<!-- Mainly scripts -->
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js?v=3.4.0"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Custom and plugin javascript -->
<script src="js/hplus.js?v=2.2.0"></script>
<script src="js/plugins/pace/pace.min.js"></script>
<script src="js/jquery-ui.custom.min.js"></script>
<!-- iCheck -->
<script src="js/plugins/iCheck/icheck.min.js"></script>
<!-- Full Calendar -->
<script src="js/plugins/fullcalendar/fullcalendar.min.js"></script>
<script>
$(document).ready(function () {
$('.i-checks').iCheck({
checkboxClass: 'icheckbox_square-green',
radioClass: 'iradio_square-green',
});
/* initialize the external events
-----------------------------------------------------------------*/
$('#external-events div.external-event').each(function () {
// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
// it doesn't need to have a start or end
var eventObject = {
title: $.trim($(this).text()) // use the element's text as the event title
};
// store the Event Object in the DOM element so we can get to it later
$(this).data('eventObject', eventObject);
// make the event draggable using jQuery UI
$(this).draggable({
zIndex: 999,
revert: true, // will cause the event to go back to its
revertDuration: 0 // original position after the drag
});
});
/* initialize the calendar
-----------------------------------------------------------------*/
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
droppable: true, // this allows things to be dropped onto the calendar !!!
drop: function (date, allDay) { // this function is called when something is dropped
// retrieve the dropped element's stored Event Object
var originalEventObject = $(this).data('eventObject');
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = $.extend({}, originalEventObject);
// assign it the date that was reported
copiedEventObject.start = date;
copiedEventObject.allDay = allDay;
// render the event on the calendar
// the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);
// is the "remove after drop" checkbox checked?
if ($('#drop-remove').is(':checked')) {
// if so, remove the element from the "Draggable Events" list
$(this).remove();
}
},
events: [
{
title: '日事件',
start: new Date(y, m, 1)
},
{
title: '长事件',
start: new Date(y, m, d - 5),
end: new Date(y, m, d - 2),
},
{
id: 999,
title: '重复事件',
start: new Date(y, m, d - 3, 16, 0),
allDay: false,
},
{
id: 999,
title: '重复事件',
start: new Date(y, m, d + 4, 16, 0),
allDay: false
},
{
title: '会议',
start: new Date(y, m, d, 10, 30),
allDay: false
},
{
title: '午餐',
start: new Date(y, m, d, 12, 0),
end: new Date(y, m, d, 14, 0),
allDay: false
},
{
title: '生日',
start: new Date(y, m, d + 1, 19, 0),
end: new Date(y, m, d + 1, 22, 30),
allDay: false
},
{
title: '打开百度',
start: new Date(y, m, 28),
end: new Date(y, m, 29),
url: 'http://baidu.com/'
}
],
});
});
</script>
</body>
</html>