www.pudn.com > crm_lm7ap6.rar > categoryChoices.inc, change:2011-06-14,size:695b


<?php
/**
 * @copyright 2011 City of Bloomington, Indiana
 * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
 * @author Cliff Ingham <inghamn@bloomington.in.gov>
 * @param CategoryList $this->categoryList
 * @param URL $this->return_url
 */
echo "
<div class=\"categoryChoices\">
	<h1>Choose a category</h1>
	<ul>
";
	$return_url = $this->return_url;
	foreach ($this->categoryList as $category) {
		$name = View::escape($category->getName());
		$description = View::escape(trim($category->getDescription()));
		$return_url->category_id = "{$category->getId()}";
		echo "\t\t<li><a href=\"$return_url\" title=\"$description\">$name</a></li>\n";
	}
echo "
	</ul>
</div>
";