Code Duplication    Length = 5-6 lines in 3 locations

src/controllers/AlldbController.php 1 location

@@ 501-505 (lines=5) @@
498
        }
499
500
        // Comments (if available)
501
        if ($data->hasSharedComments()) {
502
            echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcomment']}</th>\n";
503
            echo "\t\t<td><textarea name=\"formComment\" rows=\"3\" cols=\"32\">",
504
            htmlspecialchars($_POST['formComment']), "</textarea></td>\n\t</tr>\n";
505
        }
506
507
        echo "</table>\n";
508
        echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create\" />\n";

src/controllers/TablespacesController.php 2 locations

@@ 209-214 (lines=6) @@
206
                $users->moveNext();
207
            }
208
            echo "</select></td></tr>\n";
209
            if ($data->hasSharedComments()) {
210
                echo "<tr><th class=\"data left\">{$lang['strcomment']}</th>\n";
211
                echo '<td class="data1">';
212
                echo '<textarea rows="3" cols="32" name="comment">',
213
                htmlspecialchars($_POST['comment']), "</textarea></td></tr>\n";
214
            }
215
            echo "</table>\n";
216
            echo "<p><input type=\"hidden\" name=\"action\" value=\"save_edit\" />\n";
217
            echo '<input type="hidden" name="tablespace" value="', htmlspecialchars($_REQUEST['tablespace']), "\" />\n";
@@ 339-343 (lines=5) @@
336
        echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strlocation']}</th>\n";
337
        echo "\t\t<td class=\"data1\"><input size=\"32\" name=\"formLoc\" value=\"", htmlspecialchars($_POST['formLoc']), "\" /></td>\n\t</tr>\n";
338
        // Comments (if available)
339
        if ($data->hasSharedComments()) {
340
            echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcomment']}</th>\n";
341
            echo "\t\t<td><textarea name=\"formComment\" rows=\"3\" cols=\"32\">",
342
            htmlspecialchars($_POST['formComment']), "</textarea></td>\n\t</tr>\n";
343
        }
344
        echo "</table>\n";
345
        echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create\" />\n";
346
        echo "<input type=\"submit\" value=\"{$lang['strcreate']}\" />\n";