Your IP : 216.73.216.240


Current Path : /home/s/u/n/sunflowe/www2/j15/plugins/editors/jce/tiny_mce/plugins/hsexpander/
Upload File :
Current File : /home/s/u/n/sunflowe/www2/j15/plugins/editors/jce/tiny_mce/plugins/hsexpander/hsexpander.php

<?php
/**
* @version $Id: link.php 2008-02-20 Ryan Demmer $
* @package JCE
* @copyright Copyright (C) 2006-2007 Ryan Demmer. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined( '_JEXEC' ) or die( 'Restricted access' );

$version = "1.5.0";

require_once( JCE_LIBRARIES .DS. 'classes' .DS. 'editor.php' );
require_once( JCE_LIBRARIES .DS. 'classes' .DS. 'plugin.php' );
require_once( JCE_LIBRARIES .DS. 'classes' .DS. 'utils.php' );

$HsExpander =& JContentEditorPlugin::getInstance();

$HsExpander->checkPlugin() or die( 'Restricted access' );
// Load Plugin Parameters
$params	= $HsExpander->getPluginParams();

// Load Languages
$HsExpander->loadLanguages();

// Set javascript file array
$HsExpander->script( array(
	'tiny_mce_popup',
), 'tiny_mce' );
$HsExpander->script( array(
	'tiny_mce_utils',
	'mootools',
	'jce',
	'plugin',
	'window'
) );
$HsExpander->script( array( 'hsexpander' ), 'plugins' );
// Set css file array
$HsExpander->css( array( 'hsexpander' ), 'plugins' );
$HsExpander->css( array( 'plugin', 'tree' ) );
$HsExpander->css( array(
	'window',
	'dialog'
), 'skins' );

// Process any XHR requests
$HsExpander->processXHR( true );

$HsExpander->_debug = false;
$version .= $HsExpander->_debug ? ' - debug' : '';
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $HsExpander->getLanguageTag();?>" lang="<?php echo $HsExpander->getLanguageTag();?>" dir="<?php echo $HsExpander->getLanguageDir();?>" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo JText::_('PLUGIN TITLE');?> : <?php echo $version;?></title>
<?php
$HsExpander->printScripts();
$HsExpander->printCss();
?>
	<script type="text/javascript">
		function initHsExpander(){
			return new HsExpander({
				lang: '<?php echo $HsExpander->getLanguage(); ?>',
				alerts: <?php echo $HsExpander->getAlerts();?>,
				params: {
					'defaults': {
						'targetlist': "<?php echo $params->get('target', 'default');?>"
					}
				}
			});
		}
	</script>
    <?php echo $HsExpander->printHead();?>
</head>
<body lang="<?php echo $HsExpander->getLanguage();?>" id="HsExpander">
	<form onSubmit="insertAction();return false;" action="#">
	<div class="tabs">
		<ul>
			<li id="popup_tab" class="current"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onMouseDown="return false;"><?php echo JText::_('POPUP TAB');?></a></span></li>
			<li id="thumbnail_tab"><span><a href="javascript:mcTabs.displayTab('thumbnail_tab','thumbnail_panel');" onMouseDown="return false;"><?php echo JText::_('THUMBNAIL TAB');?></a></span></li>
			<li id="caption_tab"><span><a href="javascript:mcTabs.displayTab('caption_tab','caption_panel');" onMouseDown="return false;"><?php echo JText::_('CAPTION TAB');?></a></span></li>
		</ul>
	</div>
	<div class="panel_wrapper" style="border-bottom:0px;">
		<div id="popup_panel" class="panel current">
			<fieldset>
				<legend><?php echo JText::_('GENERAL');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td nowrap="nowrap"><label id="hreflabel" for="href" class="hastip" title="<?php echo JText::_('POPUPURL DESC');?>"><?php echo JText::_('POPUPURL');?></label></td>
						<td><input id="href" type="text" value="" size="150" /></td>
                        <td id="hrefbrowsercontainer">&nbsp;</td>
					</tr>
					<tr>
						<td nowrap="nowrap"><label id="titlelabel" for="title" class="hastip" title="<?php echo JText::_('POPUPTITLE DESC');?>"><?php echo JText::_('POPUPTITLE');?></label></td>
						<td colspan="3"><input id="title" name="title" type="text" value="" /></td>
					</tr>
					<tr>
						<td class="column1"><label id="idlabel" for="id" class="hastip" title="<?php echo JText::_('ID DESC');?>"><?php echo JText::_('ID');?></label></td>
						<td><input id="id" type="text" value="" /></td>
					</tr>
					<tr>
						<td><label id="stylelabel" for="style" class="hastip" title="<?php echo JText::_('STYLE DESC');?>"><?php echo JText::_('Style');?></label></td>
						<td><input type="text" id="style" value="" /></td>
					</tr>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php echo JText::_('INLINEOPTS');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td><label id="wrapperclasslabel" for="wrapperclass" class="hastip" title="<?php echo JText::_('WRAPPERCLASS DESC');?>"><?php echo JText::_('WRAPPERCLASS');?></label></td>
						<td><input type="text" id="wrapperclass" value="" /></td>
					</tr>
					<tr>
						<td><label id="slideshowgrouplabel" for="slideshowgroup" class="hastip" title="<?php echo JText::_('SLIDESHOWGROUP DESC');?>"><?php echo JText::_('SLIDESHOWGROUP');?></label></td>
						<td><input type="text" id="slideshowgroup" value="" /></td>
					</tr>
					<tr>
						<td><label id="targetxlabel" for="targetx" class="hastip" title="<?php echo JText::_('TARGETX DESC');?>"><?php echo JText::_('TARGETX');?></label></td>
						<td><input type="text" id="targetx" value="" /></td>
					</tr>
					<tr>
						<td><label id="targetylabel" for="targety" class="hastip" title="<?php echo JText::_('TARGETY DESC');?>"><?php echo JText::_('TARGETY');?></label></td>
						<td><input type="text" id="targety" value="" /></td>
					</tr>
					<tr>
						<td><label id="minwidthlabel" for="minwidth" class="hastip" title="<?php echo JText::_('MINWIDTH DESC');?>"><?php echo JText::_('MINWIDTH');?></label></td>
						<td><input type="text" id="minwidth" value="" /></td>
					</tr>
					<tr>
						<td><label id="minheightlabel" for="minheight" class="hastip" title="<?php echo JText::_('MINHEIGHT DESC');?>"><?php echo JText::_('MINHEIGHT');?></label></td>
						<td><input type="text" id="minheight" value=""/></td>
					</tr>
					<tr>
						<td nowrap="nowrap"><label id="psrclabel" for="psrc" class="hastip" title="<?php echo JText::_('SRC DESC');?>"><?php echo JText::_('SRC');?></label></td>
						<td><input id="psrc" type="text" value="" size="150" /></td>
                        <td id="psrcbrowsercontainer">&nbsp;</td>
					</tr>
					<tr>
						<td class="column1"><label id="outlinetypelabel" for="outlinetype" class="hastip" title="<?php echo JText::_('OUTLINETYPE DESC');?>"><?php echo JText::_('OUTLINETYPE');?></label></td>
						<td><select id="outlinetype" name="outlinetype" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="rounded-black"><?php echo JText::_('ROUNDED-BLACK');?></option>
								<option value="glossy-dark"><?php echo JText::_('GLOSSY-DARK');?></option>
								<option value="beveled"><?php echo JText::_('BEVELED');?></option>
								<option value="drop-shadow"><?php echo JText::_('DROP-SHADOW');?></option>
								<option value="rounded-white"><?php echo JText::_('ROUNDED-WHITE');?></option>
								<option value="outer-glow"><?php echo JText::_('OUTER-GLOW');?></option>
								<option value="null"><?php echo JText::_('NO BORDER');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="outlinewhileanimatinglabel" for="outlinewhileanimating" class="hastip" title="<?php echo JText::_('OUTLINEWHILEANIMATING DESC');?>"><?php echo JText::_('OUTLINEWHILEANIMATING');?></label></td>
						<td><select id="outlinewhileanimating" name="outlinewhileanimating" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="true"><?php echo JText::_('YES');?></option>
								<option value="false"><?php echo JText::_('NO');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="allowsizereductionlabel" for="allowsizereduction" class="hastip" title="<?php echo JText::_('ALLOWSIZEREDUCTION DESC');?>"><?php echo JText::_('ALLOWSIZEREDUCTION');?></label></td>
						<td><select id="allowsizereduction" name="allowsizereduction" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="true"><?php echo JText::_('YES');?></option>
								<option value="false"><?php echo JText::_('NO');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="alignlabel" for="align" class="hastip" title="<?php echo JText::_('ALIGN DESC');?>"><?php echo JText::_('ALIGN');?></label></td>
						<td><select id="align" name="align" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="auto"><?php echo JText::_('AUTO');?></option>
								<option value="center"><?php echo JText::_('CENTER');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="anchorlabel" for="anchor" class="hastip" title="<?php echo JText::_('ANCHOR DESC');?>"><?php echo JText::_('ANCHOR');?></label></td>
						<td><select id="anchor" name="anchor" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="auto"><?php echo JText::_('AUTO');?></option>
								<option value="top"><?php echo JText::_('TOP ANCHOR');?></option>
								<option value="top right"><?php echo JText::_('TOP, RIGHT');?></option>
								<option value="top left"><?php echo JText::_('TOP, LEFT');?></option>
								<option value="bottom"><?php echo JText::_('BOTTOM');?></option>
								<option value="bottom right"><?php echo JText::_('BOTTOM, RIGHT');?></option>
								<option value="bottom left"><?php echo JText::_('BOTTOM, LEFT');?></option>
								<option value="right"><?php echo JText::_('RIGHT');?></option>
								<option value="left"><?php echo JText::_('LEFT');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="easinglabel" for="easing" class="hastip" title="<?php echo JText::_('EASING DESC');?>"><?php echo JText::_('EASING');?></label></td>
						<td><select id="easing" name="easing" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="easeInQuad">EaseInQuad</option>
								<option value="linearTween">LinearTween</option>
								<option value="easeOutQuad">EaseOutQuad</option>
								<option value="easeInOutQuad">EaseInOutQuad</option>
								<option value="easeInCubic">EaseInCubic</option>
								<option value="easeOutCubic">EaseOutCubic</option>
								<option value="easeInOutCubic">EaseInOutCubic</option>
								<option value="easeInQuart">EaseInQuart</option>
								<option value="easeOutQuart">EaseOutQuart</option>
								<option value="easeInOutQuart">EaseInOutQuart</option>
								<option value="easeInQuint">EaseInQuint</option>
								<option value="easeOutQuint">EaseOutQuint</option>
								<option value="easeInOutQuint">EaseInOutQuint</option>
								<option value="easeInSine">EaseInSine</option>
								<option value="easeOutSine">EaseOutSine</option>
								<option value="easeInOutSine">EaseInOutSine</option>
								<option value="easeInExpo">EaseInExpo</option>
								<option value="easeOutExpo">EaseOutExpo</option>
								<option value="easeInOutExpo">EaseInOutExpo</option>
								<option value="easeInCirc">EaseInCirc</option>
								<option value="easeOutCirc">EaseOutCirc</option>
								<option value="easeInOutCirc">EaseInOutCirc</option>
								<option value="easeInElastic">EaseInElastic</option>
								<option value="easeOutElastic">EaseOutElastic</option>
								<option value="easeInOutElastic">EaseInOutElastic</option>
								<option value="easeInBack">EaseInBack</option>
								<option value="easeOutBack">EaseOutBack</option>
								<option value="easeInOutBack">EaseInOutBack</option>
								<option value="easeInBounce">EaseInBounce</option>
								<option value="easeOutBounce">EaseOutBounce</option>
								<option value="easeInOutBounce">EaseInOutBounce</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="easingcloselabel" for="easingclose" class="hastip" title="<?php echo JText::_('EASINGCLOSE DESC');?>"><?php echo JText::_('EASINGCLOSE');?></label></td>
						<td><select id="easingclose" name="easingclose" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="easeInQuad">EaseInQuad</option>
								<option value="linearTween">LinearTween</option>
								<option value="easeOutQuad">EaseOutQuad</option>
								<option value="easeInOutQuad">EaseInOutQuad</option>
								<option value="easeInCubic">EaseInCubic</option>
								<option value="easeOutCubic">EaseOutCubic</option>
								<option value="easeInOutCubic">EaseInOutCubic</option>
								<option value="easeInQuart">EaseInQuart</option>
								<option value="easeOutQuart">EaseOutQuart</option>
								<option value="easeInOutQuart">EaseInOutQuart</option>
								<option value="easeInQuint">EaseInQuint</option>
								<option value="easeOutQuint">EaseOutQuint</option>
								<option value="easeInOutQuint">EaseInOutQuint</option>
								<option value="easeInSine">EaseInSine</option>
								<option value="easeOutSine">EaseOutSine</option>
								<option value="easeInOutSine">EaseInOutSine</option>
								<option value="easeInExpo">EaseInExpo</option>
								<option value="easeOutExpo">EaseOutExpo</option>
								<option value="easeInOutExpo">EaseInOutExpo</option>
								<option value="easeInCirc">EaseInCirc</option>
								<option value="easeOutCirc">EaseOutCirc</option>
								<option value="easeInOutCirc">EaseInOutCirc</option>
								<option value="easeInElastic">EaseInElastic</option>
								<option value="easeOutElastic">EaseOutElastic</option>
								<option value="easeInOutElastic">EaseInOutElastic</option>
								<option value="easeInBack">EaseInBack</option>
								<option value="easeOutBack">EaseOutBack</option>
								<option value="easeInOutBack">EaseInOutBack</option>
								<option value="easeInBounce">EaseInBounce</option>
								<option value="easeOutBounce">EaseOutBounce</option>
								<option value="easeInOutBounce">EaseInOutBounce</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="fadeinoutlabel" for="fadeinout" class="hastip" title="<?php echo JText::_('FADEINOUT DESC');?>"><?php echo JText::_('FADEINOUT');?></label></td>
						<td><select id="fadeinout" name="fadeinout" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="true"><?php echo JText::_('YES');?></option>
								<option value="false"><?php echo JText::_('NO');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="openonhoverlabel" for="openonhover" class="hastip" title="<?php echo JText::_('OPENONHOVER DESC');?>"><?php echo JText::_('OPENONHOVER');?></label></td>
						<td><select id="openonhover" name="openonhover">
								<option value="yes"><?php echo JText::_('YES');?></option>
								<option value="no"><?php echo JText::_('NO');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td><label id="dimmingopacitylabel" for="dimmingopacity" class="hastip" title="<?php echo JText::_('DIMMINGOPACITY DESC');?>"><?php echo JText::_('DIMMINGOPACITY');?></label></td>
						<td><input type="text" id="dimmingopacity" value="" /></td>
					</tr>
					<tr>
						<td><label id="captiontextlabel" for="captiontext" class="hastip" title="<?php echo JText::_('CAPTIONTEXT DESC');?>"><?php echo JText::_('CAPTIONTEXT');?></label></td>
						<td><input type="text" id="captiontext" value="" /></td>
					</tr>
				</table>
			</fieldset>
		</div>
		<div id="thumbnail_panel" class="panel">
			<fieldset>
				<legend><?php echo JText::_('GENERAL THUMBNAIL');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td nowrap="nowrap"><label id="srclabel" for="src" class="hastip" title="<?php echo JText::_('THUMBURL DESC');?>"><?php echo JText::_('THUMBURL');?></label></td>
						<td><input id="src" type="text" value="" size="150" /></td>
                        <td id="srcbrowsercontainer">&nbsp;</td>
					</tr>
					<tr>
						<td nowrap="nowrap"><label id="imgtitlelabel" for="imgtitle" class="hastip" title="<?php echo JText::_('THUMBTITLE DESC');?>"><?php echo JText::_('THUMBTITLE');?></label></td>
						<td colspan="3"><input id="imgtitle" name="imgtitle" type="text" value="" /></td>
					</tr>
					<tr>
						<td><label id="altlabel" for="alt" class="hastip" title="<?php echo JText::_('THUMBALT DESC');?>"><?php echo JText::_('THUMBALT');?></label></td>
						<td><input type="text" id="alt" value="" /></td>
					</tr>
					<tr>
						<td class="column1"><label id="imgidlabel" for="imgid" class="hastip" title="<?php echo JText::_('ID DESC');?>"><?php echo JText::_('ID');?></label></td>
						<td><input id="imgid" type="text" value="" /></td>
					</tr>
					<tr>
						<td><label id="imgstylelabel" for="imgstyle" class="hastip" title="<?php echo JText::_('STYLE DESC');?>"><?php echo JText::_('Style');?></label></td>
						<td><input type="text" id="imgstyle" value="" /></td>
					</tr>
					<tr>
						<td><label id="widthlabel" for="width" class="hastip" title="<?php echo JText::_('WIDTH DESC');?>"><?php echo JText::_('WIDTH');?></label></td>
						<td><input type="text" id="width" value="" /></td>
					</tr>
					<tr>
						<td><label id="heightlabel" for="height" class="hastip" title="<?php echo JText::_('HEIGHT DESC');?>"><?php echo JText::_('HEIGHT');?></label></td>
						<td><input type="text" id="height" value="" /></td>
					</tr>
				</table>
			</fieldset>
		</div>
		<div id="caption_panel" class="panel">
			<fieldset>
				<legend><?php echo JText::_('GENERAL');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td class="column1"><label id="captionidlabel" for="captionid" class="hastip" title="<?php echo JText::_('CAPTIONID DESC');?>"><?php echo JText::_('CAPTIONID');?></label></td>
						<td><input id="captionid" type="text" value="" /></td>
					</tr>
					<tr>
						<td><label id="spaceforcaptionlabel" for="spaceforcaption" class="hastip" title="<?php echo JText::_('SPACEFORCAPTION DESC');?>"><?php echo JText::_('SPACEFORCAPTION');?></label></td>
						<td><input type="text" id="spaceforcaption" value="" /></td>
					</tr>
					<tr>
						<td><label id="captionstylelabel" for="captionstyle" class="hastip" title="<?php echo JText::_('STYLE DESC');?>"><?php echo JText::_('STYLE');?></label></td>
						<td><input type="text" id="captionstyle" value="" /></td>
					</tr>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php echo JText::_('CAPTIONHTMLTEXT');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td><textarea id="caption"  rows="21" ></textarea></td>
					</tr>
				</table>
			</fieldset>
			<fieldset>
				<legend><?php echo JText::_('OVERLAY');?></legend>
				<table border="0" cellpadding="0" cellspacing="4">
					<tr>
						<td class="column1"><label id="overlayidlabel" for="overlayid" class="hastip" title="<?php echo JText::_('OVERLAYID DESC');?>"><?php echo JText::_('OVERLAYID');?></label></td>
						<td><input id="overlayid" type="text" value="" /></td>
					</tr>
					<tr>
						<td class="column1"><label id="fadelabel" for="fade" class="hastip" title="<?php echo JText::_('FADE DESC');?>"><?php echo JText::_('FADE');?></label></td>
						<td><select id="fade" name="fade" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="0"><?php echo JText::_('NO');?></option>
								<option value="1"><?php echo JText::_('YES');?></option>
								<option value="2"><?php echo JText::_('NOT IN IE');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="positionlabel" for="position" class="hastip" title="<?php echo JText::_('POSITION DESC');?>"><?php echo JText::_('POSITION');?></label></td>
						<td><select id="position" name="position" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="top left"><?php echo JText::_('TOP, LEFT');?></option>
								<option value="top center"><?php echo JText::_('TOP, CENTER');?></option>
								<option value="top right"><?php echo JText::_('TOP, RIGHT');?></option>
								<option value="center left"><?php echo JText::_('CENTER, LEFT');?></option>
								<option value="center center"><?php echo JText::_('CENTER, CENTER');?></option>
								<option value="center right"><?php echo JText::_('CENTER, RIGHT');?></option>
								<option value="bottom right"><?php echo JText::_('BOTTOM, RIGHT');?></option>
								<option value="bottom center"><?php echo JText::_('BOTTOM, CENTER');?></option>
								<option value="bottom left"><?php echo JText::_('BOTTOM, LEFT');?></option>
								<option value="right"><?php echo JText::_('RIGHT');?></option>
								<option value="left"><?php echo JText::_('LEFT');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="column1"><label id="hideonmouseoutlabel" for="hideonmouseout" class="hastip" title="<?php echo JText::_('HIDEONMOUSEOUT DESC');?>"><?php echo JText::_('HIDEONMOUSEOUT');?></label></td>
						<td><select id="hideonmouseout" name="hideonmouseout" >
								<option value=""><?php echo JText::_('NOT SET');?></option>
								<option value="true"><?php echo JText::_('YES');?></option>
								<option value="false"><?php echo JText::_('NO');?></option>
							</select>
						</td>
					</tr>
					<tr>
						<td><label id="opacitylabel" for="opacity" class="hastip" title="<?php echo JText::_('OPACITY DESC');?>"><?php echo JText::_('OPACITY');?></label></td>
						<td><input type="text" id="opacity" value="" /></td>
					</tr>
				</table>
			</fieldset>
		</div>
		</div>
		<div class="mceActionPanel">
			<div style="float: left">
				<input type="button" id="insert" name="insert" value="<?php echo JText::_('Insert');?>" onClick="HsExpanderDialog.insert();" />
			</div>
			<div style="float: right">
				<input type="button" class="button" id="help" name="help" value="<?php echo JText::_('Help');?>" onClick="HsExpander.openHelp();" />
				<input type="button" id="cancel" name="cancel" value="<?php echo JText::_('Cancel');?>" onClick="tinyMCEPopup.close();" />
			</div>
		</div>
	<input type="hidden" id="origcaptionid" value="" />
	<input type="hidden" id="onclick" value="" />
	<input type="hidden" id="onmouseover" value="" />
    </form>
</body>
</html>