Code Duplication    Length = 13-13 lines in 4 locations

admin/category.php 1 location

@@ 124-136 (lines=13) @@
121
    );
122
    $indeximage_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_FCATEGORY_CIMAGE, ' ');
123
    $indeximage_tray->addElement($indeximage_select);
124
    if (!empty($imgurl)) {
125
        $indeximage_tray->addElement(
126
            new XoopsFormLabel(
127
                '', "<br /><br /><img src='" . XOOPS_URL . "/" . $xoopsModuleConfig['catimage'] . "/" . $imgurl . "' name='image' id='image' alt='' />"
128
            )
129
        );
130
    } else {
131
        $indeximage_tray->addElement(
132
            new XoopsFormLabel(
133
                '', "<br /><br /><img src='" . XOOPS_URL . "/uploads/blank.gif' name='image' id='image' alt='' />"
134
            )
135
        );
136
    }
137
    $sform->addElement($indeximage_tray);
138
139
//    $editor = xtube_getWysiwygForm(_AM_XOOPSTUBE_FCATEGORY_DESCRIPTION, 'description', $description, 15, 60, '');

admin/indexpage.php 1 location

@@ 104-116 (lines=13) @@
101
        );
102
        $indeximage_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_IPAGE_CIMAGE, '&nbsp;');
103
        $indeximage_tray->addElement($indeximage_select);
104
        if (!empty($indeximage)) {
105
            $indeximage_tray->addElement(
106
                new XoopsFormLabel(
107
                    '', '<br /><br /><img src="' . XOOPS_URL . '/' . $xoopsModuleConfig['mainimagedir'] . '/' . $indeximage . '" name="image" id="image" alt="" />'
108
                )
109
            );
110
        } else {
111
            $indeximage_tray->addElement(
112
                new XoopsFormLabel(
113
                    '', '<br /><br /><img src="' . XOOPS_URL . '/uploads/blank.gif" name="image" id="image" alt="" />'
114
                )
115
            );
116
        }
117
        $sform->addElement($indeximage_tray);
118
119
//        $editor = xtube_getWysiwygForm(_AM_XOOPSTUBE_IPAGE_CHEADING, 'indexheader', $indexheader, 15, 60, '');

admin/upload.php 1 location

@@ 149-161 (lines=13) @@
146
            );
147
            $indeximage_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_VIDEO_FSHOWSELECTEDIMAGE, '&nbsp;');
148
            $indeximage_tray->addElement($indeximage_select);
149
            if (!empty($imgurl)) {
150
                $indeximage_tray->addElement(
151
                    new XoopsFormLabel(
152
                        '', '<br /><br /><img src="' . XOOPS_URL . '/' . $dirarray[$rootpath] . '/' . $videofile . '" name="image" id="image" alt"" />'
153
                    )
154
                );
155
            } else {
156
                $indeximage_tray->addElement(
157
                    new XoopsFormLabel(
158
                        '', '<br /><br /><img src="' . XOOPS_URL . '/uploads/blank.gif" name="image" id="image" alt="" />'
159
                    )
160
                );
161
            }
162
            $iform->addElement($indeximage_tray);
163
164
            $iform->addElement(new XoopsFormFile(_AM_XOOPSTUBE_VIDEO_FUPLOADIMAGE, 'uploadfile', 0));

admin/vupload.php 1 location

@@ 121-133 (lines=13) @@
118
            );
119
            $indexfile_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_VUPLOAD_FSHOWSELECTEDFILE, '&nbsp;');
120
            $indexfile_tray->addElement($indexfile_select);
121
            if (!empty($imgurl)) {
122
                $indexfile_tray->addElement(
123
                    new XoopsFormLabel(
124
                        '', '<br /><br /><img src="' . XOOPS_URL . '/' . $dirarray[$rootpath] . '/' . $videofile . '" name="image" id="image" alt="" />'
125
                    )
126
                );
127
            } else {
128
                $indexfile_tray->addElement(
129
                    new XoopsFormLabel(
130
                        '', '<br /><br /><img src="' . XOOPS_URL . '/uploads/blank.gif" name="image" id="image" alt="" />'
131
                    )
132
                );
133
            }
134
            $iform->addElement($indexfile_tray);
135
136
            $file_tray = new XoopsFormFile(_AM_XOOPSTUBE_VUPLOAD_FUPLOADVIDEO, 'uploadfile', 0);