calendar.html 32 KB

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