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

This commit is contained in:
zero 2007-03-26 09:09:29 +00:00
parent 7472e1165f
commit 062bca7301
10 changed files with 116 additions and 2 deletions

View file

@ -20,7 +20,7 @@
<td>{$xml_info->author->date}</td>
<td>
<!--@if($xml_info->extra_vars)-->
<a href="#">{$lang->cmd_setup}</a>
<a href="#" onclick="doSetupComponent('{$component_name}'); return false;">{$lang->cmd_setup}</a>
<!--@end-->
</td>
<td>

View file

@ -122,3 +122,21 @@ div.editor_drag_down_area {
background-color:#FFFFFF;
margin-bottom:10px;
}
.component_setup_window {
width:800px;
}
.editor_input {
border:1px solid #AAAAAA;
height:14px;
font-size:9pt;
width:200px;
}
.editor_button {
border:1px solid #AAAAAA;
background-color:#FFFFFF;
height:17px;
font-size:9pt;
}

View file

@ -24,3 +24,7 @@ function completeUpdate(ret_obj) {
alert(ret_obj['message']);
location.href = location.href;
}
function doSetupComponent(component_name) {
winopen("./?module=editor&act=setupComponent&component_name="+component_name, "SetupComponent","width=10,height=10,scrollbars=no,resizable=no,toolbars=no");
}

View file

@ -0,0 +1,36 @@
<!--%import("css/editor.css")-->
<div class="component_setup_window">
<table border="1" width="100%">
<tr>
<th>{$lang->component_name}</th>
<td>{$component->component_name} ver. {$component->version}</td>
</tr>
<tr>
<th>{$lang->component_author}</th>
<td>{$component->author->name}</td>
</tr>
<tr>
<th>{$lang->component_link}</th>
<td><a href="#" onclick="winopen('{$component->author->link}');return false;">{$component->author->link}</a></td>
</tr>
<tr>
<th colspan="2">{$lang->component_extra_vars}</th>
</tr>
<!--@foreach($component->extra_vars as $key => $val)-->
<tr>
<th rowspan="2">{$val->title}</th>
<td><input type="text" name="{$key}" value="{$val->value}" class="editor_input" /></td>
</tr>
<tr>
<td>{$val->description}</td>
</tr>
<!--@end-->
<tr>
<td colspan="2">
<input type="submit" value="{$lang->cmd_apply}" class="editor_button" />
<input type="button" value="{$lang->cmd_close}" class="editor_button" onclick="window.close();"/>
</td>
</tr>
</table>
</div>