html
1{if count($abc[idx1].abc_list) > 0 && $abc[idx1].abc_flg_count > 0} 2 <select id="select_ABC_{$smarty.capture.i}" 3 onchange="goABC('{$abc[idx1].id|escape:"html"}', '{$smarty.capture.i}')"> 4 <option value="-1">文言書</option> 5 {section name=idx2 loop=$abc[idx1].abc_list} 6 {capture name=def_date}{$abc[idx1].abc_list[idx2].abc_date|date_format:'%Y-%m-%d'}{/capture} 7 <option value="{$abc[idx1].abc_list[idx2].abc_no|escape:"html"}">文言書({$smarty.capture.def_date})</option> 8 {/section} 9 </select> 10{/if}
「{section name=idx2 loop=$abc[idx1].abc_list}」の中で
「$abc[idx1].abc_list[idx2].abc_flg = 1」のものだけの「文言書」を表示させたく思います。
「{section name=idx2 loop=$abc[idx1].abc_list}」の中で、「$abc[idx1].abc_list[idx2].abc_flg 」
の値は表示させる事ができます。
どのようにしたら良いかご教授宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。