<!--
Copyright by Thomas Bley 2002-2003
thomas.bley@simple-groupware.de

http://www.simple-groupware.de
-->
{include file="calendar2_header.tpl" pagetitle="Calendar by Thomas Bley - Simple Groupware Solutions"}
{include file="$gentemplates/_navi.tpl"}

<script language="JavaScript">
    {literal}
    function setCheckboxes(do_check) {
        var elts      = document.forms['f'].elements['icals[]'];
        var elts_cnt  = (typeof(elts.length) != 'undefined')
                      ? elts.length
                      : 0;

        if (elts_cnt) {
            for (var i = 0; i < elts_cnt; i++) {
                elts[i].checked = do_check;
            } // end for
        } else {
            elts.checked        = do_check;
        } // end if... else

        return true;
    } // end of the 'setCheckboxes()' function

    {/literal}
</script>

<br>
<center>
<table border="0" width="500" cellspacing="0" cellpadding="0" class="calborder">
	<tr>
		<td align="left" valign="top" width="1%" class="sideback"><img src="templates/default/media/spacer.gif" width="1" height="20" alt=" "></td>
		<td align="center" width="98%" class="sideback"><font class="G10BOLD">{$hashmap.custom_view}</font></td>
		<td align="right" valign="top" width="1%" class="sideback"></td>
	</tr>
	<tr>
		<td colspan="3"><img src="templates/default/media/spacer.gif" width="1" height="6" alt=" "></td>
	</tr>
	<tr>
		<td colspan="3" align="center">
            <form action="{$minical_view}.php" method="get" name="f">
            <input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
            <input type="Hidden" name="getdate" value="{$getdate}">
            <input type="Hidden" name="cal" value="custom">
            <input type="Hidden" name="minical_view" value="{$minical_view}">
            <br>
            <input type="Submit" name="submit" value="{$hashmap.customize}">
            <br><br>
            {$buffer|smarty:nodefaults}
		    <br><a href="#" onclick="setCheckboxes(true); return false;">{$selectall}</a>&nbsp;&nbsp;<a href="#" onclick="setCheckboxes(false); return false;">{$selectnone}</a>
            </form>
        </td>
    </tr>
</table>
</center>
{include file="$gentemplates/_footer.tpl" aktUser=$username}

