}
}
- eval('$template->flush("' . $template->fetch('quicksearch') . '");');
+ $tpl = new BSTemplate('quicksearch');
+ $tpl->vars = array('error' => $error);
+ $tpl->evaluate()->flush();
exit;
}
<div class="box-mid box-overpad" style="text-align: <%- $stylevar['left'] %>">
<% if ($error): %>
- <div class="error" style="margin-bottom: 5px; text-align: <%- $stylevar['left'] %>">$error</div>
+ <div class="error" style="margin-bottom: 5px; text-align: <%- $stylevar['left'] %>"><%- $error %></div>
<% endif %>
<form name="quicksearch" action="showreport.php" method="post" class="form">
</div>
</div>
-$footer
\ No newline at end of file
+<%- $footer %>
\ No newline at end of file