mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
css 및 js 호출순서 조정기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f380d9c48
commit
61851f1dfe
2149 changed files with 109090 additions and 18689 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{@ $type_list = array('module'=>$lang->type_module, 'ttxml'=>$lang->type_ttxml, 'member'=>$lang->type_member, 'sync'=>$lang->type_syncmember, 'message'=>$lang->type_message) }
|
||||
|
||||
<h3>{$lang->importer} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
<h3 class="xeAdmin">{$lang->importer} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<!-- 설명 -->
|
||||
<div class="infoText">{nl2br($lang->about_importer)}</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!--%import("js/importer_admin.js")-->
|
||||
<!--%import("css/importer.css")-->
|
||||
|
||||
<h3>{$lang->importer} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
<h3 class="xeAdmin">{$lang->importer} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<!-- 설명 -->
|
||||
<div class="infoText">{nl2br($lang->about_importer)}</div>
|
||||
|
|
@ -11,11 +11,12 @@
|
|||
<form action="./" method="get">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[1]} - {$lang->import_step_desc[1]}</caption>
|
||||
|
||||
<h4 class="xeAdmin">{$lang->import_step_title[1]} - {$lang->import_step_desc[1]}</h4>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<th scope="col"><div><label for="source_type_module">1. {$lang->type_module}</label></div></th>
|
||||
<td><input type="radio" name="source_type" value="module" id="source_type_module" /> <label for="source_type_module">{$lang->about_type_module}</label></td>
|
||||
<td class="wide"><input type="radio" name="source_type" value="module" id="source_type_module" /> <label for="source_type_module">{$lang->about_type_module}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><div><label for="source_type_ttxml">2. {$lang->type_ttxml}</label></div></th>
|
||||
|
|
@ -34,9 +35,9 @@
|
|||
<td><input type="radio" name="source_type" value="message" id="source_type_message" /> <label for="source_type_message">{$lang->about_type_message}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="right">
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</td>
|
||||
<th colspan="2" class="button">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ function doPreProcessing(fo_obj) {
|
|||
|
||||
var type = fo_obj.type.value;
|
||||
|
||||
xDisplay('importForm','none');
|
||||
xDisplay('process','block');
|
||||
xInnerHtml('status','');
|
||||
jQuery('#importForm').hide();
|
||||
jQuery('#process').show();
|
||||
jQuery('#status').empty();
|
||||
prepared = false;
|
||||
setTimeout(doPrepareDot, 50);
|
||||
|
||||
|
|
@ -48,17 +48,18 @@ function doPreProcessing(fo_obj) {
|
|||
function doPrepareDot() {
|
||||
if(prepared) return;
|
||||
|
||||
var str = xInnerHtml('status');
|
||||
if(str.length<1 || str.length - preProcessingMsg.length > 50) str = preProcessingMsg;
|
||||
var str = jQuery('#status').html();
|
||||
if(str.length < 1 || str.length - preProcessingMsg.length > 50) str = preProcessingMsg;
|
||||
else str += ".";
|
||||
xInnerHtml('status', str);
|
||||
|
||||
jQuery('#status').html(str);
|
||||
setTimeout(doPrepareDot, 50);
|
||||
}
|
||||
|
||||
/* 준비가 끝났을때 호출되는 함수 */
|
||||
function completePreProcessing(ret_obj, response_tags) {
|
||||
prepared = true;
|
||||
xInnerHtml('status','');
|
||||
jQuery('#status').empty();
|
||||
|
||||
var status = ret_obj['status'];
|
||||
var message = ret_obj['message'];
|
||||
|
|
@ -76,17 +77,18 @@ function completePreProcessing(ret_obj, response_tags) {
|
|||
return;
|
||||
}
|
||||
|
||||
xDisplay('btn_reload','none');
|
||||
xDisplay('btn_continue','block');
|
||||
jQuery('#btn_reload').hide();
|
||||
jQuery('#btn_continue').show();
|
||||
|
||||
var fo_obj = xGetElementById('fo_process');
|
||||
var fo_obj = jQuery('#fo_process').get(0);
|
||||
fo_obj.type.value = type;
|
||||
fo_obj.total.value = total;
|
||||
fo_obj.cur.value = cur;
|
||||
fo_obj.key.value = key;
|
||||
|
||||
var fo_import = xGetElementById('fo_import');
|
||||
var fo_import = jQuery('#fo_import').get(0);
|
||||
if(fo_import && fo_import.target_module) fo_obj.target_module.value = fo_import.target_module.value;
|
||||
if(fo_import && fo_import.guestbook_target_module) fo_obj.guestbook_target_module.value = fo_import.guestbook_target_module.value;
|
||||
if(fo_import && fo_import.user_id) fo_obj.user_id.value = fo_import.user_id.value;
|
||||
|
||||
fo_obj.unit_count.value = fo_import.unit_count.options[fo_import.unit_count.selectedIndex].value;
|
||||
|
|
@ -97,7 +99,7 @@ function completePreProcessing(ret_obj, response_tags) {
|
|||
|
||||
/* @brief 임포트 시작 */
|
||||
function doImport() {
|
||||
var fo_obj = xGetElementById('fo_process');
|
||||
var fo_obj = jQuery('#fo_process').get(0);
|
||||
|
||||
var params = new Array();
|
||||
params['type'] = fo_obj.type.value;
|
||||
|
|
@ -105,6 +107,7 @@ function doImport() {
|
|||
params['cur'] = fo_obj.cur.value;
|
||||
params['key'] = fo_obj.key.value;
|
||||
params['target_module'] = fo_obj.target_module.value;
|
||||
params['guestbook_target_module'] = fo_obj.guestbook_target_module.value;
|
||||
params['unit_count'] = fo_obj.unit_count.value;
|
||||
params['user_id'] = fo_obj.user_id.value;
|
||||
|
||||
|
|
@ -124,26 +127,26 @@ function doImport() {
|
|||
function completeImport(ret_obj, response_tags) {
|
||||
var message = ret_obj['message'];
|
||||
var type = ret_obj['type'];
|
||||
var total = parseInt(ret_obj['total'],10);
|
||||
var cur = parseInt(ret_obj['cur'],10);
|
||||
var total = parseInt(ret_obj['total'], 10);
|
||||
var cur = parseInt(ret_obj['cur'], 10);
|
||||
var key = ret_obj['key'];
|
||||
|
||||
displayProgress(total, cur);
|
||||
|
||||
var fo_obj = xGetElementById('fo_process');
|
||||
var fo_obj = jQuery('#fo_process').get(0);
|
||||
fo_obj.type.value = type;
|
||||
fo_obj.total.value = total;
|
||||
fo_obj.cur.value = cur;
|
||||
fo_obj.key.value = key;
|
||||
|
||||
// extract된 파일을 이용해서 import
|
||||
if(total>cur) doImport();
|
||||
if(total > cur) doImport();
|
||||
else {
|
||||
alert(message);
|
||||
fo_obj.reset();
|
||||
xDisplay('process','none');
|
||||
xDisplay('importForm','block');
|
||||
xGetElementById('fo_import').reset();
|
||||
jQuery('#process').hide();
|
||||
jQuery('#importForm').show();
|
||||
jQuery('#fo_import').get(0).reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -151,19 +154,17 @@ function completeImport(ret_obj, response_tags) {
|
|||
function displayProgress(total, cur) {
|
||||
// 진행률 구함
|
||||
var per = 0;
|
||||
if(total > 0) per = Math.round(cur/total*100);
|
||||
if(total > 0) per = Math.round(cur / total * 100);
|
||||
else per = 100;
|
||||
if(!per) per = 1;
|
||||
|
||||
var status = '<div class="progressBox"><div class="progress1" style="width:'+per+'%;">'+per+'% </div>';
|
||||
status += '<div class="progress2">'+cur+'/'+total+'</div>';
|
||||
status += '<div class="clear"></div></div>';
|
||||
xInnerHtml('status', status);
|
||||
jQuery('#status').html(status);
|
||||
}
|
||||
|
||||
function insertSelectedModule(id, module_srl, mid, browser_title) {
|
||||
var obj= xGetElementById('_'+id);
|
||||
var sObj = xGetElementById(id);
|
||||
sObj.value = module_srl;
|
||||
obj.value = browser_title+' ('+mid+')';
|
||||
jQuery('#' + id).val(module_srl);
|
||||
jQuery('#_' + id).val(browser_title+' ('+mid+')');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
|
||||
<input type="hidden" name="type" value="member" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</caption>
|
||||
<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" />
|
||||
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
|
||||
<p>ex1) ../member.xml</p>
|
||||
<p>ex2) http://...../member.xml</p>
|
||||
</td>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<option value="500">500</option>
|
||||
<option value="1000">1000</option>
|
||||
</select>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
<form action="./" method="get" onsubmit="return doPreProcessing(this)" id="fo_import">
|
||||
<input type="hidden" name="type" value="message" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</caption>
|
||||
<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" />
|
||||
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
|
||||
<p>ex1) ../message.xml</p>
|
||||
<p>ex2) http://...../message.xml</p>
|
||||
</td>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<option value="500">500</option>
|
||||
<option value="1000">1000</option>
|
||||
</select>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -6,26 +6,26 @@
|
|||
<input type="hidden" name="type" value="module" />
|
||||
<input type="hidden" name="target_module" value="" id="target_module" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[1]} - {$lang->import_step_desc[12]}</caption>
|
||||
<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','dispModuleAdminSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
|
||||
<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>
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</caption>
|
||||
<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" />
|
||||
<input type="text" name="xml_file" value="./" class="inputTypeText fullWidth" />
|
||||
<p>ex1) ../module.xml</p>
|
||||
<p>ex2) http://...../module.xml</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<th>
|
||||
<select name="unit_count" class="w100">
|
||||
<option value="10" selected="selected">10</option>
|
||||
<option value="20">20</option>
|
||||
|
|
@ -38,8 +38,8 @@
|
|||
<option value="500">500</option>
|
||||
<option value="1000">1000</option>
|
||||
</select>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</td>
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,11 +9,12 @@
|
|||
<input type="hidden" name="cur" value="" />
|
||||
<input type="hidden" name="key" value="" />
|
||||
<input type="hidden" name="target_module" value="" />
|
||||
<input type="hidden" name="guestbook_target_module" value="" />
|
||||
<input type="hidden" name="unit_count" value="" />
|
||||
<input type="hidden" name="user_id" value="" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[99]} - {$lang->import_step_desc[99]}</caption>
|
||||
<h4 class="xeAdmin">{$lang->import_step_title[99]} - {$lang->import_step_desc[99]}</h4>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="status"></div>
|
||||
|
|
@ -21,8 +22,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th class="button">
|
||||
<div id="btn_continue" style="display:none;"><span class="button black strong"><input type="submit" value="{$lang->cmd_continue}" /></span></div>
|
||||
<div id="btn_reload" style="display:block;"><span class="button"><input type="button" value="{$lang->cmd_reload}" onclick="location.reload(); return false;"/></span></div>
|
||||
<div id="btn_continue" style="display:none;"><span class="button"><input type="submit" value="{$lang->cmd_continue}" /></span></div>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return doSync(this)">
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[3]} - {$lang->import_step_desc[3]}</caption>
|
||||
<h4 class="xeAdmin">{$lang->import_step_title[3]} - {$lang->import_step_desc[3]}</h4>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<td><span class="button"><input type="submit" value="{$lang->cmd_sync_member}" /></span></td>
|
||||
<th class="button"><span class="button black strong"><input type="submit" value="{$lang->cmd_sync_member}" /></span></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -5,17 +5,25 @@
|
|||
<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" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[1]} - {$lang->import_step_desc[12]}</caption>
|
||||
<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','dispModuleAdminSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
|
||||
<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="adminTable">
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<td>
|
||||
{$lang->user_id} : <input type="text" name="user_id" value="{$logged_info->user_id}" class="inputTypeText w200" />
|
||||
|
|
@ -24,8 +32,8 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<caption>{$lang->import_step_title[2]} - {$lang->import_step_desc[2]}</caption>
|
||||
<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" />
|
||||
|
|
@ -47,7 +55,7 @@
|
|||
<option value="500">500</option>
|
||||
<option value="1000">1000</option>
|
||||
</select>
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_next}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue