mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
포인트 리셋기능 추가. 글/댓글/파일을 첨부한 사용자만 대상이고 그 외 회원은 일단 지워지고 나서 캐시파일 생성시 포인트 입력됨 (회원가입점수는 이때 적용)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3386 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4d6afe35fa
commit
4c2eabe9fa
19 changed files with 260 additions and 2 deletions
|
|
@ -8,6 +8,14 @@
|
|||
<col width="120" />
|
||||
<col width="120" />
|
||||
<col />
|
||||
<tr>
|
||||
<th scope="col">{$lang->cmd_point_recal}</th>
|
||||
<td colspan="3">
|
||||
<span class="button"><input type="button" value="{$lang->cmd_point_recal}" onclick="doPointRecal(); return false;"/></span>
|
||||
<p>{$lang->about_cmd_point_recal}</p>
|
||||
<div id="pointReCal"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">{$lang->max_level}</th>
|
||||
<td colspan="3">
|
||||
|
|
|
|||
|
|
@ -16,4 +16,36 @@ function exp_calc (form, reset) {
|
|||
point = eval("fo_obj.level_step_" + i)
|
||||
point.value = eval(exp.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 포인트를 전부 체크하여 재계산하는 action 호출
|
||||
**/
|
||||
function doPointRecal() {
|
||||
|
||||
var params = new Array();
|
||||
var response_tags = new Array('error','message','total', 'position');
|
||||
|
||||
exec_xml('point','procPointAdminReCal',params, completePointRecal, response_tags);
|
||||
}
|
||||
|
||||
function completePointRecal(ret_obj) {
|
||||
var total = ret_obj['total'];
|
||||
var message = ret_obj['message'];
|
||||
var position = ret_obj['position'];
|
||||
|
||||
if(position == total) {
|
||||
xInnerHtml('pointReCal', message);
|
||||
alert(message);
|
||||
location.reload();
|
||||
} else {
|
||||
xInnerHtml('pointReCal', message);
|
||||
|
||||
var params = new Array();
|
||||
params['position'] = position;
|
||||
params['total'] = total;
|
||||
var response_tags = new Array('error','message','total', 'position');
|
||||
|
||||
exec_xml('point','procPointAdminApplyPoint',params, completePointRecal, response_tags);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
<th>{$lang->point_download_file}</th>
|
||||
</tr>
|
||||
<!--@foreach($mid_list as $key => $val)-->
|
||||
<!--@if(in_array($val->module,array('guestbook','board','blog')))-->
|
||||
<tr>
|
||||
<th colspan="4" scope="col">{$val->browser_title} ({$val->mid})</th>
|
||||
</tr>
|
||||
|
|
@ -21,6 +22,7 @@
|
|||
<td><input type="text" name="download_file_{$val->module_srl}" value="{$config->module_point[$val->module_srl]['download_file']}" class="inputTypeText w80" /> {$config->point_name}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</table>
|
||||
|
||||
<!-- 버튼 -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue