2013-10-22 16:57:28 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Zend_View_Helper_SelectionToolbar extends Zend_View_Helper_Abstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create a selection toolbar
|
|
|
|
*
|
|
|
|
* @param $type
|
|
|
|
* @param null $target
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function selectionToolbar($type, $target = null)
|
|
|
|
{
|
|
|
|
if ($type == 'multi') {
|
2014-02-12 12:05:19 +01:00
|
|
|
return '<div class="selection-toolbar"> Select '
|
|
|
|
. '<a href="' . $target . '"> All </a>'
|
|
|
|
. '<a href="#"> None </a> </div>';
|
2013-10-22 16:57:28 +02:00
|
|
|
} else if ($type == 'single') {
|
2014-02-12 12:05:19 +01:00
|
|
|
return '<div class="selection-toolbar"> Select <a href="#"> None </a> </div>';
|
2013-10-22 16:57:28 +02:00
|
|
|
} else {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|