}
}
- eval('$comments .= "' . $template->fetch('showreport_comment') . '";');
+ $tpl = new BSTemplate('showreport_comment');
+ $tpl->vars = array('comment' => $comment);
+ $comments .= $tpl->evaluate()->getTemplate();
}
$show['newreply'] = (can_perform('canpostcomments', $bug['productid']) ? true : false);
}
}
-eval('$template->flush("' . $template->fetch('showreport') . '");');
+$tpl = new BSTemplate('showreport');
+$tpl->vars = array(
+ 'bug' => $bug,
+ 'comments' => $comments
+);
+$tpl->evaluate()->flush();
/*=====================================================================*\
|| ###################################################################
<body>
-$header
+<%- $header %>
<form name="bugreport" action="editreport.php" method="post" class="form">
<input type="hidden" name="do" value="update" />
<legend><%-T("Assignment")%> $help[assignedto]</legend>
<div class="field">
<% if ($show['assign']): %>
- <select name="assignedto"><option value="0"<if condition="!$bug['assignedto']"> selected="selected"<% endif %>><%-T("No Assignment")%></option><%- $select['dev'] %></select>
+ <select name="assignedto"><option value="0"<% if (!$bug['assignedto']): %> selected="selected"<% endif %>><%-T("No Assignment")%></option><%- $select['dev'] %></select>
<% else: %>
<% if ($bug['assigninfo']): %><%- $bug['assigninfo'] %><% else: %>{@"- none -"}<% endif %>
<% endif %>
<textarea name="comment" cols="50" rows="10" class="textarea"></textarea>
- <div><input type="checkbox" name="parselinks" value="1"<if condition="$bugsys->in['parselinks']"> checked="checked"<% endif %> /> <%-T("Parse Links in the Comment")%></div>
+ <div><input type="checkbox" name="parselinks" value="1"<% if ($bugsys->in['parselinks']): %>> checked="checked"<% endif %> /> <%-T("Parse Links in the Comment")%></div>
</fieldset>
</div>
<!-- / new reply -->
<% endif %>
<!-- show votes -->
- <div id="votes<% if ($show['attachments']): %><if condition="!$show['vote']">fifty<% endif %><% else: %><if condition="!$show['vote']">hundred<% endif %><% endif %>">
+ <div id="votes<% if ($show['attachments']): %><% if (!$show['vote']): %>fifty<% endif %><% else: %><% if (!$show['vote']): %>hundred<% endif %><% endif %>">
<fieldset>
<legend><%-T("Votes")%></legend>