-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcounty-factsheet_bu.php
158 lines (121 loc) · 3.71 KB
/
county-factsheet_bu.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php include 'zhead.php'; ?>
<!-- Document Wrapper
============================================= -->
<div id="wrapper" class="clearfix">
<!-- Header
============================================= -->
<?php include 'include/header.php'; ?>
<!-- #header end -->
<!-- Content
============================================= -->
<section id="content">
<div class="container clearfix">
<?php include 'include/county-nav.php'; ?>
<div class="clearfix"></div>
<div class="container clearfix">
<div class="col-md-8">
<?php
$fsCards = $dispOc->get_factsheetSectorCards($cid);
//displayArray($cProfile);
$fsrow = array();
/*foreach($fsCards as $fsCat)
{
$fsDataArr = $fsCat['data'];
$fsrow[] = '<tr><th>'.$fsCat['sector_name'].'</th><th></th></tr>';
foreach($fsDataArr as $fsData){
$fsrow[] = '<tr><td>'.$fsData['indicator'].' ('.$fsData['period'].')</td><td>'.$fsData['value'].'</td></tr>';
}
}
echo '<table class="table">';
echo '<tr><th>INDICATOR</th><th>VALUE</th></tr>';
echo implode('', $fsrow);
echo '</table>';*/
foreach($fsCards as $fsCat)
{
$fsDataArr = $fsCat['data'];
$fsDataRow = '';
$secWrap = '<li><div class="block"><h4>'.$fsCat['sector_name'].'</h4>';
foreach($fsDataArr as $fsData){
$secWrap .= '<div class="col-md-12 nopadd border_bottom_grayX">
<div class="col-md-9 padd0_l">'.$fsData['indicator'].' ('.$fsData['period'].')</div>
<div class="col-md-3 nopadd txtcenter">'.$fsData['value'].'</div>
</div>';
}
$secWrap .= '</div></li>';
$fsrow[] = $secWrap;
}
echo '<ul class="column menu-column">'.implode('', $fsrow).'</ul>';
?>
</div>
<div class="col-md-4">
<img class="image_fade" src="<?php echo $cProfile['map']; ?>" alt="County Map" style="opacity: 1;">
</div>
</div>
<div class="container clearfix">
<div class="col-md-2 padd0_l column-sideX" role="complimentary">
<div class="cfs">
<div class="cfs-head"><h3>Categories</h3></div>
<div class="cfs-bodyX">
<nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs affixX">
<ul id="nav_side" class="nav_side">
<li class="active"> <a href="#health">Health</a></li>
<li> <a href="#security">Security</a></li>
<li> <a href="#finance">Finance</a></li>
<li> <a href="#agriculture">Agriculture</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div class="col-md-10">
<div class="">
<h3 id="health">Health</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Period</th>
<th>Indicator</th>
<th>Numbers</th>
<th>Source</th>
</tr>
</thead>
<tbody>
<tr>
<td>2012 - 2013</td>
<td>Hospital Equipment Purchase</td>
<td>512B</td>
<td>MOH</td>
</tr>
<tr>
<td>2013-2015</td>
<td>Doctors and nurses salaries</td>
<td>128B</td>
<td>WB</td>
</tr>
<tr>
<td>2013-2016</td>
<td>Medicine (HIV)</td>
<td>230M</td>
<td>KNBS</td>
</tr>
<tr>
<td>2016 - 2017</td>
<td>Makueni Referral Hosp. Construction</td>
<td>500M</td>
<td>County Gov.t</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section><!-- #content end -->
<!-- Footer
============================================= -->
<?php include 'include/footer.php'; ?>
<!-- #footer end -->
</div><!-- #wrapper end -->
<?php include 'zfoot.php'; ?>
</body>
</html>