Implement Maintainer ratings.
This commit is contained in:
committed by
Jeremy Newman
parent
4dec5cf83e
commit
c7beb30195
@@ -220,7 +220,7 @@ function make_bugzilla_version_list($varname, $cvalue)
|
||||
echo "<option value=0>Choose ...</option>\n";
|
||||
while(list($value) = mysql_fetch_row($result))
|
||||
{
|
||||
if($id == $cvalue)
|
||||
if($value == $cvalue)
|
||||
echo "<option value=$value selected>$value\n";
|
||||
else
|
||||
echo "<option value=$value>$value\n";
|
||||
@@ -229,6 +229,24 @@ function make_bugzilla_version_list($varname, $cvalue)
|
||||
closebugzilladb();
|
||||
}
|
||||
|
||||
function make_maintainer_rating_list($varname, $cvalue)
|
||||
{
|
||||
|
||||
echo "<select name='$varname'>\n";
|
||||
echo "<option value=0>Choose ...</option>\n";
|
||||
$aRating = array("Gold", "Silver", "Bronze", "Garbage");
|
||||
$iMax = count($aRating);
|
||||
|
||||
for($i=0; $i < $iMax; $i++)
|
||||
{
|
||||
if($aRating[$i] == $cvalue)
|
||||
echo "<option value=$aRating[$i] selected>$aRating[$i]\n";
|
||||
else
|
||||
echo "<option value=$aRating[$i]>$aRating[$i]\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
}
|
||||
|
||||
/* get the number of applications in the appQueue table */
|
||||
function getQueuedAppCount()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user