Alexander Nicolaysen Sørnes : application: Order cat list on edit app page
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sat Jul 4 05:39:53 CDT 2009
Module: appdb
Branch: master
Commit: 82999b22c7e5fd56d73000cc1f836bee720994ee
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=82999b22c7e5fd56d73000cc1f836bee720994ee
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.site>
Date: Fri Jul 3 00:17:59 2009 +0200
application: Order cat list on edit app page
---
include/application.php | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/include/application.php b/include/application.php
index 137580c..c5ef52b 100644
--- a/include/application.php
+++ b/include/application.php
@@ -565,9 +565,20 @@ class Application {
echo '<td><input size="20" type="text" name="sAppName" value="'.$this->sName.'"></td></tr>',"\n";
// app Category
- $w = new TableVE("view");
echo '<tr valign=top><td class="color0"><b>Category</b></td><td>',"\n";
- echo $w->make_option_list("iAppCatId", $this->iCatId,"appCategory","catId","catName");
+
+ $aCategories = category::getOrderedList(true);
+ $aCatNames = array();
+ $aCatIds = array();
+
+ foreach($aCategories as $oCategory)
+ {
+ $aCatNames[] = $oCategory->sName;
+ $aCatIds[] = $oCategory->objectGetId();
+ }
+
+ echo html_select("iAppCatId",$aCatIds,$this->iCatId, $aCatNames);
+
echo '</td></tr>',"\n";
$oVendor = new vendor($this->iVendorId);
More information about the wine-cvs
mailing list