Copyright @ 2015-2024 织梦园 版权所有 Power by DedeCms
鲁ICP备15039853号-2

模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
| 
foreach($images as $row)
{
中间省略...
} | 
| 
$GLOBALS['autoindex'] = 1;
foreach($images as $row)
{
	$row['autoindex'] =  $GLOBALS['autoindex'];
	foreach($ctp->CTags as $tagid=>$ctag)
	{
		if($ctag->GetName()=='array')
		{
			$ctp->Assign($tagid,$row);
		}
		else
		{
			if(isset($row[$ctag->GetName()])){ $ctp->Assign($tagid,$row[$ctag->GetName()]); }
		}
	}
	$revalue .= $ctp->GetResult();
	$GLOBALS['autoindex']++;
} | 
| 
{dede:productimagelist}
	[field:array runphp=yes]
		if(@me['autoindex'] == 1)
		{
			@me = "<strong>{@me['autoindex']} - <img src='{@me['imgsrc']}'></strong>\n";
		}
		elseif(@me['autoindex'] == 2)
		{
			@me = "<p>{@me['autoindex']} - <img src='{@me['imgsrc']}'></p>\n";
		}
		elseif(@me['autoindex'] == 3)
		{
			@me = "<span>{@me['autoindex']} - <img src='{@me['imgsrc']}'></span>\n";
		}
		else
		{
			@me = "<div>{@me['autoindex']} - <img src='{@me['imgsrc']}'></div>\n";
		}
	[/field:array]
{/dede:productimagelist} | 
| $GLOBALS['autoindex'] = 0; | 
| $revalue .= $ctp->GetResult(); | 
| $GLOBALS['autoindex']++; |