0
ここでは、条件付きロジックをチェックボックスに使用する際に問題があります 私はchecked = trueまたはfalseを試していますが、条件に合致するためテンプレートの条件付きロジックが機能していない
<table border="1">
<thead>
<tr>
<th>Department Name</th>
<th>Test Name</th>
<th>Sub Test Name</th>
</tr>
</thead>
<tbody>
{#foreach $T.d as post}
<tr>
<td>{$T.post.Dep_Name}</td>
<td>{$T.post.Test_Name}</td>
<td>{$T.post.Sub_Test_Name}</td>
<td>
{{if $T.post.Status==Checked}}
<input id="chkResult" type="checkbox" checked="checked" />
{{/if}}
<input id="chkResult" type="checkbox" />
</td>
<td><input id="Button2" type="button" value="button" /></td>
</tr>
{#/for}
</tbody>
</table>