Mam takie coś w pliku *.php, chcę teraz prócz wyświetlania wpisać to do pliku, bo ma wyglądać tak samo, jak się to wyświetla
<?php
for($j = 0 ; $j < $bin ; $j++) {
$headerContainer = $newArticle->getHeaderContainer()[$j];
$utmMediumHeader = $newArticle->getUtmMediumHeader()[$j];
$utmMediumImage = $newArticle->getUtmMediumImage()[$j];
$utmMediumButton = $newArticle->getUtmMediumButton()[$j];
$utmSource = $newArticle->getUtmSource()[$j];
$utmCampaign = $newArticle->getUtmCampaign()[$j];
$link = $newArticle->getLink()[$j];
$description = $newArticle->getDescription()[$j];
$imageName = $newArticle->getImageName()[$j];
?>
<tr>
<td bgcolor="#ffffff" style="border-style: solid; border-width: 2px; border-color: #00b7D1;">
<table leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" cellpadding="0" cellspacing="0" width="680" height="340">
<tr>
<td style="line-height: 0px; font-size: 0px;" height="340" width="290"><a href="
<?php echo $link?>?utm_source=
<?php echo $utmSource?>&utm_medium=
<?php echo $utmMediumImage?>&utm_campaign=
<?php echo $utmCampaign?>"><img src="img/upload_images/
<?php echo $imageName?>" style="display: block;" border="0" height="340" width="290"></a></td>
<td style="line-height: 0px; font-size: 0px;" height="0" width="10"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="10"></td>
<td height="340" width="370">
<table leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" cellpadding="0" cellspacing="0" width="370" height="340">
<tr>
<td style="line-height: 0px; font-size: 0px;" height="20" width="0"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="20"></td>
</tr>
<tr>
<td height="70" width="370" style="font-size: 26px; font-family: Arial; color: #00b7D1; font-weight: bold;"><a style="font-size: 26px; font-family: Arial; color: #00b7D1; font-weight: bold; text-decoration: none" href="
<?php echo $link?>?utm_source=
<?php echo $utmSource?>&utm_medium=
<?php echo $utmMediumHeader?>&utm_campaign=
<?php echo $utmCampaign?>">
<?php echo $headerContainer?></a></td>
</tr>
<tr>
<td style="line-height: 0px; font-size: 0px;" height="10" width="0"><img src="img/spacer.gif" style="display: block;" border="0" height="10" width="0"></td>
</tr>
<tr>
<td height="150" width="370" style="font-size: 16px; font-family: Arial; color: #000000; font-weight: normal;">
<?php echo $description?></td>
</tr>
<tr>
<td style="line-height: 0px; font-size: 0px;" height="90" width="370"><a href="
<?php echo $link?>?utm_source=
<?php echo $utmSource?>&utm_medium=
<?php echo $utmMediumButton?>&utm_campaign=
<?php echo $utmCampaign?>"><img src="img/button_glowny.jpg" style="display: block;" border="0" height="90" width="370"></a></td>
</tr>
</table>
</td>
<td style="line-height: 0px; font-size: 0px;" height="0" width="10"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="10">
</td>
</tr>
</table>
</td>
</tr>
<?php
include 'template/hr.html';
}
?>
Ten post edytował artek 6.10.2015, 08:36:21