|
53 | 53 | <th scope="col">Subdimension</th> |
54 | 54 | <th scope="col">Actvity</th> |
55 | 55 | <th scope="col">SAMM 2</th> |
56 | | - <th scope="col">ISO 27001</th> |
| 56 | + <th scope="col">ISO 27001 Controls</th> |
57 | 57 | </tr> |
58 | 58 | </thead> |
59 | 59 | <tbody> |
|
65 | 65 | echo "<td>$dimension</td>"; |
66 | 66 | echo "<td>$subdimension</td>"; |
67 | 67 | $tooltip = "<div class='popoverdetails'>" . build_table_tooltip ( $content ) . "</div>"; |
68 | | - echo "<td><div data-toggle=\"popover\" data-title=\"$activityName\" data-content=\"$tooltip\" type=\"button\" data-html=\"true \">" . $activityName . "</div></td>"; |
| 68 | + $activityLink = "detail.php?dimension=" . urlencode ( $dimension ) . "&subdimension=" . urlencode ( $subdimension ) . "&element=" . urlencode ( $activityName ); |
| 69 | + echo "<td><a href='$activityLink'><div data-toggle=\"popover\" data-title=\"$activityName\" data-content=\"$tooltip\" type=\"button\" data-html=\"true \">" . $activityName . "</div></a></td>"; |
69 | 70 | echo "<td>" . getFlattenedArray($content, "samm2") . "</td>"; |
70 | 71 | echo "<td>" . getFlattenedArray($content, "iso27001-2017") . "</td>"; |
71 | 72 | } |
|
76 | 77 | <table class="table"> |
77 | 78 | <thead> |
78 | 79 | <tr> |
79 | | - <th scope="col"><?php echo $sort;?></th> |
| 80 | + <?php |
| 81 | + if($sort == "iso27001-2017") { |
| 82 | + echo '<th scope="col">ISO 27001 Control</th>'; |
| 83 | + }else { |
| 84 | + echo '<th scope="col">' . $sort . '</th>'; |
| 85 | + } |
| 86 | + ?> |
80 | 87 | <th scope="col">Dimension</th> |
81 | 88 | <th scope="col">Subdimension</th> |
82 | 89 | <th scope="col">Actvity</th> |
|
103 | 110 | } |
104 | 111 | } |
105 | 112 | } |
106 | | - //var_dump($mapping);exit; |
107 | 113 | ksort($mapping); |
108 | 114 |
|
109 | 115 | foreach($mapping as $mappingName => $mappingElement) { |
|
113 | 119 | echo "<td>" . $activity['dimension'] . "</td>"; |
114 | 120 | echo "<td>" . $activity['subdimension'] . "</td>"; |
115 | 121 | $tooltip = "<div class='popoverdetails'>" . build_table_tooltip ( $activity ) . "</div>"; |
116 | | - echo "<td><div data-toggle=\"popover\" data-title=\"$activityName\" data-content=\"$tooltip\" type=\"button\" data-html=\"true \">" . $activityName . "</div></td>"; |
| 122 | + $activityLink = "detail.php?dimension=" . urlencode ( $activity['dimension'] ) . "&subdimension=" . urlencode ( $activity['subdimension'] ) . "&element=" . urlencode ( $activityName ); |
| 123 | + echo "<td><a href='$activityLink'><div data-toggle=\"popover\" data-title=\"$activityName\" data-content=\"$tooltip\" type=\"button\" data-html=\"true \">" . $activityName . "</div></></td>"; |
117 | 124 | echo "<td>" . getFlattenedArray($activity, "samm2") . "</td>"; |
118 | 125 | echo "<td>" . getFlattenedArray($content, "iso27001-2017") . "</td>"; |
119 | 126 | } |
|
0 commit comments