<?php 
/**
 * SEF module for Joomla!
 *
 * @author      $Author: shumisha $
 * @copyright   Yannick Gaultier - 2007-2010
 * @package     sh404SEF-15
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @version     $Id: default.php 1864 2011-03-11 20:45:24Z silianacom-svn $
 */

// Security check to ensure this file is being included by a parent file.
if (!defined('_JEXEC')) die('Direct Access to this location is not allowed.');

// we'll use panes so import Joomla library and instantiate one
jimport( 'joomla.html.pane');
$pane =& JPane::getInstance('Tabs');

?>

<div class="sh404sef-popup" id="sh404sef-popup">

<!-- markup common to all config layouts -->

<?php include JPATH_ADMINISTRATOR . DS . 'components' . DS. 'com_sh404sef' . DS . 'views' . DS . 'config' . DS . 'tmpl' . DS . 'common_header.php'; ?>

<!-- start general configuration markup -->

<div id="element-box">
  <div class="t">
    <div class="t">
      <div class="t"></div>
    </div>
  </div>
<div class="m">

<form action="index.php" method="post" name="adminForm" id="adminForm">

  <div id="editcell">

  <!-- start of configuration html -->
  
  <?php
  echo $pane->startPane('sh404SEFConf');
  echo $pane->startPanel( JText16::_('COM_SH404SEF_CONF_TAB_MAIN'), 'basics' ); ?>
