mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@418 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f1fcb7b21f
commit
76aea1928e
8 changed files with 79 additions and 20 deletions
|
|
@ -83,6 +83,7 @@
|
||||||
$lang->ipaddress = "IP 주소";
|
$lang->ipaddress = "IP 주소";
|
||||||
$lang->path = "경로";
|
$lang->path = "경로";
|
||||||
$lang->layout = "레이아웃";
|
$lang->layout = "레이아웃";
|
||||||
|
$lang->plugin = "플러그인 ";
|
||||||
|
|
||||||
$lang->document_url = '게시글 주소';
|
$lang->document_url = '게시글 주소';
|
||||||
$lang->trackback_url = '엮인글 주소';
|
$lang->trackback_url = '엮인글 주소';
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
* @brief 레이아웃의 상세 정보(conf/info.xml)를 팝업 출력
|
* @brief 레이아웃의 상세 정보(conf/info.xml)를 팝업 출력
|
||||||
**/
|
**/
|
||||||
function dispLayoutInfo() {
|
function dispLayoutInfo() {
|
||||||
// 모듈 목록을 구해서
|
// 선택된 레이아웃 정보를 구함
|
||||||
$oLayoutModel = &getModel('layout');
|
$oLayoutModel = &getModel('layout');
|
||||||
$layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout'));
|
$layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout'));
|
||||||
Context::set('layout_info', $layout_info);
|
Context::set('layout_info', $layout_info);
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
|
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
|
||||||
<action name="dispPluginInfo" type="view" standalone="true" />
|
<action name="dispPluginInfo" type="view" standalone="true" />
|
||||||
|
<action name="dispMakeCode" type="view" standalone="true" />
|
||||||
</actions>
|
</actions>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
* @brief 플러그인(plugin) 모듈의 기본 언어팩
|
* @brief 플러그인(plugin) 모듈의 기본 언어팩
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
$lang->cmd_make_code = '코드생성';
|
||||||
|
|
||||||
$lang->plugin_maker = '플러그인 제작자';
|
$lang->plugin_maker = '플러그인 제작자';
|
||||||
$lang->plugin_history = '변경사항';
|
$lang->plugin_history = '변경사항';
|
||||||
$lang->plugin_info = '플러그인 정보';
|
$lang->plugin_info = '플러그인 정보';
|
||||||
|
|
|
||||||
|
|
@ -13,24 +13,7 @@
|
||||||
function init() {
|
function init() {
|
||||||
$this->setTemplatePath($this->module_path.'tpl.admin');
|
$this->setTemplatePath($this->module_path.'tpl.admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
/**
|
|
||||||
* @brief 플러그인의 상세 정보(conf/info.xml)를 팝업 출력
|
|
||||||
**/
|
|
||||||
function dispPluginInfo() {
|
|
||||||
// 모듈 목록을 구해서
|
|
||||||
$oPluginModel = &getModel('plugin');
|
|
||||||
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
|
||||||
Context::set('plugin_info', $plugin_info);
|
|
||||||
|
|
||||||
// 플러그인을 팝업으로 지정
|
|
||||||
$this->setLayoutFile('popup_layout');
|
|
||||||
|
|
||||||
// 템플릿 파일 지정
|
|
||||||
$this->setTemplateFile('plugin_detail_info');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 플러그인 목록을 보여줌
|
* @brief 플러그인 목록을 보여줌
|
||||||
**/
|
**/
|
||||||
|
|
@ -43,6 +26,37 @@
|
||||||
$this->setTemplateFile('downloaded_plugin_list');
|
$this->setTemplateFile('downloaded_plugin_list');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 플러그인의 상세 정보(conf/info.xml)를 팝업 출력
|
||||||
|
**/
|
||||||
|
function dispPluginInfo() {
|
||||||
|
// 선택된 플러그인 정보를 구함
|
||||||
|
$oPluginModel = &getModel('plugin');
|
||||||
|
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
||||||
|
Context::set('plugin_info', $plugin_info);
|
||||||
|
|
||||||
|
// 플러그인을 팝업으로 지정
|
||||||
|
$this->setLayoutFile('popup_layout');
|
||||||
|
|
||||||
|
// 템플릿 파일 지정
|
||||||
|
$this->setTemplateFile('plugin_detail_info');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 플러그인의 상세 정보(conf/info.xml)를 팝업 출력
|
||||||
|
**/
|
||||||
|
function dispMakeCode() {
|
||||||
|
// 선택된 플러그인 정보를 구함
|
||||||
|
$oPluginModel = &getModel('plugin');
|
||||||
|
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
||||||
|
Context::set('plugin_info', $plugin_info);
|
||||||
|
|
||||||
|
// 플러그인을 팝업으로 지정
|
||||||
|
$this->setLayoutFile('popup_layout');
|
||||||
|
|
||||||
|
// 템플릿 파일 지정
|
||||||
|
$this->setTemplateFile('plugin_make_code');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
<td>{$lang->author}</td>
|
<td>{$lang->author}</td>
|
||||||
<td>{$lang->date}</td>
|
<td>{$lang->date}</td>
|
||||||
<td>{$lang->path}</td>
|
<td>{$lang->path}</td>
|
||||||
|
<td>{$lang->cmd_make_code}</td>
|
||||||
<td>{$lang->plugin_info}</td>
|
<td>{$lang->plugin_info}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!--@foreach($plugin_list as $key => $val)-->
|
<!--@foreach($plugin_list as $key => $val)-->
|
||||||
|
|
@ -19,10 +20,11 @@
|
||||||
<td><a href="#" onclick="window.open('{$val->author->homepage}')">{$val->author->name}</a></td>
|
<td><a href="#" onclick="window.open('{$val->author->homepage}')">{$val->author->name}</a></td>
|
||||||
<td>{$val->author->date}</td>
|
<td>{$val->author->date}</td>
|
||||||
<td>{$val->path}</td>
|
<td>{$val->path}</td>
|
||||||
|
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispMakeCode','selected_plugin',$val->plugin)}','plugin_code_make','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_make_code}</a></td>
|
||||||
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginInfo','selected_plugin',$val->plugin)}','plugin_info','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_view}</a></td>
|
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginInfo','selected_plugin',$val->plugin)}','plugin_info','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_view}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="6">
|
||||||
{nl2br($val->author->description)}
|
{nl2br($val->author->description)}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
34
modules/plugin/tpl.admin/plugin_make_code.html
Normal file
34
modules/plugin/tpl.admin/plugin_make_code.html
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
<table border="1" width="400">
|
||||||
|
<col width="100" />
|
||||||
|
<col width="300" />
|
||||||
|
<tr>
|
||||||
|
<th colspan="2">{$lang->cmd_make_code}</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{$lang->plugin}</th>
|
||||||
|
<td>{$plugin_info->title} ver {$plugin_info->version}</td>
|
||||||
|
</tr>
|
||||||
|
<!--@foreach($plugin_info->extra_var as $id => $var)-->
|
||||||
|
<tr>
|
||||||
|
<th>{$var->name}</th>
|
||||||
|
<!--@if($var->type == "text")-->
|
||||||
|
<td><input type="text" name="{$id}" value="{$var->value}" /></td>
|
||||||
|
<!--@elseif($var->type == "textarea")-->
|
||||||
|
<td><textarea name="{$id}">{$var->value}</textarea></td>
|
||||||
|
<!--@elseif($var->type == "select")-->
|
||||||
|
<td>
|
||||||
|
<select name="{$id}">
|
||||||
|
<!--@foreach($var->options as $key => $val)-->
|
||||||
|
<option value="{$val}" <!--@if($val==$var->value)-->selected="true"<!--@end-->>{$val}</option>
|
||||||
|
<!--@end-->
|
||||||
|
</select>
|
||||||
|
<!--@end-->
|
||||||
|
</tr>
|
||||||
|
<!--@end-->
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<a href="#" onclick="self.close()">{$lang->cmd_close}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
@ -28,5 +28,10 @@
|
||||||
<name xml:lang="en">list_count</name>
|
<name xml:lang="en">list_count</name>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
</var>
|
</var>
|
||||||
|
<var id="module_srls">
|
||||||
|
<name xml:lang="ko">대상 모듈</name>
|
||||||
|
<name xml:lang="en">target modules</name>
|
||||||
|
<type>module_list</type>
|
||||||
|
</var>
|
||||||
</extra_vars>
|
</extra_vars>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue