예제 #1
0
파일: login.php 프로젝트: jedaika/Trainings
    function displayBody()
    {
        parent::displayBody();
        $translator = new Translator();
        echo <<<EOF
<div class="container">
   <div class="page-header">
        <h1>{$translator->User_login}</h1>
      </div>

EOF;
        switch ($this->result) {
            case self::OK:
                echo "   <p class=\"lead\">{$translator->User_login_ok_Desc}</p>\n<script type=\"text/javascript\">\nwindow.location.href='/';\n</script>\n";
                break;
            case User::NOT_EXISTS:
                echo "   <p class=\"lead\">{$translator->User_notexists_Error_Desc}</p>";
                break;
            default:
                echo "   <p class=\"lead\">{$translator->User_login_Error_Desc}</p>";
        }
        echo <<<EOF
      <p >{$translator->Error_Back}</p>
</div>

EOF;
    }
예제 #2
0
    function displayBody()
    {
        parent::displayBody();
        $translator = new Translator();
        echo <<<EOF
<div class="container">
    <div class="row">
\t<div id="title"><h2>{$translator->Title}</h2></div>
    </div>
    <form class="form-signin" action="/login" method="post">
        <h2 class="form-signin-heading"><small>{$translator->Please_sign_in}</small></h2>
        <label for="inputEmail" class="sr-only">{$translator->Email_address}</label>
        <input name="email" type="email" id="inputEmail" class="form-control" placeholder="{$translator->Email_address}" required autofocus>
        <label for="inputPassword" class="sr-only">{$translator->Password}</label>
        <input name="password" type="password" id="inputPassword" class="form-control" placeholder="{$translator->Password}" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">{$translator->Sign_in}</button>
\t<ul class="nav nav-pills row">
\t <li role="presentation col-md-1">
         <a href="/register_user"><span class="glyphicon glyphicon-user"></span> {$translator->Register_user}</a></li>
\t <li role="presentation  col-md-1">
         <a href="/recover_password"><span class="glyphicon glyphicon-info-sign" ></span> {$translator->Recover_password}</a></li>
\t</ul>
    </form>
</div> <!-- /container -->

EOF;
    }
예제 #3
0
파일: 403.php 프로젝트: jedaika/Trainings
    function displayBody()
    {
        parent::displayBody();
        $translator = new Translator();
        echo <<<EOF
<div class="container">
      <div class="page-header">
        <h1>{$translator->Error_403_Header}</h1>
      </div>
      <p class="lead">{$translator->Error_403_Desc}</p>
      <p >{$translator->Error_Back}</p>
</div>

EOF;
    }
예제 #4
0
    function displayBody()
    {
        parent::displayBody();
        $translator = new Translator();
        echo <<<EOF
<div class="container">
      <div class="page-header">
        <h1>{$translator->Error_No_access_yet_Header}</h1>
      </div>
      <p class="lead">{$translator->Error_No_access_yet_Desc}</p>
      <p >{$translator->Error_Back}</p>
</div>

EOF;
        if (isset($_COOKIE)) {
            Session::delete();
        }
    }
예제 #5
0
    function displayBody()
    {
        parent::displayBody();
        $translator = new Translator();
        if (isset($_POST) && sizeof($_POST) > 0) {
            $this->addUser();
            return;
        }
        echo <<<EOF
<div class="container">
<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
    <form role="form" action="?" method="post">
\t<h2>{$translator->Header_lg} <small>{$translator->Header_sm}</small></h2>
\t    <hr class="colorgraph">
\t    <div class="row">
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
                        <input type="text" name="first_name" id="first_name" class="form-control input-lg" placeholder="{$translator->First_Name}" tabindex="1" required>
\t\t    </div>
\t\t</div>
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="text" name="last_name" id="last_name" class="form-control input-lg" placeholder="{$translator->Last_Name}" tabindex="2" required>
\t\t    </div>
\t\t</div>
\t    </div>
\t    <div class="form-group">
\t\t<input type="email" name="email" id="email" class="form-control input-lg" placeholder="{$translator->Email_Address}" tabindex="3" required>
\t    </div>
\t    <div class="row">
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="password" name="password" id="password" class="form-control input-lg" placeholder="{$translator->Password}" tabindex="4" required>
\t\t    </div>
\t\t</div>
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="password" name="password_confirmation" id="password_confirmation" class="form-control input-lg" placeholder="{$translator->Confirm_Password}" tabindex="5" required>
\t\t    </div>
\t\t</div>
\t    </div>
\t    <div class="row">
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="text" name="company" id="company" class="form-control input-lg" placeholder="{$translator->Company}" tabindex="6" required>
\t\t    </div>
\t\t</div>
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="text" name="position" id="position" class="form-control input-lg" placeholder="{$translator->Position}" tabindex="7" required>
\t\t    </div>
\t\t</div>
\t    </div>
    \t    <div class="form-group">
\t\t<input type="phone" name="phone" id="phone" class="form-control input-lg" placeholder="{$translator->Phone}" tabindex="8" required>
\t    </div>
\t    <div class="row">
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="text" name="country" id="country" class="form-control input-lg" placeholder="{$translator->Country}" tabindex="9" required>
\t\t    </div>
\t\t</div>
\t\t<div class="col-xs-12 col-sm-6 col-md-6">
\t\t    <div class="form-group">
\t\t\t<input type="text" name="city" id="city" class="form-control input-lg" placeholder="{$translator->City}" tabindex="10" required>
\t\t    </div>
\t\t</div>
\t    </div>

\t    <div class="form-group">
\t\t<label>{$translator->Interface_lan}: </label>
\t\t<select id="interface" name="interface" class="scrollMe" title="" data-size="3" tabindex="11">
\t\t<option value="uk">Українська</option>
\t\t<option value="ru">Русский</option>
\t\t<option value="en">English</option>
\t\t</select>
\t    </div>
\t    <div class="row">
\t\t<div class="col-xs-4 col-sm-3 col-md-3">
\t\t    <span class="button-checkbox">
\t\t\t<button type="button" class="btn" data-color="info" tabindex="12"> {$translator->I_agree}</button>
                        <input type="checkbox" name="subscribe" id="subscribe" class="hidden" value="1">
\t\t    </span>
\t\t</div>
\t\t<div class="col-xs-8 col-sm-9 col-md-9">
\t\t     {$translator->Subscribe}
\t\t</div>
\t    </div>
\t    <hr class="colorgraph">
\t    <div class="row">
\t\t<div class="col-xs-12 col-md-6"><input type="submit" value="{$translator->Register}" class="btn btn-primary btn-block btn-lg" tabindex="13"></div>
\t\t<div class="col-xs-12 col-md-6"><a href="/signin" class="btn btn-success btn-block btn-lg">{$translator->Sign_in}</a></div>
\t    </div>
    </form>
</div> <!-- /container -->

EOF;
    }