ciao a tutti
devo trasformare un file che genera una tabella con due celle per riga, una con il numero progressivo e una con il titolo dell'articolo, in una lista numerata (e' un file di joomla)
questo il codice da trasformare:
Codice PHP:
<table class="category">
<?php if ($this->params->get('show_headings')) : ?>
<tr>
<th class="sectiontableheader<?php echo $this->params->get('pageclass_sfx'); ?>" id="count">
<?php echo JText::_('Num'); ?>
</th>
<?php if ($this->params->get('show_title')) : ?>
<th class="sectiontableheader<?php echo $this->params->get('pageclass_sfx'); ?>" id="tableOrdering">
<?php echo JHTML::_('grid.sort', 'Item Title', 'a.title', $this->lists['order_Dir'], $this->lists['order']); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('show_date')) : ?>
<th class="sectiontableheader<?php echo $this->params->get('pageclass_sfx'); ?>" id="tableOrdering2">
<?php echo JHTML::_('grid.sort', 'Date', 'a.created', $this->lists['order_Dir'], $this->lists['order']); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('show_author')) : ?>
<th class="sectiontableheader<?php echo $this->params->get('pageclass_sfx'); ?>" id="author">
<?php echo JHTML::_('grid.sort', 'Author', 'author', $this->lists['order_Dir'], $this->lists['order']); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('show_hits')) : ?>
<th align="center" class="sectiontableheader<?php echo $this->params->get('pageclass_sfx'); ?>" width="5%" nowrap="nowrap" id="hits">
<?php echo JHTML::_('grid.sort', 'Hits', 'a.hits', $this->lists['order_Dir'], $this->lists['order']); ?>
</th>
<?php endif; ?>
</tr>
<?php endif; ?>
<?php foreach ($this->items as $item) : ?>
<tr class="sectiontableentry<?php echo ($item->odd + 1) . $this->params->get('pageclass_sfx'); ?>">
<td headers="count">
<?php echo $this->pagination->getRowOffset($item->count); ?>
</td>
<?php if ($this->params->get('show_title')) : ?>
<td headers="tableOrdering">
<?php if ($item->access <= $this->user->get('aid', 0)) : ?>
<a href="<?php echo $item->link; ?>">
<?php echo $this->escape($item->title); ?>
</a>
<?php echo JHTML::_('icon.edit', $item, $this->params, $this->access);
else :
echo $item->title; ?> :
<a href="<?php echo JRoute::_('index.php?option=com_user&task=register'); ?>">
<?php echo JText::_('Register to read more...'); ?>
</a>
<?php endif; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_date')) : ?>
<td headers="tableOrdering2">
<?php echo $item->created; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_author')) : ?>
<td headers="author">
<?php echo $item->created_by_alias ? $item->created_by_alias : $item->author; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_hits')) : ?>
<td headers="hits">
<?php echo $item->hits ? $item->hits : '-'; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</table>
allego lo screenshot dell'attuale elaborazione, dove ho evidenziato la tabella con la webdeveloper toolbar di ff: come si puo' notare, una cella contiene il numero progressivo e la seguente il titolo, ma la prima si puo' tranquillamente eliminare, visto che esiste il tag <ul>
alcuni comandi php nel codice che ho postato sicuramente generano quel numero e li vorrei rimuovere, mentre non so cosa possano generare quelli tra <table> e <tr> per esempio o tra <tr> e <td>
grazie a chi mi sapra' aiutare