english/libraries/joomla/html/html/batch.php
/**
	 * Displays a batch widget for moving or copying items.
	 *
	 * @param	string	$extension	The extension that owns the category.
	 * @param	string	$published	The published state of categories to be shown in the list.
	 *
	 * @return	string	The necessary HTML for the widget.
	 * @since	11.1
	 */
Displays a batch widget for moving or copying items.
@param       string  $extension      The extension that owns the category.
@param       string  $published      The published state of categories to be shown in the list.

@return      string  The necessary HTML for the widget.
Displays a batch widget for moving or copying items . @param string $extension The extension that owns the category . @param string $published The published state of categories to be shown in the list . @return string The necessary HTML for the widget .
public static function item($extension, $published)
	{
		$options = array(
			JHtml::_('select.option', 'c', JText::_('JLIB_HTML_BATCH_COPY')),
			JHtml::_('select.option', 'm', JText::_('JLIB_HTML_BATCH_MOVE'))
		);
		$lines = array(
			'<label id="batch-choose-action-lbl" for="batch-choose-action">',
			JText::_('JLIB_HTML_BATCH_MENU_LABEL'),
			'</label>',
			'<fieldset id="batch-choose-action" class="combo">',
				'<select name="batch[category_id]" class="inputbox" id="batch-category-id">',
					'<option value="">'.JText::_('JSELECT').'</option>',
					JHtml::_('select.options',	JHtml::_('category.options', $extension, array('published' => (int) $published))),
				'</select>',
				JHTML::_( 'select.radiolist', $options, 'batch[move_copy]', '', 'value', 'text', 'm'),
			'</fieldset>'
		);
		return implode("\n", $lines);
	}
public static function item ( $ extension , $ published ) { $ options = array ( JHtml :: _ ( 'select.option' , 'c' , JText :: _ ( 'JLIB_HTML_BATCH_COPY' ) ) , JHtml :: _ ( 'select.option' , 'm' , JText :: _ ( 'JLIB_HTML_BATCH_MOVE' ) ) ) ; $ lines = array ( '<label id="batch-choose-action-lbl" for="batch-choose-action">' , JText :: _ ( 'JLIB_HTML_BATCH_MENU_LABEL' ) , '</label>' , '<fieldset id="batch-choose-action" class="combo">' , '<select name="batch[category_id]" class="inputbox" id="batch-category-id">' , '<option value="">' . JText :: _ ( 'JSELECT' ) . '</option>' , JHtml :: _ ( 'select.options' , JHtml :: _ ( 'category.options' , $ extension , array ( 'published' => ( int ) $ published ) ) ) , '</select>' , JHTML :: _ ( 'select.radiolist' , $ options , 'batch[move_copy]' , '' , 'value' , 'text' , 'm' ) , '</fieldset>' ) ; return implode ( " \n " , $ lines ) ; }
Displays a batch widget for moving or copying items.
Displays a batch widget for moving or copying items .
// Create the copy/move options. // Create the batch selector to change select the category by which to move or copy.