} } } } else { $release_name = ''; $userfile = ''; $userfile_name = ''; $type_id = ''; $processor_id = ''; $release_date = ''; $release_notes = ''; $release_changes = ''; $preformatted = ''; $ftp_filename = ''; } frs_admin_header(array('title' => _('Quick Release System'), 'group' => $group_id)); ?> <form enctype="multipart/form-data" method="post" action="<?php echo getStringFromServer('PHP_SELF') . "?group_id={$group_id}"; ?> "> <table border="0" cellpadding="2" cellspacing="2"> <tr> <td> <h4><?php echo _('Package ID'); ?> :</h4> </td> <td>
exit_error('Error', 'Could Not Get FRSFile'); } elseif ($frsf->isError()) { exit_error('Error', $frsf->getErrorMessage()); } else { //$date_list = split('[- :]',$release_time,5); //$release_time = mktime($date_list[3],$date_list[4],0,$date_list[1],$date_list[2],$date_list[0]); $release_time = strtotime($release_time); if (!$frsf->update($type_id, $processor_id, $release_time, $new_release_id)) { exit_error('Error', $frsf->getErrorMessage()); } else { $feedback .= _('File Updated'); } } } } frs_admin_header(array('title' => _('Edit Releases'), 'group' => $group_id)); /* * Show the forms for each step */ ?> <h3><?php echo _('Step 1: Edit Release'); ?> </h3> <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" />
exit_error('Error', $frsr->getErrorMessage()); } else { $feedback .= _('Deleted'); } } /* Get the releases of this package */ $rs =& $frsp->getReleases(); if (count($rs) < 1) { exit_error(_('Error'), _('No Releases Of This Package Are Available')); } /* Display a list of releases in this package */ frs_admin_header(array('title' => _('Release New File Version'), 'group' => $group_id)); $title_arr = array(); $title_arr[] = _('Package name'); $title_arr[] = _('Release name'); $title_arr[] = _('Date'); echo $GLOBALS['HTML']->listTableTop($title_arr); for ($i = 0; $i < count($rs); $i++) { echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '> <td>' . $frsp->getName() . '</td> <td><a href="editrelease.php?group_id=' . $group_id . '&package_id=' . $package_id . '&release_id=' . $rs[$i]->getID() . '">' . $rs[$i]->getName() . ' [' . _('Edit') . ']</a> <a href="deleterelease.php?group_id=' . $group_id . '&package_id=' . $package_id . '&release_id=' . $rs[$i]->getID() . '">[' . _('Delete') . ']</td><td>' . date('Y-m-d H:i', $rs[$i]->getReleaseDate()) . '</td></tr>'; } echo $GLOBALS['HTML']->listTableBottom(); frs_admin_footer(array()); // Local Variables: // mode: php