diff --git a/include/html.php b/include/html.php
index 419f15a..066def4 100644
--- a/include/html.php
+++ b/include/html.php
@@ -62,6 +62,14 @@ function html_tr($arr, $class = "", $extra = "")
return do_html_tr("td", $arr, $class, $extra);
}
+function html_tr_highlight_clickable($sClass, $sHighlightColor, $sInactiveColor, $sUrl)
+{
+ echo '
';
+}
+
// HTML TABLE
function html_table_begin($extra = "")
{
diff --git a/include/testData.php b/include/testData.php
index d7362ea..4d4e87e 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -409,15 +409,16 @@ class testData{
$oSubmitter = new User($oTest->iSubmitterId);
$oDistribution = new distribution($oTest->iDistributionId);
$bgcolor = $oTest->sTestedRating;
- echo '
',"\n";
/* if the test we are displaying is this test then */
/* mark it as the current test */
if ($oTest->iTestingId == $this->iTestingId)
{
+ echo '
',"\n";
echo ' | Current | ',"\n";
- } else
+ } else /* make all non-current rows clickable so clicking on them selects the test as current */
{
+ html_tr_highlight_clickable($bgcolor, "", "color2", $link.$oTest->iTestingId);
echo ' [versionId);
echo '
-
- | '.$oApp->sName.' '.$oVersion->sName.' |
+
+ '.$oApp->sName.' '.$oVersion->sName.' |
'.util_trim_description($oApp->sDescription).' |
'.$img.' |
';
diff --git a/index.php b/index.php
index 499022e..d2032e1 100644
--- a/index.php
+++ b/index.php
@@ -13,7 +13,6 @@ require(BASE."include/incl.php");
apidb_header("Wine Application Database");
?>
-
Welcome
diff --git a/scripts.js b/scripts.js
index 3229e84..cbd9cbe 100644
--- a/scripts.js
+++ b/scripts.js
@@ -18,3 +18,22 @@ function deleteURL(text, url) {
self.location = url;
}
}
+
+function ChangeTrColor(tableRow, bHighLight, sHighlightColor, sInactiveColor)
+{
+ if (bHighLight)
+ {
+ tableRow.style.backgroundColor = sHighlightColor;
+ tableRow.style.cursor = "hand";
+ }
+ else
+ {
+ tableRow.style.backgroundColor = sInactiveColor;
+ tableRow.style.cursor = "pointer";
+ }
+}
+
+function DoNav(sUrl)
+{
+ document.location.href = sUrl;
+}
|