Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 11.00 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.     <meta charset="utf-8" />
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>DayPilot Scheduler for ASP.NET MVC 4 - My ASP.NET Application</title>
  8.     <link href="/Content/bootstrap.css" rel="stylesheet"/>
  9. <link href="/Content/site.css" rel="stylesheet"/>
  10.  
  11.     <script type="text/javascript" src="http://gc.kis.scr.kaspersky-labs.com/FD261D82-8641-BE4B-B9AB-C5D9A50E877C/main.js" charset="UTF-8"></script><script src="/Scripts/modernizr-2.6.2.js"></script>
  12.  
  13.     <script src="/Scripts/jquery-1.12.4.js"></script>
  14.  
  15. </head>
  16. <body>
  17.     <div class="navbar navbar-inverse navbar-fixed-top">
  18.         <div class="container">
  19.             <div class="navbar-header">
  20.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  21.                     <span class="icon-bar"></span>
  22.                     <span class="icon-bar"></span>
  23.                     <span class="icon-bar"></span>
  24.                 </button>
  25.                 <a class="navbar-brand" href="/">Application name</a>
  26.             </div>
  27.             <div class="navbar-collapse collapse">
  28.                 <ul class="nav navbar-nav">
  29.                     <li><a href="/">Home</a></li>
  30.                     <li><a href="/Home/About">About</a></li>
  31.                     <li><a href="/Home/Contact">Contact</a></li>
  32.                     <li><a href="/Home/Scheduler">Grafik</a></li>
  33.                 </ul>
  34.                     <ul class="nav navbar-nav navbar-right">
  35.         <li><a href="/Account/Register" id="registerLink">Register</a></li>
  36.         <li><a href="/Account/Login" id="loginLink">Log in</a></li>
  37.     </ul>
  38.  
  39.             </div>
  40.         </div>
  41.     </div>
  42.     <div class="container body-content">
  43.        
  44.  
  45.  
  46.  
  47. <script src="/Scripts/DayPilot/daypilot-all.min.js" type="text/javascript"></script>
  48.  
  49. <div id='dps'></div>
  50. <script type='text/javascript'>
  51. /* DayPilot Pro for ASP.NET MVC: 8.3.5847.0 */
  52. var v = new DayPilot.Scheduler('dps');
  53. v.allowEventOverlap = true;
  54. v.allowMultiSelect = true;
  55. v.allowMultiMove = false;
  56. v.allowMultiRange = false;
  57. v.allowMultiResize = false;
  58. v.api = 1;
  59. v.autoRefreshCommand = 'refresh';
  60. v.autoRefreshEnabled = false;
  61. v.autoRefreshInterval = 60;
  62. v.autoRefreshMaxCount = 20;
  63. v.autoScroll = 'Drag';
  64. v.backendUrl = '/Scheduler/SchedulerActive';
  65. v.blockOnCallBack = false;
  66. v.borderColor = '#000000';
  67. v.businessBeginsHour = 7;
  68. v.businessEndsHour = 22;
  69. v.cellBackColor = '#FFFFD5';
  70. v.cellBackColorNonBusiness = '#FFF4BC';
  71. v.cellBorderColor = '#EAD098';
  72. v.cellDuration = 30;
  73. v.cellGroupBy = 'Day';
  74. v.cellSelectColor = '#316AC5';
  75. v.cellSweeping = true;
  76. v.cellSweepingCacheSize = 1000;
  77. v.cellWidth = 40;
  78. v.cellWidthMin = 1;
  79. v.cellWidthSpec = 'Fixed';
  80. v.crosshairColor = 'gray';
  81. v.crosshairOpacity = 20;
  82. v.crosshairType = 'Header';
  83. v.theme = null;
  84. v.cssOnly = true;
  85. v.days = 1;
  86. v.drawBlankCells = true;
  87. v.durationBarColor = 'blue';
  88. v.durationBarHeight = 3;
  89. v.durationBarMode = 'Duration';
  90. v.durationBarVisible = true;
  91. v.dynamicEventRendering = 'Progressive';
  92. v.dynamicEventRenderingMargin = 50;
  93. v.dynamicEventRenderingCacheSize = 200;
  94. v.dynamicEventRenderingCacheSweeping = false;
  95. v.dynamicLoading = false;
  96. v.emptyBackColor = '#FFFFFF';
  97. v.eventBorderColor = '#000000';
  98. v.eventBorderVisible = true;
  99. v.eventBackColor = '#ffffff';
  100. v.eventCorners = 'Regular';
  101. v.eventEndSpec = 'DateTime';
  102. v.eventFontColor = '#000000';
  103. v.eventFontFamily = 'Tahoma, Arial, sans-serif';
  104. v.eventFontSize = '11px';
  105. v.eventHeight = 25;
  106. v.eventMoveMargin = 5;
  107. v.eventMoveSkipNonBusiness = false;
  108. v.eventStackingLineHeight = 100;
  109. v.eventResizingStartEndEnabled = false;
  110. v.eventMovingStartEndEnabled = false;
  111. v.timeRangeSelectingStartEndEnabled = false;
  112. v.eventResizingStartEndFormat = 'MMMM d, yyyy';
  113. v.eventMovingStartEndFormat = 'MMMM d, yyyy';
  114. v.timeRangeSelectingStartEndFormat = 'MMMM d, yyyy';
  115. v.eventMoveToPosition = false;
  116. v.eventResizeMargin = 5;
  117. v.floatingEvents = true;
  118. v.floatingTimeHeaders = true;
  119. v.groupConcurrentEvents = false;
  120. v.groupConcurrentEventsLimit = 1;
  121. v.headerFontColor = '#000000';
  122. v.headerFontFamily = 'Tahoma, Arial, sans-serif';
  123. v.headerFontSize = '8pt';
  124. v.headerHeight = 20;
  125. v.height = 0;
  126. v.heightSpec = 'Auto';
  127. v.hideBorderFor100PctHeight = false;
  128. v.hideUntilInit = false;
  129. v.hourBorderColor = '#EAD098';
  130. v.hourFontFamily = 'Tahoma, Arial, sans-serif';
  131. v.hourFontSize = '10pt';
  132. v.hourNameBackColor = '#ECE9D8';
  133. v.hourNameBorderColor = '#ACA899';
  134. v.linkBottomMargin = 12;
  135. v.loadingLabelText = 'Loading...';
  136. v.loadingLabelVisible = true;
  137. v.loadingLabelFontSize = '10pt';
  138. v.loadingLabelFontFamily = 'Tahoma, Arial, sans-serif';
  139. v.loadingLabelFontColor = '#ffffff';
  140. v.loadingLabelBackColor = 'red';
  141. v.locale = 'pl-pl';
  142. v.messageBarPosition = 'Top';
  143. v.messageHideAfter = 5000;
  144. v.messageHideOnMouseOut = true;
  145. v.moveBy = 'Full';
  146. v.multiSelectRectangle = 'Disabled';
  147. v.notifyCommit = 'Immediate';
  148. v.snapToGrid = true;
  149. v.layout = 'Auto';
  150. v.progressiveRowRendering = true;
  151. v.progressiveRowRenderingPreload = 25;
  152. v.rowMarginBottom = 0;
  153. v.rowMarginTop = 0;
  154. v.rowMinHeight = 0;
  155. v.rowHeaderColumns = null;
  156. v.rowHeaderHideIconEnabled = false;
  157. v.rowHeaderScrolling = false;
  158. v.rowHeaderWidth = 80;
  159. v.rowHeaderWidthAutoFit = true;
  160. v.rowHeaderCols = null;
  161. v.scale = 'CellDuration';
  162. v.scrollDelayDynamic = 500;
  163. v.scrollDelayCells = 20;
  164. v.scrollDelayEvents = 200;
  165. v.scrollDelayFloats = 0;
  166. v.shadow = 'Fill';
  167. v.showBaseTimeHeader = true;
  168. v.showNonBusiness = false;
  169. v.showToolTip = true;
  170. v.startDate = '2017-01-22T00:00:00';
  171. v.syncResourceTree = true;
  172. v.tapAndHoldTimeout = 500;
  173. v.timeBreakColor = '#000000';
  174. v.timeFormat = 'Auto';
  175. v.treeEnabled = false;
  176. v.treeIndent = 20;
  177. v.treeImageCollapse = null;
  178. v.treeImageExpand = null;
  179. v.treeImageNoChildren = null;
  180. v.treeImageMarginLeft = 5;
  181. v.treeImageMarginTop = 5;
  182. v.treePreventParentUsage = false;
  183. v.useEventBoxes = 'Always';
  184. v.viewType = 'Resources';
  185. v.weekStarts = 1;
  186. v.eventClickHandling = 'Disabled';
  187. v.eventSelectHandling = 'JavaScript';
  188. v.eventDeleteHandling = 'CallBack';
  189. v.eventDoubleClickHandling = 'Disabled';
  190. v.eventEditHandling = 'CallBack';
  191. v.eventMoveHandling = 'CallBack';
  192. v.eventResizeHandling = 'CallBack';
  193. v.eventRightClickHandling = 'ContextMenu';
  194. v.resourceCollapseHandling = 'Disabled';
  195. v.resourceExpandHandling = 'Disabled';
  196. v.rowClickHandling = 'Disabled';
  197. v.rowCreateHandling = 'Disabled';
  198. v.rowDoubleClickHandling = 'JavaScript';
  199. v.rowEditHandling = 'JavaScript';
  200. v.rowMoveHandling = 'Disabled';
  201. v.rowSelectHandling = 'JavaScript';
  202. v.timeRangeDoubleClickHandling = 'Disabled';
  203. v.timeRangeSelectedHandling = 'Disabled';
  204. v.onBeforeCellRender = function(args) { ; };
  205. v.onBeforeRowHeaderRender = function(args) { ; };
  206. v.onEventClick = function(e) { ; };
  207. v.onEventSelect = function(e, change) { ; };
  208. v.onEventDelete = function(e) { ; };
  209. v.onEventDoubleClick = function(e) { ; };
  210. v.onEventEdit = function(e, newText) { ; };
  211. v.onEventMove = function(e, newStart, newEnd, newResource, external, ctrl, shift, position, multimove) { var newColumn = newResource; ; };
  212. v.onEventMoving = function(args) { ; };
  213. v.onEventResize = function(e, newStart, newEnd) { ; };
  214. v.onEventRightClick = function(e) { ; };
  215. v.onRowClick = function(row) { var resource = row; ; };
  216. v.onRowDoubleClick = function(row) { ; };
  217. v.onRowCreate = function(args) { ; };
  218. v.onRowEdit = function(row, newText) { ; };
  219. v.onRowMove = function(source, target, position) { ; };
  220. v.onRowSelect = function(row) { ; };
  221. v.onResourceCollapse = function(resource) { ; };
  222. v.onResourceExpand = function(resource) { ; };
  223. v.onTimeRangeDoubleClick = function(start, end, resource) { ; };
  224. v.onTimeRangeSelected = function(start, end, resource, multirange) { ; };
  225. v.afterEventRender = function(e, div) { ; };
  226. v.afterRender = function(data, isCallBack) { ; };
  227. v.onCallBackStart = function(args) { ; };
  228. v.onCallBackEnd = function(args) { ; };
  229. v.onDimensionsChanged = function(args) { ; };
  230. v.onTimeRangeSelecting = function(args) { ; };
  231. v.onRectangleEventSelecting = function(args) { ; };
  232. v.onRectangleEventSelect = function(args) { ; };
  233. v.onRectangleEventSelected = function(args) { ; };
  234. v.onEventResizing = function(args) { ; };
  235. v.separators = [];
  236. v.resources = [];
  237. v.links.list = null;
  238. v.timeHeaders = [{"groupBy":"Month","format":"dd MMMM yyyy"},{"groupBy":"Hour","format":null},{"groupBy":"Cell","format":null}];
  239. v.onAjaxError = function(args) { var request = args.request; if (DayPilot.Modal) { new DayPilot.Modal().showHtml(args.request.responseText); } else { alert('AJAX callback error (500)'); };  };
  240. DayPilot.Locale.register(new DayPilot.Locale('pl-pl', {'dayNames':['niedziela','poniedziałek','wtorek','środa','czwartek','piątek','sobota'],'dayNamesShort':['niedz.','pon.','wt.','śr.','czw.','pt.','sob.'],'monthNames':['styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień',''],'monthNamesShort':['sty','lut','mar','kwi','maj','cze','lip','sie','wrz','paź','lis','gru',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));
  241. v.init();
  242. var dps = v;
  243. </script>
  244.  
  245. <div>
  246.     <ul id="external">
  247.             <li data-id="8" data-duration="1800"><span style="cursor:move">Robert 22/01/2017 11:00:00 - 22/01/2017 15:00:00</span></li>
  248.             <li data-id="9" data-duration="1800"><span style="cursor:move">Maciej 22/01/2017 09:30:00 - 22/01/2017 12:30:00</span></li>
  249.             <li data-id="10" data-duration="1800"><span style="cursor:move">Jan 22/01/2017 08:00:00 - 22/01/2017 20:00:00</span></li>
  250.     </ul>
  251. </div>
  252.  
  253. <script type="text/javascript">
  254.     $(document).ready(function makeDraggable() {
  255.   var parent = document.getElementById("external");
  256.   var items = parent.getElementsByTagName("li");
  257.   for (var i = 0; i < items.length; i++) {
  258.      var e = items[i];
  259.      var item = {
  260.          element: e,
  261.          id: e.getAttribute("data-id"),
  262.          text: e.innerText,
  263.          duration: e.getAttribute("data-duration"),
  264.          keepElement: true
  265.      };
  266.      DayPilot.Scheduler.makeDraggable(item);
  267.  }
  268. })
  269. </script>
  270.  
  271. <script type="text/javascript">
  272. function modal(url) {
  273.     var m = new DayPilot.Modal();
  274.     m.closed = function() {
  275.         if(this.result == "OK") {
  276.             dps.commandCallBack('refresh');
  277.         }
  278.         dps.clearSelection();
  279.     };
  280.     m.showUrl(url);
  281. }
  282. </script>
  283.         <hr style="clear:both"/>
  284.         <footer style="clear:both">
  285.             <p>&copy; 2017 - My ASP.NET Application</p>
  286.         </footer>
  287.     </div>
  288.  
  289.    
  290.     <script src="/Scripts/bootstrap.js"></script>
  291. <script src="/Scripts/respond.js"></script>
  292.  
  293.    
  294.  
  295. <!-- Visual Studio Browser Link -->
  296. <script type="application/json" id="__browserLink_initializationData">
  297.     {"appName":"Chrome","requestId":"17801894140f42f58e50a8b302b1914c"}
  298. </script>
  299. <script type="text/javascript" src="http://localhost:10454/c982c94e4e9243948396acd40ff4beb8/browserLink" async="async"></script>
  300. <!-- End Browser Link -->
  301.  
  302. </body>
  303. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement