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

This commit is contained in:
zero 2007-03-14 08:47:06 +00:00
parent 5dfec5a0c4
commit 99ca20908e
7 changed files with 50 additions and 8 deletions

View file

@ -70,7 +70,6 @@
$cache_file = sprintf('./files/cache/plugin/%s.cache.php', $plugin);
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
include $cache_file;
debugPrint($plugin_info);
return $plugin_info;
}
@ -101,6 +100,7 @@
if(!is_array($xml_obj->extra_vars->var)) $extra_vars[] = $xml_obj->extra_vars->var;
else $extra_vars = $xml_obj->extra_vars->var;
$extra_var_count = count($extra_vars);
$buff .= sprintf('$plugin_info->extra_var_count = "%s";', $extra_var_count);
for($i=0;$i<$extra_var_count;$i++) {
unset($var);
@ -116,8 +116,8 @@
if(!is_array($options)) $options = array($options);
$options_count = count($options);
for($i=0;$i<$options_count;$i++) {
$buff .= sprintf('$plugin_info->extra_var->%s->options["%s"] = "%s";', $var->attrs->id, $options[$i]->value->body, $options[$i]->name->body);
for($j=0;$j<$options_count;$j++) {
$buff .= sprintf('$plugin_info->extra_var->%s->options["%s"] = "%s";', $var->attrs->id, $options[$j]->value->body, $options[$j]->name->body);
}
}

View file

@ -51,6 +51,11 @@
$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);
// 플러그인을 팝업으로 지정
$this->setLayoutFile('popup_layout');

View file

@ -1,4 +1,3 @@
<table border="1" width="400">
<col width="100" />
<col width="300" />
@ -12,6 +11,7 @@
<!--@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")-->
@ -24,6 +24,15 @@
<!--@end-->
</select>
</td>
<!--@elseif($var->type == "mid_list")-->
<td>
<!--@foreach($mid_list as $key => $val)-->
<div>
<input type="checkbox" value="{$key}" id="chk_mid_list_{$key}" />
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
</div>
<!--@end-->
</td>
<!--@end-->
</tr>
<!--@end-->