Subversion-Projekte lars-tiefland.ci

Revision

Revision 1129 | Revision 1369 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<style>
        ul{
                list-style-type:none;
        }
</style>
<script type="text/javascript">
    function checkAll(father)
    {
        for(i=0; i<document.formname.elements.length;i++)
        {
            if(document.formname.elements[i].id==father)
            {
                f_checked=document.formname.elements[i].checked;
            }
            id_arr=document.formname.elements[i].id.split("_");
            if(id_arr[0]==father)
            {
                document.formname.elements[i].checked=f_checked;
            }
        }
    }
</script>
<form method="post" action="" name="formname" enctype="multipart/form-data" id="user_rechte_form">
        <input type="hidden" name="{$csrf_name}" value="{$csrf_value}" />
        <table style="width:585px" border="1" cellspacing="0" cellpadding="3">
                <tr bgcolor="#{$webs.bgcolor_links}">
                        <td colspan="2">
                                <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                                <td><b>Benutzer-Rechte: Bearbeiten</b></td>
                                                <td style="width:50%" style="text-align:right"></td>
                                        </tr>
                                </table>
                        </td>
                </tr>
                {*if $user.domain==$webs.domain*}
                <tr>
                        <td style="width:13%"><b>Login:</b></td>
                        <td>{$user.user}</td>
                </tr>
                <tr>
                        <td style="width:13%" style="vertical-align:top">
                                <b>Rechte:</b>
                        </td>
                        <td>
                                <table border="0" cellspacing="0" cellpadding="0">
                                {section loop=$modules name=m_ind}
                                        <tr>
                                                <td>
                                                        <input type="checkbox"/>
                                                </td>
                                                <td colspan="3">
                                                        {$modules[m_ind].name}
                                                </td>
                                        </tr>
                                        {section loop=$modules[m_ind].tools name=t_ind}
                                        <tr>
                                                <td>&nbsp;</td>
                                                <td>
                                                        <input type="checkbox" onclick="javascript:checkAll({$modules[m_ind].tools[t_ind].ID})" id="{$modules[m_ind].tools[t_ind].ID}"/>
                                                </td>
                                                <td colspan="2">
                                                        {$modules[m_ind].tools[t_ind].name}
                                                </td>
                                        </tr>
                                        {section loop=$modules[m_ind].tools[t_ind].properties name=p_ind}
                                        {assign var=p_id value=$modules[m_ind].tools[t_ind].properties[p_ind].ID}
                                        <tr>
                                                <td colspan="2">&nbsp;</td>
                                                <td>
                                                        <input type="hidden" name="modules[{$modules[m_ind].ID}][{$modules[m_ind].tools[t_ind].ID}][{$modules[m_ind].tools[t_ind].properties[p_ind].ID}]" value="0">
                                                        <input type="checkbox" name="modules[{$modules[m_ind].ID}][{$modules[m_ind].tools[t_ind].ID}][{$modules[m_ind].tools[t_ind].properties[p_ind].ID}]" value="1"{if ( isset($user.properties[$p_id]))} checked="checked"{/if} id="{$modules[m_ind].tools[t_ind].ID}_{$modules[m_ind].tools[t_ind].properties[p_ind].ID}">
                                                </td>
                                                <td>
                                                        {$modules[m_ind].tools[t_ind].properties[p_ind].name}
                                                </td>
                                        </tr>
                                        {/section}
                                        {/section}
                                {/section}
                                </table>
                        </td>
                </tr>
                {*/if*}
                <tr>
                        <td style="text-align:right" colspan="2">
                                <input type="hidden" name="ID" value="{$user.ID}"/>
                                <input type="hidden" name="action" value="update"/>
                        </td>
                </tr>
        </table>
</form>