Lets users submit application testing results in a uniform and easy to process manner
This commit is contained in:
47
admin/editDistribution.php
Normal file
47
admin/editDistribution.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
include("path.php");
|
||||
require(BASE."include/incl.php");
|
||||
require(BASE."include/distributions.php");
|
||||
|
||||
if(!$_SESSION['current']->hasPriv("admin"))
|
||||
{
|
||||
errorpage();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$oDistribution = new distribution($_REQUEST['iDistributionId']);
|
||||
if($_REQUEST['Submit'])
|
||||
{
|
||||
$oDistribution->GetOutputEditorValues();
|
||||
|
||||
if($oDistribution->iDistributionId)
|
||||
$oDistribution->update();
|
||||
else
|
||||
{
|
||||
$oDistribution->create();
|
||||
}
|
||||
|
||||
redirect(apidb_fullurl("admin/adminDistributions.php"));
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($oDistribution->iDistributionId)
|
||||
apidb_header("Edit Distribution");
|
||||
else
|
||||
apidb_header("Add Distribution");
|
||||
|
||||
echo '<form name="qform" action="'.$_SERVER['PHP_SELF'].'" method="post" enctype="multipart/form-data">',"\n";
|
||||
|
||||
$oDistribution->OutputEditor();
|
||||
|
||||
echo '<tr valign=top><td class=color3 align=center colspan=2>',"\n";
|
||||
echo '<input name="Submit" type="submit" value="Submit" class="button" > ',"\n";
|
||||
echo '</td></tr>',"\n";
|
||||
|
||||
echo "</form>";
|
||||
echo html_frame_end(" ");
|
||||
apidb_footer();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user