Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>DayPilot Scheduler for ASP.NET MVC 4 - My ASP.NET Application</title>
- <link href="/Content/bootstrap.css" rel="stylesheet"/>
- <link href="/Content/site.css" rel="stylesheet"/>
- <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>
- <script src="/Scripts/jquery-1.12.4.js"></script>
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="/">Application name</a>
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li><a href="/">Home</a></li>
- <li><a href="/Home/About">About</a></li>
- <li><a href="/Home/Contact">Contact</a></li>
- <li><a href="/Home/Scheduler">Grafik</a></li>
- </ul>
- <ul class="nav navbar-nav navbar-right">
- <li><a href="/Account/Register" id="registerLink">Register</a></li>
- <li><a href="/Account/Login" id="loginLink">Log in</a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class="container body-content">
- <script src="/Scripts/DayPilot/daypilot-all.min.js" type="text/javascript"></script>
- <div id='dps'></div>
- <script type='text/javascript'>
- /* DayPilot Pro for ASP.NET MVC: 8.3.5847.0 */
- var v = new DayPilot.Scheduler('dps');
- v.allowEventOverlap = true;
- v.allowMultiSelect = true;
- v.allowMultiMove = false;
- v.allowMultiRange = false;
- v.allowMultiResize = false;
- v.api = 1;
- v.autoRefreshCommand = 'refresh';
- v.autoRefreshEnabled = false;
- v.autoRefreshInterval = 60;
- v.autoRefreshMaxCount = 20;
- v.autoScroll = 'Drag';
- v.backendUrl = '/Scheduler/SchedulerActive';
- v.blockOnCallBack = false;
- v.borderColor = '#000000';
- v.businessBeginsHour = 7;
- v.businessEndsHour = 22;
- v.cellBackColor = '#FFFFD5';
- v.cellBackColorNonBusiness = '#FFF4BC';
- v.cellBorderColor = '#EAD098';
- v.cellDuration = 30;
- v.cellGroupBy = 'Day';
- v.cellSelectColor = '#316AC5';
- v.cellSweeping = true;
- v.cellSweepingCacheSize = 1000;
- v.cellWidth = 40;
- v.cellWidthMin = 1;
- v.cellWidthSpec = 'Fixed';
- v.crosshairColor = 'gray';
- v.crosshairOpacity = 20;
- v.crosshairType = 'Header';
- v.theme = null;
- v.cssOnly = true;
- v.days = 1;
- v.drawBlankCells = true;
- v.durationBarColor = 'blue';
- v.durationBarHeight = 3;
- v.durationBarMode = 'Duration';
- v.durationBarVisible = true;
- v.dynamicEventRendering = 'Progressive';
- v.dynamicEventRenderingMargin = 50;
- v.dynamicEventRenderingCacheSize = 200;
- v.dynamicEventRenderingCacheSweeping = false;
- v.dynamicLoading = false;
- v.emptyBackColor = '#FFFFFF';
- v.eventBorderColor = '#000000';
- v.eventBorderVisible = true;
- v.eventBackColor = '#ffffff';
- v.eventCorners = 'Regular';
- v.eventEndSpec = 'DateTime';
- v.eventFontColor = '#000000';
- v.eventFontFamily = 'Tahoma, Arial, sans-serif';
- v.eventFontSize = '11px';
- v.eventHeight = 25;
- v.eventMoveMargin = 5;
- v.eventMoveSkipNonBusiness = false;
- v.eventStackingLineHeight = 100;
- v.eventResizingStartEndEnabled = false;
- v.eventMovingStartEndEnabled = false;
- v.timeRangeSelectingStartEndEnabled = false;
- v.eventResizingStartEndFormat = 'MMMM d, yyyy';
- v.eventMovingStartEndFormat = 'MMMM d, yyyy';
- v.timeRangeSelectingStartEndFormat = 'MMMM d, yyyy';
- v.eventMoveToPosition = false;
- v.eventResizeMargin = 5;
- v.floatingEvents = true;
- v.floatingTimeHeaders = true;
- v.groupConcurrentEvents = false;
- v.groupConcurrentEventsLimit = 1;
- v.headerFontColor = '#000000';
- v.headerFontFamily = 'Tahoma, Arial, sans-serif';
- v.headerFontSize = '8pt';
- v.headerHeight = 20;
- v.height = 0;
- v.heightSpec = 'Auto';
- v.hideBorderFor100PctHeight = false;
- v.hideUntilInit = false;
- v.hourBorderColor = '#EAD098';
- v.hourFontFamily = 'Tahoma, Arial, sans-serif';
- v.hourFontSize = '10pt';
- v.hourNameBackColor = '#ECE9D8';
- v.hourNameBorderColor = '#ACA899';
- v.linkBottomMargin = 12;
- v.loadingLabelText = 'Loading...';
- v.loadingLabelVisible = true;
- v.loadingLabelFontSize = '10pt';
- v.loadingLabelFontFamily = 'Tahoma, Arial, sans-serif';
- v.loadingLabelFontColor = '#ffffff';
- v.loadingLabelBackColor = 'red';
- v.locale = 'pl-pl';
- v.messageBarPosition = 'Top';
- v.messageHideAfter = 5000;
- v.messageHideOnMouseOut = true;
- v.moveBy = 'Full';
- v.multiSelectRectangle = 'Disabled';
- v.notifyCommit = 'Immediate';
- v.snapToGrid = true;
- v.layout = 'Auto';
- v.progressiveRowRendering = true;
- v.progressiveRowRenderingPreload = 25;
- v.rowMarginBottom = 0;
- v.rowMarginTop = 0;
- v.rowMinHeight = 0;
- v.rowHeaderColumns = null;
- v.rowHeaderHideIconEnabled = false;
- v.rowHeaderScrolling = false;
- v.rowHeaderWidth = 80;
- v.rowHeaderWidthAutoFit = true;
- v.rowHeaderCols = null;
- v.scale = 'CellDuration';
- v.scrollDelayDynamic = 500;
- v.scrollDelayCells = 20;
- v.scrollDelayEvents = 200;
- v.scrollDelayFloats = 0;
- v.shadow = 'Fill';
- v.showBaseTimeHeader = true;
- v.showNonBusiness = false;
- v.showToolTip = true;
- v.startDate = '2017-01-22T00:00:00';
- v.syncResourceTree = true;
- v.tapAndHoldTimeout = 500;
- v.timeBreakColor = '#000000';
- v.timeFormat = 'Auto';
- v.treeEnabled = false;
- v.treeIndent = 20;
- v.treeImageCollapse = null;
- v.treeImageExpand = null;
- v.treeImageNoChildren = null;
- v.treeImageMarginLeft = 5;
- v.treeImageMarginTop = 5;
- v.treePreventParentUsage = false;
- v.useEventBoxes = 'Always';
- v.viewType = 'Resources';
- v.weekStarts = 1;
- v.eventClickHandling = 'Disabled';
- v.eventSelectHandling = 'JavaScript';
- v.eventDeleteHandling = 'CallBack';
- v.eventDoubleClickHandling = 'Disabled';
- v.eventEditHandling = 'CallBack';
- v.eventMoveHandling = 'CallBack';
- v.eventResizeHandling = 'CallBack';
- v.eventRightClickHandling = 'ContextMenu';
- v.resourceCollapseHandling = 'Disabled';
- v.resourceExpandHandling = 'Disabled';
- v.rowClickHandling = 'Disabled';
- v.rowCreateHandling = 'Disabled';
- v.rowDoubleClickHandling = 'JavaScript';
- v.rowEditHandling = 'JavaScript';
- v.rowMoveHandling = 'Disabled';
- v.rowSelectHandling = 'JavaScript';
- v.timeRangeDoubleClickHandling = 'Disabled';
- v.timeRangeSelectedHandling = 'Disabled';
- v.onBeforeCellRender = function(args) { ; };
- v.onBeforeRowHeaderRender = function(args) { ; };
- v.onEventClick = function(e) { ; };
- v.onEventSelect = function(e, change) { ; };
- v.onEventDelete = function(e) { ; };
- v.onEventDoubleClick = function(e) { ; };
- v.onEventEdit = function(e, newText) { ; };
- v.onEventMove = function(e, newStart, newEnd, newResource, external, ctrl, shift, position, multimove) { var newColumn = newResource; ; };
- v.onEventMoving = function(args) { ; };
- v.onEventResize = function(e, newStart, newEnd) { ; };
- v.onEventRightClick = function(e) { ; };
- v.onRowClick = function(row) { var resource = row; ; };
- v.onRowDoubleClick = function(row) { ; };
- v.onRowCreate = function(args) { ; };
- v.onRowEdit = function(row, newText) { ; };
- v.onRowMove = function(source, target, position) { ; };
- v.onRowSelect = function(row) { ; };
- v.onResourceCollapse = function(resource) { ; };
- v.onResourceExpand = function(resource) { ; };
- v.onTimeRangeDoubleClick = function(start, end, resource) { ; };
- v.onTimeRangeSelected = function(start, end, resource, multirange) { ; };
- v.afterEventRender = function(e, div) { ; };
- v.afterRender = function(data, isCallBack) { ; };
- v.onCallBackStart = function(args) { ; };
- v.onCallBackEnd = function(args) { ; };
- v.onDimensionsChanged = function(args) { ; };
- v.onTimeRangeSelecting = function(args) { ; };
- v.onRectangleEventSelecting = function(args) { ; };
- v.onRectangleEventSelect = function(args) { ; };
- v.onRectangleEventSelected = function(args) { ; };
- v.onEventResizing = function(args) { ; };
- v.separators = [];
- v.resources = [];
- v.links.list = null;
- v.timeHeaders = [{"groupBy":"Month","format":"dd MMMM yyyy"},{"groupBy":"Hour","format":null},{"groupBy":"Cell","format":null}];
- v.onAjaxError = function(args) { var request = args.request; if (DayPilot.Modal) { new DayPilot.Modal().showHtml(args.request.responseText); } else { alert('AJAX callback error (500)'); }; };
- 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}));
- v.init();
- var dps = v;
- </script>
- <div>
- <ul id="external">
- <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>
- <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>
- <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>
- </ul>
- </div>
- <script type="text/javascript">
- $(document).ready(function makeDraggable() {
- var parent = document.getElementById("external");
- var items = parent.getElementsByTagName("li");
- for (var i = 0; i < items.length; i++) {
- var e = items[i];
- var item = {
- element: e,
- id: e.getAttribute("data-id"),
- text: e.innerText,
- duration: e.getAttribute("data-duration"),
- keepElement: true
- };
- DayPilot.Scheduler.makeDraggable(item);
- }
- })
- </script>
- <script type="text/javascript">
- function modal(url) {
- var m = new DayPilot.Modal();
- m.closed = function() {
- if(this.result == "OK") {
- dps.commandCallBack('refresh');
- }
- dps.clearSelection();
- };
- m.showUrl(url);
- }
- </script>
- <hr style="clear:both"/>
- <footer style="clear:both">
- <p>© 2017 - My ASP.NET Application</p>
- </footer>
- </div>
- <script src="/Scripts/bootstrap.js"></script>
- <script src="/Scripts/respond.js"></script>
- <!-- Visual Studio Browser Link -->
- <script type="application/json" id="__browserLink_initializationData">
- {"appName":"Chrome","requestId":"17801894140f42f58e50a8b302b1914c"}
- </script>
- <script type="text/javascript" src="http://localhost:10454/c982c94e4e9243948396acd40ff4beb8/browserLink" async="async"></script>
- <!-- End Browser Link -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement