From 232e8893448b5e1dadf7795ae1ce8fd5b96c286a Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 14 Sep 2007 23:43:57 -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 testData: Make the distribution help text more relevant. It should reflect the current situation instead of being static. --- include/testData.php | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/include/testData.php b/include/testData.php index e0dca48..c52b8b5 100644 --- a/include/testData.php +++ b/include/testData.php @@ -672,14 +672,29 @@ class testData{ echo 'Date tested ',"\n"; echo '',"\n"; echo '

YYYY-MM-DD HH:MM:SS',"\n"; + // Distribution + $oDistribution = new distribution($this->iDistributionId); + $sDistributionHelp = ""; + if(!$this->iDistributionId || $oDistribution->sQueued != "false") + { + if(!$this->iDistributionId) + { + $sDistributionHelp = "If yours is not on the list, ". + "please add it using the form below."; + } else + { + $sDistributionHelp = "The user added a new distribution; "; + "review it in the form below or replace ". + "it with one from the list."; + } + $sDistributionHelp ."
\n"; + } + echo 'Distribution',"\n"; - echo 'If yours is not on the list, please add it using the form '. - 'below',"\n"; - echo '',"\n"; - echo '',"\n"; + echo $sDistributionHelp; distribution::make_distribution_list("iDistributionId", $this->iDistributionId); echo '',"\n";