<?php

/**
 * @version        1.24.5
 * @package        Joomla
 * @subpackage     Edocman
 * @author         Dang Thuc Dam
 * @copyright      Copyright (C) 2011 - 2025 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Editor\Editor;
use Joomla\CMS\Toolbar\ToolbarHelper;

jimport('joomla.filesystem.file') ;


if (version_compare(JVERSION, '4.0.0-dev', 'lt'))
{
	HTMLHelper::_('behavior.tooltip');
}
else
{
	HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['placement' => 'left']);
}
// Set toolbar items for the page
ToolbarHelper::title(   Text::_( 'EDOCMAN_CONFIG' ),'cog');
ToolbarHelper::save();
ToolbarHelper::apply();	
ToolbarHelper::cancel();

if (EdocmanHelper::isJoomla4())
{
	$tabApiPrefix = 'uitab.';

	Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('showon');
}
else
{
	$tabApiPrefix = 'bootstrap.';

	HTMLHelper::_('script', 'jui/cms.js', array('version' => 'auto', 'relative' => true));
}

$bootstrapHelper	= new EDocmanHelperBootstrap(EDocmanHelperHtml::getAdminBootstrapHelper());
$rowFluidClass		= $bootstrapHelper->getClassMapping('row-fluid');
$span12Class		= $bootstrapHelper->getClassMapping('span12');
$span6Class			= $bootstrapHelper->getClassMapping('span6');
$controlGroupClass	= $bootstrapHelper->getClassMapping('control-group');
$controlLabelClass	= $bootstrapHelper->getClassMapping('control-label');
$controlsClass		= $bootstrapHelper->getClassMapping('controls');
?>
<style>
	tcontrolGroupble.alignleft td {
		text-align: left;
	}
</style>
<form action="index.php?option=com_edocman&view=configuration" method="post" name="adminForm" id="adminForm">
<div class="<?php echo $rowFluidClass;?>" id="edocmanConfiguration"> 
	<div class="<?php echo $span12Class;?>">
		<?php echo HTMLHelper::_($tabApiPrefix.'startTabSet', 'configTab', array('active' => 'general-page')); ?>
			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'general-page', Text::_('EDOCMAN_GENERAL')); ?>
				<fieldset class="form-horizontal options-form">
					<legend><?php echo Text::_('EDOCMAN_MAIN_CONFIGURATION'); ?></legend>
					
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('documents_path', Text::_('EDOCMAN_DOCUMENT_PATH'), Text::_('EDOCMAN_DOCUMENT_PATH_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<div class="btn-group">
									<div class="input-group input-append">
										<input type="text" name="documents_path" class="input-medium form-control ilarge" value="<?php echo $this->config->documents_path; ?>" size="50" />
										<button class="button btn btn-secondary" onclick="javascript:resetPath(); return false;" title="<?php echo Text::_('EDOCMAN_RESET');?>" /><?php echo Text::_('EDOCMAN_RESET');?></button>
									</div>
								</div>
								<?php
								if (!is_writable($this->config->documents_path)) {
									?>
									<span style="color:red; font-weight: bold;"><?php echo Text::_('EDOCMAN_DOCUMENT_PATH_NOT_WRITABLE') ?></span>
								<?php
								}
								?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">


								<?php echo EdocmanHelperHtml::getFieldLabel('twitter_bootstrap_version', Text::_('EDOCMAN_TWITTER_BOOTSTRAP_VERSION'), Text::_('EDOCMAN_TWITTER_BOOTSTRAP_VERSION_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['twitter_bootstrap_version'];?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('load_jquery', Text::_('EDOCMAN_LOAD_JQUERY'), Text::_('EDOCMAN_LOAD_JQUERY_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['load_jquery'];?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('load_bootstrap_css', Text::_('EDOCMAN_LOAD_BOOTSTRAP_CSS'), Text::_('EDOCMAN_LOAD_BOOTSTRAP_CSS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['load_bootstrap_css'];?>
							</div>
						</div>
						<!--
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('load_twitter_bootstrap', Text::_('EDOCMAN_LOAD_TWITTER_BOOTSTRAP'), Text::_('EDOCMAN_LOAD_TWITTER_BOOTSTRAP_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['load_twitter_bootstrap'];?>
							</div>
						</div>
						-->
						
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('show_update_available_message_in_dashboard', Text::_('EDOCMAN_SHOW_UPDATE_AVAILABLE'), Text::_('EDOCMAN_SHOW_UPDATE_AVAILABLE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['show_update_available_message_in_dashboard'];?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('access_level_inheritance', Text::_('EDOCMAN_ACCESS_LEVEL_INHERITANCE'), Text::_('EDOCMAN_ACCESS_LEVEL_INHERITANCE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['access_level_inheritance'];?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('activate_multilingual_feature', Text::_('EDOCMAN_ACTIVATE_MULTILINGUAL_FEATURE'), Text::_('EDOCMAN_ACTIVATE_MULTILINGUAL_FEATURE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['activate_multilingual_feature']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('user_group_ids', Text::_('EDOCMAN_ACTIVATE_OWNER_GROUPS'), Text::_('EDOCMAN_ACTIVATE_OWNER_GROUPS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['user_group_ids']; ?>
							</div>
						</div>
					
				</fieldset>
				<fieldset class="form-horizontal options-form">
					<legend><?php echo Text::_('EDOCMAN_CATEGORIES_CONFIGURATION'); ?></legend>
					<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('activate_herachical_folder_structure', Text::_('EDOCMAN_ACTIVATE_HIERARCHICAL_FOLDER_STRUCTURE1'), Text::_('EDOCMAN_ACTIVATE_HIERARCHICAL_FOLDER_STRUCTURE_EXPLAIN1')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['activate_herachical_folder_structure']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('remove_category_folder', Text::_('EDOCMAN_REMOVE_CATEGORY_FOLDER'), Text::_('EDOCMAN_REMOVE_CATEGORY_FOLDER_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['remove_category_folder']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('force_lower_case', Text::_('EDOCMAN_FORCE_LOWER_CASE'), Text::_('EDOCMAN_FORCE_LOWER_CASE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['force_lower_case']; ?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('owner_inheritance_categories', Text::_('EDOCMAN_INHERITANCE_PARENT_CATEGORY_OWNERS'), Text::_('EDOCMAN_INHERITANCE_PARENT_CATEGORY_OWNERS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['owner_inheritance_categories']; ?>
							</div>
						</div>
				</fieldset>
				<fieldset class="form-horizontal options-form">
					<legend><?php echo Text::_('EDOCMAN_UPLOAD_CONFIGURATION'); ?></legend>
					
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">


								<?php echo EdocmanHelperHtml::getFieldLabel('file_upload_method', Text::_('EDOCMAN_FILE_UPLOAD_METHOD'), Text::_('EDOCMAN_FILE_UPLOAD_METHOD_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['file_upload_method']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								

								<?php echo EdocmanHelperHtml::getFieldLabel('allowed_file_types', Text::_('EDOCMAN_ALLOWED_FILE_TYPES'), Text::_('EDOCMAN_ALLOWED_FILE_TYPES_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="allowed_file_types" class="inputbox form-control input-large ilarge" value="<?php echo $this->config->allowed_file_types; ?>" size="50" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('delete_file_when_document_deleted', Text::_('EDOCMAN_DELETE_FILE_WHEN_DELETE_DOCUMENT'), Text::_('EDOCMAN_DELETE_FILE_WHEN_DELETE_DOCUMENT_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['delete_file_when_document_deleted']; ?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('delete_file_when_uppload_new', Text::_('EDOCMAN_DELETE_EXISTING_FILE_WHEN_UPLOAD_NEW_ONE'), Text::_('EDOCMAN_DELETE_EXISTING_FILE_WHEN_UPLOAD_NEW_ONE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['delete_file_when_uppload_new']; ?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								

								<?php echo EdocmanHelperHtml::getFieldLabel('max_filesize_type', Text::_('EDOCMAN_MAX_UPLOAD_FILE_SIZE'), Text::_('EDOCMAN_MAX_UPLOAD_FILE_SIZE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>" style="display:flex;gap:5px;">
								<input type="text" name="max_file_size" class="input-mini form-control imini" value="<?php echo $this->config->max_file_size; ?>" size="5" />
								<?php echo $this->lists['max_filesize_type'] ; ?>&nbsp;&nbsp;&nbsp;<?php echo Text::_('EDOCMAN_DEFAULT_INI_SETTING'); ?>: <strong><?php echo ini_get('upload_max_filesize'); ?></strong>
							</div>
						
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								

								<?php echo EdocmanHelperHtml::getFieldLabel('require_admin_approve', Text::_('EDOCMAN_REQUIRE_APPROVE_DOCUMENT'), Text::_('EDOCMAN_REQUIRE_APPROVE_DOCUMENT_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['require_admin_approve']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo EdocmanHelperHtml::getFieldLabel('owner_inheritance', Text::_('EDOCMAN_INHERITANCE_CATEGORY_OWNERS'), Text::_('EDOCMAN_INHERITANCE_CATEGORY_OWNERS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['owner_inheritance']; ?>
							</div>
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('owner_assigned', Text::_('EDOCMAN_AUTO_ASSIGN_AS_OWNER'), Text::_('EDOCMAN_AUTO_ASSIGN_AS_OWNER_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['owner_assigned']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">


								<?php echo EdocmanHelperHtml::getFieldLabel('move_document_when_changing_category', Text::_('EDOCMAN_CHANGE_DOCUMENT_PATH_WHEN_CHANGIN_MAIN_CATEGORY'), Text::_('EDOCMAN_CHANGE_DOCUMENT_PATH_WHEN_CHANGIN_MAIN_CATEGORY_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['move_document_when_changing_category']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('overwrite_existing_file', Text::_('EDOCMAN_OVERWRITE_EXISTING_FILE'), Text::_('EDOCMAN_OVERWRITE_EXISTING_FILE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['overwrite_existing_file']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('keep_previous_versions', Text::_('EDOCMAN_KEEP_PREVIOUS_VERSIONS'), Text::_('EDOCMAN_KEEP_PREVIOUS_VERSIONS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['keep_previous_versions']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('position_of_unique_number', Text::_('EDOCMAN_POSITION_OF_UNIQUE_NUMBER'), Text::_('EDOCMAN_POSITION_OF_UNIQUE_NUMBER_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['position_of_unique_number']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('show_uploader_name_in_document_mamangement', Text::_('EDOCMAN_SHOW_UPLOADER_NAME'), Text::_('EDOCMAN_SHOW_UPLOADER_NAME_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['show_uploader_name_in_document_mamangement']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('increase_document_version', Text::_('EDOCMAN_AUTO_INCREASE_DOCUMENT_VERSION'), Text::_('EDOCMAN_AUTO_INCREASE_DOCUMENT_VERSION_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['increase_document_version']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">


								<?php echo EdocmanHelperHtml::getFieldLabel('redirect_after_uploading', Text::_('EDOCMAN_REDIRECT_AFTER_UPLOADING'), Text::_('EDOCMAN_REDIRECT_AFTER_UPLOADING_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['redirect_after_uploading']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('make_filename_safely', Text::_('EDOCMAN_MAKE_FILENAME_SAFELY'), Text::_('EDOCMAN_MAKE_FILENAME_SAFELY_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['make_filename_safely']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('human_title', Text::_('EDOCMAN_HUMAN_TITLE'), Text::_('EDOCMAN_HUMAN_TITLE_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['human_title']; ?>
							</div>
							
						</div>
					
				</fieldset>
				<div class="<?php echo $rowFluidClass; ?>">
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_DOWNLOAD_CONFIGURATION'); ?></legend>
							
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('download_type', Text::_('EDOCMAN_DOWNLOAD_TYPE'), Text::_('EDOCMAN_DOWNLOAD_TYPE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['download_type'] ;
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('download_log', Text::_('EDOCMAN_LOG_DOWNLOADS'), Text::_('EDOCMAN_LOG_DOWNLOADS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['download_log']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('reset_downloadlog', Text::_('EDOCMAN_RESET_DOWNLOAD_LOGS_AFTER_UPDATING'), Text::_('EDOCMAN_RESET_DOWNLOAD_LOGS_AFTER_UPDATING_EXPLAIN')); ?>
									</div>
									
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['reset_downloadlog']; ?>
									</div>
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('collect_downloader_information', Text::_('EDOCMAN_COLLECT_DOWNLOADER_INFORMATION'), Text::_('EDOCMAN_COLLECT_DOWNLOADER_INFORMATION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['collect_downloader_information'] ;
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('onetime_collect', Text::_('EDOCMAN_ONETIME_COLLECTION'), Text::_('EDOCMAN_ONETIME_COLLECTION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['onetime_collect'] ;
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('external_download_link', Text::_('EDOCMAN_EXTERNAL_DOWNLOAD_LINK'), Text::_('EDOCMAN_EXTERNAL_DOWNLOAD_LINK_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['external_download_link'] ;
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('login_to_download', Text::_('EDOCMAN_LOGIN_TO_DOWNLOAD'), Text::_('EDOCMAN_EXTERNAL_DOWNLOAD_LINK_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['login_to_download']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('edocman_login', Text::_('EDOCMAN_LOGIN_OPTION'), Text::_('EDOCMAN_LOGIN_OPTION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['edocman_login']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('enable_massdownload', Text::_('EDOCMAN_ENABLE_MASS_DOWNLOAD'), Text::_('EDOCMAN_ENABLE_MASS_DOWNLOAD_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['enable_massdownload']; ?>
									</div>
									
								</div>
							
						</fieldset>
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_OTHER_CONFIGURATION'); ?></legend>
							
								<?php
								$comments = JPATH_ROOT.'/components/com_jcomments/jcomments.php';
								if (file_exists($comments))
								{
									?>
									<div class="<?php echo $controlGroupClass; ?>">
										<div class="<?php echo $controlLabelClass?>">
											<?php echo Text::_('EDOCMAN_JCOMMENT_INTEGRATION'); ?>
										</div>
										<div class="<?php echo $controlsClass;?>">
											<?php echo $this->lists['jcomment_integration']; ?>
										</div>
										
									</div>
								<?php
								}
								?>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('use_default_license', Text::_('EDOCMAN_USING_DEFAULT_LICENSE'), Text::_('EDOCMAN_USING_DEFAULT_LICENSE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['use_default_license']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('accept_license', Text::_('EDOCMAN_ACCEPT_LICENSE_BEFORE_DOWNLOAD'), Text::_('EDOCMAN_ACCEPT_LICENSE_BEFORE_DOWNLOAD_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['accept_license']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('accept_license_one_time', Text::_('EDOCMAN_ACCEPT_LICENSE_ONE_TIME_PER_SESSION'), Text::_('EDOCMAN_ACCEPT_LICENSE_ONE_TIME_PER_SESSION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['accept_license_one_time']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('lock_function', Text::_('EDOCMAN_TURNON_LOCK_FEATURE'), Text::_('EDOCMAN_TURNON_LOCK_FEATURE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['lock_function']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('turn_on_privacy', Text::_('EDOCMAN_TURN_ON_PRIVACY'), Text::_('EDOCMAN_TURN_ON_PRIVACY_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['turn_on_privacy']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
									
										<?php echo EdocmanHelperHtml::getFieldLabel('profile_integration', Text::_('EDOCMAN_LINK_AUTHOR_PROFILE'), Text::_('EDOCMAN_LINK_AUTHOR_PROFILE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['profile_integration']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('enable_rating', Text::_('EDOCMAN_ENABLE_RATING'), Text::_('EDOCMAN_ENABLE_RATING_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['enable_rating']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('csv_separator', Text::_('EDOCMAN_CSV_SEPARATOR'), Text::_('EDOCMAN_CSV_SEPARATOR_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="csv_separator" class="input-mini imini form-control" value="<?php echo (isset($this->config->csv_separator)) ? $this->config->csv_separator : ','; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('change_archieve', Text::_('EDOCMAN_CHANGE_ARCHIVE'), Text::_('EDOCMAN_CHANGE_ARCHIVE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['change_archieve']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('hide_search_engines', Text::_('EDOCMAN_HIDE_SEARCH_ENGINES'), Text::_('EDOCMAN_HIDE_SEARCH_ENGINES_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['hide_search_engines']; ?>
									</div>
									
								</div>
							
						</fieldset>
					</div>
					<div class="<?php echo $span6Class?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_VIEW_DOCUMENT_CONFIGURATION'); ?></legend>
							
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('show_view_button', Text::_('EDOCMAN_SHOW_VIEW_BUTTON'), Text::_('EDOCMAN_SHOW_VIEW_BUTTON_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_view_button']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('use_googleviewer', Text::_('EDOCMAN_USE_GOOGLE_VIEWER'), Text::_('EDOCMAN_USE_GOOGLE_VIEWER_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['use_googleviewer']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('showing_document_googleviewer', Text::_('EDOCMAN_USE_GOOGLE_VIEW_WITH_ANY_PERMISSIONS'), Text::_('EDOCMAN_USE_GOOGLE_VIEW_WITH_ANY_PERMISSIONS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['showing_document_googleviewer']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('exts_for_view', Text::_('EDOCMAN_FILE_EXTENSIONS_FOR_VIEWING'), Text::_('EDOCMAN_FILE_EXTENSIONS_FOR_VIEWING_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="exts_for_view" class="inputbox form-control input-large ilarge" value="<?php echo $this->config->exts_for_view; ?>" size="50" />
									</div>
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('view_option', Text::_('EDOCMAN_VIEW_OPTION'), Text::_('EDOCMAN_VIEW_OPTION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['view_option'];?>
									</div>
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('pdf_view_type', Text::_('EDOCMAN_FILE_VIEWING_METHOD'), Text::_('EDOCMAN_FILE_VIEWING_METHOD_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['pdf_view_type'];?>
									</div>
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('pdf_view_option', Text::_('EDOCMAN_PDF_VIEW_OPTION'), Text::_('EDOCMAN_PDF_VIEW_OPTION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['pdf_view_option'];?>
									</div>
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass;?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('view_url', Text::_('EDOCMAN_ENABLE_DOCUMENT_VIEW_URL'), Text::_('EDOCMAN_ENABLE_DOCUMENT_VIEW_URL_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['view_url']; ?>
									</div>
									
								</div>
							
						</fieldset>
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_SEARCH_CONFIGURATION'); ?></legend>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">								
										<?php echo EdocmanHelperHtml::getFieldLabel('search_with_sub_cats', Text::_('EDOCMAN_SEARCH_WITH_ALL_SUB_CATEGORIES'), Text::_('EDOCMAN_SEARCH_WITH_ALL_SUB_CATEGORIES_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['search_with_sub_cats']; ?>
									</div>							
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">								
										<?php echo EdocmanHelperHtml::getFieldLabel('save_what_user_search', Text::_('EDOCMAN_SAVE_SEARCH_TERMS'), Text::_('EDOCMAN_SAVE_SEARCH_TERMS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['save_what_user_search']; ?>
									</div>							
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('exclude_categories', Text::_('EDOCMAN_EXCLUDE_CATEGORIES'), Text::_('EDOCMAN_EXCLUDE_CATEGORIES_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="exclude_categories" class="inputbox form-control input-large ilarge" value="<?php echo $this->config->exclude_categories; ?>" size="50" />
									</div>
								</div>
							
						</fieldset>

						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_MEDIA_CONFIGURATION'); ?></legend>
							
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORY_THUMBNAIL_WIDTH') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="category_thumb_width" class="input-mini form-control" value="<?php echo $this->config->category_thumb_width; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORY_THUMBNAIL_HEIGHT') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="category_thumb_height" class="input-mini form-control" value="<?php echo $this->config->category_thumb_height; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DOCUMENT_THUMB_WIDTH1') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="document_thumb_width" class="input-mini form-control" value="<?php echo $this->config->document_thumb_width; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DOCUMENT_THUMB_HEIGHT1') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="document_thumb_height" class="input-mini form-control" value="<?php echo $this->config->document_thumb_height; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DATE_FORMAT') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="date_format" class="input-mini form-control" value="<?php echo $this->config->date_format; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('day_for_new', Text::_('EDOCMAN_DAYS_FOR_NEW'), Text::_('EDOCMAN_DAYS_FOR_NEW_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="day_for_new" class="input-mini form-control imini" value="<?php echo $this->config->day_for_new; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('day_for_update', Text::_('EDOCMAN_DAYS_FOR_UPDATE'), Text::_('EDOCMAN_DAYS_FOR_UPDATE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="day_for_update" class="input-mini imini form-control" value="<?php echo $this->config->day_for_update; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('day_for_update', Text::_('EDOCMAN_DOWNLOAD_TO_HOT'), Text::_('EDOCMAN_DOWNLOAD_TO_HOT_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="downloads_to_hot" class="input-mini imini form-control" value="<?php echo $this->config->downloads_to_hot; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_ENABLE_RSS') ; ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['enable_rss']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_PROCESSING_CONTENT_PLUGIN'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['process_plugin']; ?>
									</div>
									
								</div>
							
						</fieldset>
					</div>
				</div>
				
				
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>

			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'message-page', Text::_('EDOCMAN_MESSAGES')); ?>
				<fieldset class="form-horizontal options-form">
					<legend><?php echo Text::_('EDOCMAN_MESSAGES'); ?></legend>
					
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('notification_emails', Text::_('EDOCMAN_CAT_NOTIFICATION_EMAILS'), Text::_('EDOCMAN_CAT_NOTIFICATION_EMAILS_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="notification_emails" class="inputbox form-control ilarge input-large" value="<?php echo $this->config->notification_emails; ?>" size="50" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('download_notification', Text::_('EDOCMAN_DOWNLOAD_NOTIFICATION'), Text::_('EDOCMAN_DOWNLOAD_NOTIFICATION_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['download_notification']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('Download notification email subject'); ?>

								
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="download_email_subject" class="inputbox form-control" value="<?php echo $this->config->download_email_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('download_email_body', Text::_('EDOCMAN_DOWNLOAD_EMAIL_BODY'), Text::_('Available tags : [USERNAME], [DOCUMENT_TITLE], [USER_IP]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="download_email_body" class="input-xxlarge form-control"><?php echo $this->config->download_email_body;?></textarea>
							</div>
							
						</div>

						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_DOWNLOAD_LINK_SUBJECT'); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="download_link_email_subject" class="inputbox form-control" value="<?php echo $this->config->download_link_email_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('download_link_email_body', Text::_('EDOCMAN_DOWNLOAD_LINK_BODY'), Text::_('Available tags : [NAME], [EMAIL], [DOCUMENT_TITLE], [DOWNLOAD_LINK]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="download_link_email_body" class="input-xxlarge form-control"><?php echo $this->config->download_link_email_body;?></textarea>
							</div>
							
						</div>

						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('download_complete_message', Text::_('EDOCMAN_DOWNLOAD_COMPLETE_MESSAGE'), Text::_('Available tags : [DOCUMENT_TITLE], [DOWNLOAD_LINK]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="download_complete_message" class="input-xxlarge form-control"><?php echo $this->config->download_complete_message;?></textarea>
							</div>
							
						</div>

						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('download_complete_message_send_download_link', Text::_('EDOCMAN_DOWNLOAD_COMPLETE_MESSAGE1'), Text::_('Available tags : [DOCUMENT_TITLE]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="download_complete_message_send_download_link" class="input-xxlarge form-control"><?php echo $this->config->download_complete_message_send_download_link;?></textarea>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('upload_notification', Text::_('EDOCMAN_UPLOAD_NOTIFICATION'), Text::_('If set to Yes, administrators will received notification email when someone download free documents')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['upload_notification']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_UPLOAD_EMAIL_SUBJECT'); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="upload_email_subject" class="inputbox form-control" value="<?php echo $this->config->upload_email_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('upload_email_body', Text::_('EDOCMAN_UPLOAD_EMAIL_BODY'), Text::_('Available tags : [USERNAME], [DOCUMENT_TITLE], [USER_IP], [DOCUMENT_LINK]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="upload_email_body" class="input-xxlarge form-control"><?php echo $this->config->upload_email_body;?></textarea>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('document_assigned_notification', Text::_('EDOCMAN_DOCUMENT_ASSIGNED_NOTIFICATION'), Text::_('EDOCMAN_DOCUMENT_ASSIGNED_NOTIFICATION_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php echo $this->lists['document_assigned_notification']; ?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_DOCUMENT_ASSIGNED_SUBJECT'); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="document_assigned_email_subject" class="inputbox form-control" value="<?php echo $this->config->document_assigned_email_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('document_assigned_email_body', Text::_('EDOCMAN_DOCUMENT_ASSIGNED_BODY'), Text::_('Available tags :[NAME], [USERNAME], [OWNER_USERNAME], [OWNER_NAME], [DOCUMENT_TITLE]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="document_assigned_email_body" class="input-xxlarge form-control"><?php echo $this->config->document_assigned_email_body;?></textarea>
							</div>
							
						</div>

						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_EMAIL_SHARE_SUBJECT'); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="document_share_email_subject" class="inputbox form-control" value="<?php echo $this->config->document_share_email_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('document_share_email_content', Text::_('EDOCMAN_EMAIL_SHARE_CONTENT'), Text::_('Available tags :[NAME], [FRIEND_NAME], [DOCUMENT_TITLE], [LINK], [MESSAGE]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="document_share_email_content" class="input-xxlarge form-control"><?php echo $this->config->document_share_email_content;?></textarea>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_APPROVED_NOTIFICATION_EMAIL_SUBJECT'); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<input type="text" name="document_approved_subject" class="inputbox form-control" value="<?php echo $this->config->document_approved_subject; ?>" size="70" />
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('document_approved_body', Text::_('EDOCMAN_APPROVED_NOTIFICATION_EMAIL_BODY'), Text::_('Available tags : [USERNAME], [DOCUMENT_TITLE], [DOCUMENT_LINK]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="document_approved_body" class="input-xxlarge form-control"><?php echo $this->config->document_approved_body;?></textarea>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('header_text', Text::_('EDOCMAN_HEADERTEXT_UPLOAD_FORM'), Text::_('Available tags : [CATEGORY]')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<textarea rows="10" cols="70" name="header_text" class="input-xxlarge form-control"><?php echo $this->config->header_text;?></textarea>
							</div>
							
						</div>
					
				</fieldset>
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>

			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'theme-page', Text::_('EDOCMAN_THEMES')); ?>
				<div class="<?php echo $rowFluidClass; ?>">
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_UPLOAD_DOCUMENT_FORM'); ?></legend>
							
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('EDOCMAN_UPLOAD_DOCUMENT_FORM', Text::_('EDOCMAN_UPLOAD_DOCUMENT_FORM'), Text::_('EDOCMAN_UPLOAD_DOCUMENT_FORM_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['use_simple_upload_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_alias_form', Text::_('EDOCMAN_SHOW_ALIAS'), Text::_('EDOCMAN_SHOW_ALIAS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_alias_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_thumb_form', Text::_('EDOCMAN_SHOW_THUMB'), Text::_('EDOCMAN_SHOW_THUMB_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_thumb_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_published_form', Text::_('EDOCMAN_SHOW_PUBLISHED'), Text::_('EDOCMAN_SHOW_PUBLISHED_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_published_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('show_tag_form', Text::_('EDOCMAN_SHOW_TAG'), Text::_('EDOCMAN_SHOW_TAG_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_tag_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_meta_form', Text::_('EDOCMAN_SHOW_META'), Text::_('EDOCMAN_SHOW_META_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_meta_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_license_form', Text::_('EDOCMAN_SHOW_LICENSE'), Text::_('EDOCMAN_SHOW_LICENSE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_license_form']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_lock_form', Text::_('EDOCMAN_SHOW_LOCK'), Text::_('EDOCMAN_SHOW_LOCK_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_lock_form']; ?>
									</div>
									
								</div>
							
						</fieldset>
					</div>
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_GENERAL'); ?></legend>
							
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('theme_type', Text::_('EDOCMAN_SELECT_THEME_TYPE'), Text::_('EDOCMAN_SELECT_THEME_TYPE_DESC')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['theme_type']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_site_title', Text::_('EDOCMAN_SHOW_JOOMLA_TITLE'), Text::_('EDOCMAN_SHOW_JOOMLA_TITLE_DESC')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_site_title']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_default_category_thumbnail', Text::_('EDOCMAN_SHOW_DEFAULT_CATEGORY_THUMBNAIL'), Text::_('EDOCMAN_SHOW_DEFAULT_CATEGORY_THUMBNAIL_DESC')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_default_category_thumbnail']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_default_document_thumbnail', Text::_('EDOCMAN_SHOW_DEFAULT_DOCUMENT_THUMBNAIL'), Text::_('EDOCMAN_SHOW_DEFAULT_DOCUMENT_THUMBNAIL_DESC')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_default_document_thumbnail']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_icon_beside_title', Text::_('EDOCMAN_SHOW_ICON_BESIDE_TITLE'), Text::_('EDOCMAN_SHOW_ICON_BESIDE_TITLE_DESC')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_icon_beside_title']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('use_download_link_instead_of_detail_link', Text::_('EDOCMAN_USE_DOWNLOAD_LINK_TO_DOCUMENT_TITLE'), Text::_('EDOCMAN_USE_DOWNLOAD_LINK_TO_DOCUMENT_TITLE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['use_download_link_instead_of_detail_link']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										

										<?php echo EdocmanHelperHtml::getFieldLabel('show_no_download_permission_alert', Text::_('EDOCMAN_SHOW_NO_DOWNLOAD_PERMISSION'), Text::_('EDOCMAN_SHOW_NO_DOWNLOAD_PERMISSION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_no_download_permission_alert']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('heading_font_size', Text::_('EDOCMAN_HEADING_SIZE'), Text::_('EDOCMAN_HEADING_SIZE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['heading_font_size']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('category_title_font_size', Text::_('EDOCMAN_CATEGORY_TITLE_SIZE'), Text::_('EDOCMAN_CATEGORY_TITLE_SIZE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['category_title_font_size']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('document_title_font_size', Text::_('EDOCMAN_DOCUMENT_TITLE_SIZE'), Text::_('EDOCMAN_DOCUMENT_TITLE_SIZE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['document_title_font_size']; ?>
									</div>
									
								</div>
								<!--
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('use_combo_tree', Text::_('EDOCMAN_USE_CATEGORIES_TREE'), Text::_('EDOCMAN_USE_CATEGORIES_TREE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['use_combo_tree']; ?>
									</div>
									
								</div>
								-->
							
						</fieldset>
					</div>
				</div>
				<div class="<?php echo $rowFluidClass; ?>">
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_CATEGORY_VIEW'); ?></legend>
							
								

								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_EMPTY_CATEGORIES'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_empty_cat']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_NBER_DOCUMENTS'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_number_documents']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORIES_PER_ROW'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['number_categories_per_row']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORIES_PER_PAGE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="number_categories" class="input-mini form-control" value="<?php echo $this->config->number_categories; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('number_cwords', Text::_('EDOCMAN_NUMBER_CATEGORY_DESCRIPTION_WORDS'), Text::_('EDOCMAN_NUMBER_CATEGORY_DESCRIPTION_WORDS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="number_cwords" class="input-mini form-control" value="<?php echo (int)$this->config->number_cwords; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORIES_SORT_OPTION'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['default_category_sort_option'];
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_CATEGORIES_SORT_DIRECTION'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['default_categoty_sort_direction'];
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_add_sub_categories', Text::_('EDOCMAN_SHOW_ADD_SUBCATEGORY'), Text::_('EDOCMAN_SHOW_ADD_SUBCATEGORY_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['show_add_sub_categories'];
										?>
									</div>
									
								</div>
							
						</fieldset>
					</div>
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_SUB_CATEGORIES'); ?></legend>
							
								
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo EdocmanHelperHtml::getFieldLabel('show_subcategory_text', Text::_('EDOCMAN_SHOW_SUB_CATEGORIES_TEXT'), Text::_('EDOCMAN_SHOW_SUB_CATEGORIES_TEXT_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_subcategory_text']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_SUB_CAT_ICON'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_subcategory_icon']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_SUB_CAT_DESC'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_subcategory_description']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_NBER_SUB_CATS_PER_ROW'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['number_subcategories']; ?>
									</div>
									
								</div>
							
						</fieldset>
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_CATEGORY_TABLE_LAYOUT'); ?></legend>
							
								
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_FILE_TYPE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['category_table_show_filetype']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_FILE_SIZE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['category_table_show_filesize']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_HEADER'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_tablelayoutheader']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_DESCRIPTION'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_tablelayoutdescription']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_THUMBNAIL'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_tablelayoutthumbnail']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_number_downloads', Text::_('EDOCMAN_SHOW_NUMBER_DOWNLOADS'), Text::_('EDOCMAN_SHOW_NUMBER_DOWNLOADS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_number_downloads']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_view_button_table', Text::_('EDOCMAN_SHOW_VIEW_BUTTON'), Text::_('EDOCMAN_SHOW_BUTTON_TABLE_VIEW_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_view_button_table']; ?>
									</div>
									
								</div>
							
						</fieldset>
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_CATEGORY_GALLERY_LAYOUT'); ?></legend>
							
								
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_PICTURE_TYPE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['gallery_picture_type']; ?>
									</div>
									
								</div>
								
							
						</fieldset>
					</div>
				</div>
				<div class="<?php echo $rowFluidClass; ?>">
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_CATEGORY_VIEW'); ?> - <?php echo Text::_('EDOCMAN_DOCUMENTS'); ?></legend>
							
								
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DOCUMENTS_PER_PAGE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="number_documents" class="input-mini form-control" value="<?php echo $this->config->number_documents; ?>" size="10" />
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_no_document_available_text', Text::_('EDOCMAN_SHOW_NO_AVAILABLE_DOCUMENTS_TEXT'), Text::_('EDOCMAN_SHOW_NO_AVAILABLE_DOCUMENTS_TEXT_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_no_document_available_text'];?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('default_style', Text::_('EDOCMAN_DEFAULT_STYLE'), Text::_('EDOCMAN_DEFAULT_STYLE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['default_style'];?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
									
										<?php echo EdocmanHelperHtml::getFieldLabel('number_documents_in_grid', Text::_('EDOCMAN_NCOLUMNS_IN_GRID_VIEW'), Text::_('EDOCMAN_NCOLUMNS_IN_GRID_VIEW_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['number_documents_in_grid'];
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('number_columns', Text::_('EDOCMAN_NCOLUMNS_IN_COLUMN_LAYOUT'), Text::_('EDOCMAN_NCOLUMNS_IN_COLUMN_LAYOUT_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php
										echo $this->lists['number_columns'];
										?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_detail_in_popup', Text::_('EDOCMAN_SHOW_DOCUMENT_DETAILS_IN_POPUP'), Text::_('EDOCMAN_SHOW_DOCUMENT_DETAILS_IN_POPUP_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_detail_in_popup']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('number_words', Text::_('EDOCMAN_NUMBER_DESCRIPTION_WORDS'), Text::_('EDOCMAN_NUMBER_DESCRIPTION_WORDS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="number_words" class="input-mini form-control" value="<?php echo (int)$this->config->number_words; ?>" size="10" />
									</div>
									
								</div>

								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_description_in_columns', Text::_('EDOCMAN_SHOW_SHORT_DESC_IN_COLUMNS_LAYOUT'), Text::_('EDOCMAN_SHOW_SHORT_DESC_IN_COLUMNS_LAYOUT_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_description_in_columns']; ?>
									</div>
									
								</div>

								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_PUBLISH_DATE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_publish_date']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_MODIFIED_DATE'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_modify_date']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_HIDE_DETAILS_BUTTON'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['hide_details_button']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass;?>">

										<?php echo EdocmanHelperHtml::getFieldLabel('hide_download_button', Text::_('EDOCMAN_HIDE_DOWNLOAD_BUTTON'), Text::_('EDOCMAN_HIDE_DOWNLOAD_BUTTON_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['hide_download_button']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_SORT_OPTIONS'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_sort_options']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DEFAULT_SORT_OPTION'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['default_sort_option']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DEFAULT_SORT_DIRECTION'); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['default_sort_direction']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_bookmark_in_list', Text::_('EDOCMAN_SHOW_BOOKMARK_BUTTON_IN_DOCUMENTS_LIST'), Text::_('EDOCMAN_SHOW_BOOKMARK_BUTTON_IN_DOCUMENTS_LIST_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_bookmark_in_list']; ?>
									</div>
									
								</div>
							
						</fieldset>
					</div>
					<div class="<?php echo $span6Class; ?>">
						<fieldset class="form-horizontal options-form">
							<legend><?php echo Text::_('EDOCMAN_DOCUMENT_DETAILS_VIEW'); ?></legend>
							
								
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_DOCUMENT_DETAILS_LAYOUT'); ?>

										
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['document_details_layout']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										<?php echo Text::_('EDOCMAN_SHOW_SHARING_BUTTON'); ?>

										
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['turn_on_sharing']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_category_name', Text::_('EDOCMAN_SHOW_CATEGORY'), Text::_('EDOCMAN_SHOW_CATEGORY_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_category_name']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass;?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_document_version', Text::_('EDOCMAN_SHOW_VERSION'), Text::_('EDOCMAN_SHOW_VERSION_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_document_version']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_social_sharing_buttons', Text::_('EDOCMAN_SHOW_SOCIAL_SHARING_BUTTONS'), Text::_('EDOCMAN_SHOW_SOCIAL_SHARING_BUTTONS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_social_sharing_buttons']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_bookmark_button', Text::_('EDOCMAN_SHOW_BOOKMARK_BUTTON'), Text::_('EDOCMAN_SHOW_BOOKMARK_BUTTON_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_bookmark_button']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_hits', Text::_('EDOCMAN_SHOW_HITS'), Text::_('EDOCMAN_SHOW_HITS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_hits']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_number_downloaded', Text::_('EDOCMAN_NDOWNLOADED'), Text::_('EDOCMAN_NDOWNLOADED_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_number_downloaded']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_filename', Text::_('EDOCMAN_SHOW_FILE_NAME'), Text::_('EDOCMAN_SHOW_FILE_NAME_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_filename']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_filesize', Text::_('EDOCMAN_SHOW_FILE_SIZE'), Text::_('EDOCMAN_SHOW_FILE_SIZE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_filesize']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
									
										<?php echo EdocmanHelperHtml::getFieldLabel('show_filetype', Text::_('EDOCMAN_SHOW_FILE_TYPE'), Text::_('EDOCMAN_SHOW_FILE_TYPE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_filetype']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_creation_user', Text::_('EDOCMAN_SHOW_CREATED_USER'), Text::_('EDOCMAN_SHOW_CREATED_USER_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_creation_user']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_creation_date', Text::_('EDOCMAN_SHOW_CREATED_DATE'), Text::_('EDOCMAN_SHOW_CREATED_DATE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_creation_date']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_modified_date', Text::_('EDOCMAN_SHOW_MODIFIED_DATE'), Text::_('EDOCMAN_SHOW_MODIFIED_DATE_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_modified_date']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('show_related_documents', Text::_('EDOCMAN_SHOW_RELATED_DOCUMENTS'), Text::_('EDOCMAN_SHOW_RELATED_DOCUMENTS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['show_related_documents']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('related_documents_in_same_cat', Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_SAME_CATEGORY'), Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_SAME_CATEGORY_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['related_documents_in_same_cat']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('related_documents_in_author', Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_AUTHOR'), Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_AUTHOR_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['related_documents_in_author']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('related_documents_in_tags', Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_TAGS'), Text::_('EDOCMAN_RELATED_DOCUMENTS_IN_TAGS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<?php echo $this->lists['related_documents_in_tags']; ?>
									</div>
									
								</div>
								<div class="<?php echo $controlGroupClass; ?>">
									<div class="<?php echo $controlLabelClass?>">
										
										<?php echo EdocmanHelperHtml::getFieldLabel('number_related_documents', Text::_('EDOCMAN_NUMBER_RELATED_DOCUMENTS'), Text::_('EDOCMAN_NUMBER_RELATED_DOCUMENTS_EXPLAIN')); ?>
									</div>
									<div class="<?php echo $controlsClass;?>">
										<input type="text" name="number_related_documents" class="input-mini form-control" value="<?php echo ($this->config->number_related_documents > 0) ? $this->config->number_related_documents : 6; ?>" size="10" />
									</div>
									
								</div>
							
						</fieldset>

					</div>
				</div>
				
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>

			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'sef-setting-page', Text::_('EDOCMAN_SEF_SETTINGS')); ?>
				<fieldset class="form-horizontal options-form">
					<legend><?php echo Text::_('EDOCMAN_DOCUMENT_DETAILS_VIEW'); ?></legend>
					
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								
								<?php echo EdocmanHelperHtml::getFieldLabel('insert_document_id', Text::_('EDOCMAN_INSERT_ID'), Text::_('EDOCMAN_INSERT_ID_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php
								echo $this->lists['insert_document_id'] ;
								?>
							</div>
							
						</div>

						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">

								<?php echo EdocmanHelperHtml::getFieldLabel('insert_category_id', Text::_('EDOCMAN_INSERT_CATID'), Text::_('EDOCMAN_INSERT_CATID_EXPLAIN')); ?>
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php
								echo $this->lists['insert_category_id'] ;
								?>
							</div>
							
						</div>
						<div class="<?php echo $controlGroupClass; ?>">
							<div class="<?php echo $controlLabelClass?>">
								<?php echo Text::_('EDOCMAN_INSERT_CATEGORY'); ?>

								
							</div>
							<div class="<?php echo $controlsClass;?>">
								<?php
								echo $this->lists['insert_category'] ;
								?>
							</div>
							
						</div>
					
				</fieldset>
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>
			
			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'custom-css-page', Text::_('EDOCMAN_CUSTOM_CSS')); ?>
				
					<div class="<?php echo $controlGroupClass; ?>">
						<div class="<?php echo $controlsClass;?>">
							<?php
							$customCss = '';
							if (file_exists(JPATH_ROOT.'/components/com_edocman/assets/css/custom.css'))
							{
								$customCss = file_get_contents(JPATH_ROOT.'/components/com_edocman/assets/css/custom.css');
							}

							if (empty($this->editor))
							{
							?>
								<textarea class="form-control" name="custom_css" rows="20"><?php echo $customCss; ?></textarea>
							<?php
							}
							else
							{
								echo $this->editor->display('custom_css', $customCss, '100%', '550', '75', '8', false, null, null, null, ['syntax' => 'css']);
							}
							
							?>
						</div>
					</div>
				
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>
			

			<?php echo HTMLHelper::_($tabApiPrefix.'addTab', 'configTab', 'download-id', Text::_('DOWNLOAD ID')); ?>
				
					<div class="<?php echo $controlGroupClass; ?>">
						<div class="<?php echo $controlLabelClass?>">
							<?php echo Text::_('EDOCMAN_DOWNLOADID'); ?>
						</div>
						<div class="<?php echo $controlsClass;?>">
							<input type="text" name="download_id" class="input-xlarge form-control" value="<?php echo $this->config->download_id; ?>" size="50" />
							<BR />
							Enter your <strong>Download ID</strong> into this config option to be able to use Joomla Update to update your site to latest version of Edocman whenever there is new version available. To register Download ID, please go to: <a href="http://joomdonation.com" target="_blank">www.joomdonation.com</a> and click on menu <a href="http://joomdonation.com/download-ids.html" target="_blank">Download ID</a>. <BR /><strong>Notice:</strong> You should login before you access to this page.
						</div>
					</div>
				
			<?php echo HTMLHelper::_($tabApiPrefix.'endTab') ?>
		<?php echo HTMLHelper::_($tabApiPrefix.'endTabSet'); ?>
	</div>
</div>
<input type="hidden" name="option" value="com_edocman" />
<input type="hidden" name="task" value="" />	
<script type="text/javascript">
	function resetPath() {
		var form = document.adminForm ;
		var path = '<?php echo $this->path; ?>';
		form.documents_path.value = path ;
	}
</script>
</form>
