Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 76 | Revision 94 | 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} - FIFA {$L_TYPE} {$year} in {$L_HOST}</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_games_form()
                        {
                                var g_name;
                                var g_m1;
                                var g_m2;
                                var g_g1;
                                var g_g2;
                                var g_location;
                                var g_day;
                                var g_month;
                                var g_hour;
                                var g_type;
                                var mode;
                                mode=document.games.mode.value;
                                g_name=document.games.g_name.value;
                                g_m1=document.games.g_m1.value;
                                g_m2=document.games.g_m2.value;
                                g_g1=document.games.g_g1.value;
                                g_g2=document.games.g_g2.value;
                                g_location=document.games.g_location.value;
                                g_day=document.games.Day.value;
                                g_month=document.games.Month.value;
                                g_hour=document.games.Hour.value;
                                g_typ=document.games.g_typ.value;
                                if (g_name=="")
                                {
                                        window.alert("Bitte dem Spiel einen Namen geben!");
                                        document.games.g_name.focus();
                                        return false;
                                }
                                if (g_m1==-1 || g_m2==-1)
                                {
                                        window.alert("Bitte eine Mannschaft auswählen!");
                                        return false;
                                }
                                if (g_location==-1)
                                {
                                        window.alert("Bitte einen Austragungsort auswählen!");
                                        return false;
                                }
                                if (g_typ==-1)
                                {
                                        window.alert("Bitte einen Spieltyp auswählen!");
                                        document.games.g_typ.focus();
                                        return false;
                                }
                                if (g_g1==g_g2 && g_typ > 1 && mode != "save")
                                {
                                        window.alert("Bei Spielen in der K.O. Runde ist ein Unentschieden nicht zulässig!");
                                        document.games.g_g1.focus();
                                        return false;
                                }
                        }
                        function check_types_form()
                        {
                                var t_name;
                                var t_max;

                                t_name=document.types.t_name.value;
                                t_max=document.types.t_max.value;

                                if (t_name=="")
                                {
                                        window.alert("Der Spieltyp muß einen Namen bekommen!");
                                        document.types.t_name.focus();
                                        return false;
                                }
                                if (t_max<0)
                                {
                                        window.alert("Der Spieltyp muß eine positive Anzahl von Spielen haben!");
                                        document.types.t_max.focus();
                                        return false;
                                }
                                if (t_max==0)
                                {
                                        window.alert("Die Anzahl von Spielen für disen Spieltyp muß größer 0 sein!");
                                        document.types.t_max.focus();
                                        return false;
                                }
                        }
                        function check_teams_form()
                        {
                                var t_name;
                                var t_group;

                                t_name=document.teams.t_name.value;
                                t_group=document.teams.t_group.value;

                                if (t_name=="")
                                {
                                        window.alert("Die Mannschaft muß einen Namen bekommen!");
                                        document.teams.t_name.focus();
                                        return false;
                                }
                                if (t_group==-1)
                                {
                                        window.alert("Die Mannschaft muß einer Gruppe zugewiesen werden!");
                                        document.teams.t_group.focus();
                                        return false;
                                }
                        }
                        function check_orte_form()
                        {
                                var l_name;
                                var l_name2;

                                l_name=document.orte.l_name.value;
                                l_name2=document.orte.l_name2.value;

                                if (l_name=="")
                                {
                                        window.alert("Der Austragungsort m8ß eienen Namen haben!");
                                        document.orte.l_name.focus();
                                        return false;
                                }
                                if (l_name2=="")
                                {
                                        window.alert("Das Stadion muß einen Namen haben!");
                                        document.orte.l_name2.focus();
                                        return false;
                                }
                        }
                        function check_register_form()
                        {
                                var u_name=document.register.username.value;
                                var email=document.register.email.value;
                                var password=document.register.password.value;
                                var password2=document.register.password2.value;
                                var u_lang=document.register.u_lang.value;
                                if (u_name=="")
                                {
                                        window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
                                        document.register.username.focus();
                                        return false;
                                }
                                if (email=="")
                                {
                                        window.alert({/literal}"{$L_EMAIL_EMPTY}"{literal});
                                        document.register.email.focus();
                                        return false;
                                }
                                if (password=="")
                                {
                                        window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
                                        document.register.password.focus();
                                        return false;
                                }
                                if (password2=="")
                                {
                                        window.alert({/literal}"{$L_PASSWORD_CONFIRM_EMPTY}"{literal});
                                        document.register.password2.focus();
                                        return false;
                                }
                                if (password!=password2)
                                {
                                        window.alert({/literal}"{$L_PASSWORD_DIFF}"{literal});
                                        document.register.password.focus();
                                        return false;
                                }
                                if (u_lang=="no")
                                {
                                        window.alert({/literal}"{$L_LANGUAGE_EMPTY}"{literal});
                                        document.register.u_lang.focus();
                                        return false;
                                }
                        }
                        function check_login_form()
                        {
                                var u_name=login.username.value;
                                var u_pass=login.password.value;
                                var u_type={/literal}{$u_type}{literal};
                                var finished={/literal}{$FINISHED}{literal};
                                if (u_name=="")
                                {
                                        window.alert({/literal}"{$L_USERNAME_EMPTY}"{literal});
                                        document.login.username.focus();
                                        return false;
                                }
                                if (u_pass=="")
                                {
                                        window.alert({/literal}"{$L_PASSWORD_EMPTY}"{literal});
                                        document.login.password.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} - <img src="{$logo}" width="64" alt="Logo" title="Logo">FIFA {$L_TYPE} {$year} {$L_IN} {$L_HOST}</h1>
        <table>
        <tr>
                <th colspan="5">{$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_GAMES}">
                        </form>
                </td>
                <td>
                        <form action="liste_teams.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TEAMS}">
                        </form>
                </td>
                <td>
                        <form action="liste_orte.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_VENUES}">
                        </form>
                </td>
                <td>
                        <form action="liste_groups.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_GROUPS}">
                        </form>
                </td>
                <td>
                        <form action="liste_types.php" method="post">
                                <input type="submit" class="liteoption" name="change" value="{$L_LIST_OF_TYPES}">
                        </form>
                </td>
        </tr>
        <tr align="center">
                <td>
                        <form action="table.php" method="post">
                                <input type="submit" class="liteoption" name="table" value="{$L_PREL_TABLE}">
                        </form>
                </td>
                <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>
                        {else}
                                {if $u_type==1}
                                        <form action="table_gen.php" method="post">
                                                <input type="submit" name="gen" value="Gruppentabellen berechnen" class="liteoption">
                                        </form>
                                {/if}
                        {/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 $display_result}
                        <form action="result.php" method="post">
                                <input type="submit" value="{$L_FINAL_RESULT}" class="liteoption">
                        </form>
                        {/if}
                </td>
                <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>
<br>