*
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2002-2004 (c) GForge Team
- * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012-2014, Franck Villaume - TrivialDev
* http://fusionforge.org/
*
* This file is part of FusionForge. FusionForge is free software;
<form enctype="multipart/form-data" method="post" action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&release_id=$release_id&package_id=$package_id"; ?>">
<input type="hidden" name="step1" value="1" />
-<table cellpadding="1" cellspacing="1">
+<table>
<tr>
- <td width="10%"><strong><?php echo _('Release Date')._(':'); ?></strong></td>
+ <td><strong><?php echo _('Release Date')._(':'); ?></strong></td>
<td><input type="text" name="release_date" value="<?php echo date('Y-m-d H:i',$frsr->getReleaseDate()) ?>" size="16" maxlength="16" /></td>
</tr>
<tr>
- <td><strong><?php echo _('Release Name')._(':'); ?></strong></td>
- <td><input type="text" name="release_name" value="<?php echo htmlspecialchars($frsr->getName()); ?>" /></td>
+ <td><strong><?php echo _('Release Name')._(':').utils_requiredField(); ?></strong></td>
+ <td><input type="text" name="release_name" value="<?php echo $frsr->getName(); ?>" required="required" pattern=".{3,}" title="<?php echo _('At least 3 characters') ?>"/></td>
</tr>
<tr>
- <td><strong><?php echo _('Status') ?></strong></td>
+ <td><strong><?php echo _('Status')._(':'); ?></strong></td>
<td>
<?php
echo frs_show_status_popup('status_id',$frsr->getStatus());
</td>
</tr>
<tr>
- <td colspan="2"><strong><?php echo _('Upload Release Notes') ?>:</strong> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?></td>
+ <td colspan="2"><strong><?php echo _('Upload Release Notes')._(':'); ?></strong>
+ <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?></td>
</tr>
<tr>
<td><input type="file" name="uploaded_notes" size="30" /></td>
</tr>
<tr>
- <td colspan="2"><strong><?php echo _('Upload Change Log') ?>:</strong> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?></td>
+ <td colspan="2"><strong><?php echo _('Upload Change Log')._(':'); ?></strong>
+ <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?></td>
</tr>
<tr>
<td><input type="file" name="uploaded_changes" size="30" /></td>
<input type="hidden" name="step2" value="1" />
<fieldset><legend><strong><?php echo _("File Name") ?></strong></legend>
<?php echo _("Upload a new file") ?>: <input type="file" name="userfile" size="30" /> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?>
-<?php if (forge_get_config('use_ftp_uploads')) {
+<?php
+if (forge_get_config('use_ftp_uploads')) {
echo '<p>';
- printf(_('Alternatively, you can use FTP to upload a new file at %1$s.'), forge_get_config('ftp_upload_host'));
+ printf(_('Alternatively, you can use FTP to upload a new file at %s.'), forge_get_config('ftp_upload_host'));
echo '<br />';
echo _('Choose an already uploaded file:').'<br />';
$ftp_files_arr=frs_filterfiles(ls($upload_dir,true));
- echo html_build_select_box_from_arrays($ftp_files_arr,$ftp_files_arr,'ftp_filename',''); ?>
- </p>
-<?php } ?>
+ echo html_build_select_box_from_arrays($ftp_files_arr,$ftp_files_arr,'ftp_filename','');
+ echo '</p>';
+}
-<?php if (forge_get_config('use_manual_uploads')) {
+if (forge_get_config('use_manual_uploads')) {
$incoming = forge_get_config('groupdir_prefix')."/".$group->getUnixName()."/incoming" ;
-
echo '<p>';
printf(_('Alternatively, you can use a file you already uploaded (by SFTP or SCP) to the <a href="%2$s">project\'s incoming directory</a> (%1$s).'),
- $incoming, "sftp://" . forge_get_config ('web_host') . $incoming . "/");
+ $incoming, "sftp://" . forge_get_config ('web_host') . $incoming . "/");
echo ' ' . _('This direct <tt>sftp://</tt> link only works with some browsers, such as Konqueror.') . '<br />';
echo _('Choose an already uploaded file:').'<br />';
$manual_files_arr=frs_filterfiles(ls($incoming,true));
- echo html_build_select_box_from_arrays($manual_files_arr,$manual_files_arr,'manual_filename',''); ?>
- </p>
-<?php } ?>
+ echo html_build_select_box_from_arrays($manual_files_arr,$manual_files_arr,'manual_filename','');
+ echo '</p>';
+}
+?>
</fieldset>
<table width="60%">
<tr>
echo $GLOBALS['HTML']->listTableBottom();
}
-echo '<p>' . sprintf(ngettext('There is %1$s user monitoring this package.', 'There are %1$s users monitoring this package.', $frsp->getMonitorCount()), $frsp->getMonitorCount()) . '</p>';
+echo '<p>' . sprintf(ngettext('There is %s user monitoring this package.', 'There are %s users monitoring this package.', $frsp->getMonitorCount()), $frsp->getMonitorCount()) . '</p>';
frs_admin_footer();