1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

more user_extended multi-language support

This commit is contained in:
secretr
2012-01-11 13:38:47 +00:00
parent 5dd23c872e
commit ca9733f42f
2 changed files with 6 additions and 6 deletions

View File

@@ -569,6 +569,7 @@ class e107_user_extended
foreach($choices as $choice)
{
$choice = trim($choice);
$choice = deftrue($choice, $choice);
$chk = ($curval == $choice)? " checked='checked' " : "";
$ret .= "<input {$include} type='radio' name='{$fname}' value='{$choice}' {$chk} /> {$choice}";
}
@@ -588,6 +589,7 @@ class e107_user_extended
$val = $choice;
$label = $choice;
}
$label = deftrue($label, $label);
$chk = ($curval == $val)? " checked='checked' " : "";
$ret .= "<input {$include} type='checkbox' name='{$fname}[]' value='{$val}' {$chk} /> {$label}<br />";
}
@@ -600,6 +602,7 @@ class e107_user_extended
foreach($choices as $choice)
{
$choice = trim($choice);
$choice = deftrue($choice, $choice);
$sel = ($curval == $choice) ? " selected='selected' " : "";
$ret .= "<option value='{$choice}' {$sel}>{$choice}</option>\n";
}