Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/buttons.zip

PK�e�[з#
export.phpnu�[���<?php
/**
 * @package	HikaShop for Joomla!
 * @version	4.4.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
class JButtonExport extends JButton {
	protected $name = 'Export';

	public function fetchButton($type = 'Export', $namekey =
'', $id = 'export') {
		$doc = JFactory::getDocument();
		$js = "
function hikaExport(){
	submitbutton('export');
	var form = document.getElementById('adminForm');
	form.task.value = '';
	return false;
}";
		if(HIKASHOP_J40)
			$btnClass = 'btn btn-info';
		else
			$btnClass = 'btn btn-small';

		$doc->addScriptDeclaration($js);
		if(!HIKASHOP_J30)
			return '<a href="#" target="_blank"
onclick="return hikaExport();"
class="toolbar"><span class="icon-32-archive"
title="' . JText::_('HIKA_EXPORT', true) .
'"></span>' . JText::_('HIKA_EXPORT') .
'</a>';
		return '<button class="'.$btnClass.'"
onclick="return hikaExport();"><i
class="icon-upload"></i>
'.JText::_('HIKA_EXPORT').'</button>';
	}

	public function fetchId($type = 'Export', $html = '',
$id = 'export') {
		return $this->name . '-' . $id;
	}
}

class JToolbarButtonExport extends JButtonExport {}
PK�e�[�k኷�
hikapopup.phpnu�[���<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.2.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
if(!HIKASHOP_J30) {
	if(!HIKASHOP_PHP5){
		$toolbarInstance =& JToolbar::getInstance();
	} else {
		$toolbarInstance = JToolbar::getInstance();
	}
	$toolbarInstance->loadButtonType('Popup');
	class JButtonHikaPopup extends JButtonPopup {
		public function fetchButton($type = 'Popup', $name =
'', $text = '', $url = '', $width = 640,
$height = 480, $top = 0, $left = 0, $onClose = '', $title =
'', $footer = '') {
			if(empty($title) && empty($footer))
				return parent::fetchButton($type, $name, $text, $url, $width, $height,
$top, $left, $onClose);

			JHtml::_('behavior.modal');

			$text = JText::_($text);
			$class = $this->fetchIconClass($name);
			$doTask = $url; //$this->_getCommand($name, $url, $width, $height,
$top, $left);
			$id = 'modal-toolbar-' . $name;

			$popup = hikaserial::get('shop.helper.popup');
			$params = array(
				'width' => $width,
				'height' => $height,
				'type' => 'link',
				'footer' => $footer
			);

			$html = $popup->displayMootools('<span
class="'.$class.'"></span>'.$text,
$title, $doTask, $id, $params);

			return $html;
		}
	}
} else {
	JToolbar::getInstance()->loadButtonType('Popup');
	class JToolbarButtonHikapopup extends JToolbarButtonPopup {
		public function fetchButton($type = 'Modal', $name =
'', $text = '', $url = '', $width = 640,
$height = 480, $top = 0, $left = 0, $onClose = '', $title =
'') {
			list($name, $icon) = explode('#', $name, 2);
			$name .= '-btnpopup';
			if(empty($title))
				$title = $text;

			$options = array(
				'name' => JText::_($name),
				'text' => JText::_($text),
				'title' => JText::_($title),
				'class' => $this->fetchIconClass($name),
				'doTask' => $url // $this->_getCommand($url)
			);

			$layout = new JLayoutFile('joomla.toolbar.popup');

			$id = 'modal-' . $name;

			if(!empty($footer)) {
				$footer = '<div class="modal-footer">'.
						'<button class="btn" type="button"
data-dismiss="modal">'.JText::_('HIKA_CANCEL').'</button>'.
						'<button class="btn btn-primary"
type="submit"
onclick="window.hikashop.submitPopup(\\\''.$id.'\\\');">'.JText::_('HIKA_VALIDATE').'</button>'.
					'</div>';
			} else {
				$footer = '';
			}

			$params = array(
				'title' => $options['title'],
				'url' => $options['doTask'],
				'height' => $height,
				'width' => $width
			);

			$html = array(
				str_replace(array('<i
class="icon-out-2">','<i
class="icon-cog">'), '<i
class="icon-'.$icon.'">',
$layout->render($options) ),
				'</div><div class="btn-group"
style="width: 0; margin: 0">',
				str_replace(
					array(
						'id="'.$id.'"',
						'<iframe'
					),
					array(
						'id="'.$id.'"
style="width:'.($params['width']+20).'px;height:'.($params['height']+90).'px;margin-left:-'.(($params['width']+20)/2).'px"',
						'<iframe id="'.$id.'-iframe"'
					),
					JHtml::_('bootstrap.renderModal', 'modal-' .
$name, $params, $footer)
				)
			);

			if(strlen($onClose) >= 1) {
				$html[] = '<script>' . "\n"
					.
'jQuery(document).ready(function(){jQuery("#modal-'.$name.'").appendTo(jQuery(document.body));});'
. "\n"
					. 'jQuery(\'#modal-' . $name .
'\').on(\'hide\', function () {' . $onClose .
';});' . "\n"
					. '</script>';
			} else {
				$html[] = '<script>' . "\n"
					.
'jQuery(document).ready(function(){jQuery("#modal-'.$name.'").appendTo(jQuery(document.body));});'
. "\n"
					. '</script>';
			}

			return implode("\n", $html);
		}
	}
}
PK�e�[wtW�
index.htmlnu�[���<html><body></body></html>PK�e�[��b�R	R	pophelp.phpnu�[���<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.2.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
class JButtonPophelp extends JButton {
	private $name = 'Pophelp';

	public function fetchButton($type = 'Pophelp', $namekey =
'', $id = 'pophelp') {
		$doc = JFactory::getDocument();
		$config = hikashop_config();
		$level = $config->get('level');
		$url = HIKASHOP_HELPURL . $namekey . '&level=' . $level;
		if(hikashop_isSSL())
			$url = str_replace('http://', 'https://', $url);

		$js = '
function displayDoc(){
	var d = document, init = false, b =
d.getElementById("iframedoc");
	if(!b) return true;
	if(typeof(b.openHelp) == "undefined") { b.openHelp = true; init
= true; }
	if(b.openHelp) { b.innerHTML = \'<iframe
src="'.$url.'" width="100%"
height="100%" style="border:0px" border="no"
scrolling="auto"></iframe>\';
b.setStyle("display","block"); }
	try {
		if(typeof(b.fxEffect) == "undefined") { b.fxEffect =
b.effects({duration: 1500, transition: Fx.Transitions.Quart.easeOut}); }
		if(b.openHelp){
			if(init) { b.height = 0; b.style.height = 0; }
			b.fxEffect.stop(); b.fxEffect.start({height: 300});
		}else{
			b.fxEffect.stop(); b.fxEffect.start({height: 0}).chain(function() {
b.innerHTML = ""; b.setStyle("display",
"none"); });
		}
	} catch(err) {
		if(typeof(b.vslide) == "undefined") { b.vslide = new
Fx.Slide("iframedoc"); }
		if(b.openHelp){
			if(init) { b.vslide.hide(); }
			b.vslide.slideIn();
		}else{
			b.vslide.slideOut().chain(function() { b.innerHTML = "";
b.setStyle("display", "none");	});
		}
	}
	b.openHelp = !b.openHelp;
	return false;
}';
		$doc->addScriptDeclaration($js);
		if(!HIKASHOP_J30)
			return '<a href="' . $url . '"
target="_blank" onclick="return displayDoc();"
class="toolbar"><span class="icon-32-help"
title="' . JText::_('HIKA_HELP', true) .
'"></span>' . JText::_('HIKA_HELP') .
'</a>';
		return '<button class="btn btn-small"
onclick="return displayDoc();"><i
class="icon-help"></i>
'.JText::_('HIKA_HELP').'</button>';
	}

	public function fetchId($type = 'Pophelp', $html = '',
$id = 'pophelp') {
		return $this->name . '-' . $id;
	}
}

class JToolbarButtonPophelp extends JButtonPophelp {}
PK�e�[з#
export.phpnu�[���PK�e�[�k኷�
Qhikapopup.phpnu�[���PK�e�[wtW�
Eindex.htmlnu�[���PK�e�[��b�R	R	�pophelp.phpnu�[���PK,&