egroupware/calendar/templates/prisma/matrix_query.tpl

64 lines
1.6 KiB
Smarty
Raw Normal View History

2004-09-28 14:10:24 +02:00
<!-- $Id$ -->
<!-- BEGIN matrix_query -->
2004-09-30 10:54:24 +02:00
<script language="javascript">
<!--
function removeSelectedOptions(id)
{
openerSelectBox = document.getElementById(id);
if (openerSelectBox == null)
window.close();
for (i=0; i < openerSelectBox.length; i++)
{
if (openerSelectBox.options[i].selected)
{
openerSelectBox.removeChild(openerSelectBox[i]);
2004-09-30 15:26:17 +02:00
//openerSelectBox.options[i--] = null
2004-09-30 10:54:24 +02:00
}
}
}
2004-09-30 15:26:17 +02:00
function selectAll(id)
2004-09-30 10:54:24 +02:00
{
2004-09-30 15:26:17 +02:00
openerSelectBox = document.getElementById(id);
2004-09-30 10:54:24 +02:00
if (openerSelectBox == null)
window.close();
2004-09-30 15:26:17 +02:00
2004-09-30 10:54:24 +02:00
for (i=0; i < openerSelectBox.length; i++)
2004-09-30 15:26:17 +02:00
openerSelectBox.options[i].selected = 1 ;
document.matrixform.submit();
2004-09-30 10:54:24 +02:00
}
-->
</script>
2004-09-28 14:10:24 +02:00
<center>
<form action="{action_url}" method="post" name="matrixform">
<table border="0" width="98%">
<tr bgcolor="{th_bg}">
<td colspan="2" align="center"><b>{title}</b></td>
</tr>
{rows}
2004-09-30 15:26:17 +02:00
<tr bgcolor="#EEEEEE">
<td align="right">{delete_participants}&nbsp;:</td>
<td align="left"><a href="#" onClick="javascript:removeSelectedOptions('uicalendar_matrix_users')"><img src="/calendar/templates/prisma/images/delete.png" border="0"></a></td>
</tr>
2004-09-28 14:10:24 +02:00
<tr>
2004-09-30 10:54:24 +02:00
<td colspan="2" align="center">
2004-09-30 15:26:17 +02:00
<input type="button" value="{submit_button}" onClick="javascript:selectAll('uicalendar_matrix_users')">
2004-09-28 14:10:24 +02:00
</td>
</tr>
</table>
</form>
</center>
<!-- END matrix_query -->
<!-- BEGIN list -->
<tr bgcolor="{tr_color}">
2004-09-30 10:54:24 +02:00
<td valign="top" width="35%" align="right"><b>&nbsp;{field}&nbsp;:&nbsp;</b></td>
<td valign="top" width="65%" align="left">{data}</td>
2004-09-28 14:10:24 +02:00
</tr>
<!-- END list -->