<?php
/**
  @licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  @package oscss-2 <www http://www.oscss.org>
  @version 2.1.0
  @date  12/12/10, 12:52
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
  @brief content for pages configuration
*/
?>
<!-- body //-->


<br style="clear:both" />
<!-- body_text //-->
<?php if(isset($mID) ){ ?>

  <?php echo $cfg->draw(); ?>

<?php }elseif($action=='' && tep_not_null($gID) && is_numeric($gID) ){ ?>
<h3><?php echo tep_cst_menu_conf($cfg_group['configuration_group_title']); ?></h3>
<h4><?php echo tep_cst_menu_conf('TITLE_'.$cfg_group['configuration_group_title']); ?></h4>

<div id="ssmenu">
        <?php echo tep_ssmenu_configuration($gparentID); ?>
</div>
<br style="clear:both" />
  <?php echo tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&amp;gID=' . $gID . '&amp;action=save_mutli') ?>
    <div class="box_left">
      <ul class="block_form">
        <?php foreach($list_edit as $configuration) { ?>
          <li id="nav_<?php echo $configuration['configuration_key'] ?>"><h5 title="<?php echo '('.$configuration['configuration_key'].' -  ' . $configuration['set_function'] . ')'; ?>"><?php echo $configuration['configuration_title']. tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h5>

            <p class="block_input tirroir"><?php if (tep_not_null($configuration['configuration_description']))echo $configuration['configuration_description']; ?><br />
            <?php echo $configuration['value_field'] ; ?></p>
          </li>
        <?php } ?>
      </ul>
    </div>
    <div class="box_right">
      <ul>
        <div class="button_nav">
          <?php print tep_image_submit('button_copy.gif', IMAGE_UPDATE) .tep_js_back(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&amp;gID=' . $gID )) ; ?>
        </div>
        </li>
      </ul>
    </div>
  </form>
<?php } ?>
<!-- body_text_eof //-->
<!-- body_eof //-->