- 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.
This commit is contained in:
dave 2006-10-17 07:01:55 +00:00
parent 29e14c2514
commit e3abff348b

View File

@ -657,7 +657,14 @@ class TableEditor
echo "<table class=\"tableedit\">"; echo "<table class=\"tableedit\">";
foreach($this->editfields AS $f=>$n) foreach($this->editfields AS $f=>$n)
{ {
echo "<tr><th valign=\"top\">".i18n($n)."</th><td>"; $pos = strpos($n, "|");
$n2 = "";
if($pos != false) {
$n2 = substr($n, $pos + 1).' ';
$n = substr($n, 0, $pos);
}
echo "<tr><th valign=\"top\">".i18n($n)."</th><td>$n2";
/* If we know the input type, assume the user knows what they are doing, else, /* If we know the input type, assume the user knows what they are doing, else,
* try to query it from the databse */ * try to query it from the databse */