widget module(not completed)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8987 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-02 06:14:53 +00:00
parent 6285e0b316
commit 1f6fe648a8
11 changed files with 555 additions and 69 deletions

View file

@ -1,44 +1,38 @@
<h3 class="xeAdmin">{$lang->widget} <span class="gray">{$lang->cmd_management}</span></h3>
<include target="header.html" />
<!-- 설명 -->
<div class="infoText">{nl2br($lang->about_widget)}</div>
<!-- 위젯의 목록 -->
<table cellspacing="0" class="crossTable">
<thead>
<tr>
<th scope="col"><div>{$lang->widget_name}<div></th>
<th scope="col"><div>{$lang->version}<div></th>
<th scope="col"><div>{$lang->author}<div></th>
<th scope="col"><div>{$lang->date}<div></th>
<th scope="col"><div>{$lang->path}<div></th>
<th scope="col"><div>{$lang->cmd_generate_code}<div></th>
</tr>
</thead>
<tbody>
<!--@foreach($widget_list as $key => $val)-->
<tr class="row{$cycle_idx}">
<th scope="row" rowspan="2">
<div>
<a href="{getUrl('','module','widget','act','dispWidgetInfo','selected_widget',$val->widget)}" onclick="popopen(this.href,'widget_info');return false">{$val->title}</a><br />
({$val->widget})
</div>
</th>
<td class="number center">{$val->version}</td>
<td class="nowrap">
<!--@foreach($val->author as $author)-->
<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;"><!--@end-->{$author->name}<!--@if($author->homepage)--></a><!--@end-->
<!--@endforeach-->
</td>
<td class="date nowrap center">{zdate($val->date, 'Y-m-d')}</td>
<td class="number">{$val->path}</td>
<td class="center"><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->description))}&nbsp;
</td>
</tr>
<!--@end-->
</tbody>
</table>
<div class="table even easyList">
<table width="100%" border="1" cellspacing="0">
<caption>All({$tCount})</caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->widget_name}</th>
<th scope="col">{$lang->version}</th>
<th scope="col">{$lang->author}</th>
<th scope="col">{$lang->path}</th>
<th scope="col">{$lang->cmd_generate_code}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<tr loop="$widget_list => $widget">
<td class="title">
<p><strong>{$widget->title}</strong></p>
<p>{$widget->description}</p>
<p cond="$widget->need_update == 'Y'" class="update">
{$lang->msg_avail_update} <a href="{$widget->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>{$widget->version}</td>
<td>
<block loop="$widget->author => $author">
<a cond="$author->homepage" href="{$author->homepage}" target="_blank">{$author->name}</a>
<block cond="!$author->homepage">{$author->name}</block>
</block>
</td>
<td>{$widget->path}</td>
<td><a href="{getUrl('act', 'dispWidgetAdminGenerateCode', 'selected_widget', $widget->widget)}">{$lang->cmd_generate_code}</a></td>
<td><a cond="$widget->remove_url" href="{$widget->remove_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
</tr>
</tbody>
</table>
</div>