Skip to content

Commit

Permalink
inlcuded new languagedropdown
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2144 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Ronald Leenes committed Nov 18, 2006
1 parent 9af9afe commit 53729c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions common.php
Expand Up @@ -2789,4 +2789,19 @@ function languageDropdown($surveyid,$selected)
$html .= "</select>";
return $html;
}

function languageDropdownClean($surveyid,$selected)
{
$slangs = GetAdditionalLanguagesFromSurveyID($surveyid);
$baselang = GetBaseLanguageFromSurveyID($surveyid);
array_unshift($slangs,$baselang);
$html = "<select class='listboxquestions' name='language')\">\n";
foreach ($slangs as $lang)
{
if ($lang == $selected) $html .= "\t<option value='$lang' selected>".getLanguageNameFromCode($lang,false)."</option>\n";
if ($lang != $selected) $html .= "\t<option value='$lang'>".getLanguageNameFromCode($lang,false)."</option>\n";
}
$html .= "</select>";
return $html;
}
?>

0 comments on commit 53729c4

Please sign in to comment.