$valuelen = strlen($envalue); } $cols = 40; if ($usetabindex) { $tabindex = 'tabindex="' . $missingcounter . '"'; } else { $tabindex = ''; } if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) { $rows = ceil($valuelen / $cols); $o .= '<textarea name="stringXXX' . lang_form_string_key($key) . '" cols="' . $cols . '" rows="' . $rows . '" ' . $tabindex . '>' . $value . '</textarea>' . "\n"; } else { if ($valuelen) { $cols = $valuelen + 5; } $o .= '<input type="text" name="stringXXX' . lang_form_string_key($key) . '" value="' . $value . '" size="' . $cols . '" ' . $tabindex . ' />'; } if ($value2 != '' && $value != $value2) { $o .= '<br /><span style="font-size:small">' . $value2 . '</span>'; } $o .= $missingnext . '</td>'; } else { $o .= '<td ' . $cellcolour . ' valign="top">' . $value . '<br />' . $value2 . '</td>'; } $o .= '</tr>' . "\n"; } if ($editable) { $o .= '<tr><td> </td><td><br />'; $o .= '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />'; $o .= '<input type="hidden" name="currentfile" value="' . $currentfile . '" />'; $o .= '<input type="hidden" name="mode" value="compare" />';
if ($editable) { echo '<td ' . $cellcolour . ' valign="top">' . $missingprev . $missingtarget . "\n"; if (isset($string[$key])) { $valuelen = strlen($value); } else { $valuelen = strlen($envalue); } $cols = 40; if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) { $rows = ceil($valuelen / $cols); echo '<textarea name="stringXXX' . lang_form_string_key($key) . '" cols="' . $cols . '" rows="' . $rows . '">' . $value . '</textarea>' . "\n"; } else { if ($valuelen) { $cols = $valuelen + 5; } echo '<input type="text" name="stringXXX' . lang_form_string_key($key) . '" value="' . $value . '" size="' . $cols . '" />'; } if ($value2 != '' && $value != $value2) { echo '<br /><span style="font-size:small">' . $value2 . '</span>'; } echo $missingnext . '</td>'; } else { echo '<td ' . $cellcolour . ' valign="top">' . $value . '</td>'; } echo '</tr>' . "\n"; } if ($editable) { echo '<tr><td> </td><td><br />'; echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />'; echo ' <input type="hidden" name="currentfile" value="' . $currentfile . '" />'; echo ' <input type="hidden" name="mode" value="compare" />';