* add category to app submission page. code cleanup and formatting fixes

This commit is contained in:
Tony Lambregts
2004-10-12 21:11:59 +00:00
committed by Jeremy Newman
parent 56aa6d18b5
commit da68923dad
3 changed files with 279 additions and 236 deletions

View File

@@ -1,7 +1,6 @@
<? <?
/* code to View and approve new Apps */ /* code to View and approve new Apps */
/* last modified 06-07-01 by Jeremy Newman */
include("path.php"); include("path.php");
require(BASE."include/"."incl.php"); require(BASE."include/"."incl.php");
@@ -27,224 +26,256 @@ if ($sub)
if ($queueId) if ($queueId)
{ {
//get data //get data
$query = "SELECT * from appQueue where queueId = $queueId;"; $query = "SELECT * from appQueue where queueId = $queueId;";
$result = mysql_query($query); $result = mysql_query($query);
$ob = mysql_fetch_object($result); $ob = mysql_fetch_object($result);
mysql_free_result($result); mysql_free_result($result);
} }
else else
{ {
//error no Id! //error no Id!
echo html_frame_start("Error","300"); echo html_frame_start("Error","300");
echo '<p><b>Application Not Found!</b></p>',"\n"; echo '<p><b>Application Not Found!</b></p>',"\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
} }
//process according to sub flag //process according to sub flag
if ($sub == 'view' && $queueId) if ($sub == 'view' && $queueId)
{ {
$x = new TableVE("view"); $x = new TableVE("view");
//help //help
echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n"; echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n";
echo "<p>This is the full view of the application waiting to be approved. You need to pick a category before submitting \n"; echo "<p>This is the full view of the application waiting to be approved. \n";
echo "it into the database. If you approve this application, an email will be sent to the author of the submission.<p>\n"; echo "You need to pick a category before submitting \n";
echo "<p>There are two kinds of applications in this database:</p>\n"; echo "it into the database. If you approve this application,\n";
echo "<ol>\n"; echo "an email will be sent to the author of the submission.<p>\n";
echo " <li><b>App Family</b> This is a parent group application, that will have multiple versions under it.<br>\n"; echo "<p>There are two kinds of applications in this database:</p>\n";
echo " To add this submission as a Family, choose 'Application' from the type drop down. Then set the category.\n"; echo "<ol>\n";
echo " The version and app parent fields will be ignored in this type.<br>\n"; echo " <li><b>App Family</b> This is a parent group application, that will have multiple versions under it.<br>\n";
echo " If the vendor does not exist, leave the vendor drop down unset, and the field will be used.</li><p>\n"; echo " To add this submission as a Family, choose 'Application' from the type drop down. Then set the category.\n";
echo " <li><b>App Version</b> This type of application will be nested under the selected application parent. The category,\n"; echo " The version and app parent fields will be ignored in this type.<br>\n";
echo " name, and vendor fields will be ignored.</li>\n"; echo " If the vendor does not exist, leave the vendor drop down unset, and the field will be used.</li><p>\n";
echo "</td></tr></table></div>\n\n"; echo " <li><b>App Version</b> This type of application will be nested under the selected application parent.\n";
echo " The category, name, and vendor fields will be ignored.</li>\n";
echo "</td></tr></table></div>\n\n";
//view application details //view application details
echo html_frame_start("New Application Form",400,"",0); echo html_frame_start("New Application Form",400,"",0);
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n"; echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
//type //type
echo '<tr valign=top><td class=color0><b>Type</b></td><td>',"\n"; echo '<tr valign=top><td class=color0><b>Type</b></td><td>',"\n";
echo '<select name=type><option value=app>Application</option><option value=ver>Version</option></select>',"\n"; echo '<select name=type><option value=app>Application</option><option value=ver>Version</option></select>',"\n";
echo '</td></tr>',"\n"; echo '</td></tr>',"\n";
//category //category
echo '<tr valign=top><td class=color0><b>Category</b></td><td>',"\n";
$x->make_option_list("cat","","appCategory","catId","catName");
echo '</td></tr>',"\n";
//app parent
echo '<tr valign=top><td class=color0><b>App Parent</b></td><td>',"\n";
$x->make_option_list("appParent","","appFamily","appId","appName");
echo '</td></tr>',"\n";
//name
echo '<tr valign=top><td class=color0><b>App Name</b></td><td><input type=text name="queueName" value="'.stripslashes($ob->queueName).'" size=20></td></tr>',"\n";
//version $query = "select * from appCategory where catId = '$ob->queueCatId';";
echo '<tr valign=top><td class=color0><b>App Version</b></td><td><input type=text name="queueVersion" value="'.stripslashes($ob->queueVersion).'" size=20></td></tr>',"\n";
//vendor/alt vendor fields
// try for an exact match
$query = "select * from vendor where vendorname = '$ob->queueVendor';";
$result = mysql_query($query);
if(!$result)
{
// try for a partial match
$query = "select * from vendor where vendorname like '%$ob->queueVendor%';";
$result = mysql_query($query); $result = mysql_query($query);
} if($result)
{
// Use the first match if we found one and clear out the vendor field,
// otherwise don't pick a vendor $ob2 = mysql_fetch_object($result);
if($result)
{ echo '<tr valign=top><td class=color0><b>Category</b></td><td>',"\n";
$ob->queueVendor = ''; $x->make_option_list("cat",stripslashes($ob2->catId),"appCategory","catId","catName");
echo '</td></tr>',"\n";
//vendor field } else
echo '<tr valign=top><td class=color0><b>App Vendor</b></td><td><input type=text name="queueVendor" value="'.stripslashes($ob->queueVendor).'" size=20></td></tr>',"\n"; {
echo '<tr valign=top><td class=color0><b>Category</b></td><td>',"\n";
$ob2 = mysql_fetch_object($result); $x->make_option_list("cat","","appCategory","catId","catName");
echo '</td></tr>',"\n";
echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n"; }
$x->make_option_list("altvendor","$ob2->vendorId","vendor","vendorId","vendorName"); //app parent
echo '<tr valign=top><td class=color0><b>App Parent</b></td><td>',"\n";
$x->make_option_list("appParent","","appFamily","appId","appName");
echo '</td></tr>',"\n"; echo '</td></tr>',"\n";
} else
{ //name
//vendor field echo '<tr valign=top><td class=color0><b>App Name</b></td>',"\n";
echo '<tr valign=top><td class=color0><b>App Vendor</b></td><td><input type=text name="queueVendor" value="'.stripslashes($ob->queueVendor).'" size=20></td></tr>',"\n"; echo '<td><input type=text name="queueName" value="'.stripslashes($ob->queueName).'" size=20></td></tr>',"\n";
echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n"; //version
$x->make_option_list("altvendor","","vendor","vendorId","vendorName"); echo '<tr valign=top><td class=color0><b>App Version</b></td>',"\n";
echo '</td></tr>',"\n"; echo '<td><input type=text name="queueVersion" value="'.stripslashes($ob->queueVersion).'" size=20></td></tr>',"\n";
}
//vendor/alt vendor fields
// try for an exact match
// Use the first match if we found one and clear out the vendor field,
// otherwise don't pick a vendor
$query = "select * from vendor where vendorname = '$ob->queueVendor';";
$result = mysql_query($query);
$checkvendor = 0;
if($result)
{
$ob2 = mysql_fetch_object($result);
$checkvendor = $ob2->vendorId;
}
if(!$checkvendor)
{
// try for a partial match
$query = "select * from vendor where vendorname like '%$ob->queueVendor%';";
$result = mysql_query($query);
if($result)
{
$ob2 = mysql_fetch_object($result);
$checkvendor = $ob2->vendorId;
}
}
if(checkvendor)
{
$ob->queueVendor = '';
//vendor field
//url echo '<tr valign=top><td class=color0><b>App Vendor</b></td>',"\n";
echo '<tr valign=top><td class=color0><b>App URL</b></td><td><input type=text name="queueURL" value="'.stripslashes($ob->queueURL).'" size=20></td></tr>',"\n"; echo '<td><input type=text name="queueVendor" value="'.stripslashes($ob->queueVendor).'" size=20></td></tr>',"\n";
//desc echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n";
echo '<tr valign=top><td class=color0><b>App Desc</b></td><td><textarea name="queueDesc" rows=10 cols=35>'.stripslashes($ob->queueDesc).'</textarea></td></tr>',"\n"; $x->make_option_list("altvendor", $checkvendor ,"vendor","vendorId","vendorName");
echo '</td></tr>',"\n";
//echo '<tr valign=top><td bgcolor=class=color0><b>Email</b></td><td><input type=text name="queueEmail" value="'.$ob->queueEmail.'" size=20></td></tr>',"\n"; } else
//echo '<tr valign=top><td bgcolor=class=color0><b>Image</b></td><td><input type=file name="queueImage" value="'.$ob->.'" size=15></td></tr>',"\n"; {
//vendor field
echo '<tr valign=top><td class=color3 align=center colspan=2> <input type=submit value=" Submit App Into Database " class=button> </td></tr>',"\n"; echo '<tr valign=top><td class=color0><b>App Vendor</b></td>',"\n";
echo '</table>',"\n"; echo '<td><input type=text name="queueVendor" value="'.stripslashes($ob->queueVendor).'" size=20></td></tr>',"\n";
echo '<input type=hidden name="sub" value="add">',"\n";
echo '<input type=hidden name="queueId" value="'.$queueId.'">',"\n"; echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n";
$x->make_option_list("altvendor","","vendor","vendorId","vendorName");
echo '</td></tr>',"\n";
}
//url
echo '<tr valign=top><td class=color0><b>App URL</b></td>',"\n";
echo '<td><input type=text name="queueURL" value="'.stripslashes($ob->queueURL).'" size=20></td></tr>',"\n";
//desc
echo '<tr valign=top><td class=color0><b>App Desc</b></td>',"\n";
echo '<td><textarea name="queueDesc" rows=10 cols=35>'.stripslashes($ob->queueDesc).'</textarea></td></tr>',"\n";
//echo '<tr valign=top><td bgcolor=class=color0><b>Email</b></td>,"\n";
//echo '<td><input type=text name="queueEmail" value="'.$ob->queueEmail.'" size=20></td></tr>',"\n";
//echo '<tr valign=top><td bgcolor=class=color0><b>Image</b></td>,"\n";
//echo '<td><input type=file name="queueImage" value="'.$ob->.'" size=15></td></tr>',"\n";
echo html_frame_end("&nbsp;"); echo '<tr valign=top><td class=color3 align=center colspan=2>' ,"\n";
echo html_back_link(1,'adminAppQueue.php'); echo '<input type=submit value=" Submit App Into Database " class=button> </td></tr>',"\n";
echo '</table>',"\n";
echo '<input type=hidden name="sub" value="add">',"\n";
echo '<input type=hidden name="queueId" value="'.$queueId.'">',"\n";
echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminAppQueue.php');
} }
else if ($sub == 'add' && $queueId) else if ($sub == 'add' && $queueId)
{ {
//add item to main db //add item to main db
$statusMessage = ""; $statusMessage = "";
$goodtogo = 0; $goodtogo = 0;
if ($type == 'app') if ($type == 'app')
{ {
//process as application family //process as application family
if ($altvendor == 0 && $queueVendor) if ($altvendor == 0 && $queueVendor)
{ {
//add new vendor //add new vendor
mysql_query("INSERT into vendor VALUES (null, '".addslashes($queueVendor)."', '');"); mysql_query("INSERT into vendor VALUES (null, '".addslashes($queueVendor)."', '');");
$altvendor = mysql_insert_id(); $altvendor = mysql_insert_id();
} }
$query = "INSERT into appFamily VALUES (null, '". $query = "INSERT into appFamily VALUES (null, '".
addslashes($queueName)."', $altvendor, '', '". addslashes($queueName)."', $altvendor, '', '".
addslashes($queueDesc)."', '". addslashes($queueDesc)."', '".
addslashes($queueURL)."', $cat);"; addslashes($queueURL)."', $cat);";
if (mysql_query($query)) if (mysql_query($query))
{ {
//get the id of the app just added //get the id of the app just added
$appParent = mysql_insert_id(); $appParent = mysql_insert_id();
//delete queue item //delete queue item
mysql_query("DELETE from appQueue where queueId = $queueId;"); mysql_query("DELETE from appQueue where queueId = $queueId;");
//set ver if not set //set ver if not set
if (!$queueVersion) if (!$queueVersion)
$queueVersion = '1.0'; $queueVersion = '1.0';
if (!$queueDesc) if (!$queueDesc)
$queueDesc = 'released version'; $queueDesc = 'released version';
$verQuery = "INSERT into appVersion VALUES (null, $appParent, '". $verQuery = "INSERT into appVersion VALUES (null, $appParent, '".
addslashes($queueVersion)."', '', '". addslashes($queueVersion)."', '', '".
addslashes($queueDesc)."', '". addslashes($queueDesc)."', '".
addslashes($queueURL)."', 0.0, 0.0);"; addslashes($queueURL)."', 0.0, 0.0);";
//Now add a version //Now add a version
if (mysql_query($verQuery)) if (mysql_query($verQuery))
{ {
//successful //successful
$statusMessage = "<p>The application $queueName was successfully added into the database</p>\n"; $statusMessage = "<p>The application $queueName was successfully added into the database</p>\n";
$goodtogo = 1; $goodtogo = 1;
} }
else else
{ {
//error //error
$statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n"; $statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n";
$statusMessage .= "<p><b>Note:</b> The application family was successfully added.</p>\n"; $statusMessage .= "<p><b>Note:</b> The application family was successfully added.</p>\n";
} }
} }
else else
{ {
//error //error
$statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n"; $statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n";
} }
} }
else if ($type == 'ver') else if ($type == 'ver')
{ {
//process as application version //process as application version
if ($appParent) if ($appParent)
{ {
$query = "INSERT into appVersion VALUES (null, $appParent, '". $query = "INSERT into appVersion VALUES (null, $appParent, '".
addslashes($queueVersion)."', '', '". addslashes($queueVersion)."', '', '".
addslashes($queueDesc)."', '". addslashes($queueDesc)."', '".
addslashes($queueURL)."', 0.0, 0.0);"; addslashes($queueURL)."', 0.0, 0.0);";
if (mysql_query($query)) if (mysql_query($query))
{ {
//successful //successful
$statusMessage = "<p>The application $queueName was successfully added into the database</p>\n"; $statusMessage = "<p>The application $queueName was successfully added into the database</p>\n";
mysql_query("DELETE from appQueue where queueId = $queueId;"); mysql_query("DELETE from appQueue where queueId = $queueId;");
$goodtogo = 1; $goodtogo = 1;
} }
else else
{ {
//error //error
$statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n"; $statusMessage = "<p><b>Database Error!<br>".mysql_error()."</b></p>\n";
} }
} }
else else
{ {
$statusMessage = "<p><b>Error<br>You did not pick an application Parent!</b></p>\n"; $statusMessage = "<p><b>Error<br>You did not pick an application Parent!</b></p>\n";
} }
} }
//Send Status Email //Send Status Email
if ($ob->queueEmail && $goodtogo) if ($ob->queueEmail && $goodtogo)
{ {
$ms = "Application Database Status Report\n"; $ms = "Application Database Status Report\n";
$ms .= "----------------------------------\n\n"; $ms .= "----------------------------------\n\n";
$ms .= "Your application ".stripslashes($ob->queueName)." has been entered "; $ms .= "Your application ".stripslashes($ob->queueName)." has been entered ";
$ms .= "into the application database.\n\n"; $ms .= "into the application database.\n\n";
$ms .= "Thanks!\n"; $ms .= "Thanks!\n";
mail(stripslashes($ob->queueEmail),'[AppDB] Status Report',$ms); mail(stripslashes($ob->queueEmail),'[AppDB] Status Report',$ms);
} }
//done //done
echo html_frame_start("Submit Application","300"); echo html_frame_start("Submit Application","300");
echo "<p><b>$statusMessage</b></p>\n"; echo "<p><b>$statusMessage</b></p>\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminAppQueue.php'); echo html_back_link(1,'adminAppQueue.php');
} }
else if ($sub == 'delete' && $queueId) else if ($sub == 'delete' && $queueId)
{ {
@@ -255,12 +286,12 @@ if ($sub)
if(!$result) if(!$result)
{ {
//error //error
echo "<p>Internal Error: unable to delete selected application!</p>\n"; echo "<p>Internal Error: unable to delete selected application!</p>\n";
} }
else else
{ {
//success //success
echo "<p>Application was successfully deleted from the Queue.</p>\n"; echo "<p>Application was successfully deleted from the Queue.</p>\n";
} }
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminAppQueue.php'); echo html_back_link(1,'adminAppQueue.php');
@@ -268,17 +299,17 @@ if ($sub)
else else
{ {
//error no sub! //error no sub!
echo html_frame_start("Error","300"); echo html_frame_start("Error","300");
echo '<p><b>Internal Routine Not Found!</b></p>',"\n"; echo '<p><b>Internal Routine Not Found!</b></p>',"\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminAppQueue.php'); echo html_back_link(1,'adminAppQueue.php');
} }
} }
else else
{ {
//get available apps //get available apps
$query = "SELECT queueId, queueName, queueVendor,". $query = "SELECT queueId, queueName, queueVendor,".
"queueEmail,". "queueVersion, queueEmail,".
"UNIX_TIMESTAMP(submitTime) as submitTime ". "UNIX_TIMESTAMP(submitTime) as submitTime ".
"from appQueue;"; "from appQueue;";
$result = mysql_query($query); $result = mysql_query($query);
@@ -286,52 +317,52 @@ else
if(!$result || !mysql_num_rows($result)) if(!$result || !mysql_num_rows($result))
{ {
//no apps in queue //no apps in queue
echo html_frame_start("","90%"); echo html_frame_start("","90%");
echo '<p><b>The Application Queue is empty.</b></p>',"\n"; echo '<p><b>The Application Queue is empty.</b></p>',"\n";
echo '<p>There is nothing for you to do. Check back later.</p>',"\n"; echo '<p>There is nothing for you to do. Check back later.</p>',"\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
} }
else else
{ {
//help //help
echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n"; echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n";
echo "<p>This is the list of applications waiting for your approval, or to be annihilated from existence.</p>\n"; echo "<p>This is the list of applications waiting for your approval, or to be annihilated from existence.</p>\n";
echo "<p>To view a submission, click on its name. From that page you can edit, and approve it into the AppDB.<br>\n"; echo "<p>To view a submission, click on its name. From that page you can edit, and approve it into the AppDB.<br>\n";
echo "Click the delete link to remove the selected item from the queue. An email will automatically be sent to the\n"; echo "Click the delete link to remove the selected item from the queue. An email will automatically be sent to the\n";
echo "submitter to let them know the item was deleted.</p>\n"; echo "submitter to let them know the item was deleted.</p>\n";
echo "</td></tr></table></div>\n\n"; echo "</td></tr></table></div>\n\n";
//show applist //show applist
echo html_frame_start("","90%","",0); echo html_frame_start("","90%","",0);
echo "<table width='100%' border=0 cellpadding=3 cellspacing=0>\n\n"; echo "<table width='100%' border=0 cellpadding=3 cellspacing=0>\n\n";
echo "<tr class=color4>\n";
echo " <td><font color=white>Submission Date</font></td>\n";
echo " <td><font color=white>Application Name</font></td>\n";
echo " <td><font color=white>Version</font></td>\n";
echo " <td><font color=white>Vendor</font></td>\n";
echo " <td><font color=white>Submitter Email</font></td>\n";
echo " <td>&nbsp;</td>\n";
echo "</tr>\n\n";
$c = 1; echo "<tr class=color4>\n";
while($ob = mysql_fetch_object($result)) echo " <td><font color=white>Submission Date</font></td>\n";
echo " <td><font color=white>Application Name</font></td>\n";
echo " <td><font color=white>Version</font></td>\n";
echo " <td><font color=white>Vendor</font></td>\n";
echo " <td><font color=white>Submitter Email</font></td>\n";
echo " <td>&nbsp;</td>\n";
echo "</tr>\n\n";
$c = 1;
while($ob = mysql_fetch_object($result))
{ {
if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; } if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; }
echo "<tr class=$bgcolor>\n"; echo "<tr class=$bgcolor>\n";
echo " <td>".date("Y-n-t h:i:sa", $ob->submitTime)." &nbsp;</td>\n"; echo " <td>".date("Y-n-t h:i:sa", $ob->submitTime)." &nbsp;</td>\n";
echo " <td><a href='adminAppQueue.php?sub=view&queueId=$ob->queueId'>$ob->queueName</a></td>\n"; echo " <td><a href='adminAppQueue.php?sub=view&queueId=$ob->queueId'>$ob->queueName</a></td>\n";
echo " <td>".stripslashes($ob->queueVersion)." &nbsp;</td>\n"; echo " <td>".stripslashes($ob->queueVersion)." &nbsp;</td>\n";
echo " <td>".stripslashes($ob->queueVendor)." &nbsp;</td>\n"; echo " <td>".stripslashes($ob->queueVendor)." &nbsp;</td>\n";
echo " <td>".stripslashes($ob->queueEmail)." &nbsp;</td>\n"; echo " <td>".stripslashes($ob->queueEmail)." &nbsp;</td>\n";
echo " <td>[<a href='adminAppQueue.php?sub=delete&queueId=$ob->queueId'>delete</a>]</td>\n"; echo " <td>[<a href='adminAppQueue.php?sub=delete&queueId=$ob->queueId'>delete</a>]</td>\n";
echo "</tr>\n\n"; echo "</tr>\n\n";
$c++; $c++;
} }
echo "</table>\n\n"; echo "</table>\n\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
} }
} }
echo "</form>"; echo "</form>";

View File

@@ -91,7 +91,9 @@ if ($_REQUEST['queueName'])
addslashes($_REQUEST['queueEmail'])."', '". addslashes($_REQUEST['queueEmail'])."', '".
addslashes($_REQUEST['queueURL'])."', '". addslashes($_REQUEST['queueURL'])."', '".
addslashes($_REQUEST['queueImage'])."',". addslashes($_REQUEST['queueImage'])."',".
"NOW());"; "NOW()".",".
addslashes($_REQUEST['queueCatId']).");";
mysql_query($query); mysql_query($query);
if ($error = mysql_error()) if ($error = mysql_error())
@@ -136,8 +138,17 @@ else
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n"; echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
echo '<tr valign=top><td class=color0><b>App Name</b></td><td><input type=text name="queueName" value="" size=20></td></tr>',"\n"; echo '<tr valign=top><td class=color0><b>App Name</b></td><td><input type=text name="queueName" value="" size=20></td></tr>',"\n";
echo '<tr valign=top><td class=color0><b>App Version</b></td><td><input type=text name="queueVersion" value="" size=20></td></tr>',"\n"; echo '<tr valign=top><td class=color0><b>App Version</b></td><td><input type=text name="queueVersion" value="" size=20></td></tr>',"\n";
// app Category
$w = new TableVE("view");
echo '<tr valign=top><td class=color0><b>Category</b></td><td>',"\n";
$w->make_option_list("queueCatId","","appCategory","catId","catName");
echo '</td></tr>',"\n";
echo '<tr valign=top><td class=color0><b>App Vendor</b></td><td><input type=text name="queueVendor" value="" size=20></td></tr>',"\n"; echo '<tr valign=top><td class=color0><b>App Vendor</b></td><td><input type=text name="queueVendor" value="" size=20></td></tr>',"\n";
//alt vendor //alt vendor
$x = new TableVE("view"); $x = new TableVE("view");
echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n"; echo '<tr valign=top><td class=color0>&nbsp;</td><td>',"\n";

View File

@@ -73,6 +73,7 @@ create table appQueue (
queueURL varchar(100), queueURL varchar(100),
queueImage varchar(100) not null, queueImage varchar(100) not null,
submitTime timestamp, submitTime timestamp,
queueCatId int,
key(queueId) key(queueId)
); );