if (empty($content)) { return ""; } else { global $webpath; $textdir = direction(); $t = new Template(APP_ROOT . '/templates/' . TEMPLATE_SET); $t->set_file(array('box' => 'box.tpl')); $t->set_var('title', $title); $t->set_var('content', $content); $t->set_var('webpath', $webpath); $t->set_var('text_dir', $textdir['direction']); return $t->parse('out', 'box'); } } // Fire off the XPath class require_once APP_ROOT . '/includes/XPath.class.php'; $XPath = new XPath(); $XPath->importFromString($xml); $tpl->set_var('hardware', makebox($text['hardware'], html_hardware())); if ($error->ErrorsExist() && isset($showerrors) && $showerrors) { $tpl->set_var('errors', makebox("ERRORS", $error->ErrorsAsHTML())); } // parse our the template $tpl->pfp('out', 'form'); // finally our print our footer // if (PHPGROUPWARE == 1) { // $phpgw->common->phpgw_footer(); // } else { //require_once(APP_ROOT . '/includes/system_footer.php'); // } }