-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
106 additions
and
132 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#filepick a{padding: 55px 15px;} | ||
#filepick{text-align: center;vertical-align: middle; width: 140px; height: 130px} | ||
.webuploader-pick{padding: 50px 50px; background: #fff; } | ||
#uploader-demo{margin-top:20px;width: 142px; border: 1px dashed #ccc} | ||
.flag span{margin-right: 10px;} | ||
input[type=checkbox], input[type=radio]{margin:0px;} | ||
.row {margin-top: 15px;} | ||
.modal-backdrop{background-color: #fff;} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Created by livi on 16/4/19. | ||
*/ | ||
//文章搜索 | ||
$("#search_article").on('click',function(){ | ||
var searchTxt=$("#searchText").val(); | ||
window.location.href="/admin/content/index?page=1&pagesize=10&search="+searchTxt; | ||
}) | ||
$("#markselect").on('change',function(){ | ||
var filter=$(this).val(); | ||
window.location.href="/admin/content/index?page=1&pagesize=10&type="+filter; | ||
}) | ||
$('.delete').bind('click', function () { | ||
var delId = $(this).attr("del-id"); | ||
var delids = []; | ||
delids.push(delId); | ||
var r = confirm("确定删除?"); | ||
if (r) { | ||
$.ajax({ | ||
url: '/admin/content/delsome', | ||
data: {delarr: delids, __CSRF__: G_csrf}, | ||
type: 'POST', | ||
success: function (json) { | ||
if (json.errno === 0) { | ||
alert("删除成功!"); | ||
window.location.href = "/admin/content"; | ||
} | ||
} | ||
}) | ||
} else { | ||
} | ||
}) | ||
var delsome = function () { | ||
var delids = []; | ||
$.each($('input[type="checkbox"]', 'tbody'), function (i, item) { | ||
if ($(item).is(':checked')) { | ||
delids.push($(this).val()); | ||
} | ||
}) | ||
var r = confirm("确定删除?"); | ||
if (r) { | ||
$.ajax({ | ||
url: '/admin/content/delsome', | ||
data: {delarr: delids, __CSRF__: G_csrf}, | ||
type: 'POST', | ||
success: function (json) { | ||
if (json.errno === 0) { | ||
alert("删除成功!"); | ||
window.location.href = "/admin/content"; | ||
} | ||
} | ||
}) | ||
} else { | ||
return false | ||
} | ||
} |