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

This commit is contained in:
zero 2007-03-27 02:40:29 +00:00
parent ec460d5fe8
commit 7998daeb0e
9 changed files with 176 additions and 118 deletions

View file

@ -4,6 +4,7 @@
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
<action name="dispPluginInfo" type="view" standalone="true" />
<action name="dispGenerateCode" type="view" standalone="true" />
<action name="dispGenerateCodeInPage" type="view" standalone="true" />
<action name="procGenerateCode" type="controller" standalone="true" />
</actions>

View file

@ -63,5 +63,13 @@
$this->setTemplateFile('plugin_generate_code');
}
/**
* @brief 페이지 관리에서 사용될 코드 생성 팝업
**/
function dispGenerateCodeInPage() {
$this->dispGenerateCode();
$this->setTemplateFile('plugin_generate_code_in_page');
}
}
?>

View file

@ -0,0 +1,75 @@
.plugin_detail_info_window {
width:500px;
clear:both;
}
.plugin_title {
font-weight:bold;
font-size:10pt;
text-align:center;
padding:5px 0px 5px 0px;
color:#EEEEEE;
background-color:#444444;
}
.plugin_description {
margin:2px;
border:1px solid #EEEEEE;
color:#444444;
clear:both;
padding:5px;
height:30px;
}
.plugin_header {
clear:left;
font-weight:bold;
float:left;
width:90px;
margin-left:10px;
padding:5px 0px 5px 0px;
}
.plugin_body {
float:left;
width:390px;
padding:5px 0px 5px 0px;
}
.plugin_var_description {
clear:both;
padding:5px 0px 5px 0px;
margin-left:100px;
color:#AAAAAA;
}
.plugin_button_area {
clear:both;
text-align:center;
padding:5px 0px 5px 0px;
background-color:#EFEFEF;
border-top:1px solid #AAAAAA;
}
.plugin_button {
border:1px solid #AAAAAA;
background-color:#FFFFFF;
font-weight:bold;
height:16px;
}
.plugin_code_area {
clear:both;
padding:4px;
border:1px solid #AAAAAA;
margin:5px;
height:100px;
}
.plugin_code_area textarea {
border:0px;
height:100px;
width:470px;
font-family:tahoma;
font-size:8pt;
}

View file

@ -20,8 +20,8 @@
<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','dispGenerateCode','selected_plugin',$val->plugin)}','plugin_code_generate','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_generate_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','dispGenerateCode','selected_plugin',$val->plugin)}','plugin_code_generate','width=10,height=10,toolbars=no,scrollbars=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_generate_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=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_view}</a></td>
</tr>
<tr>
<td colspan="6">

View file

@ -1,58 +1,26 @@
<table border="1" width="400">
<col width="100" />
<col width="300" />
<tr>
<th colspan="2">{$lang->plugin_maker}</th>
</tr>
<tr>
<th>{$lang->title}</th>
<td>{$plugin_info->title} ver {$plugin_info->version}</td>
</tr>
<tr>
<th>{$lang->author}</th>
<td><a href="mailto:{$plugin_info->author->email_address}">{$plugin_info->author->name}</a></td>
</tr>
<tr>
<th>{$lang->homepage}</th>
<td><a href="#" onclick="window.open('{$plugin_info->author->homepage}');return false;">{$plugin_info->author->homepage}</a></td>
</tr>
<tr>
<th>{$lang->regdate}</th>
<td>{$plugin_info->author->date}</td>
</tr>
<tr>
<th>{$lang->description}</th>
<td>{nl2br($plugin_info->author->description)}</td>
</tr>
<!--%import("css/plugin.css")-->
<!--@if($plugin_history->history->name)-->
<tr>
<th colspan="2">{$lang->plugin_history}</th>
</tr>
<!--@foreach($plugin_info->history as $history)-->
<!--@if($history->name)-->
<tr>
<th>{$lang->name}</th>
<td><a href="mailto:{$history->email_address}">{$history->name}</a></td>
</tr>
<tr>
<th>{$lang->homepage}</th>
<td><a href="#" onclick="window.open('{$history->homepage}');return false;">{$history->homepage}</a></td>
</tr>
<tr>
<th>{$lang->regdate}</th>
<td>{$history->date}</td>
</tr>
<tr>
<th>{$lang->description}</th>
<td>{nl2br($history->description)}</td>
</tr>
<!--@end-->
<!--@end-->
<!--@end-->
<tr>
<td colspan="2">
<a href="#" onclick="self.close()">{$lang->cmd_close}</a>
</td>
</tr>
</table>
<div class="plugin_detail_info_window">
<div class="plugin_title">{$lang->plugin_maker}</div>
<div class="plugin_header">{$lang->title}</div>
<div class="plugin_body">{$plugin_info->title} ver {$plugin_info->version}</div>
<div class="plugin_header">{$lang->author}</div>
<div class="plugin_body"><a href="mailto:{$plugin_info->author->email_address}">{$plugin_info->author->name}</a></div>
<div class="plugin_header">{$lang->homepage}</div>
<div class="plugin_body"><a href="#" onclick="window.open('{$plugin_info->author->homepage}');return false;">{$plugin_info->author->homepage}</a></div>
<div class="plugin_header">{$lang->regdate}</div>
<div class="plugin_body">{$plugin_info->author->date}</div>
<div class="plugin_header">{$lang->description}</div>
<div class="plugin_body">{nl2br($plugin_info->author->description)}</div>
<div class="plugin_button_area">
<a href="#" onclick="window.close();">{$lang->cmd_close}</a>
</div>
</div>

