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 { | |
| width: 100px; | |
| height: 100px; | |
| margin: 10px; | |
| padding: 0; | |
| border: 1px solid rgba(0,0,0,0.5); | |
| border-radius: 10px 10px 2px 2px; | |
| background: rgba(0,0,0,0.25); | |
| box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3); | |
| -o-box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3); |
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
| List<DepartmentEntity> listDept = new List<DepartmentEntity>{ | |
| new DepartmentEntity(){DepId=1,DepName="1部门",ParentId=0,Description="超级管理员",ShowOrder=1,IsShow=0}, | |
| new DepartmentEntity(){DepId=2,DepName="2部门",ParentId=0,Description="管理员",ShowOrder=2,IsShow=0}, | |
| new DepartmentEntity(){DepId=3,DepName="jjj",ParentId=0,Description="jjj",ShowOrder=3,IsShow=0}, | |
| new DepartmentEntity(){DepId=4,DepName="jiui",ParentId=1,Description="jjjjyyuuu",ShowOrder=4,IsShow=0}, | |
| new DepartmentEntity(){DepId=5,DepName="dd",ParentId=4,Description="jjj",ShowOrder=3,IsShow=0}, | |
| new DepartmentEntity(){DepId=6,DepName="fff",ParentId=5,Description="jjjjyyuuu",ShowOrder=4,IsShow=0} | |
| }; | |
| var listDeptByID = listDept.Where(q => q.ParentId == id).Select(s => |
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
| <script type="text/javascript"> | |
| window.UEDITOR_HOME_URL = "/Content/Editor/"; | |
| window.UEDITOR_IMAGE_LIST = '@Url.Action("GetAttachmentList", | |
| "Article", new{isStandalone=false,articleId=Model.ArticleId})'; | |
| </script> | |
| <script src="@Url.Content("~/Content/Editor/editor_all_min.js")" type="text/javascript"></script> | |
| <script src="@Url.Content("~/Content/Editor/editor_config.js")" type="text/javascript"></script> |
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($) { | |
| Drupal.behaviors.textarea = { | |
| attach: function(context, settings) { | |
| $('.form-textarea-wrapper.resizable', context).once('textarea', function() { | |
| var staticOffset = null; | |
| var textarea = $(this).addClass('resizable-textarea').find('textarea'); | |
| var grippie = $('<div class="grippie"></div>').mousedown(startDrag); | |
| grippie.insertAfter(textarea); |
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
| public List<Info> ListItem(Query query, int currentPage, int pageSize, out int totalPage) | |
| { | |
| IEnumerable<Info> items=base.Query.Where(t => t.ID == query.Ids.FirstOrDefault() && (!t.ServerStatus.HasValue||t.ServerStatus.Value != Deleted)); | |
| int total = items.Count(); | |
| double pageCount = Math.Ceiling((double)total /(double)pageSize); | |
| totalPage =(int)pageCount ; | |
| if (currentPage >= totalPage) | |
| { | |
| currentPage = totalPage; | |
| } |