data['Manage_Entries'] as $detail): ?> "> " /> " /> could somebody please help me out?"> error... - Forums

Forums

error...

chrissy6930 12 Mar, 2014
hi there,

I would like to add options to sort columns up/downward on a list but I already get errors on the very first snippet:

$listDirn = $this->escape($this->state->get('list.direction'));


what I have so far is:
$listDirn = $this->escape($this->state->get('list.direction'));
$listOrder = '';
?>
  
  
<form action="<?php echo JRoute::_('index.php?option=com_chronoforms&chronoform=listhorses'); ?>" method="post" name="adminForm" id="adminForm">
	<div class="selectlists">
    	<?php echo JHtml::_('select.options', $cf_id, $name, 'onchange="document.id(\'adminForm\').submit()"', null, '- ', 'filter'); ?>
    </div>
        
    <div class="cf_someheader">
    	<?php echo JHtml::_('grid.sort', 'COAT', 'coat', $listDirn, $listOrder); ?>
    </div>
            
	<?php
	$i = 0;
	foreach ($form->data['Manage_Entries'] as $detail):
	?>
  	<div class="sectiontableentry<?php $i++; echo ($i%2)+1; ?>">
    	<div class="cf_eentry">
      		<div class="cf_someentry">
           		<?php if ($detail['name']!='') :
           		  echo $detail['name'];
           		else :
           		  echo '   ';
           		endif; ?>
      		</div>
    	</div>
  	</div>
	<?php endforeach; ?>
  
    <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
    <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
    <?php echo JHtml::_('form.token'); ?>
</form>


could somebody please help me out?
This topic is locked and no more replies can be posted.