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

@ -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>