git-svn-id: http://xe-core.googlecode.com/svn/trunk@418 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-14 08:04:56 +00:00
parent f1fcb7b21f
commit 76aea1928e
8 changed files with 79 additions and 20 deletions

View file

@ -83,6 +83,7 @@
$lang->ipaddress = "IP 주소";
$lang->path = "경로";
$lang->layout = "레이아웃";
$lang->plugin = "플러그인 ";
$lang->document_url = '게시글 주소';
$lang->trackback_url = '엮인글 주소';

View file

@ -61,7 +61,7 @@
* @brief 레이아웃의 상세 정보(conf/info.xml) 팝업 출력
**/
function dispLayoutInfo() {
// 모듈 목록을 구해서
// 선택된 레이아웃 정보를 구함
$oLayoutModel = &getModel('layout');
$layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout'));
Context::set('layout_info', $layout_info);

View file

@ -3,5 +3,6 @@
<actions>
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
<action name="dispPluginInfo" type="view" standalone="true" />
<action name="dispMakeCode" type="view" standalone="true" />
</actions>
</module>

View file

@ -5,6 +5,8 @@
* @brief 플러그인(plugin) 모듈의 기본 언어팩
**/
$lang->cmd_make_code = '코드생성';
$lang->plugin_maker = '플러그인 제작자';
$lang->plugin_history = '변경사항';
$lang->plugin_info = '플러그인 정보';

View file

@ -15,11 +15,22 @@
}
/**
* @brief 플러그인 목록을 보여줌
**/
function dispDownloadedPluginList() {
// 플러그인 목록을 세팅
$oPluginModel = &getModel('plugin');
$plugin_list = $oPluginModel->getDownloadedPluginList();
Context::set('plugin_list', $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);
@ -32,17 +43,20 @@
}
/**
* @brief 플러그인 목록을 보여줌
* @brief 플러그인상세 정보(conf/info.xml) 팝업 출력
**/
function dispDownloadedPluginList() {
// 플러그인 목록을 세팅
function dispMakeCode() {
// 선택된 플러그인 정보를 구함
$oPluginModel = &getModel('plugin');
$plugin_list = $oPluginModel->getDownloadedPluginList();
Context::set('plugin_list', $plugin_list);
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
Context::set('plugin_info', $plugin_info);
$this->setTemplateFile('downloaded_plugin_list');
// 플러그인을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 템플릿 파일 지정
$this->setTemplateFile('plugin_make_code');
}
}
?>

View file

@ -7,6 +7,7 @@
<td>{$lang->author}</td>
<td>{$lang->date}</td>
<td>{$lang->path}</td>
<td>{$lang->cmd_make_code}</td>
<td>{$lang->plugin_info}</td>
</tr>
<!--@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>{$val->author->date}</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>
</tr>
<tr>
<td colspan="5">
<td colspan="6">
{nl2br($val->author->description)}
</td>
</tr>

View 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>

View file

@ -28,5 +28,10 @@
<name xml:lang="en">list_count</name>
<type>text</type>
</var>
<var id="module_srls">
<name xml:lang="ko">대상 모듈</name>
<name xml:lang="en">target modules</name>
<type>module_list</type>
</var>
</extra_vars>
</plugin>