mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
issue 46 apply validator to point module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8544 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
13bf055f34
commit
a765754a07
18 changed files with 92 additions and 18 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<!--%import("filter/insert_config.xml")-->
|
||||
<!--#include("./header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_config);">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form ruleset="insertConfig" action="./" method="post">
|
||||
<input type="hidden" name="act" value="procPointAdminInsertConfig" />
|
||||
|
||||
<div class="adminLeftContent">
|
||||
|
||||
|
|
|
|||
|
|
@ -52,15 +52,14 @@ function doPointRecal() {
|
|||
);
|
||||
}
|
||||
|
||||
function updatePoint(member_srl, action)
|
||||
function updatePoint(member_srl)
|
||||
{
|
||||
var $point = jQuery('#point_'+member_srl);
|
||||
get_by_id('update_member_srl').value = member_srl;
|
||||
get_by_id('update_action').value = action;
|
||||
get_by_id('update_point').value = $point.attr('value');
|
||||
get_by_id('update_point').value = $point.val();
|
||||
|
||||
var hF = get_by_id('updateForm');
|
||||
procFilter(hF, update_point);
|
||||
hF.submit();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<!--%import("filter/update_point.xml")-->
|
||||
<!--%import("js/point_admin.js")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<p>{$lang->point_update_desc}</p>
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
||||
<thead>
|
||||
|
|
@ -26,9 +27,7 @@
|
|||
<input type="hidden" name="member_srl" value="{$val->member_srl}" />
|
||||
<input type="text" name="orgpoint" value="{$val->point}" class="inputTypeText w80" readonly />
|
||||
<input type="text" id="point_{$val->member_srl}" name="point" class="inputTypeText w80" />
|
||||
<span class="button"><input type="button" value="+" onclick="updatePoint({$val->member_srl}, 'add')"/></span>
|
||||
<span class="button"><input type="button" value="-" onclick="updatePoint({$val->member_srl}, 'minus')"/></span>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_update}" onclick="updatePoint({$val->member_srl}, 'update')" /></span>
|
||||
<span class="button"><input type="button" value="{$lang->cmd_update}" onclick="updatePoint({$val->member_srl})" /></span>
|
||||
</form>
|
||||
</td>
|
||||
<td class="number center">{$val->level}</td>
|
||||
|
|
@ -37,8 +36,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<form id="updateForm" action="./" method="POST">
|
||||
<input type="hidden" id="update_action" name="action" value="" />
|
||||
<form ruleset="updatePoint" id="updateForm" action="./" method="POST">
|
||||
<input type="hidden" name="act" value="procPointAdminUpdatePoint" />
|
||||
<input type="hidden" id="update_member_srl" name="member_srl" value="" />
|
||||
<input type="hidden" id="update_point" name="point" class="inputTypeText w80" />
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<!--%import("filter/insert_module_config.xml")-->
|
||||
<!--#include("./header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_module_config);" id="fo_point">
|
||||
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
|
||||
<form action="./" method="post" id="fo_point">
|
||||
<input type="hidden" name="act" value="procPointAdminInsertModuleConfig" />
|
||||
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<thead>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue