联系官方销售客服
1835022288
028-61286886
{module module=MOD_DIR catid=21 order=updatetime num=1 return=t}
<?php $t['tuchuang'] = array_slice($t['tuchuang'], 0, 8);?>
<?php if ($t['tuchuang']) { $key=0; foreach ($t['tuchuang'] as $c) { ?>
{php $myfile=\Phpcmf\Service::C()->get_attachment($c);}
<img class='am05 bai100' src='{dr_get_file($c)}'/>
<p>{if $myfile.filename=="1"}{$t.title}{else}{$myfile.filename}{/if}</p>
<?php $key++;} } ?>
{/module}
如何让{if $myfile.filename=="1"}的判断条件等于1至100的任意数组,