git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<filter name="import_tt" module="ttimporter" act="procTtimporterAdminImport">
<form>
<node target="xml_file" required="true" />
<node target="url" required="true" />
<node target="module_srl" required="true" />
</form>
<parameter />
<response callback_func="completeImport">
<tag name="error" />
<tag name="message" />
<tag name="is_finished" />
<tag name="position" />
</response>
</filter>

View file

@ -0,0 +1,46 @@
<!--%import("js/importer_admin.js")-->
<!--%import("filter/import_tt.xml")-->
<h3>{$lang->ttimporter} <span class="gray">{$lang->cmd_management}</span></h3>
<!-- 설명 -->
<div class="infoText">{nl2br($lang->about_tt_importer)}</div>
<form action="./" method="get" onsubmit="return procFilter(this, import_tt);" id="fo_import">
<input type="hidden" name="position" value="0" />
<table cellspacing="0" class="tableType3 gap1">
<col width="150" />
<col />
<tr>
<th scope="col">{$lang->target_module}</th>
<td class="left">
<select name="module_srl">
<!--@foreach($module_list as $key => $val)-->
<option value="{$val->module_srl}">{$val->browser_title} - {$key}</option>
<!--@end-->
</select>
</td>
</tr>
<tr>
<th scope="col">{$lang->target_file}</th>
<td class="left"><input type="text" name="xml_file" value="" class="inputTypeText w100" /></td>
</tr>
<tr>
<th scope="col">{$lang->target_url}</th>
<td class="left"><input type="text" name="url" value="" class="inputTypeText w100" /></td>
</tr>
</table>
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" /></span>
</div>
<div id="import_status" style="display:none" class="gap1">
<div id="step2_position" class="desc"></div>
<div class="tRight gap1">
<span class="button"><input type="button" value="{$lang->cmd_continue}" onclick="doManualProcess(); return false" /></span>
</div>
</div>
</form>

View file

@ -0,0 +1,29 @@
/**
* @file modules/ttimporter/js/importer_admin.js
* @author zero (zero@nzeo.com)
* @brief importer에서 사용하는 javascript
**/
/* Step Complete Import */
function completeImport(ret_obj) {
var message = ret_obj['message'];
var is_finished = ret_obj['is_finished'];
var position = ret_obj['position'];
xGetElementById("import_status").style.display = "block";
if(is_finished=='Y') {
alert(ret_obj["message"]);
location.href = location.href;
} else {
var fo_obj = xGetElementById('fo_import');
fo_obj.position.value = position;
xInnerHtml('import_status', message);
procFilter(fo_obj, import_tt);
}
}
function doManualProcess() {
var fo_obj = xGetElementById('fo_import');
procFilter(fo_obj, import_tt);
}