-
Notifications
You must be signed in to change notification settings - Fork 0
/
granbu.php
88 lines (77 loc) · 3.32 KB
/
granbu.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
<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
<title>Business Objective</title>
<link type="text/css" rel="stylesheet" href="css.css">
<style type="text/css">
<!-- esto sirve para trasponer la tabla con la informacion
saca esta etiqueta style y su contenido para verla ordenada de otra manera, aunque con esto se ve mejor -->
</style>
</head>
<body>
<div class="col-md-1"></div><div class="col-md-10">
<?php
include 'class.php';
$a = new usuario();
$a->sessionstarter();
$b = new bu_excellence();
$c = new Business_Objectives();
if ($a->edbu == 0){
echo "Ud no tiene permiso para estar aca.";
}
else {
echo "<br><br><br>
<table id='2' > </table> <br>
<a href = 'menuuser.php'><input type='submit' value='Go to Menu'></a> ";
} ?>
</div><div class="col-md-1"></div>
<script language="javascript" type="text/javascript" src ="jquery-2.1.4.min.js"></script>
<script type="text/javascript">
$.ajax({
type: 'POST',
url: 'ajaxgranbu.php',
dataType: 'json',
success: function (response) {
var trHTML =
'<tr bgcolor ="#FFFFFF"><th></th>'+
'<th>Manage Service Quality</th>'+
'<th>Realize Scale Economies</th>'+
'<th>Optimize IT Internal Process</th>'+
'<th>Standardize Platforms and Architecture</th>'+
'<th>Deliver on Schedule</th>'+
'<th>Effectively Support End Users</th>'+
'<th>Improve Business Productivity</th>'+
'<th>Propose Enabling Solutions</th>'+
'<th>Understand Emerging Technologies</th>'+
'<th>Understand Business Units Strenghs</th></tr>';
for(var f=0;f<response.length;f++){
if( f%2==0){
trHTML +='<tr id="'+response[f]['idob']+'" bgcolor ="#CBD8F5">';
}
else {
trHTML +='<tr id="'+response[f]['idob']+'" bgcolor ="#FFFFFF">';
}
trHTML += '<th>'+response [f]['name']+'</th>'+
'<td>'+response [f]['manage_service_quality']+'</td>'+
'<td>'+response [f]['realize_scale_economies']+'</td>'+
'<td>'+response [f]['optimize_it_internal_processes']+'</td>'+
'<td>'+response [f]['standardize_platforms_and_architecture']+'</td>'+
'<td>'+response [f]['deliver_on_schedule']+'</td>'+
'<td>'+response [f]['effectively_support_end_users']+'</td>'+
'<td>'+response [f]['improve_business_productivity']+'</td>'+
'<td>'+response [f]['propose_enabling_solutions']+'</td>'+
'<td>'+response [f]['understand_emerging_technologies']+'</td>'+
'<td>'+response [f]['understand_business_units_strengths']+'</td>'+
'</tr>';
}
$('#2').html(trHTML);
}
});
</script>
</body></html>