Esempio n. 1
0
 public function getStringStatus($value)
 {
     if (self::STATUS_ADMIN == $value) {
         return i18n::getLabelWithoutWrite("user.status.administrator");
     } else {
         if (self::STATUS_USER == $value) {
             return i18n::getLabelWithoutWrite("user.status.user");
         }
     }
     return null;
 }
Esempio n. 2
0

<!-- MAIN CSS (REQUIRED ALL PAGE)-->
<!-- 		<link href="assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"> -->
<!-- 		<link href="assets/css/style.css" rel="stylesheet"> -->
<!-- 		<link href="assets/css/style-responsive.css" rel="stylesheet"> -->
<!-- 	</head> -->
<?php 
require_once 'public/masterPages/head.php';
$message = "";
$style = "";
if (!isset($_POST[User::LOGIN_EVENT])) {
    $style = "style='display:none;'";
} else {
    if ($_POST[User::LOGIN_EVENT] == User::LOGIN_FAIL) {
        $message = i18n::getLabelWithoutWrite("message.user.login.fail");
    } else {
        if ($_POST[User::LOGIN_EVENT] == User::LOGIN_NO_PASSWORD) {
            $message = "no password";
        } else {
            if ($_POST[User::LOGIN_EVENT] == User::LOGIN_NO_USERNAME) {
                $message = "no Username";
            }
        }
    }
    $message = $_POST[User::LOGIN_EVENT];
    $style = "style='display:block;'";
}
?>
<body class="login tooltips">
	<!--