-
Notifications
You must be signed in to change notification settings - Fork 0
/
cast_targets.php
67 lines (54 loc) · 1.99 KB
/
cast_targets.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
<?php
/**
* Created by JetBrains PhpStorm.
* User: DATTWOOD
* Date: 26/10/11
* Time: 11:02
* To change this template use File | Settings | File Templates.
*/
// Check that there are targets
foreach ($resultCast as $key => $item) {
// echo $key;
if ($key == 'Targets') {
accord_first('Cast SMART Targets');
echo '<table>';
$class = 'lightblue';
foreach ($item as $iKey => $iItem) {
echo '<div id="ilp-target-overview">';
echo '<div class="block_ilp_ilptarget">';
echo '<div class="ilp_post yui-t4">';
echo '<div class="bd" role="main">';
echo '<div class="yui-main">';
echo '<div class="yui-b">';
echo '<div class="yui-gd">';
echo '<div class="yui-u first">SMART Objective:</div>';
echo '<div class="yui-u">' . $iItem['objective'] . '<p></div>';
echo '</div>';
echo '<div class="yui-gd">';
echo '<div class="yui-u first">Resources:</div>';
echo '<div class="yui-u">' . $iItem['success'] . '<p></div>';
echo '</div>';
echo '<div class="yui-gd">';
echo '<div class="yui-u first">Relevant Evidence:</div>';
echo '<div class="yui-u">' . $iItem['evidence'] . '<p></div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div class="yui-b">';
echo '<ul>';
echo '<li>Objective Number: ' . $iItem['objective_number'] . '</li>';
echo '<li>Set By: ' . $iItem['set_by'] . '</li>';
$date = strtotime($iItem['date_to_achieve']);
echo '<li>Deadline: ' . date("d F Y", $date) . '</li>';
echo '</ul>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
echo '</table>';
accord_last();
}
}
?>