View file

@ -1,63 +1,55 @@
<!--%import("filter/generate_code.xml")-->
<!--%import("js/admin.js")-->
<!--%import("css/plugin.css")-->
<form action="./" method="get" onsubmit="return procFilter(this, generate_code);">
<input type="hidden" name="selected_plugin" value="{$selected_plugin}" />
<table border="1" width="400">
<col width="100" />
<col width="300" />
<tr>
<th colspan="2">{$lang->cmd_generate_code}</th>
</tr>
<tr>
<td colspan="2">{$lang->about_plugin_code}</td>
</tr>
<tr>
<th>{$lang->plugin}</th>
<td>{$plugin_info->title} ver {$plugin_info->version}</td>
</tr>
<div class="plugin_detail_info_window">
<!--@foreach($plugin_info->extra_var as $id => $var)-->
<tr>
<th rowspan="2">{$var->name}</th>
<div class="plugin_title">{$lang->cmd_generate_code}</div>
<!--@if($var->type == "text")-->
<td><input type="text" name="{$id}" value="" /></td>
<!--@elseif($var->type == "textarea")-->
<td><textarea name="{$id}"></textarea></td>
<!--@elseif($var->type == "select")-->
<td>
<select name="{$id}">
<!--@foreach($var->options as $key => $val)-->
<option value="{$key}">{$val}</option>
<!--@end-->
</select>
</td>
<!--@elseif($var->type == "mid_list")-->
<td>
<!--@foreach($mid_list as $key => $val)-->
<div>
<input type="checkbox" value="{$key}" name="{$id}" id="chk_mid_list_{$key}" />
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
</div>
<!--@end-->
</td>
<div class="plugin_description">{$lang->about_plugin_code}</div>
<div class="plugin_header">{$lang->plugin}</div>
<div class="plugin_body">{$plugin_info->title} ver {$plugin_info->version}</div>
<!--@foreach($plugin_info->extra_var as $id => $var)-->
<div class="plugin_header">{$var->name}</div>
<div class="plugin_body">
<!--@if($var->type == "text")-->
<input type="text" name="{$id}" value="" />
<!--@elseif($var->type == "textarea")-->
<textarea name="{$id}"></textarea>
<!--@elseif($var->type == "select")-->
<select name="{$id}">
<!--@foreach($var->options as $key => $val)-->
<option value="{$key}">{$val}</option>
<!--@end-->
</select>
<!--@elseif($var->type == "mid_list")-->
<!--@foreach($mid_list as $key => $val)-->
<div>
<input type="checkbox" value="{$key}" name="{$id}" id="chk_mid_list_{$key}" />
<label for="chk_mid_list_{$key}">{$key} ({$val->browser_title})</label>
</div>
<!--@end-->
<!--@end-->
</div>
<div class="plugin_var_description">{$var->description}</div>
<!--@end-->
</tr>
<tr>
<td>{$var->description}</td>
</tr>
<!--@end-->
<tr>
<td colspan="2">
<input type="submit" value="{$lang->cmd_generate_code}" />
<a href="#" onclick="self.close()">{$lang->cmd_close}</a>
</td>
</tr>
<tr>
<td colspan="2"><textarea readonly="true" id="plugin_code" style="width:100%;height:100px;"></textarea></td>
</tr>
</table>
<div class="plugin_button_area">
<input type="submit" value="{$lang->cmd_generate_code}" class="plugin_button" />
<input type="button" onclick="self.close()" value="{$lang->cmd_close}" class="plugin_button" />
</div>
<div class="plugin_code_area"><textarea readonly="true" id="plugin_code"></textarea></div>
</div>
</form>