Exemplo n.º 1
0
 /**
  * standard method for displaying toolbar button
  *
  * @param string $task
  * @param string $alt
  * @param string $name
  * @param string $imagename
  * @param bool $extended
  * @param string $listprompt
  * @param string $confirmMsg
  * @param bool $inlineJs
  * @param string $class
  */
 static function addToToolBar($task, $alt, $name, $imagename, $extended = false, $listprompt = null, $confirmMsg = null, $inlineJs = true, $class = null)
 {
     if (!$alt) {
         $alt = $name;
     }
     CBtoolmenuBar::_output($inlineJs ? CBtoolmenuBar::makeJavaScript($task, $extended, $listprompt, $confirmMsg) : null, $imagename, $alt, '#' . $task, $class);
 }
 /**
  * Standard routine for displaying toolbar icon
  * @param string An override for the task
  * @param string An override for the alt text
  * @param string The name to be used as a legend and as the image name
  * @param
  */
 static function addToToolBar($task, $alt, $name, $imagename, $extended = false, $listprompt = '', $confirmMsg = '', $inlineJs = true)
 {
     if (is_null($alt)) {
         $alt = $name;
     }
     echo CBtoolmenuBar::_output($inlineJs ? CBtoolmenuBar::makeJavaScript($task, $extended, $listprompt, $confirmMsg) : null, $imagename, $alt, '#' . $task);
 }