forked from science-ation/science-ation
- 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:
parent
29e14c2514
commit
e3abff348b
@ -657,7 +657,14 @@ class TableEditor
|
||||
echo "<table class=\"tableedit\">";
|
||||
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,
|
||||
* try to query it from the databse */
|
||||
|
Loading…
Reference in New Issue
Block a user