Data migration UX refactoring.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8756 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2011-08-11 09:26:40 +00:00
parent e4085a87ee
commit e10e89312b
52 changed files with 278 additions and 297 deletions

View file

@ -9,10 +9,10 @@
$lang->cmd_continue = '계속 진행';
$lang->preprocessing = '데이터 이전을 위한 사전 준비 중입니다.';
// Items
$lang->importer = 'XE 데이터 이전';
$lang->importer = '데이터 들여오기';
$lang->source_type = '이전 대상';
$lang->type_member = '회원 정보';
$lang->type_message = '쪽지(메시지) 정보';
$lang->type_message = '쪽지 정보';
$lang->type_ttxml = 'TTXML';
$lang->type_module = '게시물 정보';
$lang->type_syncmember = '회원정보 동기화';
@ -36,6 +36,11 @@
3 => '회원정보와 게시물 정보가 이전 후에 맞지 않을 수 있습니다. 이때 동기화를 하시면 user_id를 기반으로 올바르게 동작하도록 합니다.',
99 => '데이터 이전중입니다.',
);
$lang->xml_path = 'XML 파일의 경로를 입력하세요.';
$lang->path_info = '상대 경로와 절대 경로 모두 입력 가능합니다.';
$lang->data_destination = '데이터의 목적지를 선택하세요.';
$lang->document_destination = '글 데이터의 목적지를 선택하세요.';
$lang->guestbook_destination = '방명록 데이터의 목적지를 선택하세요.';
// Information/Warning
$lang->msg_sync_member = '동기화 버튼을 클릭하시면 회원정보와 게시물 정보의 동기화를 시작합니다.';
$lang->msg_no_xml_file = 'XML파일을 찾을 수 없습니다. 경로를 다시 확인해주세요.';
@ -47,9 +52,9 @@
$lang->about_type_member = '데이터 이전 대상이 회원정보일 경우 선택해주세요.';
$lang->about_type_message = '데이터 이전 대상이 쪽지(메시지)일 경우 선택해주세요.';
$lang->about_type_ttxml = '데이터 이전 대상이 TTXML(textcube계열)일 경우 선택해주세요.';
$lang->about_ttxml_user_id = 'TTXML 이전 시에 글쓴이로 지정할 사용자 아이디를 입력해주세요. (이미 가입된 아이디여야 합니다.)';
$lang->about_ttxml_user_id = '글쓴이로 설정할 사용자 아이디를 입력해주세요. (가입된 아이디만 가능)';
$lang->about_type_module = '데이터 이전 대상이 게시판 등의 게시물 정보일 경우 선택해주세요.';
$lang->about_type_syncmember = '회원정보와 게시물정보 등을 이전 후, 회원정보를 동기화해야 할 때 선택해주세요.';
$lang->about_importer = "제로보드4, zb5beta 또는 다른 프로그램의 데이터를 XE 데이터로 이전할 수 있습니다.\n이전을 위해서는 <a href=\"http://svn.xpressengine.com/zeroboard_xe/migration_tools/\" onclick=\"winopen(this.href);return false;\">XML Exporter</a>를 이용해서 원하는 데이터를 XML파일로 생성 후 업로드해주셔야 합니다.";
$lang->about_importer = "다른 프로그램의 데이터를 XE 데이터로 이전할 수 있습니다. 이전을 위해서는 <a href=\"http://svn.xpressengine.com/zeroboard_xe/migration_tools/\" onclick=\"winopen(this.href);return false;\">XML Exporter</a>를 이용해서 원하는 데이터를 XML파일로 생성 후 업로드해주셔야 합니다.";
$lang->about_target_path = "첨부 파일을 받기 위해 제로보드4가 설치된 위치를 입력해주세요.\n같은 서버에 있을 경우 /home/아이디/public_html/bbs 등과 같이 제로보드4의 위치를 입력하시고\n다른 서버일 경우 http:도메인/bbs 처럼 제로보드4가 설치된 곳의 url을 입력해주세요.";
?>

View file

@ -1,17 +1,8 @@
<!--@if(__DEBUG__)-->
<load target="js/importer_admin.js" />
<load target="js/importer_admin.js" />
<!--@else-->
<load target="js/importer_admin.min.js" />
<load target="js/importer_admin.min.js" />
<!--@end-->
{@ $type_list = array('module'=>$lang->type_module, 'ttxml'=>$lang->type_ttxml, 'member'=>$lang->type_member, 'sync'=>$lang->type_syncmember, 'message'=>$lang->type_message) }
<h1 class="h1">{$lang->importer}</h1>
<p>{nl2br($lang->about_importer)}</p>
<!-- 설명 -->
<div class="infoText">{nl2br($lang->about_importer)}</div>
<div class="header4">
<ul class="localNavigation">
<li loop="$type_list=>$key,$val" class="on"|cond="$source_type==$key"><a href="{getUrl('source_type',$key)}">{$val}</a></li>
</ul>
</div>

