mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1423 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6503a6d593
commit
469bd4da53
6 changed files with 53 additions and 9 deletions
|
|
@ -6,5 +6,7 @@
|
|||
<response callback_func="completeImport">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="is_finished" />
|
||||
<tag name="position" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
|
|||
|
|
@ -80,15 +80,21 @@
|
|||
|
||||
<!-- step 2. XML 파일 지정 -->
|
||||
<div id="step2" style="display:none">
|
||||
<form action="./" method="get" onsubmit="return doStep2(this)">
|
||||
<form action="./" method="get" onsubmit="return doStep2(this)" id="fo_step2">
|
||||
<input type="hidden" name="module_srl" value="" />
|
||||
<input type="hidden" name="category_srl" value="" />
|
||||
<input type="hidden" name="position" value="0" />
|
||||
<div style="font-weight:bold">{$lang->import_step_title[2]}</div>
|
||||
<div>{$lang->import_step_desc[2]}</div>
|
||||
<div>
|
||||
<input type="text" name="xml_file" value="./" />
|
||||
<input type="submit" value="{$lang->cmd_next}" />
|
||||
</div>
|
||||
<div id="step2_status" style="display:none">
|
||||
<div>{$lang->msg_importing}</div>
|
||||
<div id="step2_position"></div>
|
||||
<div><input type="button" onclick="procFilter(); return false" value="{$lang->cmd_continue}" /></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -76,11 +76,29 @@ function doStep2(fo_obj) {
|
|||
}
|
||||
|
||||
procFilter(fo_obj, import_xml);
|
||||
|
||||
xGetElementById('step2_status').style.display = 'block';
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Step Complete Import */
|
||||
function completeImport(ret_obj) {
|
||||
alert(ret_obj["message"]);
|
||||
location.href = location.href;
|
||||
var message = ret_obj['message'];
|
||||
var is_finished = ret_obj['is_finished'];
|
||||
var position = ret_obj['position'];
|
||||
|
||||
if(is_finished=='Y') {
|
||||
alert(ret_obj["message"]);
|
||||
location.href = location.href;
|
||||
} else {
|
||||
var fo_obj = xGetElementById('fo_step2');
|
||||
fo_obj.position.value = position;
|
||||
xInnerHtml('step2_position', position);
|
||||
procFilter(fo_obj, import_xml);
|
||||
}
|
||||
}
|
||||
|
||||
function doManualProcess() {
|
||||
var fo_obj = xGetElementById('fo_step2');
|
||||
procFilter(fo_obj, import_xml);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue