Add the ability for admins to move a version from one application to another.

This is useful when there are duplicate applications and you want to move
versions prior to removing the duplicate app.
This commit is contained in:
Chris Morgan
2005-06-05 21:26:07 +00:00
committed by WineHQ
parent 55971e8f8b
commit 81d3db95b8
3 changed files with 93 additions and 1 deletions

View File

@@ -128,6 +128,19 @@ if(isset($_REQUEST['submit']))
echo '</table>',"\n";
echo html_frame_end();
echo "</form>";
/* only admins can move versions */
if($_SESSION['current']->hasPriv("admin"))
{
// move version form
echo '<form enctype="multipart/form-data" action="moveAppVersion.php" method="post">',"\n";
echo '<input type=hidden name="appId" value='.$oVersion->iAppId.'>';
echo '<input type=hidden name="versionId" value='.$oVersion->iVersionId.'>';
echo html_frame_start("Move version to another application","90%","",0);
echo '<center><input type="submit" name="view" value="Move this version"></center>',"\n";
echo html_frame_end();
}
echo html_back_link(1,BASE."appview.php?versionId=".$oVersion->iVersionId);
apidb_footer();
}