source: admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/login.php @ 3064

Last change on this file since 3064 was 3064, checked in by joamuran, 3 years ago

wip

File size: 4.3 KB
Line 
1<html>
2<head>
3        <title>Admin Center</title>
4     <link rel="icon" href="icons/default.png">
5        <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
6       
7        <!--link rel="stylesheet" href="lib/bootstrap-design/css/material.min.css"-->
8        <link rel="stylesheet" href="lib/bootstrap-material-design/css/bootstrap-material-design.min.css">
9        <link rel="stylesheet" href="lib/bootstrap-material-design/css/ripples.min.css">
10        <!--link rel="stylesheet" href="lib/bootstrap-material-design/css/material-fullpalette.min.css"-->
11        <link rel="stylesheet" href="lib/snackbar/snackbar.css">
12        <!--link rel="stylesheet" href="lib/bootstrap-design/css/ripples.min.css"-->
13        <!--link rel="stylesheet" href="lib/material/css/ripples.min.css"-->
14        <!--link rel="stylesheet" href="lib/bootstrap-design/css/roboto.min.css"-->
15        <link rel="stylesheet" href="lib/bootstrap-material-design/css/material-custom.css">
16        <link rel="stylesheet" href="css/main.css">
17
18       
19        <!--jquery -->
20        <script type="text/javascript" src="lib/jquery/jquery.js"></script>
21        <script type="text/javascript" src="lib/jsencrypt/jsencrypt.js"></script>
22        <!--script type="text/javascript" src="lib/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script-->
23        <!--script type="text/javascript" src="lib/jquery.xmlrpc.js"></script-->
24       
25        <!--Utilities -->
26        <script type="text/javascript" src="lib/waitwin.js"></script>
27        <script type="text/javascript" src="lib/formFactory.js"></script>
28        <script type="text/javascript" src="lib/markdown/showdown.min.js"></script>
29        <script type="text/javascript" src="lib/utils.js"></script>
30
31
32        <script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
33        <script type="text/javascript" src="lib/snackbar/snackbar.min.js"></script>
34
35        <!-- Material Design -->
36        <!--script type="text/javascript" src="lib/bootstrap-design/js/ripples.min.js"></script-->
37        <script type="text/javascript" src="lib/bootstrap-material-design/js/ripples.min.js"></script>
38        <!--script type="text/javascript" src="lib/bootstrap-design/js/material.min.js"></script-->
39        <script type="text/javascript" src="lib/bootstrap-material-design/js/material.min.js"></script>
40       
41        <script type="text/javascript" src="lib/cryptojs-aes/aes.js"></script>
42    <script type="text/javascript" src="lib/cryptojs-aes/aes-json-format.js"></script>
43
44
45        <!--OWNER-->
46        <script type="text/javascript" src="lib/i18n.js"></script>
47        <script type="text/javascript" src="js/login.js"></script>
48
49
50
51
52</head>
53<body>
54       
55<?php
56function gt($text){
57        $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
58        switch ($lang){
59    case "en":
60        if ($text=="Authentication") return "Authentication";
61                else if ($text=="Username") return "Username";
62                else if ($text=="login") return "Login";
63                else return "Password";
64        break;
65        case "es":
66        if ($text=="Authentication") return "Autenticación";
67                else if ($text=="Username") return "Usuario";
68                else if ($text=="login") return "Entrar";
69                else return "Contraseña";
70        break;
71        default:
72        if ($text=="Authentication") return "Autenticació";
73                else if ($text=="Username") return "Usuari";
74                else if ($text=="login") return "Entra";
75                else return "Contrassenya";
76        break;
77        }
78}
79?>
80
81<!--div id="login" class="jumbotron col-lg-4 col-lg-offset-4" style="padding: 0px"-->
82<!-- Mirar en: http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 -->
83<div class="container-fluid"><div class="row">
84        <div id="login" class="container panel col-xs-12 col-md-4 col-md-offset-4" style="padding: 0px;display: inline-block; vertical-align: middle;float: none ">
85        <div class="login_header"></div>
86
87       
88                <!--h3 style="text-align:center;"><?php echo (gt("Authentication")); ?></h3-->
89        <div id="loginform" style="padding: 30px;">
90
91                <label for="input_username" class="control-label"><?php echo (gt("Username")); ?></label>
92                <input type="text" id="input_username" class="form-control"></input>
93                <label for="input_username" class="control-label"><?php echo (gt("Password")); ?></label>
94                <input type="password" id="input_password" class="form-control"></input>
95
96
97                <!--div style="margin-top: 10px; margin-left: 100px;"-->
98                <div style="float:right;">
99                        <button id="LoginButton" class="btn btn-primary btn-lg" value="<?php gt("login");?>"></button>
100                </div>
101        </div></div>
102        <div id="msg_err"></div>
103</div>
104
105</div> <!--row-->
106</div> <!--container-->
107
108<div id='snack' data-toggle='snackbar' data-html-allowed='true' data-content=''></div>
109</body>
110</html>
Note: See TracBrowser for help on using the repository browser.