if (!defined('_JEXEC')) { exit('Restricted access'); } // no direct access ?> <script language="javascript" type="text/javascript"> function tableOrdering( order, dir, task ) { var form = document.adminForm; form.filter_order.value = order; form.filter_order_Dir.value = dir; document.adminForm.submit(task); } </script> <form action="<?php echo artxUrlToHref($this->action); ?> " method="post" name="adminForm"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php if ($this->params->get('filter') || $this->params->get('show_pagination_limit')) { ?> <tr> <td colspan="5"> <table> <tr> <?php if ($this->params->get('filter')) { ?> <td align="left" width="60%" nowrap="nowrap"> <?php
function artxHtmlFixFormAction($content) { if (preg_match('~ action="([^"]+)" ~', $content, $matches, PREG_OFFSET_CAPTURE)) { $content = substr($content, 0, $matches[0][1]) . ' action="' . artxUrlToHref($matches[1][0]) . '" ' . substr($content, $matches[0][1] + strlen($matches[0][0])); } return $content; }