Issue 2390. [Admin UI Refactoring] Content > Data Migration. Fixed.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11746 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-10-17 02:42:38 +00:00
parent 13fb6ee7ad
commit 31d0a99a39
6 changed files with 46 additions and 46 deletions

View file

@ -1,26 +1,24 @@
<include target="./header.html" />
<load target="js/importer_admin.js" usecdn="true" />
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form class="section" action="./" method="get" onsubmit="return doPreProcessing(this, 'documentForm')" id="documentForm">
<input type="hidden" name="act" value="" />
<input type="hidden" name="type" value="module" />
<input type="hidden" name="unit_count" value="10" />
<h1>{$lang->type_module}</h1>
<h2>{$lang->type_module}</h2>
<div class="x_control-group x_input-append checkxml">
<label>{$lang->xml_path}</label>
<input type="text" name="xml_file" value="./" />
<button type="button" class="x_btn">{$lang->cmd_check_path}</button>
<span class="x_help-inline" style="font-size:13px"></span>
</div>
<div class="x_control-group x_input-append xml ttxml">
<div class="x_control-group xml ttxml">
<label>{$lang->data_destination}</label>
<input type="text" name="target_module" class="module_search" />
</div>
<div class="x_control-group x_input-append ttxml">
<div class="x_control-group ttxml">
<label>{$lang->guestbook_destination}</label>
<input type="text" name="guestbook_target_module" class="module_search" />
</div>
@ -36,11 +34,10 @@
<button type="submit" class="x_btn x_btn-primary">{$lang->importer}</button>
</div>
</form>
<form class="section" action="./" method="get" onsubmit="return doPreProcessing(this, 'memberForm')" id="memberForm">
<input type="hidden" name="type" value="member" />
<input type="hidden" name="unit_count" value="100" />
<h1>{$lang->type_member}</h1>
<h2>{$lang->type_member}</h2>
<div class="x_control-group x_input-append checkxml">
<label>{$lang->xml_path}</label>
<input type="text" name="xml_file" value="./" />
@ -55,11 +52,10 @@
<button type="submit" class="x_btn x_btn-primary">{$lang->importer}</button>
</div>
</form>
<form class="section" action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="message" />
<input type="hidden" name="unit_count" value="100" />
<h1>{$lang->type_message}</h1>
<h2>{$lang->type_message}</h2>
<div class="x_control-group x_input-append checkxml">
<label>{$lang->xml_path}</label>
<input type="text" name="xml_file" value="./" />
@ -71,8 +67,8 @@
</div>
</form>
<a href="#process" class="modalAnchor"></a>
<div class="x_modal" id="process" style="display:none;">
<form action="./" method="get" onsubmit="return doImport()" id="fo_process" class="fg">
<div class="x_modal" id="process">
<form action="./" method="get" onsubmit="return doImport()" id="fo_process">
<input type="hidden" name="type" value="" />
<input type="hidden" name="total" value="" />
<input type="hidden" name="cur" value="" />
@ -81,21 +77,17 @@
<input type="hidden" name="guestbook_target_module" value="" />
<input type="hidden" name="unit_count" value="100" />
<input type="hidden" name="user_id" value="" />
<p style="text-align:center">
<span class="prgrs prgrsMedium">
<div class="x_modal-header">
<h3 id="preProgressMsg">{$lang->preprocessing}</h3>
<h3 id="progressMsg" style="display:none;">{$lang->import_step_desc[99]}</h3>
</div>
<div class="x_modal-body">
<div class="x_progress x_progress-striped x_active">
<div class="x_bar" id="progressBar" style="width: 0%"></div>
</div>
<strong id="progressPercent">0%</strong>
(<span class="pNum"><span id="completeCount">0</span>/<span id="totalCount">0</span></span>)
</div>
</span>
</p>
<div class="x_modal-header">
<h3 id="preProgressMsg">{$lang->preprocessing}</h3>
<h3 id="progressMsg" style="display:none;">{$lang->import_step_desc[99]}</h3>
</div>
<div class="x_modal-body">
<div class="x_progress x_progress-striped x_active">
<div class="x_bar" id="progressBar" style="width: 0%"></div>
</div>
<strong id="progressPercent">0%</strong>
(<span id="completeCount">0</span>/<span id="totalCount">0</span>)
</div>
</form>
</div>
<script>

View file

@ -72,7 +72,7 @@ $('.checkxml')
})
.end()
.find('.x_help-inline').hide().end()
.closest('form').find('>.ttxml').hide().end().end()
.closest('form').find('>.ttxml')/*.hide()*/.end().end()
.closest('form').find(':submit').attr('disabled','disabled');
// hide 'sync member' block
@ -109,7 +109,7 @@ function doPreProcessing(form, formId) {
// show modal window
$process = $('#process');
if(!$process.find('.bg').length) $process.prepend('<span class="bg" />').appendTo('body');
if(!$('body').children('.x_modal-backdrop').length) $('body').append('<div class="x_modal-backdrop" />');
$('a[href="#process"].modalAnchor').trigger('open.mw');
exec_xml(