echo "<td><b>[Artifact path]:</b></td>"; echo "<td></td>"; echo "<td><b>[Iso]:</b></td>"; echo "<td></td>"; echo "<td><b>[Log]:</b></td>"; echo "<td></td>"; echo "<td><b>[CI-Pipeline duration]:</b></td>"; echo "<td></td>"; echo "<td><b>[Test result overview]:</b></td>"; echo "<td></td>"; echo "<td><b>[Fuel Access]:</b></td>"; echo "<td></td>"; echo "<td><b>[OpenStack Access]:</b></td>"; for ($pos = 0; $pos <= 3; $pos++) { if (file_exists($history_file)) { $history = read_history($history_file, $pos, $repo_path); } echo "<tr>"; switch (strtok($history["result"], " ")) { case "SUCCESS": $format_opt = "<font color='green'>"; echo '<td><img src="images/thumbs-up-smiley-hi.png" height="20" width="20"></td>'; echo "<td></td>"; break; case "ERROR": $format_opt = "<font color='red'>"; echo '<td><img src="images/thumbs-down-smiley-md.png" height="20" width="20"></td>'; echo "<td></td>"; break; case "INFO": $format_opt = "<font color='grey'>";
$visits_total = 0; $unique_total = 0; $pages_total = 0; $hits_total = 0; $bandwidth_total = 0; $not_viewed_pages_total = 0; $not_viewed_hits_total = 0; $not_viewed_bandwidth_total = 0; $rows = array(); if ($files) { array_multisort($configs, $files); $row_prev = array(); for ($i = 0, $cnt = count($files); $i <= $cnt; $i++) { $row = array(); if ($i < $cnt) { $row = read_history($files[$i]); if ($NotViewed == 'sum') { $row['pages'] += $row['not_viewed_pages']; $row['hits'] += $row['not_viewed_hits']; $row['bandwidth'] += $row['not_viewed_bandwidth']; } $visits_total += $row['visits']; $unique_total += $row['unique']; $pages_total += $row['pages']; $hits_total += $row['hits']; $bandwidth_total += $row['bandwidth']; if ($NotViewed == 'columns') { $not_viewed_pages_total += $row['not_viewed_pages']; $not_viewed_hits_total += $row['not_viewed_hits']; $not_viewed_bandwidth_total += $row['not_viewed_bandwidth']; }