<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/setting.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
    <div class="content">
      <div id="tabs" class="htabs"><a href="#tab-store"><?php echo $tab_store; ?></a></div>
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
          <table class="form">
    	  <div id="tab-store">
          <table class="form">
            <tr>
              <td><?php echo $entry_google_footer; ?></td>
              <td><textarea name="config_google_footer" cols="40" rows="5"><?php echo $config_google_footer; ?></textarea></td>
            </tr>
            <tr>
              <td><?php echo $entry_google_analytics; ?></td>
              <td><textarea name="config_google_analytics" cols="40" rows="5"><?php echo $config_google_analytics; ?></textarea></td>
            </tr>  
            <tr>
              <td><?php echo $entry_google_analytics_avancado ?></td>
              <td><select name="config_status_analytics_avancado">
                  <option value="1" <?php if ($config_status_analytics_avancado == '1') echo ' selected="selected"' ?>>Habilitado</option>
                  <option value="0"  <?php if ($config_status_analytics_avancado == '0' || $config_status_analytics_avancado == '') echo ' selected="selected"' ?>>Desabilitado</option>
                </select>
              </td>
            </tr>                           
            <tr>
              <td><?php echo $entry_pixel_facebook_status ?></td>
              <td><select name="config_pixel_facebook_status">
                  <option value="enable" <?php if ($config_pixel_facebook_status == 'enable') echo ' selected="selected"' ?>>Habilitado</option>
                  <option value="disable"  <?php if ($config_pixel_facebook_status == 'disable' || $config_pixel_facebook_status == '') echo ' selected="selected"' ?>>Desabilitado</option>
                </select></td>
            </tr>
            <tr>
              <td><?php echo $entry_pixel_facebook; ?></td>
              <td><textarea name="config_pixel_facebook" cols="40" rows="5"><?php echo $config_pixel_facebook; ?></textarea></td>
            </tr>
            <tr>
              <td><?php echo $entry_body; ?></td>
              <td><textarea name="config_entry_body" cols="40" rows="5"><?php echo $config_entry_body; ?></textarea></td>
            </tr>
          </table>
        </div>
        </table>
        </div>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
$('#template').load('index.php?route=setting/setting/template&token=<?php echo $token; ?>&template=' + encodeURIComponent($('select[name=\'config_template\']').attr('value')));
//-->
</script>

<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script>
<?php echo $footer; ?>