<table class="adminlist">
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="4"><?php echo JText16::_('COM_SH404SEF_TITLE_BASIC'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_SEF_ENABLED'),
  JText16::_('COM_SH404SEF_TT_SEF_ENABLED'),
  $this->lists['enabled'] );

  $x++;
  echo Sh404sefViewHelperConfig::shTextHTML( $x,
  JText16::_('COM_SH404SEF_JOOMLA_LIVE_SITE'),
  JText16::_('COM_SH404SEF_TT_JOOMLA_LIVE_SITE'),
  $this->lists['joomla_live_site'], 60, 255, $this->lists['joomla_live_site_style'], '</span>' );

  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_REPLACE_CHAR'),
  JText16::_('COM_SH404SEF_TT_REPLACE_CHAR'),
        'replacement',
  $this->sefConfig->replacement, 1, 1 );

  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_PAGEREP_CHAR'),
  JText16::_('COM_SH404SEF_TT_PAGEREP_CHAR'),
    'pagerep',
  $this->sefConfig->pagerep, 1, 1 );

  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_STRIP_CHAR'),
  JText16::_('COM_SH404SEF_TT_STRIP_CHAR'),
        'stripthese',
  $this->sefConfig->stripthese, 60, 255 ); ?>
  <!-- shumisha 2007-04-01 new param for characters replacement table  -->
  <tr <?php $x++; echo ( ( $x % 2) ? '' : ' class="row1"' ); ?>>
    <td valign="top"><?php echo JText16::_('COM_SH404SEF_REPLACEMENTS'); ?></td>
    <td><textarea name="shReplacements" cols="60" rows="5"><?php echo $this->sefConfig->shReplacements;?></textarea></td>
    <td><?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_REPLACEMENTS') ); ?></td>
  </tr>
  <!-- shumisha 2007-04-01 end of new param for characters replacement table  -->
  <?php
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_FRIENDTRIM_CHAR'),
  JText16::_('COM_SH404SEF_TT_FRIENDTRIM_CHAR'),
          'friendlytrim',
  $this->sefConfig->friendlytrim, 60, 255 );

  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_SUFFIX'),
  JText16::_('COM_SH404SEF_TT_SUFFIX'),
        'suffix',
  $this->sefConfig->suffix, 10, 10 );

  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_ALWAYS_APPEND_ITEMS_PER_PAGE'),
  JText16::_('COM_SH404SEF_TT_ALWAYS_APPEND_ITEMS_PER_PAGE'),
  $this->lists['alwaysAppendItemsPerPage'] );


  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_ADDFILE'),
  JText16::_('COM_SH404SEF_TT_ADDFILE'),
          'addFile',
  $this->sefConfig->addFile, 60, 60 );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_LOWER'),
  JText16::_('COM_SH404SEF_TT_LOWER'),
  $this->lists['lowercase'] );

   ?>
  <!-- shumisha 2007-04-01 new params for Numerical Id insert  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="3"><?php echo JText16::_('COM_SH404SEF_INSERT_NUMERICAL_ID_TITLE'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_NUMERICAL_ID_TITLE'),
  JText16::_('COM_SH404SEF_TT_INSERT_NUMERICAL_ID'),
  $this->lists['shInsertNumericalId'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_NUMERICAL_ID_CAT_LIST'),
  JText16::_('COM_SH404SEF_TT_INSERT_NUMERICAL_ID_CAT_LIST'),
  $this->lists['shInsertNumericalIdCatList'] ); ?>
  <!-- shumisha 2007-04-01 end of new params for Numerical Id insert  -->
</table>
  <?php
  echo $pane->endPanel();
  
  echo $pane->startPanel( JText16::_('COM_SH404SEF_CONF_TAB_PAGEID'), 'pageid' ); 
  echo JText16::_('COM_SH404SEF_ENABLE_PAGEID_HELP'). '<br /><br />';
  ?>
<table class="adminlist">
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="4"><?php echo JText16::_('COM_SH404SEF_TITLE_BASIC'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_ENABLE_PAGEID'),
  JText16::_('COM_SH404SEF_TT_ENABLE_PAGEID'),
  $this->lists['enablePageId'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_STOP_CREATING_SHURLS'),
  JText16::_('COM_SH404SEF_TT_STOP_CREATING_SHURLS'),
  $this->lists['stopCreatingShurls'] );
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_SHURL_BLACKLIST'),
  JText16::_('COM_SH404SEF_TT_SHURL_BLACKLIST'),
        'shurlBlackList',
  $this->sefConfig->shurlBlackList, 60, 255 );
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_SHURL_NON_SEF_BLACKLIST'),
  JText16::_('COM_SH404SEF_TT_SHURL_NON_SEF_BLACKLIST'),
        'shurlNonSefBlackList',
  $this->sefConfig->shurlNonSefBlackList, 60, 255 ); 
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_SHORTLINK_TAG'),
  JText16::_('COM_SH404SEF_TT_INSERT_SHORTLINK_TAG'),
  $this->lists['insertShortlinkTag'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_REV_CAN_TAG'),
  JText16::_('COM_SH404SEF_TT_INSERT_REV_CAN_TAG'),
  $this->lists['insertRevCanTag'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_ALT_SHORT_TAG'),
  JText16::_('COM_SH404SEF_TT_INSERT_ALT_SHORT_TAG'),
  $this->lists['insertAltShorterTag'] );
  
  ?>
</table>
<?php
  echo $pane->endPanel(); 
  
  echo $pane->startPanel( JText16::_('COM_SH404SEF_CONF_TAB_LANGUAGES'), 'Languages' ); ?>
<table class="adminlist">
  <!-- shumisha 27/09/2007 new params for languages management  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="3"><?php echo JText16::_('COM_SH404SEF_TRANSLATION_TITLE'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_TRANSLATE_URL'),
  JText16::_('COM_SH404SEF_TT_TRANSLATE_URL_GEN'),
  $this->lists['shTranslateURL'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_LANGUAGE_CODE'),
  JText16::_('COM_SH404SEF_TT_INSERT_LANGUAGE_CODE_GEN'),
  $this->lists['shInsertLanguageCode'] );

  foreach( $this->lists['activeLanguages'] as $currentLang ) { ?>
	<thead>
		<tr>
			<th class="title" style="text-align: left;" colspan="3"><?php echo ucfirst($currentLang); ?></th>
		</tr>
	</thead>
	<?php
	$x++;
	echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
	JText16::_('COM_SH404SEF_PAGETEXT'),
	JText16::_('COM_SH404SEF_TT_PAGETEXT'),
              'languages_'.$currentLang.'_pageText',
	$this->sefConfig->pageTexts[$currentLang], 10, 20 );
	$x++;
	echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
	JText16::_('COM_SH404SEF_TRANSLATE_URL'),
	JText16::_('COM_SH404SEF_TT_TRANSLATE_URL_PER_LANG'),
	$this->lists['languages_' . $currentLang . '_translateURL'] );
	$x++;
	echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
	JText16::_('COM_SH404SEF_INSERT_LANGUAGE_CODE'),
	JText16::_('COM_SH404SEF_TT_INSERT_LANGUAGE_CODE_PER_LANG'),
	$this->lists['languages_'.$currentLang.'_insertCode'] );
  }
  ?>
  <!-- shumisha 27/09/2007 new params for languages management  -->
</table>

  <?php
  
    echo $pane->endPanel();
    echo $pane->startPanel( JText16::_('COM_SH404SEF_CONF_TAB_ADVANCED'), 'Advanced' );
    
  ?>
  
<table class="adminlist">
  <!-- shumisha 2007-04-01 new params for cache  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="3"><?php echo JText16::_('COM_SH404SEF_CACHE_TITLE');?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_USE_URL_CACHE'),
  JText16::_('COM_SH404SEF_TT_USE_URL_CACHE'),
  $this->lists['shUseURLCache'] );
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_MAX_URL_IN_CACHE'),
  JText16::_('COM_SH404SEF_TT_MAX_URL_IN_CACHE'),
            'shMaxURLInCache',
  $this->sefConfig->shMaxURLInCache, 10, 10 );?>
  <!-- shumisha 2007-04-01 end of new params for cache  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="3"><?php echo JText16::_('COM_SH404SEF_TITLE_ADV');?></th>
    </tr>
  </thead>
  <!-- shumisha 2007-06-23 new param to select rewrite mode  -->
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_SELECT_REWRITE_MODE'),
  JText16::_('COM_SH404SEF_TT_SELECT_REWRITE_MODE'),
  $this->lists['shRewriteMode'] );
  /* <!-- shumisha 2007-06-23 new param to select rewrite mode  -->
   <!-- shumisha 2007-04-13 new params for automatic 301 redirect of non-sef URL  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_REDIRECT_NON_SEF_TO_SEF'),
  JText16::_('COM_SH404SEF_TT_REDIRECT_NON_SEF_TO_SEF'),
  $this->lists['shRedirectNonSefToSef'] );
  /* <!-- shumisha 2007-05-4 new params for automatic 301 redirect of joomla-sef URL  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_REDIRECT_JOOMLA_SEF_TO_SEF'),
  JText16::_('COM_SH404SEF_TT_REDIRECT_JOOMLA_SEF_TO_SEF'),
  $this->lists['shRedirectJoomlaSefToSef'] );
  /* <!-- shumisha 2007-05-4 new params for automatic 301 redirect of joomla-sef URL  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_REDIRECT_WWW'),
  JText16::_('COM_SH404SEF_TT_REDIRECT_WWW'),
  $this->lists['shAutoRedirectWww'] );

  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_REDIRECT_CORRECT_CASE_URL'),
  JText16::_('COM_SH404SEF_TT_REDIRECT_CORRECT_CASE_URL'),
  $this->lists['redirectToCorrectCaseUrl'] );

  /* <!-- V 1.2.4.k new param to enable/disable 404 errors logging to DB  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  COM_SH404SEF_LOG_404_ERRORS,
  COM_SH404SEF_TT_LOG_404_ERRORS,
  $this->lists['shLog404Errors'] );
  /* <!-- shumisha 2007-04-13 end of new params for enable/disable 404 errors logging to DB  -->
   <!-- shumisha 2007-04-13 new params for secure live site URL  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_LIVE_SECURE_SITE'),
  JText16::_('COM_SH404SEF_TT_LIVE_SECURE_SITE'),
            'shConfig_live_secure_site',
  $this->sefConfig->shConfig_live_secure_site, 30, 60 );
  /* <!-- shumisha 2007-04-13 end of new params for secure live site  -->
   <!-- shumisha 2007-04-13 new params for HTTPS force non sef  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_FORCE_NON_SEF_HTTPS'),
  JText16::_('COM_SH404SEF_TT_FORCE_NON_SEF_HTTPS'),
  $this->lists['shForceNonSefIfHttps'] );
  /* <!-- shumisha 2007-04-13 end of new params HTTPS force non sef  -->
   <!-- shumisha 2007-05-28 new params for URL encoding  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_ENCODE_URL'),
  JText16::_('COM_SH404SEF_TT_ENCODE_URL'),
  $this->lists['shEncodeUrl'] );
  /* <!-- shumisha 2007-04-13 end of new params for  URL encoding -->
   <!-- shumisha 2007-08-03 new params for forced homepage URL  --> */
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_FORCED_HOMEPAGE'),
  JText16::_('COM_SH404SEF_TT_FORCED_HOMEPAGE'),
            'shForcedHomePage',
  $this->sefConfig->shForcedHomePage, 30, 60 );
  
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_SLOW_SERVER'),
  JText16::_('COM_SH404SEF_TT_SLOW_SERVER'),
  $this->lists['slowServer'] );
  
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_DEBUG_TO_LOG_FILE'),
  JText16::_('COM_SH404SEF_TT_DEBUG_TO_LOG_FILE'),
  $this->lists['debugToLogFile'] ); ?>
  <!-- shumisha 2007-04-01 new params for Itemid handling and URL construction  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="3"><?php echo JText16::_('COM_SH404SEF_ITEMID_TITLE'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_GUESS_HOMEPAGE_ITEMID'),
  JText16::_('COM_SH404SEF_TT_GUESS_HOMEPAGE_ITEMID'),
  $this->lists['guessItemidOnHomepage'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_GLOBAL_ITEMID_IF_NONE'),
  JText16::_('COM_SH404SEF_TT_INSERT_GLOBAL_ITEMID_IF_NONE'),
  $this->lists['shInsertGlobalItemidIfNone'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_INSERT_TITLE_IF_NO_ITEMID'),
  JText16::_('COM_SH404SEF_TT_INSERT_TITLE_IF_NO_ITEMID'),
  $this->lists['shInsertTitleIfNoItemid'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_ALWAYS_INSERT_MENU_TITLE'),
  JText16::_('COM_SH404SEF_TT_ALWAYS_INSERT_MENU_TITLE'),
  $this->lists['shAlwaysInsertMenuTitle'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_ALWAYS_INSERT_ITEMID'),
  JText16::_('COM_SH404SEF_TT_ALWAYS_INSERT_ITEMID'),
  $this->lists['shAlwaysInsertItemid'] );
  $x++;
  echo Sh404sefViewHelperConfig::shTextParamHTML( $x,
  JText16::_('COM_SH404SEF_DEFAULT_MENU_ITEM_NAME'),
  JText16::_('COM_SH404SEF_TT_DEFAULT_MENU_ITEM_NAME'),
            'shDefaultMenuItemName',
  $this->sefConfig->shDefaultMenuItemName, 30, 30 ); ?>
  <!-- shumisha 2007-04-01 end of new params for Itemid handling and URL construction  -->
  <!-- shumisha 19/08/2007 16:29:22 new params for upgrade management  -->
  <thead>
    <tr>
      <th class="title" style="text-align: left;" colspan="4"><?php echo JText16::_('COM_SH404SEF_UPGRADE_TITLE'); ?></th>
    </tr>
  </thead>
  <?php
  $x = 1;
  //autoCheckNewVersion
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_UPGRADE_ENABLE_CHECK'),
  JText16::_('COM_SH404SEF_TT_UPGRADE_ENABLE_CHECK'),
  $this->lists['autoCheckNewVersion'] );
  $x++;
  
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_UPGRADE_KEEP_CONFIG'),
  JText16::_('COM_SH404SEF_TT_UPGRADE_KEEP_CONFIG'),
  $this->lists['shKeepConfigOnUpgrade'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_UPGRADE_KEEP_URL'),
  JText16::_('COM_SH404SEF_TT_UPGRADE_KEEP_URL'),
  $this->lists['shKeepStandardURLOnUpgrade'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_UPGRADE_KEEP_CUSTOM'),
  JText16::_('COM_SH404SEF_TT_UPGRADE_KEEP_CUSTOM'),
  $this->lists['shKeepCustomURLOnUpgrade'] );
  $x++;
  echo Sh404sefViewHelperConfig::shYesNoParamHTML( $x,
  JText16::_('COM_SH404SEF_UPGRADE_KEEP_META'),
  JText16::_('COM_SH404SEF_TT_UPGRADE_KEEP_META'),
  $this->lists['shKeepMetaDataOnUpgrade'] );
  ?>
  <!-- shumisha 19/08/2007 16:29:22 new params for upgrade management  -->
</table>
  <?php
  echo $pane->endPanel();
  echo $pane->startPanel( JText16::_('COM_SH404SEF_CONF_TAB_BY_COMPONENT'), 'ByComponent'); ?>
<table class="adminlist">
  <tr align="left">
    <td width="140" align="left">&nbsp;</td>
    <td style="width: auto; text-align: left">&nbsp;<?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_ADV_MANAGE_URL'), COM_SH404SEF_ADV_MANAGE_URL ); ?></td>

    <td style="width: auto; text-align: left">&nbsp; <?php echo JHTML::_('tooltip',JText16::_('COM_SH404SEF_TT_ADV_TRANSLATE_URL'), COM_SH404SEF_ADV_TRANSLATE_URL ); ?>
    </td>
    <td style="width: auto; text-align: left">&nbsp; <?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_ADV_INSERT_ISO'), COM_SH404SEF_ADV_INSERT_ISO ); ?>
    </td>
    <td style="width: auto; text-align: left">&nbsp; <?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_ADV_OVERRIDE_SEF'), COM_SH404SEF_OVERRIDE_SEF_EXT ); ?>
    </td>
    <td style="width: auto; text-align: left">&nbsp; <?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_COMP_ENABLE_PAGEID'), JText16::_('COM_SH404SEF_COMP_ENABLE_PAGEID') ); ?>
    </td>
    <td style="width: auto; text-align: left">&nbsp; <?php echo JHTML::_('tooltip', JText16::_('COM_SH404SEF_TT_ADV_COMP_DEFAULT_STRING'), COM_SH404SEF_ADV_COMP_DEFAULT_STRING ); ?>
    </td>

  </tr>
  <?php
  foreach( $this->lists['adv_config'] as $key => $compList ) {
    $x++; ?>
  <tr <?php echo ( ( $x % 2 ) ? '' : ' class="row1"' ); ?>>
    <td width="140"><?php echo $key; ?></td>
    <td style="width: auto"><?php echo $compList['manageURL']; ?></td>
    <td style="width: auto"><?php echo $compList['translateURL']; ?></td>
    <td style="width: auto"><?php echo $compList['insertIsoCode']; ?></td>
    <td style="width: auto"><?php echo $compList['shDoNotOverrideOwnSef']; ?></td>
    <td style="width: auto"><?php echo $compList['compEnablePageId']; ?></td>
    <?php
    echo $compList['defaultComponentString'];
    ?>
  </tr>
  <?php
  } ?>
</table>

  <?php
  
    echo $pane->endPanel();
    echo $pane->startPanel( JText16::_('COM_SH404SEF_DEFAULT_PARAMS_TITLE'), 'default_params' );
     
  ?>
  
<table class="adminform">
  <tr>
    <td colspan="3" align="left">
    <div
      style="border: 1px solid #FF0000; margin: 5px; padding: 5px; background-color: #FFEFEF">
      <?php echo JText16::_('COM_SH404SEF_DEFAULT_PARAMS_WARNING'); ?></div>
    </td>
  </tr>
  <tr>
    <td width="450"><textarea name="defaultParamList" cols="100" rows="30"><?php echo $this->lists['defaultParamList']; ?></textarea>
    </td>
  </tr>
</table>
  <?php
  
    echo $pane->endPanel();
    echo $pane->endPane(); 
  ?> 
    
  
  <!-- end of configuration html -->

    <input type="hidden" name="c" value="config" />
    <input type="hidden" name="view" value="config" />
    <input type="hidden" name="layout" value="default" />
    <input type="hidden" name="format" value="raw" />
    <input type="hidden" name="option" value="com_sh404sef" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="shajax" value="1" />
    <input type="hidden" name="tmpl" value="component" />
    
    <?php echo JHTML::_( 'form.token' ); ?>
  </div>  
</form>
    
    
<div class="clr"></div>
</div>
  <div class="b">
    <div class="b">
      <div class="b"></div>
    </div>
  </div>
</div>
  
  
</div>