View file

@ -1,39 +1,117 @@
<!--@if(__DEBUG__)-->
<load target="js/importer_admin.js" />
<!--@else-->
<load target="js/importer_admin.min.js" />
<!--@end-->
<form action="./" class="form">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<h1 class="h1">{$lang->importer}</h1>
<p>{nl2br($lang->about_importer)}</p>
<h2 class="h2">{$lang->import_step_title[1]} - {$lang->import_step_desc[1]}</h2>
<include target="./header.html" />
<form action="./" class="form" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="module" />
<input type="hidden" name="target_module" value="" id="target_module" />
<h2 class="h2">{$lang->type_module}</h2>
<ul>
<li>
<input type="radio" name="source_type" value="module" id="source_type_module" />
<label for="source_type_module"><strong>{$lang->type_module}:</strong> {$lang->about_type_module}</label>
<p class="q">{$lang->xml_path}</p>
<p class="a">
<input type="text" name="xml_file" value="./" /> <span class="desc">{$lang->path_info}</span>
</p>
</li>
<li>
<input type="radio" name="source_type" value="member" id="source_type_member" />
<label for="source_type_member"><strong>{$lang->type_member}:</strong> {$lang->about_type_member}</label>
</li>
<li>
<input type="radio" name="source_type" value="sync" id="source_type_syncmember" />
<label for="source_type_syncmember"><strong>{$lang->type_syncmember}:</strong> {$lang->about_type_syncmember}</label>
</li>
<li>
<input type="radio" name="source_type" value="message" id="source_type_message" />
<label for="source_type_message"><strong>{$lang->type_message}:</strong> {$lang->about_type_message}</label>
</li>
<li>
<input type="radio" name="source_type" value="ttxml" id="source_type_ttxml" />
<label for="source_type_ttxml"><strong>{$lang->type_ttxml}:</strong> {$lang->about_type_ttxml}</label>
<p class="q">{$lang->data_destination}</p>
<div class="a">
<input type="text" /> <a href="#suggestion1" class="tgAnchor">{$lang->find_site}</a>
<div id="suggestion1" class="tgContent suggestion">
<ul>
<li><button type="button">#</button></li>
<li><button type="button">#</button></li>
</ul>
</div>
</div>
<p class="a">
<select style="width:290px">
<option>{$lang->select_module_id}</option>
<option>#</option>
</select>
</p>
</li>
</ul>
<div class="btnArea">
<span class="btn medium"><input type="submit" value="{$lang->cmd_next}" /></span>
<span class="btn"><input type="submit" value="{$lang->importer}" /></span>
</div>
</form>
<form action="./" class="form" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="member" />
<h2 class="h2">{$lang->type_member}</h2>
<ul>
<li>
<p class="q">{$lang->xml_path}</p>
<p class="a"><input type="text" name="xml_file" value="./" /></p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->importer}" /></span>
</div>
</form>
<form action="./" class="form" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="message" />
<h2 class="h2">{$lang->type_message}</h2>
<ul>
<li>
<p class="q">{$lang->xml_path}</p>
<p class="a"><input type="text" name="xml_file" value="./" /></p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->importer}" /></span>
</div>
</form>
<form action="./" class="form" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="ttxml" />
<input type="hidden" name="target_module" value="" id="target_module" />
<input type="hidden" name="guestbook_target_module" value="" id="guestbook_target_module" />
<h2 class="h2">{$lang->type_ttxml}</h2>
<ul>
<li>
<p class="q">{$lang->xml_path}</p>
<p class="a"><input type="text" name="xml_file" value="./" /></p>
</li>
<li>
<p class="q">{$lang->document_destination}</p>
<div class="a">
<input type="text" /> <a href="#suggestion2" class="tgAnchor">{$lang->find_site}</a>
<div id="suggestion2" class="tgContent suggestion">
<ul>
<li><button type="button">#</button></li>
<li><button type="button">#</button></li>
</ul>
</div>
</div>
<p class="a">
<select name="_target_module" style="width:290px">
<option>{$lang->select_module_id}</option>
<option>#</option>
</select>
</p>
</li>
<li>
<p class="q">{$lang->guestbook_destination}</p>
<div class="a">
<input type="text" /> <a href="#suggestion3" class="tgAnchor">{$lang->find_site}</a>
<div id="suggestion3" class="tgContent suggestion">
<ul>
<li><button type="button">#</button></li>
<li><button type="button">#</button></li>
</ul>
</div>
</div>
<p class="a">
<select name="_guestbook_target_module" style="width:290px">
<option>{$lang->select_module_id}</option>
<option>#</option>
</select>
</p>
</li>
<li>
<p class="q">{$lang->about_ttxml_user_id}</p>
<p class="a"><input type="text" name="user_id" value="{$logged_info->user_id}" /></p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->importer}" /></span>
</div>
</form>
<include target="./process.html" />

