| @@ 136-148 (lines=13) @@ | ||
| 133 | $indexImageSelect->setExtra("onchange='showImgSelected(\"image\", \"videofile\", \"" . $dirarray[$rootpath] . "\", \"\", \"" . XOOPS_URL . "\")'"); |
|
| 134 | $indeximage_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_VIDEO_FSHOWSELECTEDIMAGE, ' '); |
|
| 135 | $indeximage_tray->addElement($indexImageSelect); |
|
| 136 | if (!empty($imgurl)) { |
|
| 137 | $indeximage_tray->addElement(new XoopsFormLabel('', '<br><br><img src="' . XOOPS_URL . '/' . $dirarray[$rootpath] . '/' . $videofile . '" name="image" id="image" alt"" />')); |
|
| 138 | } else { |
|
| 139 | $indeximage_tray->addElement(new XoopsFormLabel('', '<br><br><img src="' . XOOPS_URL . '/uploads/blank.gif" name="image" id="image" alt="" />')); |
|
| 140 | } |
|
| 141 | $iform->addElement($indeximage_tray); |
|
| 142 | ||
| 143 | $iform->addElement(new XoopsFormFile(_AM_XOOPSTUBE_VIDEO_FUPLOADIMAGE, 'uploadfile', 0)); |
|
| 144 | $iform->addElement(new XoopsFormHidden('uploadpath', $dirarray[$rootpath])); |
|
| 145 | $iform->addElement(new XoopsFormHidden('rootnumber', $rootpath)); |
|
| 146 | ||
| 147 | $dup_tray = new XoopsFormElementTray('', ''); |
|
| 148 | $dup_tray->addElement(new XoopsFormHidden('op', 'upload')); |
|
| 149 | $butt_dup = new XoopsFormButton('', '', _AM_XOOPSTUBE_BUPLOAD, 'submit'); |
|
| 150 | $butt_dup->setExtra('onclick="this.form.elements.op.value=\'upload\'"'); |
|
| 151 | $dup_tray->addElement($butt_dup); |
|
| @@ 107-119 (lines=13) @@ | ||
| 104 | $indexfile_select->setExtra("onchange='showImgSelected(\"media\", \"videofile\", \"" . $dirarray[$rootpath] . "\", \"\", \"" . XOOPS_URL . "\")'"); |
|
| 105 | $indexfile_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_VUPLOAD_FSHOWSELECTEDFILE, ' '); |
|
| 106 | $indexfile_tray->addElement($indexfile_select); |
|
| 107 | if (!empty($imgurl)) { |
|
| 108 | $indexfile_tray->addElement(new XoopsFormLabel('', '<br><br><img src="' . XOOPS_URL . '/' . $dirarray[$rootpath] . '/' . $videofile . '" name="image" id="image" alt="" />')); |
|
| 109 | } else { |
|
| 110 | $indexfile_tray->addElement(new XoopsFormLabel('', '<br><br><img src="' . XOOPS_URL . '/uploads/blank.gif" name="image" id="image" alt="" />')); |
|
| 111 | } |
|
| 112 | $iform->addElement($indexfile_tray); |
|
| 113 | ||
| 114 | $file_tray = new XoopsFormFile(_AM_XOOPSTUBE_VUPLOAD_FUPLOADVIDEO, 'uploadfile', 0); |
|
| 115 | $file_tray->setDescription('<span style="font-size: small;">' . _AM_XOOPSTUBE_VUPLOAD_FSHOWSELECTEDFILEDSC . '</span>'); |
|
| 116 | $iform->addElement($file_tray); |
|
| 117 | $iform->addElement(new XoopsFormHidden('uploadpath', $dirarray[$rootpath])); |
|
| 118 | $iform->addElement(new XoopsFormHidden('rootnumber', $rootpath)); |
|
| 119 | ||
| 120 | $dup_tray = new XoopsFormElementTray('', ''); |
|
| 121 | $dup_tray->addElement(new XoopsFormHidden('op', 'vupload')); |
|
| 122 | $butt_dup = new XoopsFormButton('', '', _AM_XOOPSTUBE_BUPLOAD, 'submit'); |
|
| @@ 90-95 (lines=6) @@ | ||
| 87 | $indexImageSelect->setExtra("onchange='showImgSelected(\"image\", \"indeximage\", \"" . $GLOBALS['xoopsModuleConfig']['mainimagedir'] . "\", \"\", \"" . XOOPS_URL . "\")'"); |
|
| 88 | $indeximage_tray = new XoopsFormElementTray(_AM_XOOPSTUBE_IPAGE_CIMAGE, ' '); |
|
| 89 | $indeximage_tray->addElement($indexImageSelect); |
|
| 90 | if (!empty($indeximage)) { |
|
| 91 | $indeximage_tray->addElement(new XoopsFormLabel('', '<br><br><img src="' |
|
| 92 | . XOOPS_URL |
|
| 93 | . '/' |
|
| 94 | . $GLOBALS['xoopsModuleConfig']['mainimagedir'] |
|
| 95 | . '/' |
|
| 96 | . $indeximage |
|
| 97 | . '" name="image" id="image" alt="" />')); |
|
| 98 | } else { |
|