[llvm-commits] CVS: nightlytest-serverside/test.php
Patrick Jenkins
pjenkins at apple.com
Thu Aug 3 13:42:25 PDT 2006
Changes in directory nightlytest-serverside:
test.php updated: 1.13 -> 1.14
---
Log message:
We now display Significant changes in file size the same way display significant changes in performance.
---
Diffs of the changes: (+274 -249)
test.php | 523 +++++++++++++++++++++++++++++++++------------------------------
1 files changed, 274 insertions(+), 249 deletions(-)
Index: nightlytest-serverside/test.php
diff -u nightlytest-serverside/test.php:1.13 nightlytest-serverside/test.php:1.14
--- nightlytest-serverside/test.php:1.13 Thu Aug 3 12:05:39 2006
+++ nightlytest-serverside/test.php Thu Aug 3 15:42:09 2006
@@ -61,15 +61,15 @@
<center><font size=+3 face=Verdana><b>LLVM Nightly Test Results For <?php print $cur_date; ?></b></font></center><br>
<table cellspacing=0 cellpadding=0 border=0>
- <tr>
- <td valign=top width="180">
- <?
- $machine = $HTTP_GET_VARS['machine'];
- $night = $HTTP_GET_VARS['night'];
- include 'sidebar.php';
- ?>
- </td>
- <td>
+ <tr>
+ <td valign=top width="180">
+ <?
+ $machine = $HTTP_GET_VARS['machine'];
+ $night = $HTTP_GET_VARS['night'];
+ include 'sidebar.php';
+ ?>
+ </td>
+ <td>
<?php
/*****************************************************
@@ -117,8 +117,8 @@
$buildfile=str_replace(" ", "_", $cur_date);
if(file_exists("machines/$machine_id/$buildfile-Build-Log.txt")){
- print "<h4><a href=\"machines/$machine_id/$buildfile-Build-Log.txt\">".
- "View Build Log</a></h4>\n";
+ print "<h4><a href=\"machines/$machine_id/$buildfile-Build-Log.txt\">".
+ "View Build Log</a></h4>\n";
}
/*****************************************************
@@ -127,16 +127,16 @@
*
******************************************************/
if(strpos($today_row['buildstatus'], "OK")===FALSE){
- $disp="";
- $sign="(+)";
+ $disp="";
+ $sign="(+)";
}
else{
- $disp="none";
- $sign="(-)";
+ $disp="none";
+ $sign="(-)";
}
print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer".
- "('buildStatus');\", id=\"buildStatus_\">$sign Build Status</a></font>\n";
+ "('buildStatus');\", id=\"buildStatus_\">$sign Build Status</a></font>\n";
print "<div id=\"buildStatus\" style=\"display: $disp;\" class=\"hideable\">\n";
print "<h3><u>Build Status </u></h3></p>";
print "<font color=red>{$today_row['buildstatus']}</font><br>\n";
@@ -160,12 +160,12 @@
strcmp($removed_tests, "")==0 &&
strcmp($newly_passing_tests, "")==0 &&
strcmp($newly_failing_tests, "")==0)){
- $disp="none";
- $sign="(-)";
+ $disp="none";
+ $sign="(-)";
}
else{
- $disp="";
- $sign="(+)";
+ $disp="";
+ $sign="(+)";
}
print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('testSuite');\", id=\"testSuite_\">$sign Test Suite Changes</a></font>\n";
print "<div id=\"testSuite\" style=\"display: $disp;\" class=\"hideable\">\n";
@@ -190,32 +190,32 @@
$delta_unexpfail = $today_row['teststats_unexpfail']-$yesterday_row['teststats_unexpfail'];
if($delta_exppass==0 && $delta_expfail==0 && $delta_unexpfail==0){
- $disp="none";
+ $disp="none";
$sign="(-)";
}
else{
- $disp="";
+ $disp="";
$sign="(+)";
}
if(isset($today_row['teststats_exppass'])){
- $exp_pass=$today_row['teststats_exppass'];
+ $exp_pass=$today_row['teststats_exppass'];
}
else{
- $exp_pass=0;
+ $exp_pass=0;
}
if(isset($today_row['teststats_unexpfail'])){
- $unexp_fail=$today_row['teststats_unexpfail'];
+ $unexp_fail=$today_row['teststats_unexpfail'];
}
else{
- $unexp_fail=0;
+ $unexp_fail=0;
}
if(isset($today_row['teststats_expfail'])){
- $exp_fail=$today_row['teststats_expfail'];
+ $exp_fail=$today_row['teststats_expfail'];
}
else{
- $exp_fail=0;
+ $exp_fail=0;
}
@@ -257,12 +257,12 @@
strpos($today_row['warnings_removed'], "none")===FALSE) &&
(strcmp($today_row['warnings_added'], "")!=0 &&
strcmp($today_row['warnings_removed'], "")!=0)){
- $disp=" ";
- $sign="(+)";
+ $disp=" ";
+ $sign="(+)";
}
else{
- $disp="none";
- $sign="(-)";
+ $disp="none";
+ $sign="(-)";
}
print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('warningsChanges');\", id=\"warningsChanges_\">$sign Warnings Information</a></font>\n";
print "<div id=\"warningsChanges\" style=\"display: $disp;\" class=\"hideable\">\n";
@@ -311,99 +311,99 @@
print "\t</tr>\n";
if( isset($yesterday_row) ){
- print "\t<tr>\n";
- print "\t\t<td>Previous nightly test ({$yesterday_row['added']})</td>\n";
- print "\t\t<td>{$yesterday_row['getcvstime_cpu']}</td>\n";
- print "\t\t<td>{$yesterday_row['getcvstime_wall']}</td>\n";
- print "\t\t<td>{$yesterday_row['configuretime_cpu']}</td>\n";
- print "\t\t<td>{$yesterday_row['configuretime_wall']}</td>\n";
- print "\t\t<td>{$yesterday_row['buildtime_cpu']}</td>\n";
- print "\t\t<td>{$yesterday_row['buildtime_wall']}</td>\n";
- print "\t\t<td>{$yesterday_row['dejagnutime_cpu']}</td>\n";
- print "\t\t<td>{$yesterday_row['dejagnutime_wall']}</td>\n";
- print "\t</tr>\n";
-
-
- print "\t<tr>\n";
- print "\t\t<td>% change</td>\n";
-
- if($yesterday_row['getcvstime_cpu']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['getcvstime_cpu'] - $yesterday_row['getcvstime_cpu'])/$yesterday_row['getcvstime_cpu']) * 100,2);
- $color=DetermineColor($delta, "white");
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['getcvstime_wall']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['getcvstime_wall'] - $yesterday_row['getcvstime_wall'])/$yesterday_row['getcvstime_wall']) * 100,2);
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['configuretime_cpu']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['configuretime_cpu'] - $yesterday_row['configuretime_cpu'])/$yesterday_row['configuretime_cpu']) * 100,2);
- $color=DetermineColor($delta, "white");
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
-
- if($yesterday_row['configuretime_wall']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['configuretime_wall'] - $yesterday_row['configuretime_wall'])/$yesterday_row['configuretime_wall']) * 100,2);
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['buildtime_cpu']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['buildtime_cpu'] - $yesterday_row['buildtime_cpu'])/$yesterday_row['buildtime_cpu']) * 100,2);
- $color=DetermineColor($delta, "white");
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['buildtime_wall']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['buildtime_wall'] - $yesterday_row['buildtime_wall'])/$yesterday_row['buildtime_wall']) * 100,2);
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['dejagnutime_cpu']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['dejagnutime_cpu'] - $yesterday_row['dejagnutime_cpu'])/$yesterday_row['dejagnutime_cpu']) * 100,2);
- $color=DetermineColor($delta, "white");
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- $color="white";
- if($yesterday_row['dejagnutime_wall']==0){
- print "\t\t<td>-</td>\n";
- }
- else{
- $delta = round((($today_row['dejagnutime_wall'] - $yesterday_row['dejagnutime_wall'])/$yesterday_row['dejagnutime_wall']) * 100,2);
- print "\t\t<td bgcolor=$color>$delta</td>\n";
- }
-
- print "\t</tr>\n";
+ print "\t<tr>\n";
+ print "\t\t<td>Previous nightly test ({$yesterday_row['added']})</td>\n";
+ print "\t\t<td>{$yesterday_row['getcvstime_cpu']}</td>\n";
+ print "\t\t<td>{$yesterday_row['getcvstime_wall']}</td>\n";
+ print "\t\t<td>{$yesterday_row['configuretime_cpu']}</td>\n";
+ print "\t\t<td>{$yesterday_row['configuretime_wall']}</td>\n";
+ print "\t\t<td>{$yesterday_row['buildtime_cpu']}</td>\n";
+ print "\t\t<td>{$yesterday_row['buildtime_wall']}</td>\n";
+ print "\t\t<td>{$yesterday_row['dejagnutime_cpu']}</td>\n";
+ print "\t\t<td>{$yesterday_row['dejagnutime_wall']}</td>\n";
+ print "\t</tr>\n";
+
+
+ print "\t<tr>\n";
+ print "\t\t<td>% change</td>\n";
+
+ if($yesterday_row['getcvstime_cpu']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['getcvstime_cpu'] - $yesterday_row['getcvstime_cpu'])/$yesterday_row['getcvstime_cpu']) * 100,2);
+ $color=DetermineColor($delta, "white");
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['getcvstime_wall']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['getcvstime_wall'] - $yesterday_row['getcvstime_wall'])/$yesterday_row['getcvstime_wall']) * 100,2);
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['configuretime_cpu']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['configuretime_cpu'] - $yesterday_row['configuretime_cpu'])/$yesterday_row['configuretime_cpu']) * 100,2);
+ $color=DetermineColor($delta, "white");
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+
+ if($yesterday_row['configuretime_wall']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['configuretime_wall'] - $yesterday_row['configuretime_wall'])/$yesterday_row['configuretime_wall']) * 100,2);
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['buildtime_cpu']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['buildtime_cpu'] - $yesterday_row['buildtime_cpu'])/$yesterday_row['buildtime_cpu']) * 100,2);
+ $color=DetermineColor($delta, "white");
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['buildtime_wall']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['buildtime_wall'] - $yesterday_row['buildtime_wall'])/$yesterday_row['buildtime_wall']) * 100,2);
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['dejagnutime_cpu']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['dejagnutime_cpu'] - $yesterday_row['dejagnutime_cpu'])/$yesterday_row['dejagnutime_cpu']) * 100,2);
+ $color=DetermineColor($delta, "white");
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ $color="white";
+ if($yesterday_row['dejagnutime_wall']==0){
+ print "\t\t<td>-</td>\n";
+ }
+ else{
+ $delta = round((($today_row['dejagnutime_wall'] - $yesterday_row['dejagnutime_wall'])/$yesterday_row['dejagnutime_wall']) * 100,2);
+ print "\t\t<td bgcolor=$color>$delta</td>\n";
+ }
+
+ print "\t</tr>\n";
}
print "</table><br>\n";
@@ -437,70 +437,93 @@
print"<b>Added files:</b><br>\n";
$added_files = $row['cvs_added'];
if(strcmp($added_files,"")!=0){
- $added_files = str_replace("\n","<br>",$added_files);
- print "<table>\n";
- print "\t<tr>\n";
- print "\t\t<td>$added_files</td>\n";
- print "\t</tr>\n";
- print "</table><br><br>\n";
+ $added_files = str_replace("\n","<br>",$added_files);
+ print "<table>\n";
+ print "\t<tr>\n";
+ print "\t\t<td>$added_files</td>\n";
+ print "\t</tr>\n";
+ print "</table><br><br>\n";
}
else{
- print "No removed files<br><br>\n";
+ print "No removed files<br><br>\n";
}
print"<b>Removed files:</b><br>\n";
$removed_files = $row['cvs_removed'];
if(strcmp($removed_files,"")!=0){
- $removed_files = str_replace("\n","<br>",$removed_files);
- print "<table>\n";
- print "\t<tr>\n";
- print "\t\t<td>$removed_files</td>\n";
- print "\t</tr>\n";
- print "</table><br><br>\n";
+ $removed_files = str_replace("\n","<br>",$removed_files);
+ print "<table>\n";
+ print "\t<tr>\n";
+ print "\t\t<td>$removed_files</td>\n";
+ print "\t</tr>\n";
+ print "</table><br><br>\n";
}
else{
- print "No removed files<br><br>\n";
+ print "No removed files<br><br>\n";
}
print"<b>Modified files:</b><br>\n";
$modified_files = $row['cvs_modified'];
if(strcmp($modified_files,"")!=0){
- $modified_files = str_replace("\n","<br>",$modified_files);
- print "<table>\n";
- print "\t<tr>\n";
- print "\t\t<td>$modified_files</td>\n";
- print "\t</tr>\n";
- print "</table><br>\n";
+ $modified_files = str_replace("\n","<br>",$modified_files);
+ print "<table>\n";
+ print "\t<tr>\n";
+ print "\t\t<td>$modified_files</td>\n";
+ print "\t</tr>\n";
+ print "</table><br>\n";
}
else{
- print "No removed files<br>\n";
+ print "No removed files<br>\n";
}
print "</div><br><br>\n";
/*****************************************************
*
+ * ending sidebar table here
+ *
+ ******************************************************/
+print "</td></tr></table>\n";
+
+/*****************************************************
+ *
* Printing file size information
*
******************************************************/
-print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('FileSizeInformation');\", id=\"FileSizeInformation_\">(-) File Size information</a></font>\n";
-print "<div id=\"FileSizeInformation\" style=\"display: none;\" class=\"hideable\">\n";
+$all_data=buildFileSizeTable($mysql_link, $machine_id, $night_id);
-print"<h3><u>File Size information:</u></h3><br>\n";
+$num_sig_changes=0;
+foreach (array_keys($all_data) as $d){
+ if( ($all_data["$d"][1]>$medium_change && $all_data["$d"][2]>$byte_threshold) ||
+ ($all_data["$d"][1]<($medium_change*-1) && $all_data["$d"][2]<($byte_threshold*-1)) ) {
+ $num_sig_changes++;
+ }
+}
+if($num_sig_changes==0){
+ $disp="none";
+ $sign="(-)";
+ }
+ else{
+ $disp="";
+ $sign="(+)";
+ }
+print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('file_sizes_layer');\", id=\"file_sizes_layer_\">$sign $num_sig_changes Significant Changes in File Size</a></font>\n";
+print "<div id=\"file_sizes_layer\" style=\"display: $disp;\" class=\"hideable\">\n";
print "<form method=GET action=\"individualfilesizegraph.php\">\n";
print "<input type=hidden name=machine value=\"$machine_id\">\n";
print "<input type=hidden name=night value=\"$night_id\">\n";
print "<input type=hidden name=end value=\"$cur_date\">\n";
-$all_data=buildFileSizeTable($mysql_link, $machine_id, $night_id);
$unformatted_num=number_format($all_data['Total Sum'][0],0,".",",");
print "<b>Total size</b>: $unformatted_num bytes<br>\n";
print "<b>Percent difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n";
print "<b>Percent difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n";
-print "<table class=\"sortable\" id=\"file_sizes\" border=1 cellspacing=0 cellpadding=6>\n";
-print "\t<tr>\n";
+print "<b>Significant Changes in File Size<br></b>";
+print "<table border='0' cellspacing='0' cellpadding='2'><tr><td bgcolor=#000000>\n"; #creating the black border
+print "<table class=\"sortable\" id=\"file_sizes\" border='1' cellspacing='0' cellpadding='0'>\n";
+print "\t<tr bgcolor=#FFCC99>\n";
print "\t\t<td>File</td>\n";
print "\t\t<td>File Size in Bytes</td>\n";
print "\t\t<td>% difference from previous test</td>\n";
@@ -517,9 +540,19 @@
print "<td></td>\n";
print "\t</tr>\n";
+$row_color=0;
foreach (array_keys($all_data) as $d){
- if($all_data["$d"][1]!=0 || $all_data["$d"][3]!=0){
- print "\t<tr>\n";
+ if( ($all_data["$d"][1]>$medium_change && $all_data["$d"][2]>$byte_threshold) ||
+ ($all_data["$d"][1]<($medium_change*-1) && $all_data["$d"][2]<($byte_threshold*-1)) ) {
+
+ if($row_color % 2 == 0){
+ $def_color="white";
+ } else{
+ $def_color="#DDDDDD";
+ }
+ $row_color++;
+
+ print "\t<tr bgcolor=\"$def_color\">\n";
if(strcmp($d, "Total Sum")!=0){
print "\t\t<td><input type=checkbox name=files[] multiple=\"multiple\" value=\"$d\">\n";
}
@@ -529,11 +562,11 @@
print "\t\t$d</td>\n";
print "\t\t<td>{$all_data["$d"][0]}</td>\n";
- $color="bgcolor=\"".DetermineColor($all_data["$d"][1], "")."\"";
+ $color="bgcolor=\"".DetermineColor($all_data["$d"][1], "$def_color")."\"";
print "\t\t<td $color>{$all_data["$d"][1]}</td>\n";
print "\t\t<td $color>{$all_data["$d"][2]}</td>\n";
- $color="bgcolor=\"".DetermineColor($all_data["$d"][3], "")."\"";
+ $color="bgcolor=\"".DetermineColor($all_data["$d"][3], "$def_color")."\"";
print "\t\t<td $color>{$all_data["$d"][3]}</td>\n";
print "\t\t<td $color>{$all_data["$d"][4]}</td>\n";
@@ -542,133 +575,125 @@
}
print "</table>\n";
+print "</td></tr></table><br>\n"; #ending black border around table
print "<input type=submit name=action value=\"Compare values\"> | ";
print "<input type=reset>\n";
print "</form>\n";
-
print "</div><br><br>\n";
/*****************************************************
*
- * ending sidebar table here
- *
- ******************************************************/
-print "</td></tr></table>\n";
-
-/*****************************************************
- *
* Finding big changes in results table
*
******************************************************/
$today_results = GetDayResults($today_row['id'], $category_array, $mysql_link);
if(isset($yesterday_row['id'])){
- $yesterday_results = GetDayResults($yesterday_row['id'], $category_array, $mysql_link);
- $percent_difference = CalculateChangeBetweenDays($yesterday_results, $today_results, .2);
+ $yesterday_results = GetDayResults($yesterday_row['id'], $category_array, $mysql_link);
+ $percent_difference = CalculateChangeBetweenDays($yesterday_results, $today_results, .2);
}
if(isset($oldday_row['id'])){
- $oldday_results = GetDayResults($oldday_row['id'], $category_array, $mysql_link);
- $twoday_difference = CalculateChangeBetweenDays($oldday_results, $today_results, .01);
+ $oldday_results = GetDayResults($oldday_row['id'], $category_array, $mysql_link);
+ $twoday_difference = CalculateChangeBetweenDays($oldday_results, $today_results, .01);
}
if(isset($percent_difference) && isset($twoday_difference)){
- $big_changes = getThreeDaySignifigantChanges($today_results, $yesterday_results, $oldday_results, $percent_difference, $twoday_difference, $category_print_array);
- sortSignifigantChangeArray($big_changes, 3);
+ $big_changes = getThreeDaySignifigantChanges($today_results, $yesterday_results, $oldday_results, $percent_difference, $twoday_difference, $category_print_array);
+ sortSignifigantChangeArray($big_changes, 3);
}
else if(isset($percent_difference) && !isset($twoday_difference)){
- $big_changes = getTwoDaySignifigantChanges($today_results, $yesterday_results, $percent_difference, $category_print_array);
+ $big_changes = getTwoDaySignifigantChanges($today_results, $yesterday_results, $percent_difference, $category_print_array);
sortSignifigantChangeArray($big_changes, 3);
}
/********************** Regressions table **********************/
if(!isset($big_changes)){
- print "Cannot compare today's results to previous results. Reason: there are no previous results!<br>\n";
+ print "Cannot compare today's results to previous results. Reason: there are no previous results!<br>\n";
}
else{
$row_color=1;
$count=0;
for($y=0; $y<sizeof($category_print_array_ordered); $y++){
- print "<form method=GET action=\"resultsgraph.php\">\n";
- print "<input type=hidden name=machine value=\"$machine_id\">\n";
- print "<input type=hidden name=night value=\"$night_id\">\n";
- print "<input type=hidden name=end value=\"$cur_date\">\n";
- print "<input type=hidden name=measure[] value=\"{$category_print_array_ordered[$y]}\">\n";
-
-
- /* testing to see if we should show this table */
- $measure_number=0;
- for($pdj = 0; $pdj < sizeof($category_print_array); $pdj++){
- if(strcmp($category_print_array[$pdj],$category_print_array_ordered[$y])==0){
- $measure_number=$pdj;
- }
- }
- $num_changes = CountSignifigantDifferences($percent_difference, $measure_number, $medium_change);
- if($num_changes==0){
- $disp="none";
- $sign="(-)";
- }
- else{
- $disp="";
- $sign="(+)";
- }
-
- print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('{$category_print_array_ordered[$y]}');\", id=\"{$category_print_array_ordered[$y]}_\">$sign $num_changes Tests Significantly Changed for {$category_print_array_ordered[$y]}</a></font>\n";
- print "<div id=\"{$category_print_array_ordered[$y]}\" style=\"display: $disp;\" class=\"hideable\">\n";
- print "<b>Signifigant Changes for {$category_print_array_ordered[$y]}</b>";
- print "<span style=\"position:relative;\">\n";
- print "<span id=\"$y\" class=\"popup2\">\n";
- print "<pre>$category_print_array_ordered_description[$y]</pre>\n";
- print "</span><a href=\"javascript:void(0);\" onClick=\"TogglePop('$y');\">?</a></span>\n";
- print "<br>\n";
- print "<table border='0' cellspacing='0' cellpadding='2'><tr><td bgcolor=#000000>\n"; #creating the black borde
- print "<table class=\"sortable\" id=\"multisource_tests\" border='1' cellspacing='0' cellpadding='0'>\n";
- print "\t<tr bgcolor=#FFCC99>\n";
- print "\t\t<th>Program</th>\n";
- print "\t\t<th>% Change from yesterday</th>\n";
- print "\t\t<th>% Change from two days ago</th>\n";
- print "\t\t<th>Previous day's test value</th>\n";
- print "\t\t<th>Current day's test value</th>\n";
- print "\t</tr>\n";
- print "\t<tr><td></td><td></td><td></td><td></td><td></td><td></td></tr>\n";
-
- foreach (array_keys($big_changes) as $x){
- if(strcmp($big_changes[$x][1],$category_print_array_ordered[$y])==0){
- if($row_color % 2 == 0){
- $def_color="white";
- }
- else{
- $def_color="#DDDDDD";
- }
- print "\t<tr bgcolor='$def_color'>\n";
- print "\t\t<td><input type=checkbox name=program[] multiple=\"multiple\" value=\"{$big_changes[$x][0]}\">{$big_changes[$x][2]}/{$big_changes[$x][0]}</td>\n";
- $color=DetermineColor($big_changes[$x][3], "#FFFFFF");
- print "\t\t<td bgcolor=\"$color\">{$big_changes[$x][3]}</td>\n";
- $color=DetermineColor($big_changes[$x][4], "#FFFFFF");
- print "\t\t<td bgcolor=\"$color\">{$big_changes[$x][4]}</td>\n";
- print "\t\t<td>{$big_changes[$x][5]}</td>\n";
- print "\t\t<td>{$big_changes[$x][6]}</td>\n";
+ print "<form method=GET action=\"resultsgraph.php\">\n";
+ print "<input type=hidden name=machine value=\"$machine_id\">\n";
+ print "<input type=hidden name=night value=\"$night_id\">\n";
+ print "<input type=hidden name=end value=\"$cur_date\">\n";
+ print "<input type=hidden name=measure[] value=\"{$category_print_array_ordered[$y]}\">\n";
+
+
+ /* testing to see if we should show this table */
+ $measure_number=0;
+ for($pdj = 0; $pdj < sizeof($category_print_array); $pdj++){
+ if(strcmp($category_print_array[$pdj],$category_print_array_ordered[$y])==0){
+ $measure_number=$pdj;
+ }
+ }
+ $num_changes = CountSignifigantDifferences($percent_difference, $measure_number, $medium_change);
+ if($num_changes==0){
+ $disp="none";
+ $sign="(-)";
+ }
+ else{
+ $disp="";
+ $sign="(+)";
+ }
+
+ print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('{$category_print_array_ordered[$y]}');\", id=\"{$category_print_array_ordered[$y]}_\">$sign $num_changes Tests Significantly Changed for {$category_print_array_ordered[$y]}</a></font>\n";
+ print "<div id=\"{$category_print_array_ordered[$y]}\" style=\"display: $disp;\" class=\"hideable\">\n";
+ print "<b>Significant Changes for {$category_print_array_ordered[$y]}</b>";
+ print "<span style=\"position:relative;\">\n";
+ print "<span id=\"$y\" class=\"popup2\">\n";
+ print "<pre>$category_print_array_ordered_description[$y]</pre>\n";
+ print "</span><a href=\"javascript:void(0);\" onClick=\"TogglePop('$y');\">?</a></span>\n";
+ print "<br>\n";
+ print "<table border='0' cellspacing='0' cellpadding='2'><tr><td bgcolor=#000000>\n"; #creating the black borde
+ print "<table class=\"sortable\" id=\"multisource_tests\" border='1' cellspacing='0' cellpadding='0'>\n";
+ print "\t<tr bgcolor=#FFCC99>\n";
+ print "\t\t<th>Program</th>\n";
+ print "\t\t<th>% Change from yesterday</th>\n";
+ print "\t\t<th>% Change from two days ago</th>\n";
+ print "\t\t<th>Previous day's test value</th>\n";
+ print "\t\t<th>Current day's test value</th>\n";
+ print "\t</tr>\n";
+ print "\t<tr><td></td><td></td><td></td><td></td><td></td><td></td></tr>\n";
+
+ foreach (array_keys($big_changes) as $x){
+ if(strcmp($big_changes[$x][1],$category_print_array_ordered[$y])==0){
+ if($row_color % 2 == 0){
+ $def_color="white";
+ } else{
+ $def_color="#DDDDDD";
+ }
+ print "\t<tr bgcolor='$def_color'>\n";
+ print "\t\t<td><input type=checkbox name=program[] multiple=\"multiple\" value=\"{$big_changes[$x][0]}\">{$big_changes[$x][2]}/{$big_changes[$x][0]}</td>\n";
+ $color=DetermineColor($big_changes[$x][3], "#FFFFFF");
+ print "\t\t<td bgcolor=\"$color\">{$big_changes[$x][3]}</td>\n";
+ $color=DetermineColor($big_changes[$x][4], "#FFFFFF");
+ print "\t\t<td bgcolor=\"$color\">{$big_changes[$x][4]}</td>\n";
+ print "\t\t<td>{$big_changes[$x][5]}</td>\n";
+ print "\t\t<td>{$big_changes[$x][6]}</td>\n";
-
- /*for($y=0; $y<sizeof($big_changes[$x]); $y++){
- print "\t\t<td>{$big_changes[$x][$y]}</td>\n";
- }*/
- print "\t</tr>\n";
- $row_color++;
- if($row_color > 4){
- $row_color=1;
- }
- $count++;
- }//end if strcmp
- }
- print "</table>\n";
- print "</td></tr></table><br>\n"; #ending black border around table
- print "<input type=submit name=action value=\"Examine Longterm Results\"> | ";
- print "<input type=reset>\n";
- print "</form>\n";
- print "</div><br><br>\n";
+
+ /*for($y=0; $y<sizeof($big_changes[$x]); $y++){
+ print "\t\t<td>{$big_changes[$x][$y]}</td>\n";
+ }*/
+ print "\t</tr>\n";
+ $row_color++;
+ if($row_color > 4){
+ $row_color=1;
+ }
+ $count++;
+ }//end if strcmp
+ }
+ print "</table>\n";
+ print "</td></tr></table><br>\n"; #ending black border around table
+ print "<input type=submit name=action value=\"Examine Longterm Results\"> | ";
+ print "<input type=reset>\n";
+ print "</form>\n";
+ print "</div><br><br>\n";
}
More information about the llvm-commits
mailing list