<?php 
/*------------------------------------------------------------------------
# Copyright (C) 2005-2012 WebxSolution Ltd. All Rights Reserved.
# @license - GPLv2.0
# Author: WebxSolution Ltd
# Websites:  http://www.webxsolution.com
# Terms of Use: An extension that is derived from the JoomlaCK editor will only be allowed under the following conditions: http://joomlackeditor.com/terms-of-use
# ------------------------------------------------------------------------*/ 
defined('JPATH_BASE') or die;

$os = strtoupper(substr(PHP_OS, 0, 3));
$isWin = ($os === 'WIN');

?>
<script src="../jscolor/jscolor.js" type="text/javascript"></script>
<script src="js/combobox.js" type="text/javascript"></script>
<script type="text/javascript">
function submitform(pressbutton){
	if (pressbutton) {
		document.adminForm.task.value=pressbutton;
	}
	if (typeof document.adminForm.onsubmit == "function") {
		document.adminForm.onsubmit();
	}
	document.adminForm.submit();
}

var Joomla = {};

Joomla.submitbutton = function(pressbutton) {
	submitform(pressbutton);
}
</script>

<div class="header">
	<div class="innerHeader">
	<img src="images/headerTitle.png" height="48" width="155" />
	</div>
</div>
<form name="adminForm" id="adminForm" action="index.php" method="post">
<div class="container">	
	<div class="mainBody">
		<h3><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_SETUP');?></h3>
		<fieldset class="adminform">
		<legend><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_EDITING_AREA');?></legend>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td><img align="middle" src="images/font.png"/></td>
			<td width="225"><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_SELECT_FONT_FAMILY');?></td>			
			<td align="right" class="last"><?php echo $this->fontFamilyList;?></td>
		</tr>
		<tr>
			<td><img align="middle" src="images/paint.png"/></td>
			<td width="225"><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_SELECT_FONT_COLOR');?></td>			
			<td align="right" class="last"><input type="text" value="<?php echo $this->defaultFontColor; ?>" id="name" name="ftcolor" class="color box"/></td>
		</tr>
		<tr>
			<td><img align="middle" src="images/paint.png"/></td>
			<td width="225"><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_SELECT_FONT_SIZE');?></td>			
			<td align="right" class="last"><?php echo $this->fontSizeList;?></td>
		</tr>
		<tr>
			<td><img align="middle" src="images/paint.png"/></td>
			<td width="225"><?php echo JText::_('PLG_JCK_INSTALL_WIZARD_SELECT_BACKGROUND_COLOR');?></td>			
			<td  align="right" class="last"><input type="text" value="<?php echo $this->defaultBackgroundColor; ?>"  id="name" name="bgcolor" class="color box"/></td>
		</tr>
		</table>
		</fieldset>
	</div>
</div>
<?php if($isWin) : ?>
<div class="buttons left">
<button onclick="document.adminForm.task.value='';document.adminForm.submit();"><<< <?php echo JText::_('PLG_JCK_INSTALL_WIZARD_PREV');?></button>
</div>
<?php else: ?>
<div class="buttons left">
<button onclick="document.adminForm.task.value='permissions';document.adminForm.submit();"><<< <?php echo JText::_('PLG_JCK_INSTALL_WIZARD_PREV');?></button>
</div>
<?php endif; ?>
<div class="buttons">
  <input type="submit" value="<?php echo JText::_('PLG_JCK_INSTALL_WIZARD_NEXT');?>  >>>" />
</div>
<input type="hidden" name="task" value="folders" />	
 </form>