0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: button.tar
link.php 0000666 00000003252 15137265110 0006221 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a link button * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonLink extends JButton { /** * Button type * @var string */ protected $_name = 'Link'; /** * Fetch the HTML for the button * * @param string $type Unused string. * @param string $name Name to be used as apart of the id * @param string $text Button text * @param string $url The link url * * @return string HTML string for the button * * @since 11.1 */ public function fetchButton($type = 'Link', $name = 'back', $text = '', $url = null) { $text = JText::_($text); $class = $this->fetchIconClass($name); $doTask = $this->_getCommand($url); $html = "<a href=\"$doTask\">\n"; $html .= "<span class=\"$class\">\n"; $html .= "</span>\n"; $html .= "$text\n"; $html .= "</a>\n"; return $html; } /** * Get the button CSS Id * * @param string $type The button type. * @param string $name The name of the button. * * @return string Button CSS Id * * @since 11.1 */ public function fetchId($type = 'Link', $name = '') { return $this->_parent->getName() . '-' . $name; } /** * Get the JavaScript command for the button * * @param object $url Button definition * * @return string JavaScript command string * * @since 11.1 */ protected function _getCommand($url) { return $url; } } standard.php 0000666 00000005172 15137265110 0007067 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a standard button * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonStandard extends JButton { /** * Button type * * @var string */ protected $_name = 'Standard'; /** * Fetch the HTML for the button * * @param string $type Unused string. * @param string $name The name of the button icon class. * @param string $text Button text. * @param string $task Task associated with the button. * @param boolean $list True to allow lists * * @return string HTML string for the button * * @since 11.1 */ public function fetchButton($type = 'Standard', $name = '', $text = '', $task = '', $list = true) { $i18n_text = JText::_($text); $class = $this->fetchIconClass($name); $doTask = $this->_getCommand($text, $task, $list); $html = "<a href=\"#\" onclick=\"$doTask\" class=\"toolbar\">\n"; $html .= "<span class=\"$class\">\n"; $html .= "</span>\n"; $html .= "$i18n_text\n"; $html .= "</a>\n"; return $html; } /** * Get the button CSS Id * * @param string $type Unused string. * @param string $name Name to be used as apart of the id * @param string $text Button text * @param string $task The task associated with the button * @param boolean $list True to allow use of lists * @param boolean $hideMenu True to hide the menu on click * * @return string Button CSS Id * * @since 11.1 */ public function fetchId($type = 'Standard', $name = '', $text = '', $task = '', $list = true, $hideMenu = false) { return $this->_parent->getName() . '-' . $name; } /** * Get the JavaScript command for the button * * @param string $name The task name as seen by the user * @param string $task The task used by the application * @param boolean $list True is requires a list confirmation. * * @return string JavaScript command string * * @since 11.1 */ protected function _getCommand($name, $task, $list) { JHtml::_('behavior.framework'); $message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'); $message = addslashes($message); if ($list) { $cmd = "if (document.adminForm.boxchecked.value==0){alert('$message');}else{ Joomla.submitbutton('$task')}"; } else { $cmd = "Joomla.submitbutton('$task')"; } return $cmd; } } custom.php 0000666 00000002333 15137265110 0006575 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a custom button * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonCustom extends JButton { /** * Button type * * @var string */ protected $_name = 'Custom'; /** * Fetch the HTML for the button * * @param string $type Button type, unused string. * @param string $html HTML strng for the button * @param string $id CSS id for the button * * @return string HTML string for the button * * @since 11.1 */ public function fetchButton($type = 'Custom', $html = '', $id = 'custom') { return $html; } /** * Get the button CSS Id * * @param string $type Not used. * @param string $html Not used. * @param string $id The id prefix for the button. * * @return string Button CSS Id * * @since 11.1 */ public function fetchId($type = 'Custom', $html = '', $id = 'custom') { return $this->_parent->getName() . '-' . $id; } } confirm.php 0000666 00000005727 15137265110 0006732 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a standard button with a confirm dialog * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonConfirm extends JButton { /** * Button type * * @var string */ protected $_name = 'Confirm'; /** * Fetch the HTML for the button * * @param string $type Unused string. * @param string $msg Message to render * @param string $name Name to be used as apart of the id * @param string $text Button text * @param string $task The task associated with the button * @param boolean $list True to allow use of lists * @param boolean $hideMenu True to hide the menu on click * * @return string HTML string for the button * * @since 11.1 */ public function fetchButton($type = 'Confirm', $msg = '', $name = '', $text = '', $task = '', $list = true, $hideMenu = false) { $text = JText::_($text); $msg = JText::_($msg, true); $class = $this->fetchIconClass($name); $doTask = $this->_getCommand($msg, $name, $task, $list); $html = "<a href=\"#\" onclick=\"$doTask\" class=\"toolbar\">\n"; $html .= "<span class=\"$class\">\n"; $html .= "</span>\n"; $html .= "$text\n"; $html .= "</a>\n"; return $html; } /** * Get the button CSS Id * * @param string $type Button type * @param object $msg The message * @param string $name Name to be used as apart of the id * @param string $text Button text * @param string $task The task associated with the button * @param boolean $list True to allow use of lists * @param boolean $hideMenu True to hide the menu on click * * @return string Button CSS Id * * @since 11.1 */ public function fetchId($type = 'Confirm', $msg = '', $name = '', $text = '', $task = '', $list = true, $hideMenu = false) { return $this->_parent->getName() . '-' . $name; } /** * Get the JavaScript command for the button * * @param object $msg The message to display. * @param string $name Not used. * @param string $task The task used by the application * @param boolean $list True is requires a list confirmation. * * @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 = "if (document.adminForm.boxchecked.value==0){alert('$message');}else{if (confirm('$msg')){Joomla.submitbutton('$task');}}"; } else { $cmd = "if (confirm('$msg')){Joomla.submitbutton('$task');}"; } return $cmd; } } separator.php 0000666 00000002345 15137265110 0007266 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a button separator * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonSeparator extends JButton { /** * Button type * * @var string */ protected $_name = 'Separator'; /** * Get the HTML for a separator in the toolbar * * @param array &$definition Class name and custom width * * @return The HTML for the separator * * @since 11.1 * * @see JButton::render() */ public function render(&$definition) { // Initialise variables. $class = null; $style = null; // Separator class name $class = (empty($definition[1])) ? 'spacer' : $definition[1]; // Custom width $style = (empty($definition[2])) ? null : ' style="width:' . intval($definition[2]) . 'px;"'; return '<li class="' . $class . '"' . $style . ">\n</li>\n"; } /** * Empty implementation (not required for separator) * * @return void * * @since 11.1 */ public function fetchButton() { } } help.php 0000666 00000004620 15137265110 0006214 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a help popup window button * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ class JButtonHelp extends JButton { /** * @var string Button type */ protected $_name = 'Help'; /** * Fetches the button HTML code. * * @param string $type Unused string. * @param string $ref The name of the help screen (its key reference). * @param boolean $com Use the help file in the component directory. * @param string $override Use this URL instead of any other. * @param string $component Name of component to get Help (null for current component) * * @return string * * @since 11.1 */ public function fetchButton($type = 'Help', $ref = '', $com = false, $override = null, $component = null) { $text = JText::_('JTOOLBAR_HELP'); $class = $this->fetchIconClass('help'); $doTask = $this->_getCommand($ref, $com, $override, $component); $html = "<a href=\"#\" onclick=\"$doTask\" rel=\"help\" class=\"toolbar\">\n"; $html .= "<span class=\"$class\">\n"; $html .= "</span>\n"; $html .= "$text\n"; $html .= "</a>\n"; return $html; } /** * Get the button id * * Redefined from JButton class * * @return string Button CSS Id * * @since 11.1 */ public function fetchId() { return $this->_parent->getName() . '-' . "help"; } /** * Get the JavaScript command for the button * * @param string $ref The name of the help screen (its key reference). * @param boolean $com Use the help file in the component directory. * @param string $override Use this URL instead of any other. * @param string $component Name of component to get Help (null for current component) * * @return string JavaScript command string * * @since 11.1 */ protected function _getCommand($ref, $com, $override, $component) { // Get Help URL jimport('joomla.language.help'); $url = JHelp::createURL($ref, $com, $override, $component); $url = htmlspecialchars($url, ENT_QUOTES); $cmd = "Joomla.popupWindow('$url', '" . JText::_('JHELP', true) . "', 700, 500, 1)"; return $cmd; } } .htaccess 0000666 00000000177 15137265110 0006354 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>