This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/admin/editAppFamily.php

61 lines
1.6 KiB
PHP
Raw Normal View History

<?php
/**********************************/
/* Edit application family */
/**********************************/
2004-03-15 16:22:00 +00:00
require("path.php");
require(BASE."include/incl.php");
require_once(BASE."include/tableve.php");
require_once(BASE."include/application.php");
require_once(BASE."include/category.php");
2004-03-15 16:22:00 +00:00
if(!is_numeric($aClean['iAppId']))
util_show_error_page_and_exit("Wrong ID");
if(!($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isSuperMaintainer($aClean['iAppId'])))
util_show_error_page_and_exit("Insufficient Privileges!");
2004-03-15 16:22:00 +00:00
if(!empty($aClean['sSubmit']))
2004-03-15 16:22:00 +00:00
{
process_app_version_changes(false);
2007-01-20 03:49:41 +00:00
url::processForm($aClean);
$oApp = new application($aClean['iAppId']);
util_redirect_and_exit($oApp->objectMakeUrl());
2004-03-15 16:22:00 +00:00
}
else
// Show the form for editing the Application Family
2004-03-15 16:22:00 +00:00
{
$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 "<p align=center><b>appName:</b> $oApp->sName </p>"; }
2004-03-15 16:22:00 +00:00
apidb_header("Edit Application Family");
echo "<form method=\"post\" action=\"editAppFamily.php\">\n";
$oApp->outputEditor("");
echo '<table border=0 cellpadding=6 cellspacing=0 width="100%">', "\n";
echo '<tr><td colspan=2 align=center><input type="submit" name=sSubmit value="Update Database"></td></tr>',"\n";
echo '</table>', "\n";
echo "</form>";
echo "<p>";
2007-01-20 03:49:41 +00:00
// URL editor
echo url::outputEditor("editAppFamily.php", NULL, $oApp);
2004-03-15 16:22:00 +00:00
echo html_back_link(1,$oApp->objectMakeUrl());
2004-03-15 16:22:00 +00:00
}
apidb_footer();
?>