Subversion-Projekte lars-tiefland.medien

Revision

Revision 13 | Revision 28 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
        <head>
                <title>{$title}</title>
                <link href="./images/favicon.ico" rel="shortcut icon" type="image/x-icon">
                <link rel="stylesheet" href="./styles/Standard.css" type="text/css">
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                {literal}
                <script language="Javascript" type="text/javascript">
                        function check_album_form()
                        {
                                var a_name=document.album.a_name.value;
                                var a_pic=document.album.a_pic.value;
                                var del=document.album.del.checked;
                                var a_genre=document.album.a_genre.value;
                                if (a_name == "")
                                {
                                        window.alert("Bitte einen Namen für das Album eingeben!");
                                        document.album.a_name.focus();
                                        return false;
                                }
                                if(del && a_pic.length)
                                {
                                        window.alert("Bitte nur das Bild löschen oder durch ein anderes ersetzen, beides zusammen inst NICHT erlaubt!");
                                        return false;
                                }
                                if (a_genre==-1)
                                {
                                        window.alert("Bitte einen Musikstil auswählen!");
                                        return false;
                                }
                        }
                        function check_album_form()
                        {
                                var a_name=document.artist.a_name.value;
                                var a_pic=document.album.a_pic.value;
                                var del=document.album.del.checked;
                                if (a_name == "")
                                {
                                        window.alert("Bitte einen Namen für den Künstler eingeben!");
                                        document.album.a_name.focus();
                                        return false;
                                }
                                if(del && a_pic.length)
                                {
                                        window.alert("Bitte nur das Bild löschen oder durch ein anderes ersetzen, beides zusammen inst NICHT erlaubt!");
                                        return false;
                                }
                        }
                        function check_cd_form()
                        {
                                var cd_name=document.cd.cd_name.value;
                                var cd_tracks=document.cd.cd_t_anz.value;
                                var cd_album=document.cd.cd_album.value;
                                if (cd_name == "")
                                {
                                        window.alert("Bitte einen Namen für die CD eingeben!");
                                        document.cd.cd_name.focus();
                                        return false;
                                }
                                if (cd_tracks=="")
                                {
                                        window.alert("Bitte eine Titelanzahl eingeben!");
                                        document.cd.cd_tracks.focus();
                                        return false;
                                }
                                if (cd_tracks<1)
                                {
                                        window.alert("Eine CD muß mindestens einen Titel enthalten!");
                                        document.cd.cd_t_anz.focus();
                                        return false;
                                }
                                if (cd_album==-1)
                                {
                                        window.alert("Bitte ein Album auswählen!");
                                        return false;
                                }
                        }
                        function check_genre_form()
                        {
                                var g_name=document.genre.g_name.value;
                                if (g_name == "")
                                {
                                        window.alert("Bitte einen Namen für das Genre eingeben!");
                                        document.genre.g_name.focus();
                                        return false;
                                }
                        }
                </script>
                {/literal}
        </head>
        {if isset($focus)}
        <body onload="{$focus}.focus();">
        {else}
        <body>
        {/if}
        <table>
                <tr>
                        <th>{$L_LOGGED_IN_AS}</th>
                        <th>{$L_VERSION}</th>
                        <th>{$L_DATE} / {$L_TIME}</th>
                </tr>
                <tr>
                        <td align="center">{$u_name|default:"<i>[$L_NOT_LOGGED_IN]</i>"}</td>
                        <td align="center">{$version}</td>
                        <td align="center">{$date} {$L_O_CLOCK} </td>
                </tr>
        </table>
        <h1>{$h1|default:$title}</h1>
        <table>
        <tr>
                <th colspan="4">{$L_ACTIONS}</th>
        </tr>
        <tr align="center">
                <td>
                        <form action="index.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_ALBUMS}">
                        </form>
                </td>
                <td>
                        <form action="liste_cds.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_CDS}">
                        </form>
                </td>
                <td>
                        <form action="liste_artists.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_ARTISTS}">
                        </form>
                </td>
                <td>
                        <form action="liste_genres.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GENRES}">
                        </form>
                </td>
        </tr>
        <tr align="center">
                <td>
                        {if $u_name!=""}
                        <form action="logout.php" method="post">
                                <input type="submit" class="liteoption" name="logout" value="{$L_LOGOUT}">
                        </form>
                        {else}
                        <form action="login.php" method="post">
                                <input type="submit" class="liteoption" name="login" value="{$L_LOGIN}">
                        </form>
                        {/if}
                </td>
                <td>
                        {if $u_name!=""}
                        <form action="edit_user.php" method="post">
                                <input type="submit" class="liteoption" name="profile" value="{$L_PROFILE}" disabled="disabled">
                        </form>
                        {/if}
                </td>
                <td>
                        {if $u_name==""}
                        <form action="register.php" method="post">
                                <input type="submit" class="liteoption" name="register" value="{$L_REGISTER}" {$disabled2}>
                        </form>
                        {/if}
                </td>
                <td>
                        {if $u_name==""}
                        <form action="lost.php" method="post">
                                <input type="submit" class="liteoption" name="lost" value="{$L_LOST_PASSWORD}" disabled=disabled>
                        </form>
                        {/if}
                        {if $u_type==1}
                        <form action="viewlog.php" method="post">
                                <input type="submit" class="liteoption" name="lost" value="{$L_VIEW_LOG}">
                        </form>
                        {/if}
                </td>
        </tr>
        <tr align="center"> 
                <td>
                        {if $u_type==1}
                        <form action="edit_users.php" method="post">
                                <input type="submit" value="{$L_EDIT_USERS}" class="liteoption" disabled="disabled">
                        </form>
                        {/if}
                </td>
                <td colspan="3"></td>
        </tr>
</table>
{if $u_type==1}
<br>
<table>
        <tr>
                <th colspan=4>Admin {$L_TASKS}</th>
        </tr>
        <tr align="center">
                <td>
                        <form action="edit_albums.php" method="post">
                                <input type="submit" value="{$L_NEW_ALBUM}" class="liteoption">
                                <input type="hidden" name="mode" value="new">
                        </form>
                </td>
                <td>
                        <form action="edit_artists.php" method="post">
                                <input type="submit" value="{$L_NEW_ARTIST}" class="liteoption">
                                <input type="hidden" name="mode" value="new">
                        </form>
                </td>
                <td>
                        <form action="edit_cds.php" method="post">
                                <input type="submit" value="{$L_NEW_CD}" class="liteoption">
                                <input type="hidden" name="mode" value="new">
                        </form>
                </td>
                <td>
                        <form action="edit_genres.php" method="post">
                                <input type="submit" value="{$L_NEW_GENRE}" class="liteoption">
                                <input type="hidden" name="mode" value="new">
                        </form>
                </td>
        </tr>
</table>
{/if}
<br>