-
Notifications
You must be signed in to change notification settings - Fork 0
/
tablero.php
122 lines (96 loc) · 5.29 KB
/
tablero.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php include('header.php'); ?>
<?php include('sesion.php'); ?>
<?php require_once 'dbcon.php';?>
<body >
<?php include('navbar.php') ?>
<center><img src="images/logoISJU.png"></center>
<div class="container-fluid" id="">
<div class="row-fluid">
<?php include('barra_lateral_tablero.php'); ?>
<!--/span-->
<div class="span9" id="content">
<div class="row-fluid"></div>
<div class="row-fluid">
<!-- block -->
<!--sentencia de conteo " class where students.class = class.class_name AND class.category ='Secondary'"-->
<div id="block_bg" class="block">
<div class="navbar navbar-inner block-header">
<div class="muted pull-left">ESTADISTICAS</div>
</div>
<div class="block-content collapse in">
<div class="span12">
<?php
$query_students = mysqli_query($connection,"select * from carrera");
$count_students = mysqli_num_rows($query_students);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_students; ?>"><?php echo $count_students; ?></div>
<div class="chart-bottom-heading"><strong>ESTUDIANTES AMBAS CARRERAS</strong>
</div>
</div>
<?php
$query_class = mysqli_query($connection,"select * from carrera where carrera_nombre = 'software'");
$count_class = mysqli_num_rows($query_class);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_class; ?>"><?php echo $count_class; ?></div>
<div class="chart-bottom-heading"><strong>TEC. SUP. EN DES. DE SOFT.</strong>
</div>
</div>
<?php
$query_nursery = mysqli_query($connection," select * from estudiantes");
$count_nursery = mysqli_num_rows($query_nursery);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_nursery; ?>"><?php echo $count_nursery; ?></div>
<div class="chart-bottom-heading"><strong>INICIAL</strong>
</div>
</div>
<?php
$query_primary = mysqli_query($connection," select * from estudiantes");
$count_primary = mysqli_num_rows($query_primary);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_primary; ?>"><?php echo $count_primary; ?></div>
<div class="chart-bottom-heading"><strong>PRIMARIA</strong>
</div>
</div>
<?php
$query_secondary = mysqli_query($connection," select * from estudiantes");
$count_secondary = mysqli_num_rows($query_secondary);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_secondary ?>"><?php echo $count_secondary ?></div>
<div class="chart-bottom-heading"><strong>SECUNDARIA</strong>
</div>
</div>
<?php
$query_admin = mysqli_query($connection," select * from usuarios where estado='administrador' ");
$count_admin = mysqli_num_rows($query_admin);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_admin ?>"><?php echo $count_admin ?></div>
<div class="chart-bottom-heading"><strong>ADMINISTRADORES</strong>
</div>
</div>
<?php
$query_normal = mysqli_query($connection," select * from usuarios where estado='normal'");
$count_normal = mysqli_num_rows($query_normal);
?>
<div class="span3">
<div class="chart" data-percent="<?php echo $count_normal; ?>"><?php echo $count_normal; ?></div>
<div class="chart-bottom-heading"><strong>USUARIOS</strong>
</div>
</div>
</div>
</div>
<!-- /block -->
</div>
</div>
</div>
</div>
<?php include('footer.php'); ?>
</div>
<?php include('script.php'); ?>
</body>
</html>