mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
more user_extended multi-language support
This commit is contained in:
@@ -414,13 +414,10 @@ class users_ext
|
|||||||
{
|
{
|
||||||
global $sql, $ns, $ue, $curtype, $tp, $mySQLdefaultdb, $action, $sub_action,$frm;
|
global $sql, $ns, $ue, $curtype, $tp, $mySQLdefaultdb, $action, $sub_action,$frm;
|
||||||
|
|
||||||
// $catList = $ue->user_extended_get_categories();
|
|
||||||
// $catList[0][0] = array('user_extended_struct_name' => EXTLAN_36);
|
|
||||||
// $catNums = array_keys($catList);
|
|
||||||
$extendedList = $ue->user_extended_get_fields();
|
$extendedList = $ue->user_extended_get_fields();
|
||||||
|
|
||||||
$emessage = &eMessage::getInstance();
|
$emessage = e107::getMessage();
|
||||||
$text = $emessage->render() ;
|
$text = $emessage->render();
|
||||||
|
|
||||||
$mode = 'show';
|
$mode = 'show';
|
||||||
$text .= "
|
$text .= "
|
||||||
@@ -465,7 +462,7 @@ class users_ext
|
|||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$ext['user_extended_struct_name']}</td>
|
<td>{$ext['user_extended_struct_name']}</td>
|
||||||
<td>".$tp->toHTML($ext['user_extended_struct_text'], FALSE, "defs")."</td>
|
<td>".$tp->toHTML(deftrue($ext['user_extended_struct_text'], $ext['user_extended_struct_text']), FALSE, "defs")."</td>
|
||||||
<td class='left'>".$ue->user_extended_edit($ext,$uVal)."</td>
|
<td class='left'>".$ue->user_extended_edit($ext,$uVal)."</td>
|
||||||
<td class='left'>".$category_name."</td>
|
<td class='left'>".$category_name."</td>
|
||||||
<td>".($ext['user_extended_struct_required'] == 1 ? LAN_YES : LAN_NO)."</td>
|
<td>".($ext['user_extended_struct_required'] == 1 ? LAN_YES : LAN_NO)."</td>
|
||||||
|
@@ -569,6 +569,7 @@ class e107_user_extended
|
|||||||
foreach($choices as $choice)
|
foreach($choices as $choice)
|
||||||
{
|
{
|
||||||
$choice = trim($choice);
|
$choice = trim($choice);
|
||||||
|
$choice = deftrue($choice, $choice);
|
||||||
$chk = ($curval == $choice)? " checked='checked' " : "";
|
$chk = ($curval == $choice)? " checked='checked' " : "";
|
||||||
$ret .= "<input {$include} type='radio' name='{$fname}' value='{$choice}' {$chk} /> {$choice}";
|
$ret .= "<input {$include} type='radio' name='{$fname}' value='{$choice}' {$chk} /> {$choice}";
|
||||||
}
|
}
|
||||||
@@ -588,6 +589,7 @@ class e107_user_extended
|
|||||||
$val = $choice;
|
$val = $choice;
|
||||||
$label = $choice;
|
$label = $choice;
|
||||||
}
|
}
|
||||||
|
$label = deftrue($label, $label);
|
||||||
$chk = ($curval == $val)? " checked='checked' " : "";
|
$chk = ($curval == $val)? " checked='checked' " : "";
|
||||||
$ret .= "<input {$include} type='checkbox' name='{$fname}[]' value='{$val}' {$chk} /> {$label}<br />";
|
$ret .= "<input {$include} type='checkbox' name='{$fname}[]' value='{$val}' {$chk} /> {$label}<br />";
|
||||||
}
|
}
|
||||||
@@ -600,6 +602,7 @@ class e107_user_extended
|
|||||||
foreach($choices as $choice)
|
foreach($choices as $choice)
|
||||||
{
|
{
|
||||||
$choice = trim($choice);
|
$choice = trim($choice);
|
||||||
|
$choice = deftrue($choice, $choice);
|
||||||
$sel = ($curval == $choice) ? " selected='selected' " : "";
|
$sel = ($curval == $choice) ? " selected='selected' " : "";
|
||||||
$ret .= "<option value='{$choice}' {$sel}>{$choice}</option>\n";
|
$ret .= "<option value='{$choice}' {$sel}>{$choice}</option>\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user