<?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 } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/feed.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">
        <table class="form">
          <tr>
            <td><?php echo $entry_status; ?></td>
            <td><form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">

                <select name="shopxml_status">
                <?php if ($shopxml_status) { ?>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <option value="0"><?php echo $text_disabled; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_enabled; ?></option>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <?php } ?>
              </select>
            </form>
            </td>
          </tr>
            <tr>
              <td><?php echo $shopxml_ad_title; ?></td>
              <td><p><?php echo $shopxml_ad_text; ?></p>
                  <?php
            if(isset($_SESSION['shopxml_submit'])){
                $_SESSION['shopxml_submit'] = false;
                unset($_SESSION['shopxml_submit']);
                echo '<h1>'.$shopxml_form_submit_ok.'</h1>';
            }
            ?>
                  <form action="/admin/shopxml/shopxml.php" method="post" id="shopxml_form">
                  <fieldset><legend><?php echo $shopxml_form_legend; ?></legend>
                  <input type="text" name="shopxml_mail" placeholder="<?php echo $shopxml_form_email; ?>" form="shopxml_form"><BR>
                  <input type="text" name="shopxml_phone" placeholder="<?php echo $shopxml_form_phone; ?>" form="shopxml_form"><BR>
                   <textarea cols="40" rows="5" name="shopxml_msg" placeholder="<?php echo $shopxml_form_msg; ?>" form="shopxml_form"></textarea><BR>
                  <input type="text" name="shopxml_site" placeholder="<?php echo $shopxml_form_site; ?>" form="shopxml_form"><BR>
                  <input type="text" name="shopxml_admin_mail" value="<?php echo $shopxml_config_email;?>"  form="shopxml_form">
                  <input type="submit" name="shopxml_submit" value="<?php echo $shopxml_form_submit; ?>" form="shopxml_form">
                  </fieldset>
                      </form>
              </td>
            </tr>

          <tr>
            <td><?php echo $entry_data_feed; ?></td>
            <td><textarea cols="40" rows="5"><?php echo $data_feed; ?></textarea></td>
          </tr>

            <tr>
              <td><?php echo $shopxml_lang_export; ?></td>
              <td><textarea cols="40" rows="5"><?php echo $data_feed; ?>&lang_export=en</textarea></td>
            </tr>

            <tr>
              <td><?php echo $shopxml_desc_export; ?></td>
              <td><textarea cols="40" rows="5"><?php echo $data_feed; ?>&desc_export=1</textarea></td>
            </tr>

            <tr>
              <td><?php echo $shopxml_cur_export; ?></td>
              <td><textarea cols="40" rows="5"><?php echo $data_feed; ?>&cur_export=USD</textarea></td>
            </tr>
        </table>
    </div>
  </div>
</div>
<?php echo $footer; ?>