Modify 'installs' and 'runs' fields

This commit is contained in:
Tony Lambregts
2006-02-08 01:44:11 +00:00
committed by WineHQ
parent 72080953ef
commit facd6bdb17
2 changed files with 8 additions and 9 deletions

View File

@@ -657,15 +657,15 @@ function make_Installs_list($varname, $cvalue)
echo "<select name='$varname'>\n"; echo "<select name='$varname'>\n";
echo "<option value=\"\">Choose ...</option>\n"; echo "<option value=\"\">Choose ...</option>\n";
$aRating = array("Yes", "No"); $aRating = array("Yes", "No", "N/A");
$iMax = count($aRating); $iMax = count($aRating);
for($i=0; $i < $iMax; $i++) for($i=0; $i < $iMax; $i++)
{ {
if($aRating[$i] == $cvalue) if($aRating[$i] == $cvalue)
echo "<option value=$aRating[$i] selected>$aRating[$i]\n"; echo "<option value='".$aRating[$i]."' selected>".$aRating[$i]."\n";
else else
echo "<option value=$aRating[$i]>$aRating[$i]\n"; echo "<option value='".$aRating[$i]."'>".$aRating[$i]."\n";
} }
echo "</select>\n"; echo "</select>\n";
} }
@@ -675,15 +675,15 @@ function make_Runs_list($varname, $cvalue)
echo "<select name='$varname'>\n"; echo "<select name='$varname'>\n";
echo "<option value=\"\">Choose ...</option>\n"; echo "<option value=\"\">Choose ...</option>\n";
$aRating = array("Yes", "No", "???"); $aRating = array("Yes", "No", "Not Installable");
$iMax = count($aRating); $iMax = count($aRating);
for($i=0; $i < $iMax; $i++) for($i=0; $i < $iMax; $i++)
{ {
if($aRating[$i] == $cvalue) if($aRating[$i] == $cvalue)
echo "<option value=$aRating[$i] selected>$aRating[$i]\n"; echo "<option value='".$aRating[$i]."' selected>".$aRating[$i]."\n";
else else
echo "<option value=$aRating[$i]>$aRating[$i]\n"; echo "<option value='".$aRating[$i]."'>".$aRating[$i]."\n";
} }
echo "</select>\n"; echo "</select>\n";
} }

View File

@@ -1,7 +1,6 @@
use apidb; use apidb;
drop table if exists testResults; drop table if exists testResults;
drop table if exists TestResults;
/* /*
* Version Testing results * Version Testing results
@@ -15,8 +14,8 @@ create table testResults (
testedDate datetime not null, testedDate datetime not null,
distributionId int not null, distributionId int not null,
testedRelease tinytext, testedRelease tinytext,
installs enum('Yes','No') NOT NULL default 'Yes', installs enum('Yes','No','N/A') NOT NULL default 'Yes',
runs enum('Yes','No','???') NOT NULL default 'Yes', runs enum('Yes','No','Not Installable') NOT NULL default 'Yes',
testedRating tinytext, testedRating tinytext,
comments text, comments text,
submitTime timestamp(14) NOT NULL, submitTime timestamp(14) NOT NULL,