Originally Posted by
rbarbour
Also doesn't look like you added the last break either
PHP Code:
$manufacturers->MoveNext();
}
echo '<br class="clearBoth" />';
Its all there. Here is what I have in the define editor:
PHP Code:
<?php
echo '<div id="alphanumericWrapper">';
echo 'Manufacturers ';
for ($i=65; $i<91; $i++) {
echo '<a href="'. $_SERVER['REQUEST_URI'] . '#' . chr($i).'">' . chr($i) . '</a>';
}
for ($i=48; $i<58; $i++) {
echo '<a href="'. $_SERVER['REQUEST_URI'] . '#' . chr($i).'">' . chr($i) . '</a>';
}
echo '</div>';
echo '<br class="clearBoth" />';
$manufacturers_query = "SELECT distinct manufacturers_id, manufacturers_name FROM " . TABLE_MANUFACTURERS . " ORDER BY manufacturers_name";
$manufacturers = $db->Execute($manufacturers_query);
while (!$manufacturers->EOF) {
if ($initial !== strtoupper(substr($manufacturers->fields['manufacturers_name'], 0, 1))) {
$initial = strtoupper(substr($manufacturers->fields['manufacturers_name'], 0, 1));
echo '<br class="clearBoth" />';
echo '<a name="'.$initial.'" class="bold bigger defaultColor">' . $initial . '</a>';
echo '<br class="clearBoth" />';
}
echo '<div style="width: 33.3%; float: left;"><a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . (int) $manufacturers->fields['manufacturers_id'], $request_type) . '">' . $manufacturers->fields['manufacturers_name'] . '</a></div>';
$manufacturers->MoveNext();
}
echo '<br class="clearBoth" />';
?>
Bookmarks