--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -1,147 +1,175 @@ - - - - - - - -
- + header('X-UA-Compatible: IE=edge,chrome=1'); + ?> + + + + + + + + + - - +".$row->value->description;
-if (isset($row->value->notes)) {
-echo "
Note: ".$row->value->notes;
-}
-echo "
Title: " . $row->value->title . "
";
+ if (isset($row->value->description)) {
+ $result .= str_replace("\n", "
", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "",trim($row->value->description)));
+ }
+ if (isset($row->value->notes)) {
+ $result .= "
Note: " . $row->value->notes;
+ }
+ $result .= "