This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>graphxmlswfcharts</name>
|
||||
<displayName>XML/SWF Charts</displayName>
|
||||
<version>1</version>
|
||||
<description>XML/SWF Charts is a simple, yet powerful tool using Adobe Flash to create attractive web charts and graphs from dynamic data.</description>
|
||||
<author>PrestaShop</author>
|
||||
<tab>administration</tab>
|
||||
<is_configurable>0</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
</module>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_fd1d6df8df2837bc1690e3ca9d84f502'] = 'XML / SWF Charts';
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_f0f38a8ecaa33a7db97194b325992d1b'] = 'XML / SWF Charts ist ein einfaches, aber leistungsfähiges Werkzeug mit Adobe Flash, um attraktive Web-Diagramme und Grafiken aus dynamischen Daten zu erstellen.';
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_fd1d6df8df2837bc1690e3ca9d84f502'] = 'Cartas XML/SWF';
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_f0f38a8ecaa33a7db97194b325992d1b'] = 'Las cartas de XML/SWF son unas herramientas simples, de un gran alcance, que pueden usar el flash de Adobe para crear cartas y gráficos atractivos de datos dinámicos.';
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_fd1d6df8df2837bc1690e3ca9d84f502'] = 'XML/SWF Charts';
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_f0f38a8ecaa33a7db97194b325992d1b'] = 'XML/SWF Charts est un outil simple mais puissant utilisant Adobe Flash pour créer des graphiques à partir de données dynamiques.';
|
||||
@@ -1,258 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 1.4 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Statistics
|
||||
* @category stats
|
||||
*
|
||||
* @author PrestaShop
|
||||
* @copyright PrestaShop
|
||||
* @license http://www.opensource.org/licenses/afl-3.0.php Open-source licence 3.0
|
||||
* @version 1.4
|
||||
*/
|
||||
|
||||
if (!defined('_CAN_LOAD_FILES_'))
|
||||
exit;
|
||||
|
||||
class GraphXmlSwfCharts extends ModuleGraphEngine
|
||||
{
|
||||
private $_xml;
|
||||
private $_values = NULL;
|
||||
private $_legend = NULL;
|
||||
private $_legend_more = '';
|
||||
private $_titles = '';
|
||||
|
||||
function __construct($type = null)
|
||||
{
|
||||
if ($type != null)
|
||||
{
|
||||
$this->_xml = '<chart>';
|
||||
parent::__construct($type);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->name = 'graphxmlswfcharts';
|
||||
$this->tab = 'administration';
|
||||
$this->version = 1.0;
|
||||
$this->author = 'PrestaShop';
|
||||
|
||||
Module::__construct();
|
||||
|
||||
$this->displayName = $this->l('XML/SWF Charts');
|
||||
$this->description = $this->l('XML/SWF Charts is a simple, yet powerful tool using Adobe Flash to create attractive web charts and graphs from dynamic data.');
|
||||
}
|
||||
}
|
||||
|
||||
function install()
|
||||
{
|
||||
return (parent::install() AND $this->registerHook('GraphEngine'));
|
||||
}
|
||||
|
||||
public static function hookGraphEngine($params, $drawer)
|
||||
{
|
||||
return '<script language="javascript">AC_FL_RunContent = 0;</script>
|
||||
<script language="javascript"> DetectFlashVer = 0; </script>
|
||||
<script src="../modules/graphxmlswfcharts/xml_swf_charts/AC_RunActiveContent.js" language="javascript"></script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
var requiredMajorVersion = 9;
|
||||
var requiredMinorVersion = 0;
|
||||
var requiredRevision = 45;
|
||||
-->
|
||||
</script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
|
||||
alert("This page requires AC_RunActiveContent.js.");
|
||||
} else {
|
||||
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
|
||||
if(hasRightVersion) {
|
||||
AC_FL_RunContent(
|
||||
\'codebase\', \'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0\',
|
||||
\'width\', \''.$params['width'].'\',
|
||||
\'height\', \''.$params['height'].'\',
|
||||
\'bgcolor\', \'#EFEFEF\',
|
||||
\'movie\', \'charts\',
|
||||
\'src\', \'../modules/graphxmlswfcharts/xml_swf_charts/charts\',
|
||||
\'FlashVars\', \'library_path=../modules/graphxmlswfcharts/xml_swf_charts/charts_library&xml_source='.urlencode($drawer).'\',
|
||||
\'wmode\', \'opaque\',
|
||||
\'scale\', \'noScale\',
|
||||
\'id\', \'charts\',
|
||||
\'name\', \'charts\',
|
||||
\'menu\', \'true\',
|
||||
\'allowFullScreen\', \'true\',
|
||||
\'allowScriptAccess\',\'sameDomain\',
|
||||
\'quality\', \'high\',
|
||||
\'pluginspage\', \'http://www.macromedia.com/go/getflashplayer\',
|
||||
\'align\', \'middle\',
|
||||
\'play\', \'true\',
|
||||
\'devicefont\', \'false\',
|
||||
\'salign\', \'TL\'
|
||||
);
|
||||
} else {
|
||||
var alternateContent = \'This content requires the Adobe Flash Player. \'
|
||||
+ \'<u><a href=http://www.macromedia.com/go/getflash/>Get Flash</a></u>.\';
|
||||
document.write(alternateContent);
|
||||
}
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<noscript>
|
||||
<P>This content requires JavaScript.</P>
|
||||
</noscript>';
|
||||
}
|
||||
|
||||
private function drawColumn()
|
||||
{
|
||||
$this->_xml .= '<axis_category font="arial" bold="true" size="10" color="000000" />
|
||||
<axis_ticks value_ticks="true" position="inside" />
|
||||
<axis_value font="arial" bold="true" size="11" color="000000" show_min="true" />
|
||||
<chart_border color="000000" top_thickness="0" bottom_thickness="1" left_thickness="1" right_thickness="0" />
|
||||
<chart_transition type="scale" delay="0.5" duration="0.5" order="series" />
|
||||
<chart_label color="000000" size="12" position="cursor" background_color="E2EBEE" alpha="80" />
|
||||
<chart_guide horizontal="true" vertical="true" thickness="1" alpha="25" type="dashed" text_h_alpha="0" text_v_alpha="0" />';
|
||||
}
|
||||
|
||||
private function drawLine()
|
||||
{
|
||||
$this->drawColumn();
|
||||
$this->_xml .= '<series_color><color>A3B6DA</color><color>C3413C</color><color>5A6C83</color><color>CA9A51</color><color>5B7751</color><color>55AA26</color><color>FF2398</color><color>427FC3</color></series_color>
|
||||
<chart_pref line_thickness="2" point_shape="none" fill_shape="false" />';
|
||||
}
|
||||
|
||||
private function drawPie($counter)
|
||||
{
|
||||
$this->_xml .= '<chart_rect positive_color="ffffff" positive_alpha="20" negative_color="ff0000" negative_alpha="10" />
|
||||
<chart_label color="ffffff" alpha="90" font="arial" bold="true" size="10" position="inside" prefix="" suffix="" decimals="0" separator="" as_percentage="true" />
|
||||
<series_color>
|
||||
<color>427FC3</color>
|
||||
<color>C3413C</color>
|
||||
<color>5A6C83</color>
|
||||
<color>CA9A51</color>
|
||||
<color>5B7751</color>
|
||||
<color>55AA26</color>
|
||||
<color>FF2398</color>
|
||||
</series_color>
|
||||
<series_explode>';
|
||||
for ($i = 0; $i < $counter; $i++)
|
||||
$this->_xml .= '<number>9</number>';
|
||||
$this->_xml .= '</series_explode>';
|
||||
$this->_legend_more = ' bullet="circle"';
|
||||
}
|
||||
|
||||
public function createValues($values)
|
||||
{
|
||||
$this->_values = $values;
|
||||
$this->_xml .= '<chart_type>'.$this->_type.'</chart_type><chart_grid_h alpha="20" color="000000" thickness="1" type="dashed" />';
|
||||
|
||||
switch ($this->_type)
|
||||
{
|
||||
case 'pie':
|
||||
$this->drawPie(sizeof($values));
|
||||
break;
|
||||
case 'line':
|
||||
$this->drawLine();
|
||||
break;
|
||||
case 'column':
|
||||
default:
|
||||
$this->drawColumn();
|
||||
$this->_xml .= '<series_color><color>A3B6DA</color><color>C3413C</color><color>5A6C83</color><color>CA9A51</color><color>5B7751</color><color>55AA26</color><color>FF2398</color><color>427FC3</color></series_color>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function setSize($width, $height)
|
||||
{
|
||||
if (isset($width) && !empty($width))
|
||||
$this->_width = $width;
|
||||
else
|
||||
$this->_width = 550;
|
||||
if (isset($height) && !empty($height))
|
||||
$this->_height = $height;
|
||||
else
|
||||
$this->_height = 270;
|
||||
}
|
||||
|
||||
public function setLegend($legend)
|
||||
{
|
||||
$this->_legend = $legend;
|
||||
$this->_xml .= '<legend'.$this->_legend_more.' layout="horizontal" font="arial" bold="true" size="13" color="000000" alpha="85" shadow="low" transition="dissolve" delay="0.5" duration="0.25" fill_color="D4D4D4" fill_alpha="0" line_color="D4D4D4" line_alpha="0" line_thickness="0" />';
|
||||
}
|
||||
|
||||
public function setTitles($titles)
|
||||
{
|
||||
$this->_titles = $titles;
|
||||
$this->_xml .= '<draw>';
|
||||
if (isset($titles['main']))
|
||||
{
|
||||
if ($this->_type == 'pie')
|
||||
$this->_xml .= '<text color="000033" alpha="50" font="arial" rotation="0" bold="true" x="0" y="0" width="'.$this->_width.'" height="'.$this->_height.'" h_align="center" v_align="top">'.$titles['main'].'</text>';
|
||||
}
|
||||
if ($this->_type != 'pie' AND isset($titles['x']) AND isset($titles['y']))
|
||||
{
|
||||
$this->_xml .= '<text color="000033" alpha="50" font="arial" rotation="0" bold="true" size="15" x="0" y="'.($this->_height - 30).'" width="'.$this->_width.'" height="30" h_align="right" v_align="middle">'.$titles['x'].'</text>';
|
||||
$this->_xml .= '<text color="000033" alpha="50" font="arial" rotation="-90" bold="true" size="15" x="0" y="'.$this->_height.'" width="'.$this->_height.'" height="30" h_align="center" v_align="middle">'.$titles['y'].'</text>';
|
||||
}
|
||||
$this->_xml .= '</draw>';
|
||||
}
|
||||
|
||||
public function draw()
|
||||
{
|
||||
header('content-type: text/xml');
|
||||
|
||||
$this->_xml .= '<chart_data><row><null/>';
|
||||
foreach ($this->_legend as $value)
|
||||
$this->_xml .= '<string>'.$value.'</string>';
|
||||
$this->_xml .= '</row>';
|
||||
|
||||
if (!isset($this->_values[0]) || !is_array($this->_values[0]))
|
||||
{
|
||||
$this->_xml .= '<row><string>'.$this->_titles['main'].'</string>';
|
||||
foreach ($this->_values as $value)
|
||||
$this->_xml .= '<number>'. (($value > 0) ? $value : -$value) .'</number>'; //si jamais la valeur est n�gative... logiquement ne devrait jamais arriver
|
||||
$this->_xml .= '</row>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$i = 1;
|
||||
foreach ($this->_values as $value)
|
||||
{
|
||||
$this->_xml .= '<row>';
|
||||
if (isset($this->_titles['main'][$i]))
|
||||
$this->_xml .= '<string>'.$this->_titles['main'][$i].'</string>';
|
||||
foreach ($value as $val)
|
||||
$this->_xml .= '<number>'.$val.'</number>';
|
||||
$this->_xml .= '</row>';
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$this->_xml .= '</chart_data>';
|
||||
$this->_xml .= '</chart>';
|
||||
echo $this->_xml;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
global $_MODULE;
|
||||
$_MODULE = array();
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_fd1d6df8df2837bc1690e3ca9d84f502'] = 'XML / SWF Charts';
|
||||
$_MODULE['<{graphxmlswfcharts}prestashop>graphxmlswfcharts_f0f38a8ecaa33a7db97194b325992d1b'] = 'XML / SWF Charts è uno strumento semplice ma potente con Adobe Flash per creare grafici web attraenti e grafici dai dati dinamici.';
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 979 B |
@@ -1,292 +0,0 @@
|
||||
//v1.7
|
||||
// Flash Player Version Detection
|
||||
// Detect Client Browser type
|
||||
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
|
||||
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
|
||||
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
|
||||
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
|
||||
|
||||
function ControlVersion()
|
||||
{
|
||||
var version;
|
||||
var axo;
|
||||
var e;
|
||||
|
||||
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
|
||||
|
||||
try {
|
||||
// version will be set for 7.X or greater players
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
||||
version = axo.GetVariable("$version");
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 6.X players only
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
|
||||
// installed player is some revision of 6.0
|
||||
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
|
||||
// so we have to be careful.
|
||||
|
||||
// default to the first public version
|
||||
version = "WIN 6,0,21,0";
|
||||
|
||||
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
|
||||
axo.AllowScriptAccess = "always";
|
||||
|
||||
// safe to call for 6.0r47 or greater
|
||||
version = axo.GetVariable("$version");
|
||||
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 4.X or 5.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
||||
version = axo.GetVariable("$version");
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 3.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
||||
version = "WIN 3,0,18,0";
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 2.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
|
||||
version = "WIN 2,0,0,11";
|
||||
} catch (e) {
|
||||
version = -1;
|
||||
}
|
||||
}
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
// JavaScript helper required to detect Flash Player PlugIn version information
|
||||
function GetSwfVer(){
|
||||
// NS/Opera version >= 3 check for Flash plugin in plugin array
|
||||
var flashVer = -1;
|
||||
|
||||
if (navigator.plugins != null && navigator.plugins.length > 0) {
|
||||
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
|
||||
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
|
||||
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
|
||||
var descArray = flashDescription.split(" ");
|
||||
var tempArrayMajor = descArray[2].split(".");
|
||||
var versionMajor = tempArrayMajor[0];
|
||||
var versionMinor = tempArrayMajor[1];
|
||||
var versionRevision = descArray[3];
|
||||
if (versionRevision == "") {
|
||||
versionRevision = descArray[4];
|
||||
}
|
||||
if (versionRevision[0] == "d") {
|
||||
versionRevision = versionRevision.substring(1);
|
||||
} else if (versionRevision[0] == "r") {
|
||||
versionRevision = versionRevision.substring(1);
|
||||
if (versionRevision.indexOf("d") > 0) {
|
||||
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
|
||||
}
|
||||
}
|
||||
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
|
||||
}
|
||||
}
|
||||
// MSN/WebTV 2.6 supports Flash 4
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
|
||||
// WebTV 2.5 supports Flash 3
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
|
||||
// older WebTV supports Flash 2
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
|
||||
else if ( isIE && isWin && !isOpera ) {
|
||||
flashVer = ControlVersion();
|
||||
}
|
||||
return flashVer;
|
||||
}
|
||||
|
||||
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
|
||||
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
|
||||
{
|
||||
versionStr = GetSwfVer();
|
||||
if (versionStr == -1 ) {
|
||||
return false;
|
||||
} else if (versionStr != 0) {
|
||||
if(isIE && isWin && !isOpera) {
|
||||
// Given "WIN 2,0,0,11"
|
||||
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
|
||||
tempString = tempArray[1]; // "2,0,0,11"
|
||||
versionArray = tempString.split(","); // ['2', '0', '0', '11']
|
||||
} else {
|
||||
versionArray = versionStr.split(".");
|
||||
}
|
||||
var versionMajor = versionArray[0];
|
||||
var versionMinor = versionArray[1];
|
||||
var versionRevision = versionArray[2];
|
||||
|
||||
// is the major.revision >= requested major.revision AND the minor version >= requested minor
|
||||
if (versionMajor > parseFloat(reqMajorVer)) {
|
||||
return true;
|
||||
} else if (versionMajor == parseFloat(reqMajorVer)) {
|
||||
if (versionMinor > parseFloat(reqMinorVer))
|
||||
return true;
|
||||
else if (versionMinor == parseFloat(reqMinorVer)) {
|
||||
if (versionRevision >= parseFloat(reqRevision))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function AC_AddExtension(src, ext)
|
||||
{
|
||||
if (src.indexOf('?') != -1)
|
||||
return src.replace(/\?/, ext+'?');
|
||||
else
|
||||
return src + ext;
|
||||
}
|
||||
|
||||
function AC_Generateobj(objAttrs, params, embedAttrs)
|
||||
{
|
||||
var str = '';
|
||||
if (isIE && isWin && !isOpera)
|
||||
{
|
||||
str += '<object ';
|
||||
for (var i in objAttrs)
|
||||
{
|
||||
str += i + '="' + objAttrs[i] + '" ';
|
||||
}
|
||||
str += '>';
|
||||
for (var i in params)
|
||||
{
|
||||
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
|
||||
}
|
||||
str += '</object>';
|
||||
}
|
||||
else
|
||||
{
|
||||
str += '<embed ';
|
||||
for (var i in embedAttrs)
|
||||
{
|
||||
str += i + '="' + embedAttrs[i] + '" ';
|
||||
}
|
||||
str += '> </embed>';
|
||||
}
|
||||
|
||||
document.write(str);
|
||||
}
|
||||
|
||||
function AC_FL_RunContent(){
|
||||
var ret =
|
||||
AC_GetArgs
|
||||
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
|
||||
, "application/x-shockwave-flash"
|
||||
);
|
||||
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
|
||||
}
|
||||
|
||||
function AC_SW_RunContent(){
|
||||
var ret =
|
||||
AC_GetArgs
|
||||
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
|
||||
, null
|
||||
);
|
||||
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
|
||||
}
|
||||
|
||||
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
|
||||
var ret = new Object();
|
||||
ret.embedAttrs = new Object();
|
||||
ret.params = new Object();
|
||||
ret.objAttrs = new Object();
|
||||
for (var i=0; i < args.length; i=i+2){
|
||||
var currArg = args[i].toLowerCase();
|
||||
|
||||
switch (currArg){
|
||||
case "classid":
|
||||
break;
|
||||
case "pluginspage":
|
||||
ret.embedAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
case "src":
|
||||
case "movie":
|
||||
args[i+1] = AC_AddExtension(args[i+1], ext);
|
||||
ret.embedAttrs["src"] = args[i+1];
|
||||
ret.params[srcParamName] = args[i+1];
|
||||
break;
|
||||
case "onafterupdate":
|
||||
case "onbeforeupdate":
|
||||
case "onblur":
|
||||
case "oncellchange":
|
||||
case "onclick":
|
||||
case "ondblclick":
|
||||
case "ondrag":
|
||||
case "ondragend":
|
||||
case "ondragenter":
|
||||
case "ondragleave":
|
||||
case "ondragover":
|
||||
case "ondrop":
|
||||
case "onfinish":
|
||||
case "onfocus":
|
||||
case "onhelp":
|
||||
case "onmousedown":
|
||||
case "onmouseup":
|
||||
case "onmouseover":
|
||||
case "onmousemove":
|
||||
case "onmouseout":
|
||||
case "onkeypress":
|
||||
case "onkeydown":
|
||||
case "onkeyup":
|
||||
case "onload":
|
||||
case "onlosecapture":
|
||||
case "onpropertychange":
|
||||
case "onreadystatechange":
|
||||
case "onrowsdelete":
|
||||
case "onrowenter":
|
||||
case "onrowexit":
|
||||
case "onrowsinserted":
|
||||
case "onstart":
|
||||
case "onscroll":
|
||||
case "onbeforeeditfocus":
|
||||
case "onactivate":
|
||||
case "onbeforedeactivate":
|
||||
case "ondeactivate":
|
||||
case "type":
|
||||
case "codebase":
|
||||
case "id":
|
||||
ret.objAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
case "width":
|
||||
case "height":
|
||||
case "align":
|
||||
case "vspace":
|
||||
case "hspace":
|
||||
case "class":
|
||||
case "title":
|
||||
case "accesskey":
|
||||
case "name":
|
||||
case "tabindex":
|
||||
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
default:
|
||||
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
|
||||
}
|
||||
}
|
||||
ret.objAttrs["classid"] = classid;
|
||||
if (mimeType) ret.embedAttrs["type"] = mimeType;
|
||||
return ret;
|
||||
}
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
XML/SWF Charts.php V5␍----------------------------------␍Copyright (c) 2003-2008, maani.us␍----------------------------------␍␍XML/SWF Charts is a shareware. See this web page for more information:␍http://www.maani.us/xml_charts/␍␍See this web page for licensing information:␍http://www.maani.us/xml_charts/index.php?menu=License
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user