From def14310d549130db4f0e557c08563264d2f1a2a Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 14 Sep 2007 23:42:51 -0400 Subject: [PATCH] =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improve vendor help in the application editor. Fix the help to reflect the vendor/application state. --- include/application.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/include/application.php b/include/application.php index 831de34..e8e276c 100644 --- a/include/application.php +++ b/include/application.php @@ -523,9 +523,24 @@ class Application { echo $w->make_option_list("iAppCatId", $this->iCatId,"appCategory","catId","catName"); echo '',"\n"; + $oVendor = new vendor($this->iVendorId); + $sVendorHelp = "The developer of the application. "; + if(!$this->iAppId || $oVendor->sQueued != "false") + { + if(!$this->iAppId) + { + $sVendorHelp .= "If it is not on the list please add it ". + "using the form below."; + } else + { + $sVendorHelp .= "The user added a new one; review ". + "it in the vendor form below or ". + "replace it with an existing one."; + } + } // vendor name echo 'Vendor',"\n"; - echo 'If it is not on the list please add it using the form below',"\n"; + echo "$sVendorHelp\n"; // alt vendor $x = new TableVE("view");