hasPriv("admin") || $_SESSION['current']->isSuperMaintainer($aClean['iAppId']))) util_show_error_page_and_exit("Insufficient Privileges!"); if(!empty($aClean['sSubmit'])) { process_app_version_changes(false); util_redirect_and_exit(apidb_fullurl("appview.php?iAppId={$aClean['iAppId']}")); } else // Show the form for editing the Application Family { $family = new TableVE("edit"); $oApp = new Application($aClean['iAppId']); if(!$oApp) { util_show_error_page_and_exit('Application does not exist'); } if($_SESSION['current']->showDebuggingInfos()) { echo "

appName: $oApp->sName

"; } apidb_header("Edit Application Family"); echo "
\n"; $oApp->outputEditor(""); echo '', "\n"; echo '',"\n"; echo '
', "\n"; echo "
"; echo "

"; // url edit form echo '

',"\n"; echo ''; echo html_frame_start("Edit URL","90%","",0); echo '',"\n"; $i = 0; $hResult = query_parameters("SELECT * FROM appData WHERE appId = '?' AND type = 'url' AND versionId = 0", $oApp->iAppId); 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 "
"; echo html_back_link(1,BASE."appview.php?iAppId=$oApp->iAppId"); } apidb_footer(); ?>