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

This commit is contained in:
zero 2007-03-14 09:24:12 +00:00
parent 395e5f95b2
commit e5e59a2dde
4 changed files with 47 additions and 10 deletions

View file

@ -10,4 +10,6 @@
$lang->plugin_maker = '플러그인 제작자';
$lang->plugin_history = '변경사항';
$lang->plugin_info = '플러그인 정보';
$lang->plugin_code = '코드';
$lang->about_plugin_code = '생성된 코드는 제로보드XE 내의 템플릿 내용에 추가하시면 동작하게 됩니다';
?>

View file

@ -72,16 +72,19 @@
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
Context::set('plugin_info', $plugin_info);
// mid 목록을 가져옴
$oModuleModel = &getModel('module');
$mid_list = $oModuleModel->getMidList();
Context::set('mid_list', $mid_list);
// 변수 정리
$vars = Context::getRequestVars();
unset($vars->module);
unset($vars->act);
unset($vars->selected_plugin);
if($vars) foreach($vars as $key=>$val) $vars->{$key} = str_replace(array('"','\''),array('\"','\\\''),$val);
Context::set('vars', $vars);
// 플러그인을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 템플릿 파일 지정
$this->setTemplateFile('plugin_generate_code');
$this->setTemplateFile('plugin_generated_code');
}
}

View file

@ -1,4 +1,4 @@
<form action="./" method="get">
<form action="./" method="post">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="dispGeneratedCode" />
<input type="hidden" name="selected_plugin" value="{$selected_plugin}" />
@ -7,7 +7,7 @@
<col width="100" />
<col width="300" />
<tr>
<th colspan="2">{$lang->cmd_make_code}</th>
<th colspan="2">{$lang->cmd_generate_code}</th>
</tr>
<tr>
<th>{$lang->plugin}</th>
@ -18,14 +18,14 @@
<th>{$var->name}</th>
<!--@if($var->type == "text")-->
<td><input type="text" name="{$id}" value="{$var->value}" /></td>
<td><input type="text" name="{$id}" value="" /></td>
<!--@elseif($var->type == "textarea")-->
<td><textarea name="{$id}">{$var->value}</textarea></td>
<td><textarea name="{$id}"></textarea></td>
<!--@elseif($var->type == "select")-->
<td>
<select name="{$id}">
<!--@foreach($var->options as $key => $val)-->
<option value="{$key}" <!--@if($key==$var->value)-->selected="true"<!--@end-->>{$val}</option>
<option value="{$key}">{$val}</option>
<!--@end-->
</select>
</td>

View file

@ -0,0 +1,32 @@
<table border="1" width="400">
<col width="100" />
<col width="300" />
<tr>
<th colspan="2">{$lang->cmd_generate_code}</th>
</tr>
<tr>
<th>{$lang->plugin}</th>
<td>{$plugin_info->title} ver {$plugin_info->version}</td>
</tr>
<tr>
<th rowspan="2">{$lang->plugin_code}</th>
<td>
&lt;div plugin="{$selected_plugin}"
<!--@foreach($vars as $key=>$val)-->
{$key}=&quot;{$val}&quot;&nbsp;
<!--@end-->
&gt;&lt;/div&gt;
</td>
</tr>
<tr>
<td>{$lang->about_plugin_code}</td>
</tr>
<tr>
<td>
<a href="#" onclick="self.close()">{$lang->cmd_close}</a>
</td>
<td>
<input type="submit" value="{$lang->cmd_generate_code}" />
</td>
</tr>
</table>