|
@@ 123-131 (lines=9) @@
|
| 120 |
|
foreach($_country_lang as $key => $value) {
|
| 121 |
|
$output .= '<option value="' . $key . '"' . (isset($chosenCountry) && $chosenCountry == $key ? ' selected' : '') . '>' . $value . '</option>';
|
| 122 |
|
}
|
| 123 |
|
} else {
|
| 124 |
|
if($data['elements']) {
|
| 125 |
|
$elements = explode('||', $data['elements']);
|
| 126 |
|
foreach($elements as $key => $value) {
|
| 127 |
|
$value = explode('==', $value);
|
| 128 |
|
$output .= '<option value="' . $value[1] . '">' . (isset($_lang[$value[0]]) ? $_lang[$value[0]] : $value[0]) . '</option>';
|
| 129 |
|
}
|
| 130 |
|
}
|
| 131 |
|
}
|
| 132 |
|
$output .= '</select>';
|
| 133 |
|
$output .= $data['content'];
|
| 134 |
|
$output .= '</div>';
|
|
@@ 158-164 (lines=7) @@
|
| 155 |
|
$output .= '<label class="col-sm-3" for="[+name+]">[+lang.name+]</label>';
|
| 156 |
|
$output .= '<div class="col-sm-7">';
|
| 157 |
|
$output .= '<input type="radio" name="[+name+]" class="form-control" id="[+name+]" value="[+value+]" onChange="documentDirty=true;"[+readonly+] />';
|
| 158 |
|
if($data['elements']) {
|
| 159 |
|
$elements = explode('||', $data['elements']);
|
| 160 |
|
foreach($elements as $key => $value) {
|
| 161 |
|
$value = explode('==', $value);
|
| 162 |
|
$output .= '<br /><input type="radio" name="[+name+]" class="form-control" id="[+name+]_' . $key . '" value="' . $value[1] . '" onChange="documentDirty=true;"[+readonly+] /> ' . (isset($_lang[$value[0]]) ? $_lang[$value[0]] : $value[0]);
|
| 163 |
|
}
|
| 164 |
|
}
|
| 165 |
|
$output .= $data['content'];
|
| 166 |
|
$output .= '</div>';
|
| 167 |
|
|