hasPriv("admin") && !$_SESSION['current']->isMaintainer($aClean['iVersionId']) && !$_SESSION['current']->isSuperMaintainer($aClean['iAppId'])) { util_show_error_page("Insufficient Privileges!"); exit; } /* process the changes the user entered into the web form */ if(!empty($aClean['sSubmit'])) { process_app_version_changes(true); redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId'])); } else /* or display the webform for making changes */ { $oVersion = new Version($aClean['iVersionId']); apidb_header("Edit Application Version"); echo "
\n"; if($_SESSION['current']->hasPriv("admin")) $oVersion->OutputEditor(true, true); /* false = not allowing the user to modify the parent application */ else $oVersion->OutputEditor(false, true); /* false = not allowing the user to modify the parent application */ echo '',"\n"; echo '',"\n"; echo html_table_end(); echo ""; echo "

\n"; // url edit form echo '',"\n"; echo ''; echo ''; echo html_frame_start("Edit URL","90%","",0); echo '
',"\n"; $i = 0; $hResult = query_parameters("SELECT * FROM appData WHERE versionId = '?' AND type = 'url'", $oVersion->iVersionId); if($hResult && mysql_num_rows($hResult) > 0) { echo '',"\n"; while($oRow = mysql_fetch_object($hResult)) { $temp0 = "adelete[".$i."]"; $temp1 = "adescription[".$i."]"; $temp2 = "aURL[".$i."]"; $temp3 = "aId[".$i."]"; $temp4 = "aOldDesc[".$i."]"; $temp5 = "aOldURL[".$i."]"; echo '',"\n"; echo '',"\n"; echo ''; echo ''; echo '',"\n"; $i++; } } else { echo '',"\n"; echo '',"\n"; } echo "\n"; echo ""; echo '',"\n"; echo '',"\n"; echo '',"\n"; echo '
Delete',"\n"; echo 'DescriptionURL
',"\n"; echo '
DescriptionURL
New
',"\n"; echo html_frame_end(); echo ""; /* only admins can move versions */ if($_SESSION['current']->hasPriv("admin")) { // move version form echo '
',"\n"; echo ''; echo ''; echo html_frame_start("Move version to another application","90%","",0); echo '
',"\n"; echo html_frame_end(); } echo html_back_link(1,BASE."appview.php?iVersionId=".$oVersion->iVersionId); apidb_footer(); } ?>