mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
issue 70 list count modified in content admin
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8854 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b87aedbd2b
commit
ac9bf88af4
13 changed files with 355 additions and 183 deletions
|
|
@ -31,3 +31,48 @@ function completeRestore(ret_obj)
|
|||
alert(message);
|
||||
if(error == '0') window.location.reload();
|
||||
}
|
||||
|
||||
function getTrashList()
|
||||
{
|
||||
var trashListTable = jQuery('#trashListTable');
|
||||
var cartList = [];
|
||||
trashListTable.find(':checkbox[name=cart').each(function(){
|
||||
if(this.checked) cartList.push(this.value);
|
||||
});
|
||||
|
||||
var params = new Array();
|
||||
var response_tags = ['error','message', 'trash_list'];
|
||||
params["trash_srls"] = cartList.join(",");
|
||||
|
||||
exec_xml('trash','procTrashAdminGetList',params, completeGetTrashList, response_tags);
|
||||
}
|
||||
|
||||
function completeGetTrashList(ret_obj, response_tags)
|
||||
{
|
||||
var htmlListBuffer = '';
|
||||
|
||||
if(ret_obj['trash_list'] == null)
|
||||
{
|
||||
htmlListBuffer = '<tr>' +
|
||||
'<td colspan="3" style="text-align:center;">'+ret_obj['message']+'</td>' +
|
||||
'</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
var trash_list = ret_obj['trash_list']['item'];
|
||||
|
||||
if(!jQuery.isArray(trash_list)) trash_list = [trash_list];
|
||||
for(var x in trash_list)
|
||||
{
|
||||
var objTrash = trash_list[x];
|
||||
htmlListBuffer += '<tr>' +
|
||||
'<td class="title">'+ objTrash.title +'</td>' +
|
||||
'<td>'+ objTrash.nickName +'</td>' +
|
||||
'<td>'+ objTrash.ipaddress +'</td>' +
|
||||
'</tr>' +
|
||||
'<input type="hidden" name="cart[]" value="'+objTrash.trashSrl+'" />';
|
||||
}
|
||||
jQuery('#selectedTrashCount').html(trash_list.length);
|
||||
}
|
||||
jQuery('#trashManageListTable>tbody').html(htmlListBuffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue