<?php
/**
 * Adodis Blog package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2012 - 2013 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/

defined('_JEXEC') or die;

// Load the tooltip behavior.
JHtml::_('behavior.tooltip');

// Get the form fieldsets.
$fieldsets 	= $this->form->getFieldsets();
$date 		= & JFactory::getDate();

?>
<form action="<?php echo JRoute::_('index.php?option=com_adodisblog&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="settings-form" class="form-validate">
	<div class="width-55 fltlft">
		<?php
		echo  JHtml::_('sliders.start', 'adodisblog-generalsettings-slider');
			echo JHtml::_('sliders.panel',JText::_('COM_ADODISBLOG_BLOG_SETTINGS'), 'adodisblog-generalsettings');
		?>
			<fieldset class="adminform">
				<ul class="adminformlist">
					<li>
						<?php echo $this->form->getLabel('title_page'); ?>
						<?php echo $this->form->getInput('title_page'); ?>
					</li>
					<li>
						<?php echo $this->form->getLabel('show_title'); ?>
						<?php echo $this->form->getInput('show_title'); ?>
					</li>
				</ul>
				<div class="clr"></div>

				<?php echo $this->form->getLabel('description_page'); ?>
				<div class="clr"></div>
				<?php echo $this->form->getInput('description_page'); ?>

				<div class="clr"></div>
				<ul class="adminformlist">
					<li>
						<?php echo $this->form->getLabel('show_description'); ?>
						<?php echo $this->form->getInput('show_description'); ?>
					</li>
				</ul>
				<div class="clr"></div>
			</fieldset>
		<?php
		echo  JHtml::_('sliders.end');
		?>

		<?php
		echo  JHtml::_('sliders.start', 'adodisblog-mail_admin_template_settings-slider');
			echo JHtml::_('sliders.panel',JText::_('COM_ADODISBLOG_BLOG_MAIL_ADMIN_SETTINGS'), 'adodisblog-mail_admin_template_settings');
		?>
			<fieldset class="adminform">

				<ul class="adminformlist">
					<li>
						<?php echo $this->form->getLabel('mail_admin_sub'); ?>
						<?php echo $this->form->getInput('mail_admin_sub'); ?>
					</li>
					<li>
						<?php echo $this->form->getLabel('mail_admin_temp'); ?>
						<div class="clr"></div>
						<?php echo $this->form->getInput('mail_admin_temp'); ?>
					</li>
				</ul>
				<div class="clr"></div>
			</fieldset>
		<?php
		echo  JHtml::_('sliders.end');
		?>

	</div>

	<div class="width-44 fltrt">
		<?php
			echo  JHtml::_('sliders.start', 'adodisblog-ordersettings-slider');
			echo JHtml::_('sliders.panel',JText::_('COM_ADODISBLOG_BLOG_ORDERSETTINGS'), 'adodisblog-ordersettings');
		?>
			<fieldset class="adminform">
				<ul class="adminformlist">
					<li>
						<?php
							echo $this->form->getLabel('orderby');
							echo $this->form->getInput('orderby');
						?>
					</li>

					<li>
						<?php echo $this->form->getLabel('sortby'); ?>
						<?php echo $this->form->getInput('sortby'); ?>
					</li>

				</ul>
			</fieldset>
		<?php
		echo  JHtml::_('sliders.end');
		?>
	</div>

	<div class="width-44 fltrt">
		<?php
			echo  JHtml::_('sliders.start', 'adodisblog-backgroundsettings-slider');
			echo JHtml::_('sliders.panel',JText::_('COM_ADODISBLOG_BLOG_BACKGROUND_SETTINGS'), 'adodisblog-backgroundsettings');
		?>
			<fieldset class="adminform">
				<ul class="adminformlist">
					<li>
						<?php echo $this->form->getLabel('bg_color'); ?>
						<?php echo $this->form->getInput('bg_color'); ?>
					</li>
				</ul>
				<br style="clear:both;"/>
				<div style="background-color:<?php echo $this->item->bg_color;?>" id="adodis-blog_sample_layout">
					<h2>
						<?php echo JText::_('COM_ADODISBLOG_BLOG_SAMPLELAYOUT_BLOG_TITLE');?>
					</h2>
					<div class="userdetails_and_date">
						<?php echo JText::_('COM_ADODISBLOG_BLOG_SAMPLELAYOUT_BLOG_POSTED_BY')." ";?>
						<b>
							<?php echo JText::_('COM_ADODISBLOG_BLOG_SAMPLELAYOUT_BLOG_POSTED_NAME')." ";?>
						</b>
						<?php echo JText::_('COM_ADODISBLOG_BLOG_SAMPLELAYOUT_BLOG_DATE_ON')." ";?>
						<b>
							<?php echo date("l, F j, Y, g:i A", strtotime($date->toMySQL()) ); ?>
						</b>
					</div>
					<div class="blog_content">
						Adodis Blog is the component for the Joomla users. It gives the in depth flexibility for using Blogs in Joomla based website. Come and check out our component and we assure your satisfaction level will be high.
					</div>
					<div class="blog_comment_count">Comment (10)</div>
				</div>
			</fieldset>
		<?php
			echo  JHtml::_('sliders.end');
		?>

		<?php
		echo  JHtml::_('sliders.start', 'adodisblog-mail_user_template_settings-slider');
			echo JHtml::_('sliders.panel',JText::_('COM_ADODISBLOG_BLOG_MAIL_USER_SETTINGS'), 'adodisblog-mail_user_template_settings');
		?>
			<fieldset class="adminform">

				<ul class="adminformlist">
					<li>
						<?php echo $this->form->getLabel('mail_user_sub'); ?>
						<?php echo $this->form->getInput('mail_user_sub'); ?>
					</li>
					<li>
						<?php echo $this->form->getLabel('mail_user_temp'); ?>
						<div class="clr"></div>
						<?php echo $this->form->getInput('mail_user_temp'); ?>
					</li>
				</ul>
				<div class="clr"></div>
			</fieldset>
		<?php
		echo  JHtml::_('sliders.end');
		?>
	</div>

	<input type="hidden" name="task" value="" />
	<?php echo JHtml::_('form.token'); ?>
</form>

<div class="clr"></div>
<p class="copyright" align="center">
	<?php /*require_once( JPATH_COMPONENT . DS . 'copyright' . DS . 'copyright.php' );*/ ?>
</p>