View file

@ -1,34 +0,0 @@
<!--#include("header.html")-->
<div id="importForm">
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="member" />
<h4 class="xeAdmin">{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
<p>ex1) ../member.xml</p>
<p>ex2) http://...../member.xml</p>
</td>
</tr>
<tr>
<th class="button">
<select name="unit_count">
<option value="50">50</option>
<option value="100" selected="selected">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
</th>
</tr>
</table>
</form>
</div>
<!--#include("./process.html")-->

View file

@ -1,34 +0,0 @@
<!--#include("header.html")-->
<div id="importForm">
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="message" />
<h4 class="xeAdmin">{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
<p>ex1) ../message.xml</p>
<p>ex2) http://...../message.xml</p>
</td>
</tr>
<tr>
<th class="button">
<select name="unit_count">
<option value="50">50</option>
<option value="100" selected="selected">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
</th>
</tr>
</table>
</form>
</div>
<!--#include("./process.html")-->

View file

@ -1,49 +0,0 @@
<!--#include("header.html")-->
<!--// step 1-2. 대상이 게시물 정보일 경우 대상 모듈 목록을 선택하도록 함 -->
<div id="importForm">
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="module" />
<input type="hidden" name="target_module" value="" id="target_module" />
<h4 class="xeAdmin">{$lang->import_step_title[1]} - {$lang->import_step_desc[12]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>
<input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" readonly="readonly"><a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
</td>
</tr>
</table>
<h4 class="xeAdmin">{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
<p>ex1) ../module.xml</p>
<p>ex2) http://...../module.xml</p>
</td>
</tr>
<tr>
<th>
<select name="unit_count" class="w100">
<option value="10" selected="selected">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
</th>
</tr>
</table>
</form>
</div>
<!--#include("./process.html")-->

View file

@ -1,10 +0,0 @@
<!--#include("header.html")-->
<form action="./" method="get" onsubmit="return doSync(this)">
<h4 class="xeAdmin">{$lang->import_step_title[3]} - {$lang->import_step_desc[3]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<th class="button"><span class="button black strong"><input type="submit" value="{$lang->cmd_sync_member}" /></span></th>
</tr>
</table>
</form>

View file

@ -1,65 +0,0 @@
<!--#include("header.html")-->
<!--// step 1-2. 대상이 게시물 정보일 경우 대상 모듈 목록을 선택하도록 함 -->
<div id="importForm">
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
<input type="hidden" name="type" value="ttxml" />
<input type="hidden" name="target_module" value="" id="target_module" />
<input type="hidden" name="guestbook_target_module" value="" id="guestbook_target_module" />
<h4 class="xeAdmin">{$lang->import_step_title[1]} - {$lang->import_step_desc[12]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>{$lang->import_step_desc[121]} </td>
<td>
<input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" readonly="readonly"><a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
</td>
</tr>
<tr>
<td>{$lang->import_step_desc[122]} </td>
<td>
<input type="text" name="_guestbook_target_module" id="_guestbook_target_module" class="inputTypeText w300" readonly="readonly"><a href="{getUrl('','module','module','act','dispModuleSelectList','id','guestbook_target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
</td>
</tr>
</table>
<table cellspacing="0" class="rowTable">
<tr>
<td>
{$lang->user_id} : <input type="text" name="user_id" value="{$logged_info->user_id}" class="inputTypeText w200" />
<p>{$lang->about_ttxml_user_id}</p>
</td>
</tr>
</table>
<h4 class="xeAdmin">{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</h4>
<table cellspacing="0" class="rowTable">
<tr>
<td>
<input type="text" name="xml_file" value="./" class="inputTypeText w700" />
<p>ex1) ../module.xml</p>
<p>ex2) http://...../module.xml</p>
</td>
</tr>
<tr>
<th class="button">
<select name="unit_count">
<option value="10" selected="selected">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
</th>
</tr>
</table>
</form>
</div>
<!--#include("./process.html")-->