Alphabetical Search

danoshea

Member
I had the following code, in bold, on a prior version of Joomla (1.526) and Fabrik. I've upgraded to Joomla 3.0 and Fabrik 3.1, now it doesn't work. Can you tell me what the issue may be?

Site is: dev.browardagents.com
User: agents
Pass: O2eiMe

<?php
$this->bootShowFilters = true;
$fKeys = array_keys($this->filters);
if (count($fKeys) === 1 && $fKeys[0] === 'all')
{
$this->bootShowFilters = false;
}
if ($this->tablePicker != '') { ?>
<div style="text-align:right"><?php echo JText::_('COM_FABRIK_LIST') ?>: <?php echo $this->tablePicker; ?></div>
<?php }

if ($this->params->get('show-title', 1)) {?>
<div class="page-header">
<h1><?php echo $this->table->label;?></h1>
</div>
<?php }
echo $this->table->intro;
?>
<form class="fabrikForm form-search" action="<?php echo $this->table->action;?>" method="post" id="<?php echo $this->formid;?>" name="fabrikList">

<?php
echo $this->loadTemplate('buttons');
if ($this->showFilters && $this->bootShowFilters) :
echo $this->loadTemplate('filter');
endif;
//for some really ODD reason loading the headings template inside the group
//template causes an error as $this->_path['template'] doesnt cotain the correct
// path to this template - go figure!
$this->headingstmpl = $this->loadTemplate('headings');
?>

<?php

$element = 'broward-agents___last_name';

$url = 'http://'.$_SERVER['HTTP_HOST'].'/broward-agents-alpha-search';

$letters = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');

/* $letters = implode(" - ", $letters);
*/

foreach($letters as $l){

/* echo "<a href='{$url}?resetfilters=1&".$element."[value]=$l%25&".$element."[condition]=LIKE'>$l</a>";
*/

echo "<a href='{$url}?resetfilters=1&".$element."[value]=$l%25&".$element."[condition]=LIKE'>$l</a>".' - ';

/* echo "<a href='{$url}?resetfilters=1&".$element."[value]=$l%25&".$element."[condition]=LIKE'>$l</a>";
*/
}

?>
- <a href="broward-agents">Main Search</a>.


<div class="fabrikDataContainer">

<?php foreach ($this->pluginBeforeList as $c) :
echo $c;
endforeach;
?>
<table class="<?php echo $this->list->class;?>" id="list_<?php echo $this->table->renderid;?>" >
<tfoot>
<tr class="fabrik___heading">
<td colspan="<?php echo count($this->headings);?>">
<?php echo $this->nav;?>
</td>
</tr>
</tfoot>
<thead><?php echo $this->headingstmpl?></thead>
<?php
if ($this->isGrouped && empty($this->rows)) :
?>
<tbody style="<?php echo $this->emptyStyle?>">
<tr>
<td class="groupdataMsg" colspan="<?php echo count($this->headings)?>">
<div class="emptyDataMessage" style="<?php echo $this->emptyStyle?>">
<?php echo $this->emptyDataMessage; ?>
</div>
</td>
</tr>
</tbody>
<?php
endif;
$gCounter = 0;
foreach ($this->rows as $groupedby => $group) :
if ($this->isGrouped) : ?>
<tbody>
<tr class="fabrik_groupheading fabrik_groupheading info">
<td colspan="<?php echo $this->colCount;?>">
<?php if ($this->emptyDataMessage != '') : ?>
<a href="#" class="toggle">
<?php else: ?>
<a href="#" class="toggle fabrikTip" title="<?php echo $this->emptyDataMessage?>" opts='{trigger: "hover"}'>
<?php endif;?>
<?php echo FabrikHelperHTML::image('arrow-down.png', 'list', $this->tmpl, JText::_('COM_FABRIK_TOGGLE'));?>
<?php echo $this->grouptemplates[$groupedby]; ?> ( <?php echo count($group)?> )
</a>
</td>
</tr>
</tbody>
<?php endif ?>
<tbody class="fabrik_groupdata">
<?php
foreach ($group as $this->_row) :
echo $this->loadTemplate('row');
endforeach
?>
<?php if ($this->hasCalculations) : ?>
<tr class="fabrik_calculations">
<?php
foreach ($this->calculations as $cal) :
echo "<td>";
echo array_key_exists($groupedby, $cal->grouped) ? $cal->grouped[$groupedby] : $cal->calc;
echo "</td>";
endforeach;
?>
</tr>

<?php endif ?>
</tbody>
<?php
$gCounter++;
endforeach?>
</table>
<?php print_r($this->hiddenFields);?>
</div>
</form>
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top