API15

API15:JHTMLGrid/order

From Joomla! Documentation

[Edit Descripton]


Syntax

order($rows, $image='filesave.png', $task="saveorder")
Parameter Name Default Value Description
$rows
$image 'filesave.png'
$task "saveorder"

Defined in

libraries/joomla/html/html/grid.php

Importing

jimport( 'joomla.html.html.grid' );

Source Body

function order( $rows, $image='filesave.png', $task="saveorder" )
{
        $image = JHTML::_('image.administrator',  $image, '/images/', NULL, NULL, JText::_( 'Save Order' ) );
        $href = '<a href="javascript:saveorder('.(count( $rows )-1).', \''.$task.'\')" title="'.JText::_( 'Save Order' ).'">'.$image.'</a>';
        return $href;
}

[Edit See Also] Template:SeeAlso:JHTMLGrid/order

Examples

Code Examples