mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Issue 2390. [Admin UI Refactoring] Content > Data Migration. ing...
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11741 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4375870a34
commit
e26413fe4e
6 changed files with 68 additions and 130 deletions
|
|
@ -1,10 +1,7 @@
|
|||
<!--@if(__DEBUG__)-->
|
||||
<load target="js/importer_admin.js" usecdn="true" />
|
||||
<!--@else-->
|
||||
<load target="js/importer_admin.min.js" usecdn="true" />
|
||||
<!--@end-->
|
||||
<load cond="__DEBUG__" target="js/importer_admin.js" usecdn="true" />
|
||||
<load cond="!__DEBUG__" target="js/importer_admin.min.js" usecdn="true" />
|
||||
{@ $type_list = array('module'=>$lang->type_module, 'ttxml'=>$lang->type_ttxml, 'member'=>$lang->type_member, 'sync'=>$lang->type_syncmember, 'message'=>$lang->type_message) }
|
||||
<div class="x_page-header">
|
||||
<h1>{$lang->importer}</h1>
|
||||
<h1>{$lang->importer}</h1>
|
||||
</div>
|
||||
<p>{nl2br($lang->about_importer)}</p>
|
||||
|
|
|
|||
|
|
@ -5,108 +5,67 @@
|
|||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<section class="section">
|
||||
<h1>{$lang->type_module}</h1>
|
||||
<form action="./" method="get" onsubmit="return doPreProcessing(this, 'documentForm')" id="documentForm">
|
||||
<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" />
|
||||
<div class="x_control-group">
|
||||
<p class="q">{$lang->xml_path} {$lang->path_info}</p>
|
||||
<p class="a checkxml">
|
||||
<input type="text" name="xml_file" value="./" />
|
||||
<button type="button" class="x_btn">{$lang->cmd_check_path}</button>
|
||||
<em class="desc"></em><!--//class="error|success"-->
|
||||
</p>
|
||||
<h1>{$lang->type_module}</h1>
|
||||
<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="xml ttxml modulefinder x_control-group">
|
||||
<p class="q">{$lang->data_destination} <br />{$lang->import_desc}</p>
|
||||
<p class="a">
|
||||
<input type="text" name="site_keyword" /> <a href="#suggestion1" class="tgAnchor findsite x_btn">{$lang->find_site}</a>
|
||||
<div id="suggestion1" class="tgContent suggestion">
|
||||
<ul></ul>
|
||||
</div>
|
||||
</p>
|
||||
<p class="a">
|
||||
<select class="moduleList" style="width:290px">
|
||||
<option>{$lang->select_module}</option>
|
||||
</select>
|
||||
</p>
|
||||
<p class="a">
|
||||
<select class="moduleIdList" style="width:290px" name="target_module">
|
||||
<option>{$lang->select_module_id}</option>
|
||||
</select>
|
||||
</p>
|
||||
<div class="x_control-group x_input-append xml ttxml">
|
||||
<label>{$lang->data_destination}</label>
|
||||
<input type="text" name="target_module" class="module_search" />
|
||||
</div>
|
||||
<div class="ttxml modulefinder x_control-group">
|
||||
<p class="q">{$lang->guestbook_destination}</p>
|
||||
<div class="a">
|
||||
<input type="text" name="site_keyword" /> <a href="#suggestion3" class="tgAnchor findsite x_btn">{$lang->find_site}</a>
|
||||
<div id="suggestion3" class="tgContent suggestion">
|
||||
<ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
<p class="a">
|
||||
<select class="moduleList" style="width:290px">
|
||||
<option>{$lang->select_module}</option>
|
||||
</select>
|
||||
</p>
|
||||
<p class="a">
|
||||
<select class="moduleIdList" style="width:290px" name="guestbook_target_module">
|
||||
<option>{$lang->select_module_id}</option>
|
||||
</select>
|
||||
</p>
|
||||
<div class="x_control-group x_input-append ttxml">
|
||||
<label>{$lang->guestbook_destination}</label>
|
||||
<input type="text" name="guestbook_target_module" class="module_search" />
|
||||
</div>
|
||||
<div class="ttxml x_control-group">
|
||||
<p class="q">{$lang->about_ttxml_user_id}</p>
|
||||
<p class="a"><input type="text" name="user_id" value="{$logged_info->user_id}" /></p>
|
||||
<label>{$lang->about_ttxml_user_id}</label>
|
||||
<input type="text" name="user_id" value="{$logged_info->user_id}" />
|
||||
</div>
|
||||
<div class="syncmember x_control-group">
|
||||
<p class="q">{$lang->import_step_desc[3]}</p>
|
||||
<p class="a"><input type="checkbox" name="isSync" value="Y" /> {$lang->type_syncmember}</p>
|
||||
<label><input type="checkbox" name="isSync" value="Y" /> {$lang->type_syncmember}</label>
|
||||
<p class="x_help-block">{$lang->import_step_desc[3]}</p>
|
||||
</div>
|
||||
<div class="btnArea x_control-group">
|
||||
<button type="submit" class="x_btn x_btn-primary">{$lang->importer}</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<form 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" />
|
||||
<h2>{$lang->type_member}</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p class="q">{$lang->xml_path} {$lang->path_info}</p>
|
||||
<p class="a checkxml">
|
||||
<input type="text" name="xml_file" value="./" />
|
||||
<button type="button" class="x_btn">{$lang->cmd_check_path}</button>
|
||||
<em class="desc">{$lang->msg_no_xml_file}</em>
|
||||
</p>
|
||||
</li>
|
||||
<li class="syncmember">
|
||||
<p class="q">{$lang->import_step_desc[3]}</p>
|
||||
<p class="a"><input type="checkbox" name="isSync" value="Y" /> {$lang->type_syncmember}</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<button type="submit" class="x_btn x_btn-primary">{$lang->importer}</button>
|
||||
</div>
|
||||
</form>
|
||||
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
|
||||
|
||||
<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>
|
||||
<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">{$lang->msg_no_xml_file}</span>
|
||||
</div>
|
||||
<div class="x_control-group syncmember">
|
||||
<label><input type="checkbox" name="isSync" value="Y" /> {$lang->type_syncmember}</label>
|
||||
<p class="x_help-block">{$lang->import_step_desc[3]}</p>
|
||||
</div>
|
||||
<div class="btnArea">
|
||||
<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" />
|
||||
<h2>{$lang->type_message}</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p class="q">{$lang->xml_path} {$lang->path_info}</p>
|
||||
<p class="a checkxml">
|
||||
<input type="text" name="xml_file" value="./" />
|
||||
<button type="button" class="x_btn">{$lang->cmd_check_path}</button>
|
||||
<em class="desc"></em><!--//class="error|success"-->
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>{$lang->type_message}</h1>
|
||||
<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="btnArea">
|
||||
<button type="submit" class="x_btn x_btn-primary">{$lang->importer}</button>
|
||||
</div>
|
||||
|
|
@ -141,7 +100,7 @@
|
|||
</div>
|
||||
<script>
|
||||
jQuery('a.modalAnchor')
|
||||
.bind('before-close.mw', function(event){
|
||||
return false;
|
||||
});
|
||||
.bind('before-close.mw', function(event){
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ jQuery(function($){
|
|||
$('.checkxml')
|
||||
.find('input:text')
|
||||
.change(function(){
|
||||
$(this).closest('.checkxml').find('.desr').hide();
|
||||
$(this).closest('.checkxml').find('.x_help-inline').hide();
|
||||
})
|
||||
.end()
|
||||
.find('button')
|
||||
|
|
@ -22,7 +22,7 @@ $('.checkxml')
|
|||
$form = $this.closest('form');
|
||||
$container = $this.closest('.checkxml');
|
||||
$input = $container.find('input').prop('disabled', true).addClass('loading');
|
||||
$message = $container.find('.desc').hide();
|
||||
$message = $container.find('.x_help-inline').hide();
|
||||
|
||||
function on_complete(data) {
|
||||
var $ul, $ttxml, $xml;
|
||||
|
|
@ -35,7 +35,7 @@ $('.checkxml')
|
|||
|
||||
// when the file doesn't exists or any other error occurs
|
||||
if(data.error || data.exists != 'true') {
|
||||
$message.attr('class', 'desc error').fadeIn(300);
|
||||
$message.attr('class', 'x_help-inline').fadeIn(300);
|
||||
$ttxml = $ttxml.filter(':visible');
|
||||
$ttxml.eq(-1).slideUp(100, function(){
|
||||
$ttxml = $ttxml.slice(0,-1).eq(-1).slideUp(100,arguments.callee);
|
||||
|
|
@ -44,7 +44,7 @@ $('.checkxml')
|
|||
return restore();
|
||||
}
|
||||
|
||||
$message.attr('class', 'desc success').fadeIn(300);
|
||||
$message.attr('class', 'x_help-inline').fadeIn(300);
|
||||
$form.find(':submit').removeAttr('disabled');
|
||||
|
||||
$syncmember = $form.find('.syncmember:hidden');
|
||||
|
|
@ -71,7 +71,7 @@ $('.checkxml')
|
|||
$.exec_json('importer.procImporterAdminCheckXmlFile', {filename:$.trim($input.val())}, on_complete);
|
||||
})
|
||||
.end()
|
||||
.find('.desc').hide().end()
|
||||
.find('.x_help-inline').hide().end()
|
||||
.closest('form').find('>.ttxml').hide().end().end()
|
||||
.closest('form').find(':submit').attr('disabled','disabled');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue