<table class="FormTable Sortable AltColumns<?php echo $CssClass; ?> " id="CategoryTable"> <thead> <tr id="0"> <th><?php echo T('Category'); ?> </th> <th class="Alt"><?php echo T('Description'); ?> </th> <th><?php echo HoverHelp(T('Url'), T('A url-friendly version of the category name for better SEO.')); ?> </th> <th class="Alt"><?php echo T('Options'); ?> </th> </tr> </thead> <tbody> <?php $Alt = FALSE; foreach ($this->CategoryData->Result() as $Category) { $Alt = $Alt ? FALSE : TRUE; $CssClass = $Alt ? 'Alt' : ''; $CssClass .= $Category->AllowDiscussions == '1' ? ' Child' : ' Parent';
include $this->FetchViewLocation('menu', 'candy'); ?> <table class="AltRows"> <thead> <tr> <th><?php echo HoverHelp('URI', ''); ?> </th> <th><?php echo HoverHelp('RequestUri', ''); ?> </th> <th><?php echo HoverHelp(T('Options'), ''); ?> </th> </tr> </thead> <tbody> <?php foreach ($this->RouteDataSet as $Route) { $Alt = !$Alt; $Row = ''; $Row .= '<td>' . Anchor($Route->URI, $Route->URI) . '</td>'; $Row .= '<td>' . Anchor($Route->RequestUri, $Route->RequestUri) . '</td>'; $Options = array(); if ($PermissionRoutesManage) { $Options[] = Anchor(T('Delete'), 'candy/routes/delete/' . base64_encode($Route->URI), 'SmallButton RemoveItem');