Your IP : 216.73.216.219


Current Path : /home/chauffn/vuzelia/2023/administrator/components/com_maximenuck/interfaces/
Upload File :
Current File : /home/chauffn/vuzelia/2023/administrator/components/com_maximenuck/interfaces/edit_image.php

<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<div class="ckinterface ckinterface-labels-big">
	<input id="type" name="type" class=""  value="image" disabled type="hidden" />
	<div class="ck-title"><?php echo JText::_('CK_IMAGE'); ?></div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_PREVIEW'); ?>
		</span>
		<span class="ckoption-field">
			<img id="ckimagepreview" src="" style="max-height: 150px;margin: 10px 0;"/>
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_IMAGE'); ?>
		</span>
		<span class="ckoption-field">
			<input id="imageurl" name="imageurl" class="inputbox"  value="" type="text" onchange="ckUpdateImagePreview();"/>
			<a class="ckbutton" href="javascript:void(0)" onclick="CKBox.open({handler: 'iframe', id: 'ckimagemanager', url: MAXIMENUCK.BASE_URL + '&view=browse&type=image&func=ckSelectFile&field=imageurl&tmpl=component'})" ><?php echo JText::_('CK_SELECT'); ?></a>
			<a class="ckbutton" href="javascript:void(0)" onclick="$ck('#imageurl').attr('value', '');ckUpdateImagePreview();"><?php echo JText::_('CK_CLEAN'); ?></a>
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_IMAGE_WIDTH'); ?>
		</span>
		<span class="ckoption-field">
			<input id="imagewidth" name="imagewidth" class="inputbox"  value="" type="text" />
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_CSS_CLASS'); ?>
		</span>
		<span class="ckoption-field">
			<input id="linkcssclass" name="linkcssclass" class="inputbox"  value="" type="text" />
		</span>
		<div class="clr"></div>
	</div>
	<div class="ck-title"><?php echo JText::_('CK_LINK'); ?></div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_LINK'); ?>
		</span>
		<span class="ckoption-field">
			<input id="anchor" name="anchor" class="inputbox"  value="" type="text" />
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_REL_ATTRIBUTE'); ?>
		</span>
		<span class="ckoption-field">
			<input id="relattr" name="relattr" class="inputbox"  value="" type="text" />
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_CSS_CLASS'); ?>
		</span>
		<span class="ckoption-field">
			<input id="linkcssclass" name="linkcssclass" class="inputbox"  value="" type="text" />
		</span>
		<div class="clr"></div>
	</div>
	<div class="ck-title"><?php echo JText::_('CK_RESPONSIVE_SETTINGS'); ?></div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_MOBILE_ENABLE'); ?>
		</span>
		<span class="ckoption-field">
			<select class="inputbox" type="list" value="1" name="mobile" id="mobile" style="width:auto;">
				<option value="1"><?php echo JText::_('JYES'); ?></option>
				<option value="0"><?php echo JText::_('JNO'); ?></option>
			</select>
		</span>
		<div class="clr"></div>
	</div>
	<div>
		<span class="ckoption-label">
			<?php echo JText::_('CK_DESKTOP_ENABLE'); ?>
		</span>
		<span class="ckoption-field">
			<select class="inputbox" type="list" value="1" name="desktop" id="desktop" style="width:auto;">
				<option value="1"><?php echo JText::_('JYES'); ?></option>
				<option value="0"><?php echo JText::_('JNO'); ?></option>
			</select>
		</span>
		<div class="clr"></div>
	</div>
</div>
<script>
function ckLoadEditionItem() {
	ckUpdateImagePreview();
}

function ckUpdateImagePreview(selector = '#ckimagepreview') {
	if ($ck('#imageurl').val()) {
		var imageurl = '<?php echo JUri::root(true) ?>' +  '/' + $ck('#imageurl').val();
	} else {
		var imageurl = '';
	}
	$ck(selector).attr('src', imageurl);
}

</script>