$order_by = 'link_name'; } $standalone = 0; include_once "./admin-header.php"; if ($user_level < get_settings('links_minadminlevel')) { redirect_header($siteurl . '/wp-admin/', 5, _LANG_WLM_LEVEL_ERROR); } include XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; $selectLinkCat = new XoopsFormSelect("", "cat_id", $cat_id); $selectLinkCat->addOptionArray(array('All' => 'All') + $linkCategoryHandler->getOptionArray()); $selectLinkCatControl = $selectLinkCat->render(); $selectOrder = new XoopsFormSelect("", "order_by", $order_by); $selectOrder->addOptionArray($linkCategoryHandler->getSortOptionArray()); $selectOrderControl = $selectOrder->render(); $ticketHiddenContorl = $xoopsWPTicket->getTicketHtml(__LINE__); $helpLink = gethelp_link($this_file, 'list_o_links'); $selectSetLinkCat = new XoopsFormSelect("", "category"); $selectSetLinkCat->addOptionArray($linkCategoryHandler->getOptionArray()); $selectSetLinkCatControl = $selectSetLinkCat->render(); $selectSetUser = new XoopsFormSelect("", "newowner"); $selectSetUser->addOptionArray($userHandler->getOptionArray()); $selectSetUserControl = $selectSetUser->render(); if (isset($cat_id) && $cat_id != 'All') { $criteria = new Criteria('link_category', $cat_id); } else { $criteria = new Criteria(1, 1); } $criteria->setSort($order_by); $links = $linkHandler->getObjects($criteria); $style = ""; if ($links) {
<form name="links" id="links" method="post" action=""> <input type="hidden" name="link_id" value="" /> <input type="hidden" name="action" value="" /> <input type="hidden" name="order_by" value="<?php echo $order_by; ?> " /> <input type="hidden" name="cat_id" value="<?php echo $cat_id; ?> " /> <table width="100%" cellpadding="3" cellspacing="3"> <tr> <th width="15%"><?php echo gethelp_link($this_file, 'list_o_links'); ?> <?php echo _LANG_WLA_SUB_NAME; ?> </th> <th><?php echo _LANG_WLA_SUB_URI; ?> </th> <th><?php echo _LANG_WLA_SUB_CAT; ?> </th> <th><?php echo _LANG_WLA_SUB_REL;