Add check_all checkboxes to the top of the list

This commit is contained in:
Zone 2002-09-11 05:39:46 +00:00
parent e4044935f0
commit 0d7f3ed630
2 changed files with 19 additions and 5 deletions

View File

@ -363,6 +363,12 @@
$setup_tpl->set_var('app_remove',lang('Remove'));
$setup_tpl->set_var('app_upgrade',lang('Upgrade'));
$setup_tpl->set_var('app_resolve',lang('Resolve'));
$setup_tpl->set_var('check','check.gif');
$setup_tpl->set_var('install_all',lang('Install All'));
$setup_tpl->set_var('upgrade_all',lang('Upgrade All'));
$setup_tpl->set_var('remove_all',lang('Remove All'));
$setup_tpl->set_var('bg_color',$bgcolor[0]);
$setup_tpl->pparse('out','app_header');
@reset ($setup_info);
@ -507,11 +513,6 @@
}
}
$setup_tpl->set_var('check','check.gif');
$setup_tpl->set_var('install_all',lang('Install All'));
$setup_tpl->set_var('upgrade_all',lang('Upgrade All'));
$setup_tpl->set_var('remove_all',lang('Remove All'));
$setup_tpl->set_var('submit',lang('Submit'));
$setup_tpl->set_var('cancel',lang('Cancel'));
$setup_tpl->pparse('out','app_footer');

View File

@ -45,6 +45,19 @@ function check_all(which)
<td align="center">{app_resolve}</td>
<td align="center">{app_remove}</td>
</tr>
<tr>
<td bgcolor="{bg_color}" colspan="5">&nbsp;</td>
<td bgcolor="{bg_color}" align="center">
<a href="javascript:check_all('install')"><img src="templates/default/images/{check}" border="0" height="16" width="21" alt="{install_all}"></a>
</td>
<td bgcolor="{bg_color}" align="center">
<a href="javascript:check_all('upgrade')"><img src="templates/default/images/{check}" border="0" height="16" width="21" alt="{upgrade_all}"></a>
</td>
<td bgcolor="{bg_color}">&nbsp;</td>
<td bgcolor="{bg_color}" align="center">
<a href="javascript:check_all('remove')"><img src="templates/default/images/{check}" border="0" height="16" width="21" alt="{remove_all}"></a>
</td>
</tr>
<!-- END app_header -->
<!-- BEGIN apps -->