-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinicio.php
87 lines (81 loc) · 3.24 KB
/
inicio.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
session_start();
include_once('php_conexion.php');
if($_SESSION['tipo_usu']=='a'){
}
else if ($_SESSION['tipo_usu']=='b'){
}
else{
header('location:error.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Blanco</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<link href="js/google-code-prettify/prettify.css" rel="stylesheet">
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-alert.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script src="js/bootstrap-scrollspy.js"></script>
<script src="js/bootstrap-tab.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script src="js/bootstrap-button.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/bootstrap-affix.js"></script>
<script src="js/holder/holder.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/application.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="assets/ico/favicon.png">
<style type="text/css">
body {
background-color: #F2F1EF;
}
</style>
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar" >
<div class="row-fluid">
<div class="span6" align="center">
<img src="img/logo.png">
</div>
<div class="span6">
<?php
$c=mysql_query("SELECT COUNT(nombreempleado) as trabajador FROM empleado");
if($d=mysql_fetch_array($c)){
$t_trabajador=$d['trabajador'];
}
$c=mysql_query("SELECT COUNT(nombre) as producto FROM producto");
if($d=mysql_fetch_array($c)){
$t_producto=$d['producto'];
}
?><br><br><br><br>
<strong>Numero de Trabajadores Registrados: </strong><span class="label label-success"><?php echo $t_trabajador; ?></span>
<br><br>
<strong>Numero de Buses Registrados: </strong><span class="label label-success"><?php echo $t_producto; ?></span>
</div>
</div>
</body>
</html>