* widget모듈 새 XML 포맷 처리 코드 추가
    * info.xml 파일들 새 포맷으로 변경 

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4390 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-07-20 02:17:06 +00:00
parent fc876f9d73
commit ef014baa03
34 changed files with 2401 additions and 2115 deletions

View file

@ -6,7 +6,7 @@
<!-- 위젯의 목록 -->
<table cellspacing="0" class="adminTable">
<!--@if($lang_type == 'ko')-->
{@ $col_width = array(0,80,120,80,140,70)}
{@ $col_width = array(0,50,120,80,140,70)}
<!--@else if($lang_type == 'en')-->
{@ $col_width = array(0,80,120,80,140,80)}
<!--@else if($lang_type == 'zh-CN')-->
@ -42,14 +42,18 @@
({$val->widget})
</th>
<td class="tahoma">{$val->version}</td>
<td class="blue"><a href="{$val->author->homepage}" onclick="window.open(this.href);return false;">{$val->author->name}</a></td>
<td class="tahoma">{$val->author->date}</td>
<td>
<!--@foreach($val->author as $author)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->name}</a>
<!--@endforeach-->
</td>
<td class="tahoma">{$val->date}</td>
<td class="tahoma left">{$val->path}</td>
<td class="blue"><a href="{getUrl('','module','widget','act','dispWidgetGenerateCode','selected_widget',$val->widget)}" onclick="popopen(this.href,'widget_code_generate');return false">{$lang->cmd_generate_code}</a></td>
</tr>
<tr>
<td colspan="5" class="left">
{nl2br(trim($val->author->description))}
{nl2br(trim($val->description))}
</td>
</tr>
<!--@end-->

View file

@ -12,23 +12,79 @@
</tr>
<tr>
<th scope="row">{$lang->author}</th>
<td><a href="mailto:{$widget_info->author->email_address}">{$widget_info->author->name}</a></td>
<td class="blue">
<!--@foreach($widget_info->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
<!--@endforeach-->
</td>
</tr>
<!--@if($widget_info->homepage)-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td><a href="{$widget_info->author->homepage}" onclick="window.open(this.href);return false;">{$widget_info->author->homepage}</a></td>
<td class="blue"><a href="{$widget_info->homepage}" onclick="window.open(this.href);return false;">{$widget_info->homepage}</a></td>
</tr>
<!--@end-->
<tr>
<th scope="row">{$lang->regdate}</th>
<td>{$widget_info->author->date}</td>
<td>{$widget_info->date}</td>
</tr>
<!--@if($widget_info->license || $widget_info->license_link)-->
<tr>
<th scope="row">{$lang->widget_license}</th>
<td>
{nl2br(trim($widget_info->license))}
<!--@if($widget_info->license_link)-->
<p><a href="{$widget_info->license_link}" onclick="window.close(); return false;">{$widget_info->license_link}</a></p>
<!--@end-->
</td>
</tr>
<!--@end-->
<tr>
<th scope="row">{$lang->description}</th>
<td>{nl2br(trim($widget_info->author->description))}</td>
<td>{nl2br(trim($widget_info->description))}</td>
</tr>
</table>
</div>
<!--@if($widget_info->history)-->
<div id="popHistoryHeadder">
<h3>{$lang->widget_history}</h3>
</div>
<div id="popHistoryBody">
<table cellspacing="0" class="adminTable">
<col width="100" />
<col />
<!--@foreach($widget_info->history as $history)-->
<tr>
<th scope="row">
{$history->version}<br />
{$history->date}
</th>
<td>
<!--@if($history->author)-->
<!--@foreach($history->author as $author)-->
<p>{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a> / <a href="mailto:{$author->email_address}">{$author->email_address}</a>)</p>
<!--@endforeach-->
<!--@endif-->
<!--@if($history->description)-->
<p>{nl2br(trim($history->description))}</p>
<!--@endif-->
<!--@if($history->logs)-->
<ul>
<!--@foreach($history->logs as $log)--><li>{$log->text}</li><!--@endforeach-->
</ul>
<!--@endif-->
</td>
</tr>
<!--@endforeach-->
</table>
</div>
<!--@endif-->
<div id="popFooter" class="tCenter gap1">
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
</div>