cvs: pearweb /public_html package-new.php
| From: | Stig Bakken | Date: | Mon, 01 Apr 2002 17:39:21 +0000 |
| Subject: | cvs: pearweb /public_html package-new.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2958@lists.php.net to get a copy of this message | ||
ssb Mon Apr 1 12:39:21 2002 EDT
Modified files:
/pearweb/public_html package-new.php
Log:
* sort categories alphabetically
Index: pearweb/public_html/package-new.php
diff -u pearweb/public_html/package-new.php:1.5 pearweb/public_html/package-new.php:1.6
--- pearweb/public_html/package-new.php:1.5 Fri Dec 21 23:41:18 2001
+++ pearweb/public_html/package-new.php Mon Apr 1 12:39:21 2002
@@ -78,20 +78,20 @@
";
if (isset($errorMsg)) {
- print "<table>\n";
- print " <tr>\n";
- print " <td> </td>\n";
- print " <td><b>$errorMsg</b></td>\n";
- print " </tr>\n";
- print "</table>\n";
+ print "<table>\n";
+ print " <tr>\n";
+ print " <td> </td>\n";
+ print " <td><b>$errorMsg</b></td>\n";
+ print " </tr>\n";
+ print "</table>\n";
}
- $categories = $dbh->getAssoc("SELECT id,name FROM categories");
+ $categories = $dbh->getAssoc("SELECT id,name FROM categories ORDER BY name");
$form =& new HTML_Form($PHP_SELF, "POST");
$form->addText("name", "Package Name", null, 20);
$form->addText("license", "License", null, 20);
$form->addSelect("category", "Category", $categories, '', 1,
- '--Select Category--');
+ '--Select Category--');
$form->addText("summary", "One-liner description", null, $width);
$form->addTextarea("desc", "Full description", null, $width, 3);
$form->addSubmit("submit", "Submit Request");
@@ -99,9 +99,9 @@
$form->display();
if ($jumpto) {
- print "\n<script language=\"JavaScript\">\n<!--\n";
- print "document.forms[1].$jumpto.focus();\n";
- print "// -->\n</script>\n";
+ print "\n<script language=\"JavaScript\">\n<!--\n";
+ print "document.forms[1].$jumpto.focus();\n";
+ print "// -->\n</script>\n";
}
}