/** * Prints the upload form for extensions * * @param string Extension key * @param array Extension information array * @return string HTML content. */ function getRepositoryUploadForm($extKey, $extInfo) { $content = '<form action="' . $this->script . '" method="post" name="repuploadform"> <input type="hidden" name="CMD[showExt]" value="' . $extKey . '" /> <input type="hidden" name="em[action]" value="doUpload" /> <table border="0" cellpadding="2" cellspacing="1"> <tr class="bgColor4"> <td>' . $GLOBALS['LANG']->getLL('repositoryUploadForm_username') . '</td> <td><input' . $this->doc->formWidth(20) . ' type="text" name="em[user][fe_u]" value="' . $this->fe_user['username'] . '" /></td> </tr> <tr class="bgColor4"> <td>' . $GLOBALS['LANG']->getLL('repositoryUploadForm_password') . '</td> <td><input' . $this->doc->formWidth(20) . ' type="password" name="em[user][fe_p]" value="' . $this->fe_user['password'] . '" /></td> </tr> <tr class="bgColor4"> <td>' . $GLOBALS['LANG']->getLL('repositoryUploadForm_changelog') . '</td> <td><textarea' . $this->doc->formWidth(30, 1) . ' rows="5" name="em[upload][comment]"></textarea></td> </tr> <tr class="bgColor4"> <td>' . $GLOBALS['LANG']->getLL('repositoryUploadForm_command') . '</td> <td nowrap="nowrap"> <input type="radio" name="em[upload][mode]" id="new_dev" value="new_dev" checked="checked" /> <label for="new_dev">' . sprintf($GLOBALS['LANG']->getLL('repositoryUploadForm_new_bugfix'), 'x.x.<strong>' . tx_em_Tools::rfw('x+1') . '</strong>') . '</label><br /> <input type="radio" name="em[upload][mode]" id="new_sub" value="new_sub" /> <label for="new_sub">' . sprintf($GLOBALS['LANG']->getLL('repositoryUploadForm_new_sub_version'), 'x.<strong>' . tx_em_Tools::rfw('x+1') . '</strong>.0') . '</label><br /> <input type="radio" name="em[upload][mode]" id="new_main" value="new_main" /> <label for="new_main">' . sprintf($GLOBALS['LANG']->getLL('repositoryUploadForm_new_main_version'), '<strong>' . tx_em_Tools::rfw('x+1') . '</strong>.0.0') . '</label><br /> </td> </tr> <tr class="bgColor4"> <td> </td> <td><input type="submit" name="submit" value="' . $GLOBALS['LANG']->getLL('repositoryUploadForm_upload') . '" /> </td> </tr> </table> </form>'; return $content; }