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")} - -
- +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 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")} + +
+
+
-