Code: Select all
if($this->params->get('showartistshome') || $this->letter != ""){
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="sectiontableheader" align="right" width="5%">#</td>
<td class="sectiontableheader" width="60%"><? echo JText::_('المرنم'); ?></td>
<td class="sectiontableheader" align="right" width="10%"><? echo JText::_('الألبومات'); ?></td>
<td class="sectiontableheader" align="right" width="10%"><? echo JText::_('المقاطع'); ?></td>
<td class="sectiontableheader" align="right" width="20%"><? echo JText::_('صورة'); ?></td>
</tr>
<?php
$k = 1;
for ($i=0, $n=count( $this->items ); $i < $n; $i++) {
$row = &$this->items[$i];
$link= JRoute::_( 'index.php?option=com_muscol&view=artist&id='. $row->id . $itemid);
$artist_image = JHTML::image('images/artists/' . $this->artist->image , $this->artist->name , $image_attr );
?>
<tr class="sectiontableentry<? echo $k; ?>" >
<td align="right"><? echo ($i + 1); ?></td>
<td><a href='<?php echo $link; ?>'><?php echo $row->artist_name; ?></a></td>
<td align="right"><?php echo $row->num_albums; ?></td>
<td align="right"><?php echo $row->num_songs; ?></td>
<td align="right"><?php echo JHTML::image('images/artists/' . $this->artist->image , $this->artist->name , $image_attr ); ?> </td>
</tr>
<? $k = 3 - $k; } ?>
</table>
so how to correct this.
the .php file is in the attachments.