芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/libraries/joomla/html/toolbar/button/confirm.php
fetchIconClass($name); $doTask = $this->_getCommand($msg, $name, $task, $list); $html = "
\n"; $html .= "
\n"; $html .= "
\n"; $html .= "$text\n"; $html .= "
\n"; return $html; } /** * Get the button CSS Id * * @return string Button CSS Id * @since 11.1 */ public function fetchId($type='Confirm', $name = '', $text = '', $task = '', $list = true, $hideMenu = false) { return $this->_parent->getName().'-'.$name; } /** * Get the JavaScript command for the button * * @param object $definition Button definition * * @return string JavaScript command string * @since 11.1 */ protected function _getCommand($msg, $name, $task, $list) { JHtml::_('behavior.framework'); $message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'); $message = addslashes($message); if ($list) { $cmd = "javascript:if (document.adminForm.boxchecked.value==0){alert('$message');}else{if (confirm('$msg')){Joomla.submitbutton('$task');}}"; } else { $cmd = "javascript:if (confirm('$msg')){Joomla.submitbutton('$task');}"; } return $cmd; } }