<!DOCTYPE html>
<html lang="de">
<? require_once("../common/version_comment.inc.php"); ?>
<?php
$translation = \DynCom\mysyde\common\classes\Registry::get('translation');
?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title><?php echo $translation->get('backend_forget_title'); ?></title>
    <link
        href="/layout/admin/css/mysyde.css?t=<?= filemtime($_SERVER['DOCUMENT_ROOT'] . '/layout/admin/css/mysyde.css')?>"
        rel="stylesheet" type="text/css" />
    <link
        href="/layout/admin/css/responsive.css?t=<?= filemtime($_SERVER['DOCUMENT_ROOT'] . '/layout/admin/css/responsive.css')?>"
        rel="stylesheet" type="text/css" />


    <link rel="apple-touch-icon" sizes="180x180" href="/layout/admin/img/2016/favicons/apple-touch-icon.png">
    <link rel="icon" type="image/png" href="/layout/admin/img/2016/favicons/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="/layout/admin/img/2016/favicons/favicon-16x16.png" sizes="16x16">
    <link rel="manifest" href="/layout/admin/img/2016/favicons/manifest.json">
    <link rel="mask-icon" href="/layout/admin/img/2016/favicons/safari-pinned-tab.svg" color="#99c137">
    <meta name="theme-color" content="#ffffff">
</head>
<body class="login">
<div id="login-container">
    
        <div id="login">

<div class="login-wrapper">
    <div class="login-left-content">
    <div id="mysyde-logo"><img src="/layout/admin/img/icons/mysyde-icon.png" alt="MySyde Icon"></div>
            <div id="login_1"><?php echo $translation->get('backend_forget_title'); ?></div>
            
            <p>
                <?php if(!isset($_SESSION['user_email'])){ ?>
                    <?php echo $translation->get('backend_forget_description'); ?>
                <?php }else{
                    echo $translation->get('backend_forget_code');
                } ?>
            </p>
            
            <div class="forgetError"><p><?=$_SESSION['forget_error'];?></p></div>
                <div id="login_2">

                    <form name="form_admin_password" id="form_admin_password" action="?action=forget_password" method="post">
                        <?php if(!isset($_SESSION['user_email'])){ ?>
                        <div class="label"><label for="input_login">Email
                                :</label></div>
                        <div class="input"><input class="code" type="email" name="input_login" id="input_login" /></div>
                       <?php } else{ ?>
                        <div class="label"><label for="input_login">Code
                                :</label></div>
                                <div class="input"><input class="code" type="text" name="password_recovery_code" id="input_login" /></div>
                        <div class="input"><input class="code" type="hidden" name="user_email" value="<?= $_SESSION['user_email'];?>"  /></div>
                        <?php } ?>
                        
                        <div class="button-wrapper">
                        
                        <input class="button" name="" type="submit"
                               value="Senden" />
                               
                               </div>
                              
                    </form>
                    
                </div>
            </div>
            <div class="video-wrapper">
    <video src="https://www.breadcrumb-solutions.de/mysyde-login-animation.mov"autoplay="true" height="100%" loop="true" muted="true" ></video>
</div>
            </div>



                <?
            
            ?>






        </div>
    </div>

</div>
</body>
</html>