mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
issue 2662 import
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12248 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
21cb4ad3e5
commit
e7177034b3
5 changed files with 2250 additions and 2028 deletions
|
|
@ -1,71 +1,77 @@
|
|||
<?php
|
||||
/**
|
||||
* importerAdminView class
|
||||
* admin view class of the importer module
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @package /modules/importer
|
||||
* @version 0.1
|
||||
*/
|
||||
class importerAdminView extends importer
|
||||
{
|
||||
/**
|
||||
* importerAdminView class
|
||||
* admin view class of the importer module
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @package /modules/importer
|
||||
* @version 0.1
|
||||
* Initialization
|
||||
* Importer module is divided by general use and administrative use \n
|
||||
* @return void
|
||||
*/
|
||||
class importerAdminView extends importer {
|
||||
/**
|
||||
* Initialization
|
||||
* Importer module is divided by general use and administrative use \n
|
||||
* @return void
|
||||
*/
|
||||
function init() {
|
||||
}
|
||||
function init()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a form to upload the xml file
|
||||
* @return void
|
||||
*/
|
||||
function dispImporterAdminContent() {
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
/**
|
||||
* Display a form to upload the xml file
|
||||
* @return void
|
||||
*/
|
||||
function dispImporterAdminContent()
|
||||
{
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
$source_type = Context::get('source_type');
|
||||
switch($source_type) {
|
||||
case 'member' :
|
||||
$template_filename = "member";
|
||||
break;
|
||||
case 'ttxml' :
|
||||
$oModuleModel = &getModel('module');
|
||||
//$mid_list = $oModuleModel->getMidList(); //perhaps mid_list variables not use
|
||||
//Context::set('mid_list', $mid_list);
|
||||
|
||||
$template_filename = "ttxml";
|
||||
break;
|
||||
case 'module' :
|
||||
$oModuleModel = &getModel('module');
|
||||
//$mid_list = $oModuleModel->getMidList(); //perhaps mid_list variables not use
|
||||
//Context::set('mid_list', $mid_list);
|
||||
|
||||
$template_filename = "module";
|
||||
break;
|
||||
case 'message' :
|
||||
$template_filename = "message";
|
||||
break;
|
||||
case 'sync' :
|
||||
$template_filename = "sync";
|
||||
break;
|
||||
default :
|
||||
$template_filename = "index";
|
||||
break;
|
||||
}
|
||||
$source_type = Context::get('source_type');
|
||||
switch($source_type)
|
||||
{
|
||||
case 'member' :
|
||||
$template_filename = "member";
|
||||
break;
|
||||
case 'ttxml' :
|
||||
$oModuleModel = &getModel('module');
|
||||
//$mid_list = $oModuleModel->getMidList(); //perhaps mid_list variables not use
|
||||
//Context::set('mid_list', $mid_list);
|
||||
|
||||
$this->setTemplateFile($template_filename);
|
||||
}
|
||||
$template_filename = "ttxml";
|
||||
break;
|
||||
case 'module' :
|
||||
$oModuleModel = &getModel('module');
|
||||
//$mid_list = $oModuleModel->getMidList(); //perhaps mid_list variables not use
|
||||
//Context::set('mid_list', $mid_list);
|
||||
|
||||
/**
|
||||
* Display a form to upload the xml file
|
||||
* @return void
|
||||
*/
|
||||
function dispImporterAdminImportForm() {
|
||||
$oDocumentModel = &getModel('document'); //for document lang use in this page
|
||||
$template_filename = "module";
|
||||
break;
|
||||
case 'message' :
|
||||
$template_filename = "message";
|
||||
break;
|
||||
case 'sync' :
|
||||
$template_filename = "sync";
|
||||
break;
|
||||
default :
|
||||
$template_filename = "index";
|
||||
break;
|
||||
}
|
||||
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
$this->setTemplateFile($template_filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a form to upload the xml file
|
||||
* @return void
|
||||
*/
|
||||
function dispImporterAdminImportForm()
|
||||
{
|
||||
$oDocumentModel = &getModel('document'); //for document lang use in this page
|
||||
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file importer.admin.view.php */
|
||||
/* Location: ./modules/importer/importer.admin.view.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue