2010/02/02 03:15:57 +0000 claunia: Cleanup some application references. Still lot to check out.
This commit is contained in:
@@ -27,7 +27,7 @@ if(!$hResult || !query_num_rows($hResult))
|
||||
{
|
||||
// no apps
|
||||
echo html_frame_start("","90%");
|
||||
echo '<p><b>There are no application maintainers.</b></p>',"\n";
|
||||
echo '<p><b>There are no operating system maintainers.</b></p>',"\n";
|
||||
echo html_frame_end(" ");
|
||||
}
|
||||
else
|
||||
@@ -41,7 +41,7 @@ else
|
||||
echo "<tr class=color4>\n";
|
||||
echo " <td><font color=white>Submission Date</font></td>\n";
|
||||
echo " <td><font color=white>Maintainer</font></td>\n";
|
||||
echo " <td><font color=white>Application</font></td>\n";
|
||||
echo " <td><font color=white>Operating System</font></td>\n";
|
||||
echo " <td><font color=white>Version</font></td>\n";
|
||||
echo " <td align=\"center\">Action</td>\n";
|
||||
echo "</tr>\n\n";
|
||||
|
||||
@@ -32,12 +32,12 @@ else
|
||||
|
||||
if(!$oApp)
|
||||
{
|
||||
util_show_error_page_and_exit('Application does not exist');
|
||||
util_show_error_page_and_exit('Operating system does not exist');
|
||||
}
|
||||
|
||||
if($_SESSION['current']->showDebuggingInfos()) { echo "<p align=center><b>appName:</b> $oApp->sName </p>"; }
|
||||
|
||||
apidb_header("Edit Application Family");
|
||||
apidb_header("Edit Operating System Family");
|
||||
|
||||
echo "<form method=\"post\" action=\"editAppFamily.php\">\n";
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ if(!empty($aClean['sSubmit']))
|
||||
|
||||
$oVersion = new Version($aClean['iVersionId']);
|
||||
|
||||
apidb_header("Edit Application Version");
|
||||
apidb_header("Edit Operating System Version");
|
||||
|
||||
echo "<div class='default_container'>\n";
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ if($aClean['sCmd'])
|
||||
$hResult = query_parameters("DELETE FROM appBundle WHERE appId ='?' AND bundleId = '?'",
|
||||
$aClean['iAppId'], $aClean['iBundleId']);
|
||||
if($hResult)
|
||||
addmsg("App deleted from bundle", "green");
|
||||
addmsg("OS deleted from bundle", "green");
|
||||
else
|
||||
addmsg("Failed to delete app from bundle!", "red");
|
||||
addmsg("Failed to delete OS from bundle!", "red");
|
||||
}
|
||||
if($aClean['sCmd'] == "add")
|
||||
{
|
||||
@@ -36,22 +36,22 @@ if($aClean['sCmd'])
|
||||
$aClean['iBundleId'],
|
||||
$aClean['iAppId']);
|
||||
if($hResult)
|
||||
addmsg("App $appId added to Bundle".$aClean['iBundleId'], "green");
|
||||
addmsg("OS $appId added to Bundle".$aClean['iBundleId'], "green");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
apidb_header("Edit Application Bundle");
|
||||
apidb_header("Edit Operating System Bundle");
|
||||
|
||||
$hResult = query_parameters("SELECT bundleId, appBundle.appId, appName FROM appBundle, appFamily ".
|
||||
"WHERE bundleId = '?' AND appFamily.appId = appBundle.appId",
|
||||
$aClean['iBundleId']);
|
||||
|
||||
echo html_frame_start("Apps in this Bundle","300",'',0);
|
||||
echo html_frame_start("OSes in this Bundle","300",'',0);
|
||||
echo "<table width='100%' border=0 cellpadding=3 cellspacing=0>\n\n";
|
||||
|
||||
echo "<tr class=color4>\n";
|
||||
echo " <td><font color=white> Application Name </font></td>\n";
|
||||
echo " <td><font color=white> Operating System Name </font></td>\n";
|
||||
echo " <td><font color=white> Delete </font></td>\n";
|
||||
echo "</tr>\n\n";
|
||||
|
||||
@@ -76,7 +76,7 @@ if($hResult && query_num_rows($hResult))
|
||||
{
|
||||
/* indicate to the user that there are no apps in this bundle at the moment */
|
||||
echo "<tr>\n";
|
||||
echo " <td colspan=2 align=center><b>No applications in this bundle</b></td>\n";
|
||||
echo " <td colspan=2 align=center><b>No operating systems in this bundle</b></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ echo html_frame_end();
|
||||
|
||||
echo "<form method=post action=editBundle.php>\n";
|
||||
|
||||
echo html_frame_start("Application List (double click to add)","",'',2);
|
||||
echo html_frame_start("Operating System List (double click to add)","",'',2);
|
||||
build_app_list();
|
||||
echo html_frame_end();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user