83 lines
3.8 KiB
PHP
83 lines
3.8 KiB
PHP
<?php
|
|
$language_code = (isset($_SESSION['user']['lang_code']))?$_SESSION['user']['lang_code']:$_SESSION['config']['default_lang_code'];
|
|
?>
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
<?php if(isset($_SESSION['message'])){ ?>
|
|
<div class="col-xs-12">
|
|
<div class="panel panel-info">
|
|
<div class="panel-body">
|
|
<?php echo '<span class="'.$_SESSION['message']['css_class'].'">'.$_SESSION['message']['state'].'</span>'; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<!-- displays login panel -->
|
|
<div class="col-sm-2 col-md-3 col-lg-4"></div>
|
|
<div class="col-xs-12 col-sm-8 col-md-6 col-lg-4">
|
|
<?php if(!isset($_SESSION['user'])){ ?>
|
|
<div class="panel panel-default">
|
|
<h4 class="text-center box-title"><?php echo $oTrans->getTranslation("signIn", $_SESSION['config']['default_lang_code']); ?></h4>
|
|
<div class="panel-body">
|
|
<form class="register-form form-horizontal" id="register_form" action="#" method="post">
|
|
<div class="col-xs-12 col-sm-12">
|
|
<!-- display message if unable to connect -->
|
|
<div class="form-group">
|
|
<!--<div class="col-xs-12 col-sm-12 text-center">-->
|
|
<?php
|
|
if(isset($_SESSION['message'])){
|
|
echo '<span class="'.$_SESSION['message']['css_class'].'">'.$oTrans->getTranslation($_SESSION['message']['translation_code'], $language_code).'</span>';
|
|
unset($_SESSION['message']);
|
|
}
|
|
?>
|
|
<!--</div>-->
|
|
</div>
|
|
<!-- display label & field for login -->
|
|
<div class="form-group">
|
|
<label class="control-label" data-error="wrong" data-success="right" for="login_form_email">* <?php echo $oTrans->getTranslation('login_form_email', $_SESSION['config']['default_lang_code']); ?></label>
|
|
<input class="form-control required_field" aria-describedby="basic-addon1" id="login_form_email" name="login_form_email" type="email" value=""/>
|
|
</div>
|
|
<!-- display label & field for password -->
|
|
<div class="form-group">
|
|
<label class="control-label" for="login_form_password">* <?php echo $oTrans->getTranslation('login_form_password', $_SESSION['config']['default_lang_code']); ?></label>
|
|
<input class="form-control required_field" type="password" id="login_form_password" name="login_form_password" value=""/>
|
|
</div>
|
|
<!-- display button submit -->
|
|
<div class="form-group">
|
|
<input class="form-control btn btn-success button_action"
|
|
name="login_form_submit"
|
|
id="login_form_submit"
|
|
style="width: 100px;"
|
|
type="submit"
|
|
value="<?php echo $oTrans->getTranslation('login_form_submit', $_SESSION['config']['default_lang_code']); ?>" />
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div> <!--ENDOF panel-body -->
|
|
</div> <!--ENDOF panel-default -->
|
|
<?php
|
|
} else {
|
|
echo '
|
|
<div class="panel panel-info">
|
|
<h4 class="text-center box-title">'.$oTrans->getTranslation('message_titleSuccessfulLogged', $_SESSION['config']['default_lang_code']).'</h4>
|
|
<div class="panel-body">
|
|
<span>'.
|
|
$oTrans->getTranslationWithData(
|
|
'message_contentSuccessfulLogged',
|
|
$_SESSION['config']['default_lang_code'],
|
|
array(
|
|
'<a href="'.$oConf->getURLRoot($oTrans->getTranslation('menu_trade_url', $language_code)).'">Trade</a>'
|
|
)
|
|
).'
|
|
</span>
|
|
</div>
|
|
</div>
|
|
';
|
|
?>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/><br/>
|