28 lines
559 B
PHP
28 lines
559 B
PHP
<?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') {
|
|
return 'Select
|
|
<a href="' . $target . '"> All </a>
|
|
<a href="#"> None </a>';
|
|
|
|
} else if ($type == 'single') {
|
|
return 'Select <a href="#"> None </a>';
|
|
|
|
} else {
|
|
return '';
|
|
}
|
|
}
|
|
}
|