{php $i=0;} {list:baners table="sen_links" where="sen_links1=125" order="sen_links3 asc,sen_links0 desc" limit="6"} {if $i == 0} {php $firstimgsrc= $baners['sen_links5']; } {php $firstimgurl= $baners['sen_links4']; } {else} {php $imgsrc[] = $baners['sen_links5']; } {php $imgurl[] = '"'.$baners['sen_links4'].'"'; } {/if} {php $i++;} {/list} {php $imgsrcx = implode('|',$imgsrc);} {php $imgurlx = implode(',',$imgurl);}