mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
108 lines
3.4 KiB
HTML
108 lines
3.4 KiB
HTML
<!--%import("filter/manage_checked_document.xml")-->
|
|
<style type="text/css">
|
|
.dot-line {border-bottom:1px dotted #ddd; padding:8px 0;}
|
|
#progress-box {visibility:hidden;padding:10px;}
|
|
.btn-proc { padding:40px 0; text-align:right;}
|
|
.btn-proc label {float:right; margin-left:20px;}
|
|
#spam_description {width:98%}
|
|
</style>
|
|
|
|
<div class="x_modal-header">
|
|
<h1>{$lang->cmd_spammer}</h1>
|
|
<a class="close_window" href="javascript:window.close()">×</a>
|
|
</div>
|
|
|
|
<form action="./" method="post" id="fo_management" onsubmit="return doSpammerManage();">
|
|
<input type="hidden" name="module" value="member" />
|
|
<input type="hidden" name="act" value="procMemberSpammerManage" />
|
|
<input type="hidden" name="proc_type" value="" />
|
|
<input type="hidden" name="member_srl" value="{$spammer_info->member_srl}" />
|
|
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
|
<input type="hidden" name="cnt_loop" value="1" />
|
|
<div class="x_modal-body x_form-horizontal" style="max-height:none">
|
|
<div class="dot-line">{$lang->spammer_description}</div>
|
|
<div class="dot-line">{$lang->nick_name} : <span class="nick_name">{$spammer_info->nick_name}</span></div>
|
|
|
|
<div class="dot-line">
|
|
<p>{$lang->about_member_description}</p>
|
|
<textarea name="spam_description" id="spam_description" cols="400" rows="3"></textarea>
|
|
</div>
|
|
<div class="btn-proc" >
|
|
<label for="to_trash"><input type="checkbox" name="to_trash" value="Y" checked="checked" id="to_trash" />{$lang->spammer_move_to_trash}</label>
|
|
<button class="x_btn x_btn-danger" type="submit"/>{$lang->btn_spammer_delete_all}</button>
|
|
</div>
|
|
|
|
<div id="progress-box">
|
|
<div id="progress-info">0%</div>
|
|
<div class="x_progress x_progress-striped x_active">
|
|
<div class="x_bar" id="progressBar" style="width: 0%"></div>
|
|
</div>
|
|
<div class="stop"><button class="x_btn" type="button" onclick="cancelSpammerManage();">{$lang->stop}</button></div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script type="text/javascript">
|
|
var bSpammerManageProc = true;
|
|
var form_info = "";
|
|
function doSpammerManage( args ) {
|
|
|
|
if( args == undefined ) {
|
|
if(!confirm('{$lang->confirm_process}')) return false;
|
|
|
|
var args = {};
|
|
var vals = jQuery('#fo_management').serializeArray();
|
|
for( var i in vals ) {
|
|
args[vals[i].name] = vals[i].value;
|
|
}
|
|
|
|
// reset form
|
|
args.proc_type = "trash";
|
|
if( jQuery('#to_trash').attr( 'checked' ) != "checked" )
|
|
args.proc_type = "delete";
|
|
|
|
args.cnt_loop =1;
|
|
|
|
form_info = args;
|
|
|
|
jQuery('#progress-box').css('visibility','visible');
|
|
jQuery('[type=submit]').hide();
|
|
|
|
bSpammerManageProc = true;
|
|
}
|
|
|
|
jQuery.exec_json( form_info.module + '.' + form_info.act, args, progressSpammerManage );
|
|
|
|
return false; // don't page move
|
|
}
|
|
|
|
function progressSpammerManage( data ) {
|
|
|
|
setTimeout( function() {
|
|
var info = data.progress + '%';
|
|
jQuery('#progressBar').width(data.progress + '%');
|
|
|
|
if( data.total_count != undefined && parseInt( data.total_count ) > 0 ) {
|
|
var doc_count = parseInt( data.total_count ) - parseInt( data.remain_count );
|
|
info = info + ' (' + doc_count + ' / ' + data.total_count + ')';
|
|
}
|
|
|
|
jQuery('#progress-info').text( info );
|
|
|
|
if(data.remain_count <= 0 || bSpammerManageProc === false) {
|
|
jQuery('.stop').hide();
|
|
if(data.remain_count <= 0) {
|
|
alert('{$lang->msg_spammer_complete}');
|
|
} else {
|
|
jQuery('#progress-info').text(data.progress + '% ({$lang->stop})');
|
|
}
|
|
return;
|
|
}
|
|
|
|
doSpammerManage( data );
|
|
}, 500 );
|
|
}
|
|
|
|
function cancelSpammerManage() {
|
|
bSpammerManageProc = false;
|
|
}
|
|
</script>
|