diff --git a/modules/poll/lang/lang.xml b/modules/poll/lang/lang.xml index e4749d412..c75b09144 100644 --- a/modules/poll/lang/lang.xml +++ b/modules/poll/lang/lang.xml @@ -118,7 +118,7 @@ - + @@ -142,6 +142,9 @@ + + + @@ -190,7 +193,7 @@ - + @@ -240,16 +243,11 @@ - - - - - - - \ No newline at end of file + + diff --git a/modules/poll/tpl/js/poll_admin.js b/modules/poll/tpl/js/poll_admin.js index 057e82569..2066e12bc 100644 --- a/modules/poll/tpl/js/poll_admin.js +++ b/modules/poll/tpl/js/poll_admin.js @@ -55,50 +55,6 @@ function completeMovePoll(ret_obj, response_tags) { winopen(url, 'pollTarget'); } -function getPollList() -{ - var pollListTable = jQuery('#pollListTable'); - var cartList = []; - pollListTable.find(':checkbox[name=cart]').each(function(){ - if(this.checked) cartList.push(this.value); - }); - - var params = new Array(); - var response_tags = ['error','message', 'poll_list']; - params["poll_srls"] = cartList.join(","); - - exec_xml('poll','procPollGetList',params, completeGetPollList, response_tags); -} - -function completeGetPollList(ret_obj, response_tags) -{ - var htmlListBuffer = ''; - - if(ret_obj['poll_list'] == null) - { - htmlListBuffer = '' + - ''+ret_obj['message']+'' + - ''; - } - else - { - var poll_list = ret_obj['poll_list']['item']; - if(!jQuery.isArray(poll_list)) poll_list = [poll_list]; - for(var x in poll_list) - { - var objPoll = poll_list[x]; - htmlListBuffer += '' + - ''+objPoll.title+'' + - ''+objPoll.poll_count+'' + - ''+objPoll.nick_name+'' + - '' + - ''; - } - jQuery('#selectedPollCount').html(poll_list.length); - } - jQuery('#pollManageListTable>tbody').html(htmlListBuffer); -} - function checkSearch(form) { if(form.search_target.value == '') @@ -112,3 +68,24 @@ function checkSearch(form) return false; } } + +jQuery(function ($){ + $('#pollList').submit(function(e){ + var cnt = $('#pollList input[name=cart]:checked').length; + if(cnt == 0) + { + e.stopPropagation(); + alert(xe.lang.msg_select_poll); + return false; + } + + var msg = xe.lang.confirm_poll_delete.replace("%s", cnt); + if(!confirm(msg)) + { + e.stopPropagation(); + return false; + + } + }); + +}); diff --git a/modules/poll/tpl/poll_list.html b/modules/poll/tpl/poll_list.html index 448e7c486..9050c67a5 100644 --- a/modules/poll/tpl/poll_list.html +++ b/modules/poll/tpl/poll_list.html @@ -1,69 +1,75 @@ {$XE_VALIDATOR_MESSAGE} - + + {$lang->poll} + + + + - {$lang->poll} - - - - All({number_format($total_count)}) - {$lang->poll_manager}... - - - - {$lang->title} - {$lang->poll_checkcount} - {$lang->poll_join_count} - {$lang->author} - {$lang->regdate} - {$lang->poll_stop_date} - - - - - - {$lang->title} - {$lang->poll_checkcount} - {$lang->poll_join_count} - {$lang->author} - {$lang->regdate} - {$lang->poll_stop_date} - - - - - - - {$val->title} - {$lang->single_check}{$lang->multi_check} - {$val->poll_count} - {$val->nick_name} - {zdate($val->poll_regdate,"Y-m-d H:i")} - {zdate($val->poll_stop_date,"Y-m-d")} - - - - - - - - - {$lang->poll_manager}... - + + + + + + All({number_format($total_count)}) + + + + {$lang->title} + {$lang->poll_checkcount} + {$lang->poll_join_count} + {$lang->author} + {$lang->regdate} + {$lang->poll_stop_date} + + + + + + {$lang->title} + {$lang->poll_checkcount} + {$lang->poll_join_count} + {$lang->author} + {$lang->regdate} + {$lang->poll_stop_date} + + + + + + {$val->title} + {$lang->single_check}{$lang->multi_check} + {$val->poll_count} + {$val->nick_name} + {zdate($val->poll_regdate,"Y-m-d H:i")} + {zdate($val->poll_stop_date,"Y-m-d")} + + + + + + + + - + + + {$lang->poll_manager} + - {$lang->poll_manager} {$lang->selected_poll} @@ -83,49 +89,42 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; - - - - - - - - « FIRST - - {@$isGoTo = true} - 1 - ... - - + + + + « {$lang->first_page} + {@$last_page = $page_no} - {$page_no} - {$page_no} - - - {@$isGoTo = true} - ... - {$page_navigation->last_page} - - LAST » - - - Go - - - - - - - - - {$lang->search_target} - - selected="selected">{$val} - - - - - {$lang->cmd_cancel} - + + {$page_no} + {$page_no} + + + + ... + + + Go + + + last_page">{$lang->last_page} › + + + + + + + + + + {$lang->search_target} + {$val} + + + + {$lang->cmd_cancel} + + +
{$XE_VALIDATOR_MESSAGE}