API15

Difference between revisions of "JHTMLGrid/order"

From Joomla! Documentation

< API15:JHTMLGrid
(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JHTMLGrid/order}} ===...)
 
m (preparing for archive only)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JHTMLGrid/order|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHTMLGrid/order|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
  
{{Description:JHTMLGrid/order}}
+
 
  
 
===Syntax===
 
===Syntax===
Line 49: Line 48:
  
 
===Examples===
 
===Examples===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
  noresultsheader=\n
 
  noresultsheader=\n
 
  category=order
 
  category=order
 
  category=JHTMLGrid
 
  category=JHTMLGrid
  category=CodeExample
+
  namespace=CodeExample
 
  category=MethodExample
 
  category=MethodExample
 
  include=*
 
  include=*
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
 +
[[Category:Archived pages API15]][[Category:Security mod error page]]

Latest revision as of 19:52, 24 March 2017

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton]


Syntax[edit]

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

Defined in[edit]

libraries/joomla/html/html/grid.php

Importing[edit]

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

Source Body[edit]

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[edit]

Code Examples[edit]