Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<html>
    <head>
        <title>Content-Management-System - Webagentur Niewerth</title>
        <link rel="stylesheet" type="text/css" href="buttons.css">
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta name="author" content="Webagentur Niewerth - www.weban.de">
        <meta name="revisit-after" content="30 days">
        <meta name="language" content="deutsch, de">
        <meta name="distribution" content="global">
        <meta name="robots" content="all">
        <script type="text/javascript" language="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>
        <style type="text/css">
            .error
            {
                font-size:50px;
                color: red;
                text-align : center;
            }
        </style>
    </head>
    <body bgcolor="#{$webs.bgcolor_seite}" text="#000096">
        {if $error}
            <div class="error">
                {$meld}
            </div>
        {else}
        {if $user.ID}
        <form method="post" action="" name="formname" enctype="multipart/form-data">
            <table width="585" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
                <tr bgcolor="#{$webs.bgcolor_links}"> 
                    <td colspan="2"> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                                <td>
                                    <font color="#{$webs.font_color_links}">
                                        <b>Benutzer-Rechte: Bearbeiten</b>
                                    </font>
                                </td>
                                <td width="50%" align="right">
                                    {if $user.site==$webs.domain}
                                    <a href="admin_user.php?action=edit&ID={$user.ID}">
                                        <font color="#{$webs.font_color_links}">
                                            <b>zur&uuml;ck zu Benutzerdaten</b>
                                        </font>
                                    </a>
                                    {else}
                                    <a href="admin_user.php">
                                        <font color="#{$webs.font_color_links}">
                                            <b>zur&uuml;ck zur Benutzerliste</b>
                                        </font>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div style="color:#FF0000;font-weight:bold">Sie haben nicht das Recht diesen Benutzer zu editieren!</div>
                                    {/if}
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                {if $user.site==$webs.domain}
                <tr>
                    <td bgcolor="#{$webs.bgcolor_links}" width="13%">
                        <font color="#{$webs.font_color_links}">
                            <b>Login:</b>
                        </font>
                    </td>
                    <td bgcolor="#{$webs.bgcolor_rechts}">
                        <font color="#{$webs.font_color_rechts}"> {$user.user}</font>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#{$webs.bgcolor_links}" width="13%" valign="top">
                        <font color="#{$webs.font_color_links}">
                            <b>Rechte:</b>
                        </font>
                    </td>
                    <td bgcolor="#{$webs.bgcolor_rechts}"> 
                        <table border="0" cellspacing="0" cellpadding="0">
                        {section loop=$modules name=m_ind}
                            <tr> 
                                <td>
                                    <input type="checkbox">
                                </td>
                                <td colspan="3">
                                    <font color="#{$webs.font_color_rechts}">
                                        {$modules[m_ind].name}
                                    </font>
                                </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">
                                    <font color="#{$webs.font_color_rechts}">
                                        {$modules[m_ind].tools[t_ind].name}
                                    </font>
                                </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>
                                    <font color="#{$webs.font_color_rechts}"> 
                                    {$modules[m_ind].tools[t_ind].properties[p_ind].name}
                                    </font>
                                </td>
                            </tr>
                                {/section}
                            {/section}
                        {/section}
                        </table>
                    </td>
                </tr>
                {/if}
                <tr> 
                    <td align="right" colspan="2" bgcolor="#{$webs.bgcolor_links}"> 
                        <input type="hidden" name="ID" value="{$user.ID}">
                        <input type="hidden" name="action" value="update">
                        <input type="submit" value="OK">
                        <input type="reset" value="Zur&uuml;cksetzen">
                    </td>
                </tr>
            </table>
        </form>
        {/if}
        {/if}
    </body>
</html>