Wenn ich das richtig verstanden hab, dann sollte das das Formular der shoutbox sein:
hier wird es unter components/com_shoutbox/views/shoutbox/tmpl/default.php aufgerufen:
PHP-Code:
defined('_JEXEC') or die('Restricted 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>
<div class="componentheading"><?php echo JText::_( 'SHOUTBOX'); ?></div>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" colspan="4">
<?php
echo JText::_('Display Num') .' ';
echo $this->pagination->getLimitBox();
?>
</td>
</tr>
</table>
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="" />
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="sectiontableheader" width="200"><?php echo JText::_( 'TIME'); ?></td>
<td class="sectiontableheader" width="120"><?php echo JText::_( 'NAME'); ?></td>
<td class="sectiontableheader" nowrap="nowrap"><?php echo JText::_( 'MESSAGE'); ?></td>
<?php if($this->params->def('showurl',0)){ ?>
<td class="sectiontableheader" width="15%"><?php echo JText::_( 'URL'); ?></td>
<?php } ?>
</tr>
<?php $i=0; ?>
<?php foreach ($this->items as $item) : ?>
<tr class="sectiontableentry<?php echo ($i % 2)+1; ?>">
<td>
<?php echo JHTML::date( $item->time, JText::_('DATE_FORMAT_LC2')); ?>
</td>
<td>
<?php echo $item->name; ?>
</td>
<td>
<?php echo $item->text; ?>
</td>
<?php if($this->params->def('showurl',0)){ ?>
<td>
<?php echo $item->url; ?>
</td>
<?php } ?>
</tr>
<?php $i++;?>
<?php endforeach; ?>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="sectiontablefooter"><?php echo $this->pagination->getPagesLinks(); ?></td>
</tr>
<tr>
<td align="right"><?php echo $this->pagination->getPagesCounter(); ?></td>
</tr>
</table>
und da ist dann das Formular im administrator/com_shoutbox/views/shoutbox/tmpl/default.php
PHP-Code:
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip'); ?>
<?php
// Set toolbar items for the page
JToolBarHelper::title( JText::_( 'Shoutbox' ), 'generic.png' );
//JToolBarHelper::publishList();
//JToolBarHelper::unpublishList();
JToolBarHelper::deleteList();
//JToolBarHelper::editListX();
//JToolBarHelper::addNewX();
//JToolBarHelper::preferences('com_shoutbox');
?>
<form action="index.php" method="post" name="adminForm">
<table>
<tr>
<td align="left" width="100%">
<?php echo JText::_( 'Filter' ); ?>:
<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" onchange="document.adminForm.submit();" />
<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
</td>
</tr>
</table>
<div id="editcell">
<table class="adminlist">
<thead>
<tr>
<th width="5">
<?php echo JHTML::_('grid.sort', '#', 'a.id', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</th>
<th width="20">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
</th>
<th width="120">
<?php echo JHTML::_('grid.sort', 'Name', 'a.name', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</th>
<th nowrap="nowrap">
<?php echo JHTML::_('grid.sort', 'Text', 'a.text', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</th>
<th width="15%">
<?php echo JHTML::_('grid.sort', 'URL', 'a.url', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</th>
<th width="120" nowrap="nowrap">
<?php echo JHTML::_('grid.sort', 'IP', 'a.ip', $this->lists['order_Dir'], $this->lists['order'] ); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="9">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i=0, $n=count( $this->items ); $i < $n; $i++)
{
$row = &$this->items[$i];
$checked = JHTML::_('grid.id', $i, $row->id );
$ordering = ($this->lists['order'] == 'a.id');
?>
<tr class="<?php echo "row$k"; ?>">
<td>
<?php echo $this->pagination->getRowOffset( $i ); ?>
</td>
<td>
<?php echo $checked; ?>
</td>
<td>
<?php echo $row->name; ?>
</td>
<td>
<?php echo $row->text;?>
</td>
<td align="center">
<?php echo $row->url; ?>
</td>
<td align="center">
<?php echo $row->ip; ?>
</td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
</div>
<input type="hidden" name="option" value="com_shoutbox" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
Ich kann nichts böses entdecken. (??)
Aber die form action passt natürlich zu meinem logfile, klar.
Lesezeichen