function displaylist(&$categories, &$rows, $catid, $currentcat = NULL, &$params, $tabclass) { global $Itemid, $mosConfig_live_site, $hide_js; if ($params->get('page_title')) { ?> <div class="componentheading<?php echo $params->get('pageclass_sfx'); ?> "> <?php echo $currentcat->header; ?> </div> <?php } ?> <form action="index.php" method="post" name="adminForm"> <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="contentpane<?php echo $params->get('pageclass_sfx'); ?> "> <tr> <td width="60%" valign="top" class="contentdescription<?php echo $params->get('pageclass_sfx'); ?> " colspan="2"> <?php // show image if ($currentcat->img) { ?> <img src="<?php echo $currentcat->img; ?> " align="<?php echo $currentcat->align; ?> " hspace="6" alt="<?php echo T_('Category'); ?> " /> <?php } echo $currentcat->descrip; ?> </td> </tr> <tr> <td> <?php if (count($rows)) { HTML_contact::showTable($params, $rows, $catid, $tabclass); } ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td> <?php // Displays listing of Categories if ($params->get('type') == 'category' && $params->get('other_cat')) { HTML_contact::showCategories($params, $categories, $catid); } else { if ($params->get('type') == 'section' && $params->get('other_cat_section')) { HTML_contact::showCategories($params, $categories, $catid); } } ?> </td> </tr> </table> </form> <?php // displays back button mosHTML::BackButton($params, $hide_js); }