calendar.html 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>AdminLTE 2 | Calendar</title>
  6. <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  7. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  8. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  9. <!-- Ionicons -->
  10. <link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
  11. <!-- fullCalendar 2.2.5-->
  12. <link href="../plugins/fullcalendar/fullcalendar.min.css" rel="stylesheet" type="text/css" />
  13. <link href="../plugins/fullcalendar/fullcalendar.print.css" rel="stylesheet" type="text/css" media='print' />
  14. <!-- Theme style -->
  15. <link href="../dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
  16. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  17. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  18. <!--[if lt IE 9]>
  19. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  20. <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  21. <![endif]-->
  22. </head>
  23. <body class="skin-blue">
  24. <div class="wrapper">
  25. <!-- header logo: style can be found in header.less -->
  26. <header class="main-header">
  27. <a href="../index2.html" class="logo">
  28. <!-- Add the class icon to your logo image or logo icon to add the margining -->
  29. AdminLTE
  30. </a>
  31. <!-- Header Navbar: style can be found in header.less -->
  32. <nav class="navbar navbar-static-top" role="navigation">
  33. <!-- Sidebar toggle button-->
  34. <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
  35. <span class="sr-only">Toggle navigation</span>
  36. <span class="icon-bar"></span>
  37. <span class="icon-bar"></span>
  38. <span class="icon-bar"></span>
  39. </a>
  40. <div class="navbar-custom-menu">
  41. <ul class="nav navbar-nav">
  42. <!-- Messages: style can be found in dropdown.less-->
  43. <li class="dropdown messages-menu">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  45. <i class="fa fa-envelope-o"></i>
  46. <span class="label label-success">4</span>
  47. </a>
  48. <ul class="dropdown-menu">
  49. <li class="header">You have 4 messages</li>
  50. <li>
  51. <!-- inner menu: contains the actual data -->
  52. <ul class="menu">
  53. <li><!-- start message -->
  54. <a href="#">
  55. <div class="pull-left">
  56. <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
  57. </div>
  58. <h4>
  59. Support Team
  60. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  61. </h4>
  62. <p>Why not buy a new awesome theme?</p>
  63. </a>
  64. </li><!-- end message -->
  65. <li>
  66. <a href="#">
  67. <div class="pull-left">
  68. <img src="../dist/img/user3-128x128.jpg" class="img-circle" alt="user image"/>
  69. </div>
  70. <h4>
  71. AdminLTE Design Team
  72. <small><i class="fa fa-clock-o"></i> 2 hours</small>
  73. </h4>
  74. <p>Why not buy a new awesome theme?</p>
  75. </a>
  76. </li>
  77. <li>
  78. <a href="#">
  79. <div class="pull-left">
  80. <img src="../dist/img/user4-128x128.jpg" class="img-circle" alt="user image"/>
  81. </div>
  82. <h4>
  83. Developers
  84. <small><i class="fa fa-clock-o"></i> Today</small>
  85. </h4>
  86. <p>Why not buy a new awesome theme?</p>
  87. </a>
  88. </li>
  89. <li>
  90. <a href="#">
  91. <div class="pull-left">
  92. <img src="../dist/img/user3-128x128.jpg" class="img-circle" alt="user image"/>
  93. </div>
  94. <h4>
  95. Sales Department
  96. <small><i class="fa fa-clock-o"></i> Yesterday</small>
  97. </h4>
  98. <p>Why not buy a new awesome theme?</p>
  99. </a>
  100. </li>
  101. <li>
  102. <a href="#">
  103. <div class="pull-left">
  104. <img src="../dist/img/user4-128x128.jpg" class="img-circle" alt="user image"/>
  105. </div>
  106. <h4>
  107. Reviewers
  108. <small><i class="fa fa-clock-o"></i> 2 days</small>
  109. </h4>
  110. <p>Why not buy a new awesome theme?</p>
  111. </a>
  112. </li>
  113. </ul>
  114. </li>
  115. <li class="footer"><a href="#">See All Messages</a></li>
  116. </ul>
  117. </li>
  118. <!-- Notifications: style can be found in dropdown.less -->
  119. <li class="dropdown notifications-menu">
  120. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  121. <i class="fa fa-bell-o"></i>
  122. <span class="label label-warning">10</span>
  123. </a>
  124. <ul class="dropdown-menu">
  125. <li class="header">You have 10 notifications</li>
  126. <li>
  127. <!-- inner menu: contains the actual data -->
  128. <ul class="menu">
  129. <li>
  130. <a href="#">
  131. <i class="ion ion-ios-people info"></i> 5 new members joined today
  132. </a>
  133. </li>
  134. <li>
  135. <a href="#">
  136. <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
  137. </a>
  138. </li>
  139. <li>
  140. <a href="#">
  141. <i class="fa fa-users warning"></i> 5 new members joined
  142. </a>
  143. </li>
  144. <li>
  145. <a href="#">
  146. <i class="ion ion-ios-cart success"></i> 25 sales made
  147. </a>
  148. </li>
  149. <li>
  150. <a href="#">
  151. <i class="ion ion-ios-person danger"></i> You changed your username
  152. </a>
  153. </li>
  154. </ul>
  155. </li>
  156. <li class="footer"><a href="#">View all</a></li>
  157. </ul>
  158. </li>
  159. <!-- Tasks: style can be found in dropdown.less -->
  160. <li class="dropdown tasks-menu">
  161. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  162. <i class="fa fa-flag-o"></i>
  163. <span class="label label-danger">9</span>
  164. </a>
  165. <ul class="dropdown-menu">
  166. <li class="header">You have 9 tasks</li>
  167. <li>
  168. <!-- inner menu: contains the actual data -->
  169. <ul class="menu">
  170. <li><!-- Task item -->
  171. <a href="#">
  172. <h3>
  173. Design some buttons
  174. <small class="pull-right">20%</small>
  175. </h3>
  176. <div class="progress xs">
  177. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  178. <span class="sr-only">20% Complete</span>
  179. </div>
  180. </div>
  181. </a>
  182. </li><!-- end task item -->
  183. <li><!-- Task item -->
  184. <a href="#">
  185. <h3>
  186. Create a nice theme
  187. <small class="pull-right">40%</small>
  188. </h3>
  189. <div class="progress xs">
  190. <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  191. <span class="sr-only">40% Complete</span>
  192. </div>
  193. </div>
  194. </a>
  195. </li><!-- end task item -->
  196. <li><!-- Task item -->
  197. <a href="#">
  198. <h3>
  199. Some task I need to do
  200. <small class="pull-right">60%</small>
  201. </h3>
  202. <div class="progress xs">
  203. <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  204. <span class="sr-only">60% Complete</span>
  205. </div>
  206. </div>
  207. </a>
  208. </li><!-- end task item -->
  209. <li><!-- Task item -->
  210. <a href="#">
  211. <h3>
  212. Make beautiful transitions
  213. <small class="pull-right">80%</small>
  214. </h3>
  215. <div class="progress xs">
  216. <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  217. <span class="sr-only">80% Complete</span>
  218. </div>
  219. </div>
  220. </a>
  221. </li><!-- end task item -->
  222. </ul>
  223. </li>
  224. <li class="footer">
  225. <a href="#">View all tasks</a>
  226. </li>
  227. </ul>
  228. </li>
  229. <!-- User Account: style can be found in dropdown.less -->
  230. <li class="dropdown user user-menu">
  231. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  232. <img src="../dist/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
  233. <span class="hidden-xs">Alexander Pierce</span>
  234. </a>
  235. <ul class="dropdown-menu">
  236. <!-- User image -->
  237. <li class="user-header">
  238. <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
  239. <p>
  240. Alexander Pierce - Web Developer
  241. <small>Member since Nov. 2012</small>
  242. </p>
  243. </li>
  244. <!-- Menu Body -->
  245. <li class="user-body">
  246. <div class="col-xs-4 text-center">
  247. <a href="#">Followers</a>
  248. </div>
  249. <div class="col-xs-4 text-center">
  250. <a href="#">Sales</a>
  251. </div>
  252. <div class="col-xs-4 text-center">
  253. <a href="#">Friends</a>
  254. </div>
  255. </li>
  256. <!-- Menu Footer-->
  257. <li class="user-footer">
  258. <div class="pull-left">
  259. <a href="#" class="btn btn-default btn-flat">Profile</a>
  260. </div>
  261. <div class="pull-right">
  262. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  263. </div>
  264. </li>
  265. </ul>
  266. </li>
  267. </ul>
  268. </div>
  269. </nav>
  270. </header>
  271. <!-- Left side column. contains the logo and sidebar -->
  272. <aside class="left-side">
  273. <!-- sidebar: style can be found in sidebar.less -->
  274. <section class="sidebar">
  275. <!-- Sidebar user panel -->
  276. <div class="user-panel">
  277. <div class="pull-left image">
  278. <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
  279. </div>
  280. <div class="pull-left info">
  281. <p>Alexander Pierce</p>
  282. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  283. </div>
  284. </div>
  285. <!-- search form -->
  286. <form action="#" method="get" class="sidebar-form">
  287. <div class="input-group">
  288. <input type="text" name="q" class="form-control" placeholder="Search..."/>
  289. <span class="input-group-btn">
  290. <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
  291. </span>
  292. </div>
  293. </form>
  294. <!-- /.search form -->
  295. <!-- sidebar menu: : style can be found in sidebar.less -->
  296. <ul class="sidebar-menu">
  297. <li class="header">MAIN NAVIGATION</li>
  298. <li class="treeview">
  299. <a href="#">
  300. <i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
  301. </a>
  302. <ul class="treeview-menu">
  303. <li><a href="../index.html"><i class="fa fa-angle-double-right"></i> Dashboard v1</a></li>
  304. <li><a href="../index2.html"><i class="fa fa-angle-double-right"></i> Dashboard v2</a></li>
  305. </ul>
  306. </li>
  307. <li>
  308. <a href="widgets.html">
  309. <i class="fa fa-th"></i> <span>Widgets</span> <small class="label pull-right bg-green">new</small>
  310. </a>
  311. </li>
  312. <li class="treeview">
  313. <a href="#">
  314. <i class="fa fa-bar-chart-o"></i>
  315. <span>Charts</span>
  316. <i class="fa fa-angle-left pull-right"></i>
  317. </a>
  318. <ul class="treeview-menu">
  319. <li><a href="charts/morris.html"><i class="fa fa-angle-double-right"></i> Morris</a></li>
  320. <li><a href="charts/flot.html"><i class="fa fa-angle-double-right"></i> Flot</a></li>
  321. <li><a href="charts/inline.html"><i class="fa fa-angle-double-right"></i> Inline charts</a></li>
  322. </ul>
  323. </li>
  324. <li class="treeview">
  325. <a href="#">
  326. <i class="fa fa-laptop"></i>
  327. <span>UI Elements</span>
  328. <i class="fa fa-angle-left pull-right"></i>
  329. </a>
  330. <ul class="treeview-menu">
  331. <li><a href="UI/general.html"><i class="fa fa-angle-double-right"></i> General</a></li>
  332. <li><a href="UI/icons.html"><i class="fa fa-angle-double-right"></i> Icons</a></li>
  333. <li><a href="UI/buttons.html"><i class="fa fa-angle-double-right"></i> Buttons</a></li>
  334. <li><a href="UI/sliders.html"><i class="fa fa-angle-double-right"></i> Sliders</a></li>
  335. <li><a href="UI/timeline.html"><i class="fa fa-angle-double-right"></i> Timeline</a></li>
  336. <li><a href="UI/modals.html"><i class="fa fa-angle-double-right"></i> Modals</a></li>
  337. </ul>
  338. </li>
  339. <li class="treeview">
  340. <a href="#">
  341. <i class="fa fa-edit"></i> <span>Forms</span>
  342. <i class="fa fa-angle-left pull-right"></i>
  343. </a>
  344. <ul class="treeview-menu">
  345. <li><a href="forms/general.html"><i class="fa fa-angle-double-right"></i> General Elements</a></li>
  346. <li><a href="forms/advanced.html"><i class="fa fa-angle-double-right"></i> Advanced Elements</a></li>
  347. <li><a href="forms/editors.html"><i class="fa fa-angle-double-right"></i> Editors</a></li>
  348. </ul>
  349. </li>
  350. <li class="treeview">
  351. <a href="#">
  352. <i class="fa fa-table"></i> <span>Tables</span>
  353. <i class="fa fa-angle-left pull-right"></i>
  354. </a>
  355. <ul class="treeview-menu">
  356. <li><a href="tables/simple.html"><i class="fa fa-angle-double-right"></i> Simple tables</a></li>
  357. <li><a href="tables/data.html"><i class="fa fa-angle-double-right"></i> Data tables</a></li>
  358. </ul>
  359. </li>
  360. <li class="active">
  361. <a href="calendar.html">
  362. <i class="fa fa-calendar"></i> <span>Calendar</span>
  363. <small class="label pull-right bg-red">3</small>
  364. </a>
  365. </li>
  366. <li>
  367. <a href="mailbox.html">
  368. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  369. <small class="label pull-right bg-yellow">12</small>
  370. </a>
  371. </li>
  372. <li class="treeview">
  373. <a href="#">
  374. <i class="fa fa-folder"></i> <span>Examples</span>
  375. <i class="fa fa-angle-left pull-right"></i>
  376. </a>
  377. <ul class="treeview-menu">
  378. <li><a href="examples/invoice.html"><i class="fa fa-angle-double-right"></i> Invoice</a></li>
  379. <li><a href="examples/login.html"><i class="fa fa-angle-double-right"></i> Login</a></li>
  380. <li><a href="examples/register.html"><i class="fa fa-angle-double-right"></i> Register</a></li>
  381. <li><a href="examples/lockscreen.html"><i class="fa fa-angle-double-right"></i> Lockscreen</a></li>
  382. <li><a href="examples/404.html"><i class="fa fa-angle-double-right"></i> 404 Error</a></li>
  383. <li><a href="examples/500.html"><i class="fa fa-angle-double-right"></i> 500 Error</a></li>
  384. <li><a href="examples/blank.html"><i class="fa fa-angle-double-right"></i> Blank Page</a></li>
  385. </ul>
  386. </li>
  387. <li class="treeview">
  388. <a href="#">
  389. <i class="fa fa-share"></i> <span>Multilevel</span>
  390. <i class="fa fa-angle-left pull-right"></i>
  391. </a>
  392. <ul class="treeview-menu">
  393. <li><a href="#"><i class="fa fa-angle-double-right"></i> Level One</a></li>
  394. <li>
  395. <a href="#"><i class="fa fa-angle-double-right"></i> Level One <i class="fa fa-angle-left pull-right"></i></a>
  396. <ul class="treeview-menu">
  397. <li><a href="#"><i class="fa fa-angle-double-right"></i> Level Two</a></li>
  398. <li>
  399. <a href="#"><i class="fa fa-angle-double-right"></i> Level Two <i class="fa fa-angle-left pull-right"></i></a>
  400. <ul class="treeview-menu">
  401. <li><a href="#"><i class="fa fa-angle-double-right"></i> Level Three</a></li>
  402. <li><a href="#"><i class="fa fa-angle-double-right"></i> Level Three</a></li>
  403. </ul>
  404. </li>
  405. </ul>
  406. </li>
  407. <li><a href="#"><i class="fa fa-angle-double-right"></i> Level One</a></li>
  408. </ul>
  409. </li>
  410. <li><a href="../documentation/index.html"><i class="fa fa-book"></i> Documentation</a></li>
  411. <li class="header">LABELS</li>
  412. <li><a href="#"><i class="fa fa-circle-o text-danger"></i> Important</a></li>
  413. <li><a href="#"><i class="fa fa-circle-o text-warning"></i> Warning</a></li>
  414. <li><a href="#"><i class="fa fa-circle-o text-info"></i> Information</a></li>
  415. </ul>
  416. </section>
  417. <!-- /.sidebar -->
  418. </aside>
  419. <!-- Right side column. Contains the navbar and content of the page -->
  420. <div class="content-wrapper">
  421. <!-- Content Header (Page header) -->
  422. <section class="content-header">
  423. <h1>
  424. Calendar
  425. <small>Control panel</small>
  426. </h1>
  427. <ol class="breadcrumb">
  428. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  429. <li class="active">Calendar</li>
  430. </ol>
  431. </section>
  432. <!-- Main content -->
  433. <section class="content">
  434. <div class="row">
  435. <div class="col-md-3">
  436. <div class="box">
  437. <div class="box-header">
  438. <h4 class="box-title">Draggable Events</h4>
  439. </div>
  440. <div class="box-body">
  441. <!-- the events -->
  442. <div id='external-events'>
  443. <div class='external-event bg-green'>Lunch</div>
  444. <div class='external-event bg-yellow'>Go home</div>
  445. <div class='external-event bg-aqua'>Do homework</div>
  446. <div class='external-event bg-light-blue'>Work on UI design</div>
  447. <div class='external-event bg-red'>Sleep tight</div>
  448. <div class="checkbox">
  449. <label for='drop-remove'>
  450. <input type='checkbox' id='drop-remove' />
  451. remove after drop
  452. </label>
  453. </div>
  454. </div>
  455. </div><!-- /.box-body -->
  456. </div><!-- /. box -->
  457. <div class="box">
  458. <div class="box-header">
  459. <h3 class="box-title">Create Event</h3>
  460. </div>
  461. <div class="box-body">
  462. <div class="btn-group" style="width: 100%; margin-bottom: 10px;">
  463. <!--<button type="button" id="color-chooser-btn" class="btn btn-info btn-block dropdown-toggle" data-toggle="dropdown">Color <span class="caret"></span></button>-->
  464. <ul class="fc-color-picker" id="color-chooser">
  465. <li><a class="text-aqua" href="#"><i class="fa fa-square"></i></a></li>
  466. <li><a class="text-blue" href="#"><i class="fa fa-square"></i></a></li>
  467. <li><a class="text-light-blue" href="#"><i class="fa fa-square"></i></a></li>
  468. <li><a class="text-teal" href="#"><i class="fa fa-square"></i></a></li>
  469. <li><a class="text-yellow" href="#"><i class="fa fa-square"></i></a></li>
  470. <li><a class="text-orange" href="#"><i class="fa fa-square"></i></a></li>
  471. <li><a class="text-green" href="#"><i class="fa fa-square"></i></a></li>
  472. <li><a class="text-lime" href="#"><i class="fa fa-square"></i></a></li>
  473. <li><a class="text-red" href="#"><i class="fa fa-square"></i></a></li>
  474. <li><a class="text-purple" href="#"><i class="fa fa-square"></i></a></li>
  475. <li><a class="text-fuchsia" href="#"><i class="fa fa-square"></i></a></li>
  476. <li><a class="text-muted" href="#"><i class="fa fa-square"></i></a></li>
  477. <li><a class="text-navy" href="#"><i class="fa fa-square"></i></a></li>
  478. </ul>
  479. </div><!-- /btn-group -->
  480. <div class="input-group">
  481. <input id="new-event" type="text" class="form-control" placeholder="Event Title">
  482. <div class="input-group-btn">
  483. <button id="add-new-event" type="button" class="btn btn-primary btn-flat">Add</button>
  484. </div><!-- /btn-group -->
  485. </div><!-- /input-group -->
  486. </div>
  487. </div>
  488. </div><!-- /.col -->
  489. <div class="col-md-9">
  490. <div class="box box-primary">
  491. <div class="box-body no-padding">
  492. <!-- THE CALENDAR -->
  493. <div id="calendar"></div>
  494. </div><!-- /.box-body -->
  495. </div><!-- /. box -->
  496. </div><!-- /.col -->
  497. </div><!-- /.row -->
  498. </section><!-- /.content -->
  499. </div><!-- /.content-wrapper -->
  500. <footer class="main-footer">
  501. <div class="pull-right hidden-xs">
  502. <b>Version</b> 2.0
  503. </div>
  504. <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
  505. </footer>
  506. </div><!-- ./wrapper -->
  507. <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  508. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
  509. <script src="//code.jquery.com/ui/1.11.1/jquery-ui.min.js" type="text/javascript"></script>
  510. <!-- Slimscroll -->
  511. <script src="../plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
  512. <!-- AdminLTE App -->
  513. <script src="../dist/js/app.min.js" type="text/javascript"></script>
  514. <!-- AdminLTE for demo purposes -->
  515. <script src="../dist/js/demo.js" type="text/javascript"></script>
  516. <!-- fullCalendar 2.2.5 -->
  517. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js" type="text/javascript"></script>
  518. <script src="../plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script>
  519. <!-- Page specific script -->
  520. <script type="text/javascript">
  521. $(function () {
  522. /* initialize the external events
  523. -----------------------------------------------------------------*/
  524. function ini_events(ele) {
  525. ele.each(function () {
  526. // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
  527. // it doesn't need to have a start or end
  528. var eventObject = {
  529. title: $.trim($(this).text()) // use the element's text as the event title
  530. };
  531. // store the Event Object in the DOM element so we can get to it later
  532. $(this).data('eventObject', eventObject);
  533. // make the event draggable using jQuery UI
  534. $(this).draggable({
  535. zIndex: 1070,
  536. revert: true, // will cause the event to go back to its
  537. revertDuration: 0 // original position after the drag
  538. });
  539. });
  540. }
  541. ini_events($('#external-events div.external-event'));
  542. /* initialize the calendar
  543. -----------------------------------------------------------------*/
  544. //Date for the calendar events (dummy data)
  545. var date = new Date();
  546. var d = date.getDate(),
  547. m = date.getMonth(),
  548. y = date.getFullYear();
  549. $('#calendar').fullCalendar({
  550. header: {
  551. left: 'prev,next today',
  552. center: 'title',
  553. right: 'month,agendaWeek,agendaDay'
  554. },
  555. buttonText: {
  556. today: 'today',
  557. month: 'month',
  558. week: 'week',
  559. day: 'day'
  560. },
  561. //Random default events
  562. events: [
  563. {
  564. title: 'All Day Event',
  565. start: new Date(y, m, 1),
  566. backgroundColor: "#f56954", //red
  567. borderColor: "#f56954" //red
  568. },
  569. {
  570. title: 'Long Event',
  571. start: new Date(y, m, d - 5),
  572. end: new Date(y, m, d - 2),
  573. backgroundColor: "#f39c12", //yellow
  574. borderColor: "#f39c12" //yellow
  575. },
  576. {
  577. title: 'Meeting',
  578. start: new Date(y, m, d, 10, 30),
  579. allDay: false,
  580. backgroundColor: "#0073b7", //Blue
  581. borderColor: "#0073b7" //Blue
  582. },
  583. {
  584. title: 'Lunch',
  585. start: new Date(y, m, d, 12, 0),
  586. end: new Date(y, m, d, 14, 0),
  587. allDay: false,
  588. backgroundColor: "#00c0ef", //Info (aqua)
  589. borderColor: "#00c0ef" //Info (aqua)
  590. },
  591. {
  592. title: 'Birthday Party',
  593. start: new Date(y, m, d + 1, 19, 0),
  594. end: new Date(y, m, d + 1, 22, 30),
  595. allDay: false,
  596. backgroundColor: "#00a65a", //Success (green)
  597. borderColor: "#00a65a" //Success (green)
  598. },
  599. {
  600. title: 'Click for Google',
  601. start: new Date(y, m, 28),
  602. end: new Date(y, m, 29),
  603. url: 'http://google.com/',
  604. backgroundColor: "#3c8dbc", //Primary (light-blue)
  605. borderColor: "#3c8dbc" //Primary (light-blue)
  606. }
  607. ],
  608. editable: true,
  609. droppable: true, // this allows things to be dropped onto the calendar !!!
  610. drop: function (date, allDay) { // this function is called when something is dropped
  611. // retrieve the dropped element's stored Event Object
  612. var originalEventObject = $(this).data('eventObject');
  613. // we need to copy it, so that multiple events don't have a reference to the same object
  614. var copiedEventObject = $.extend({}, originalEventObject);
  615. // assign it the date that was reported
  616. copiedEventObject.start = date;
  617. copiedEventObject.allDay = allDay;
  618. copiedEventObject.backgroundColor = $(this).css("background-color");
  619. copiedEventObject.borderColor = $(this).css("border-color");
  620. // render the event on the calendar
  621. // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/)
  622. $('#calendar').fullCalendar('renderEvent', copiedEventObject, true);
  623. // is the "remove after drop" checkbox checked?
  624. if ($('#drop-remove').is(':checked')) {
  625. // if so, remove the element from the "Draggable Events" list
  626. $(this).remove();
  627. }
  628. }
  629. });
  630. /* ADDING EVENTS */
  631. var currColor = "#3c8dbc"; //Red by default
  632. //Color chooser button
  633. var colorChooser = $("#color-chooser-btn");
  634. $("#color-chooser > li > a").click(function (e) {
  635. e.preventDefault();
  636. //Save color
  637. currColor = $(this).css("color");
  638. //Add color effect to button
  639. $('#add-new-event').css({"background-color": currColor, "border-color": currColor});
  640. });
  641. $("#add-new-event").click(function (e) {
  642. e.preventDefault();
  643. //Get value and make sure it is not null
  644. var val = $("#new-event").val();
  645. if (val.length == 0) {
  646. return;
  647. }
  648. //Create events
  649. var event = $("<div />");
  650. event.css({"background-color": currColor, "border-color": currColor, "color": "#fff"}).addClass("external-event");
  651. event.html(val);
  652. $('#external-events').prepend(event);
  653. //Add draggable funtionality
  654. ini_events(event);
  655. //Remove event from text input
  656. $("#new-event").val("");
  657. });
  658. });
  659. </script>
  660. </body>
  661. </html>