This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <element name="studenci" xmlns="http://relaxng.org/ns/structure/1.0"> | |
| <zeroOrMore> | |
| <element name="student"> | |
| <attribute name="prywatny"> | |
| <choice> | |
| <value> | |
| tak | |
| </value> | |
| <value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private bool ValidateGuid(Guid guid) | |
| { | |
| Guid outGrid = Guid.Empty; | |
| if (!Guid.TryParse(guid.ToString(), out outGrid)) | |
| { | |
| return false; | |
| } | |
| return true; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private string GetLinkToAction(string actionName) | |
| { | |
| var confirmUrl = Request.Url.GetLeftPart(UriPartial.Authority) + Url.Action(actionName); | |
| return confirmUrl; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function autoresizeGrid() { | |
| var $grid = $(this); | |
| var columns = $grid.jqGrid('getGridParam', 'colModel'); | |
| var colsTotalWidth = 0; | |
| for (var i = 0; columns[i]; i++) { | |
| colsTotalWidth += columns[i].width; | |
| $grid.setColProp(columns[i].name, { width: columns[i].width, widthOrg: columns[i].width }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style type="text/css"> | |
| .ui-jqgrid tr.jqgrow td { word-wrap: break-word; /* IE 5.5+ and CSS3 */ white-space: pre-wrap; /* CSS3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ overflow: hidden; height: auto; vertical-align: middle; padding-top: 3px; padding-bottom: 3px; } | |
| /*.ui-jqgrid tr.jqgrow td { white-space: normal !important; height: auto; vertical-align: text-top; padding-top: 2px; }*/ | |
| th.ui-th-column div { word-wrap: break-word; /* IE 5.5+ and CSS3 */ white-space: pre-wrap; /* CSS3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ overflow: hidden; height: auto; vertical-align: middle; padding-top: 3px; padding-bottom: 3px; } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function LoadGrid(tableName, isSearch) { | |
| var colsModel = []; | |
| var colsNames = []; | |
| $.post('@Url.Action("GetColModel", "DataBase")?tableName=' + tableName, function (data) { | |
| var totalWidth = 0; | |
| $.each(data.data, function (index, object) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div style="width: 100%; height: 300px; position: relative"> | |
| <div style="width: 50%; height: 50%; position: absolute; margin: auto; top: 0; left: 0; bottom: 0; right: 0;"> | |
| somthing here will be centered | |
| </div> | |
| </div> | |
| <!-- http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/#Height --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.validator.setDefaults({ | |
| ignore: [] | |
| }); | |
| $(document).ready(function () { | |
| close_wait(); | |
| var tinyMceOptions = { | |
| mode: "exact", | |
| elements: "textAreaForTooltipText", |
NewerOlder