From 8491d5a71045fb02f93f48916deb1a6e58eea0a6 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Thu, 12 Jun 2003 16:11:07 +0000 Subject: [PATCH] corrected syntax, made tds nowrap --- lib/visualpatterns/PatternListFromQuery.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/visualpatterns/PatternListFromQuery.inc b/lib/visualpatterns/PatternListFromQuery.inc index 1eed971..eea1cd7 100644 --- a/lib/visualpatterns/PatternListFromQuery.inc +++ b/lib/visualpatterns/PatternListFromQuery.inc @@ -73,15 +73,14 @@ class PatternListFromQuery { global $default; $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); - $sql = $default->db; $sql->query($this->sQuery); $sToRender = ""; - $sToRender .= "iTableWidth) ? ", width = $this->iTableWidth" : "") . " >\n"; + $sToRender .= "
iTableWidth) ? " width=\"$this->iTableWidth\"" : "") . " >\n"; if (isset($this->sTableHeading)) { - $sToRender .= "\n"; + $sToRender .= "\n"; } if ($sql->num_rows() == 0) { @@ -97,7 +96,8 @@ class PatternListFromQuery { switch ($this->aColumnTypes[$i]) { //plain text field case 1: - $sToRender .= "\n"; + // TODO: make nowrap optional + $sToRender .= "\n"; break; //text area case 2: -- libgit2 0.21.4
aColumns) . "\" align=\"top\">$this->sTableHeadingaColumns) . "\" align=\"top\">$this->sTableHeading
" . $this->aColumnNames[$i] . "" . stripslashes($sql->f($this->aColumns[$i])) . "" . $this->aColumnNames[$i] . "" . stripslashes($sql->f($this->aColumns[$i])) . "