Organizing Lists

13 posts by 2 authors in: Forums > CMS Builder
Last Post: February 8, 2010   (RSS)

Sorry.. here's everything...

TOP OF PAGE:
<?php

require_once "\\\\frigga/home/users/web/b302/as.pequannock/admin/lib/viewer_functions.php";

list($policies0000Records, $policies0000MetaData) = getRecords(array(
'tableName' => 'policies',
'allowSearch' => '0',
'where' => "section = '0000 - Bylaws'",
));

?>
<?php

require_once "\\\\frigga/home/users/web/b302/as.pequannock/admin/lib/viewer_functions.php";

list($policies1000Records, $policies1000MetaData) = getRecords(array(
'tableName' => 'policies',
'allowSearch' => '0',
'where' => "section = '1000 - Administration'",
));

?>

BODY OF PAGE:
<p class="policyheader">0000 - Bylaws</p>
<?php foreach ($policies0000Records as $record): ?>
<p><?php foreach ($record['document'] as $upload): ?><a href="<?php echo $upload['urlPath'] ?>"><?php echo $record['policy_number'] ?> - <?php echo $record['policy_title'] ?></a><?php endforeach ?></p><?php endforeach ?>

<p class="policyheader">1000 - Administration</p>
<?php foreach ($policies1000Records as $record): ?>
<p><?php foreach ($record['document'] as $upload): ?><a href="<?php echo $upload['urlPath'] ?>"><?php echo $record['policy_number'] ?> - <?php echo $record['policy_title'] ?></a><?php endforeach ?></p><?php endforeach ?>

Can be viewed at:
http://www.pequannock.org/district/board-of-education/policies.php
John Tedesco

Creative Director



JAM Graphics
Thanks Chris.. I'm actually glad you said it was simpler to leave it the way it is! ;) I just wanted to make sure there wasn't a super-easy way to do this. Thank you for the extra effort.
John Tedesco

Creative Director



JAM Graphics