Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>Sistema</title>
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato%3A400%2C700%7CArimo%3A700&subset=latin&ver=1480945793
- " type="text/css">
- <link rel="stylesheet" href="assets/bootstrap.min.css" type="text/css" />
- <script type="text/javascript" src="assets/js/jquery.min.js"></script>
- <script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
- <link rel="stylesheet" href="assets/magnific-popup.css" type="text/css" />
- <link rel="stylesheet" href="assets/css/style2.css" type="text/css" />
- <link rel="stylesheet" href="assets/css/animate.min.css" type="text/css" />
- </head>
- <body style="background-color:#167c28;color:#FFF;font-family: tahoma;" class="img-responsive img-rounded" onload="changeColor();">
- <div style ="max-width:320px;margin:auto;margin-top:40px;" >
- <img class="img-responsive animated fadeInDown" src="assets/img/" style="margin-right:0px;margin-bottom:30px;margin-left:90px;" onmousemove="mudafrontend(5)" onmouseout="mudafrontend(6)" id="img1">
- </div>
- <?php
- $dsn = "mysql:dbname=banco;localhost";
- $dbuser = "root";
- $dbpass = "";
- try {
- $pdo = new PDO ($dsn, $dbuser, $dbpass);
- $pdo->exec("set names utf8");
- } catch (PDOException $e) {
- echo "Falhou: ".$e->getMessage ();
- }
- $sql = "SELECT count(distinct empresa) as qt FROM table_empresa ";
- $sql = $pdo->query($sql);
- if($sql->rowCount() > 0) {
- $total= $sql->fetch();
- // echo $total['qt'];
- echo json_encode($total['qt']);
- // json_encode($sql->fetch()['qt']);
- }
- ?>
- <script language="JavaScript">
- function verificarQuest() {
- $.ajax({
- url:'login.php',
- type:'POST',
- dataType:'json',
- success:function(json) {
- $('#teste').html(json.qt);
- }
- });
- }
- $(function(){
- setInterval(verificarQuest, 2000);
- verificarQuest();
- }
- </script>
- <div id="teste"></div>
- <div style="" class="">
- <div class="loginlogo">
- <P></P>
- <Table>
- <tr>
- <td ><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInLeft" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- <td><IMG class="animated fadeInRight" src="" WIDTH=40%><td>
- </tr>
- </Table>
- </div>
- <div style="max-width:420px;margin:auto;margin-top:40px;height:40px" class="container">
- <h1 id="login" style="margin-top:5px;margin-bottom:20px"></h1>
- <div class="box">
- <div class="box-body">
- <form method="POST" style="" action="logado.php">
- <div class="form-group">
- <h1 id="form">Login:</h1>
- <input type="text" name="email" class="" style="width:400px;"/><br/>
- </div>
- <div class="form-group">
- <h1 id="form">Senha:</h1>
- <input type="password" name="senha" class="" style="width:400px;" id="myInput"/><br/><br/>
- <input type="checkbox" onclick="myFunction()">Exibir Senha
- </div>
- <input type="submit" value="Entrar" id="btn" class=" btn btn-default img-responsive img-rounded" style=" width:90px;padding-top:2px;padding-bottom: 2px;padding-right: 2px;padding-top: 0px;margin-left:2px;margin-top:10px;background-image:url('lock.png') "/>
- </form>
- </div>
- </div>
- <br>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement