change easyinstall update language

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9077 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-07 06:10:28 +00:00
parent 67469dce93
commit 7f9777e3c7
6 changed files with 23 additions and 15 deletions

View file

@ -28,7 +28,7 @@
<p><strong>{$addon->title}</strong></p>
<p>{$addon->description}</p>
<p cond="$addon->need_update == 'Y'" class="update">
{$lang->msg_avail_update} <a href="{$addon->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
{$lang->msg_avail_easy_update} <a href="{$addon->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>{$addon->version}</td>

View file

@ -236,9 +236,9 @@
<value xml:lang="tr"><![CDATA[Mevcut pakete bağlı paket listesi]]></value>
<value xml:lang="vi"><![CDATA[Gói cài đặt này phụ thuộc vào các gói khác trong danh sách]]></value>
</item>
<item name="msg_avail_update">
<value xml:lang="ko"><![CDATA[이 항목 업데이트가 가능합니다.]]></value>
<value xml:lang="en"><![CDATA[There is available update for this item.]]></value>
<item name="msg_avail_easy_update">
<value xml:lang="ko"><![CDATA[이 항목의 새로운 버전이 있습니다.]]></value>
<value xml:lang="en"><![CDATA[There is new version for this item.]]></value>
</item>
<item name="msg_do_you_like_update">
<value xml:lang="ko"><![CDATA[업데이트 하시겠습니까?]]></value>

View file

@ -25,7 +25,7 @@
<p><a href="{getUrl('act', 'dispLayoutAdminInstanceList', 'type', $type, 'layout', $layout->layout)}">{$layout->title}</a></p>
<p>{$layout->description}</p>
<p cond="$layout->need_update == 'Y'" class="update">
{$lang->msg_avail_update} <a href="{$layout->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
{$lang->msg_avail_easy_update} <a href="{$layout->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>{$layout->version}</td>
@ -42,7 +42,7 @@
<td class="title">
<p><a href="{getUrl('act', 'dispLayoutAdminInstanceList', 'type', $type, 'layout', $layout->layout)}">{$layout->layout}</a></p>
<p cond="$layout->need_update == 'Y'" class="update">
{$lang->msg_avail_update} <a href="{$layout->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
{$lang->msg_avail_easy_update} <a href="{$layout->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>-</td>

View file

@ -33,7 +33,18 @@
$module_list = $oModuleModel->getModuleList();
foreach($module_list as $key => $val) {
$val->delete_url = $oAutoinstallModel->getRemoveUrlByPath($val->path);
$module_list[$key]->delete_url = $oAutoinstallModel->getRemoveUrlByPath($val->path);
// get easyinstall need update
$packageSrl = $oAutoinstallModel->getPackageSrlByPath($val->path);
$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
$module_list[$key]->need_autoinstall_update = $package[$packageSrl]->need_update;
// get easyinstall update url
if ($module_list[$key]->need_autoinstall_update)
{
$module_list[$key]->update_url = $oAutoinstallModel->getUpdateUrlByPackageSrl($packageSrl);
}
}
$output = $oAdminModel->getFavoriteList('0');

View file

@ -35,12 +35,9 @@
<td class="title">
<p><a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a></p>
<p>{$val->description}</p>
<!--@if($val->need_install)-->
<p class="update">이 항목 업데이트가 가능합니다. <a href=="#" onclick="doUpdateModule('{$val->module}'); return false;">업데이트 하시겠습니까?</a></p>
<!--@end-->
<!--@if($val->need_update)-->
<p class="update">이 항목 설치가 가능합니다. <a href="#" onclick="doInstallModule('{$val->module}');return false;">설치 하시겠습니까?</a></p>
<!--@end-->
<p cond="$val->need_install" class="update">이 항목 설치가 가능합니다. <a href="#" onclick="doInstallModule('{$val->module}');return false;">설치 하시겠습니까?</a></p>
<p cond="$val->need_update" class="update">이 항목 업데이트가 가능합니다. <a href=="#" onclick="doUpdateModule('{$val->module}'); return false;">업데이트 하시겠습니까?</a></p>
<p cond="$val->need_autoinstall_update" class="update">이 항목의 새로운 버전이 있습니다. <a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">업데이트 하시겠습니까?</a></p>
</td>
<td>{$val->version}</td>
<td>
@ -57,7 +54,7 @@
<td>{$val->path}</td>
<td>
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}">{$lang->cmd_delete}</a>
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td>
</tr>

View file

@ -19,7 +19,7 @@
<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>
{$lang->msg_avail_easy_update} <a href="{$widget->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>{$widget->version}</td>