From e3abff348b079efc677b0b613af25a2916143332 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 17 Oct 2006 07:01:55 +0000 Subject: [PATCH] - The table editor detects a pipe character in the field name now, and if it exsits, it separates the field at that point, and prints the text after the pipe in the data area, not the header area of the edit table. --- tableeditor.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tableeditor.class.php b/tableeditor.class.php index 74b2b6b..c8e8b61 100644 --- a/tableeditor.class.php +++ b/tableeditor.class.php @@ -657,7 +657,14 @@ class TableEditor echo ""; foreach($this->editfields AS $f=>$n) { - echo "
".i18n($n).""; + $pos = strpos($n, "|"); + $n2 = ""; + if($pos != false) { + $n2 = substr($n, $pos + 1).' '; + $n = substr($n, 0, $pos); + } + + echo "
".i18n($n)."$n2"; /* If we know the input type, assume the user knows what they are doing, else, * try to query it from the databse */