mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add js checkall function for each column of install/upgrade/remove
This commit is contained in:
parent
360c22f7e4
commit
5bbacabc0a
@ -506,6 +506,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
$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');
|
||||
|
@ -1,4 +1,24 @@
|
||||
<!-- BEGIN header -->
|
||||
<script>
|
||||
function check_all(which)
|
||||
{
|
||||
for (i=0; i<document.apps.elements.length; i++)
|
||||
{
|
||||
if (document.apps.elements[i].type == "checkbox" && document.apps.elements[i].name.substring(0,which.length) == which)
|
||||
{
|
||||
if (document.apps.elements[i].checked)
|
||||
{
|
||||
document.apps.elements[i].checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.apps.elements[i].checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<br>
|
||||
<div align="center">
|
||||
<table border="0" width="70%" cellspacing="0" cellpadding="2">
|
||||
@ -10,7 +30,7 @@
|
||||
<!-- END header -->
|
||||
|
||||
<!-- BEGIN app_header -->
|
||||
<form method="POST" action="{action_url}">
|
||||
<form name="apps" method="POST" action="{action_url}">
|
||||
<tr>
|
||||
<td colspan="5" bgcolor="#486591"><center><font color="#fefefe">{appdata}</font></center></td>
|
||||
<td colspan="4" bgcolor="#486591"><center><font color="#fefefe">{actions}</font></center></td>
|
||||
@ -76,6 +96,19 @@
|
||||
<!-- END submit -->
|
||||
|
||||
<!-- BEGIN app_footer -->
|
||||
<tr>
|
||||
<td bgcolor="{bg_color}" colspan="5"> </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}"> </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>
|
||||
</table>
|
||||
<table border="0" width="70%" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user