Ternärer Vergleich schlägt in der Thinkphp 5.1-Vorlage fehl
凡人
凡人 2019-12-05 17:07:52
0
1
1185

<select name="tra_num">
    <option value="" {$num_tra=="%"?'selected':''}>Alle</option>
    {volist name="list_tra " id="arr_tra" empty="Kein Artikel"}
  <option value="{$arr_tra.id}" { {$num_tra} == {$arr_tra.id} ?'selected':''}> $ arr_tra.id} & lt;/option & gt;
{/volist}
& lt;/select & gt;

                                                                   option value="2" { (7 == 2 ?'selected':'')}> ;2</option>

                           <option value="4" { (7 == 4 ?'selected':'' )}>4</option>                   < :'')}>6</option>

       <option value="7" { (7 == 7 ?'selected':'')}>7</option>                                                                                                                                                                
凡人
凡人

Antworte allen(1)
殘留の回憶

中文的{吧,还是你改了模板标签了

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage