<script type="text/javascript">
  jQuery(function() {    
    $( '#slider-code' ).tinycarousel({
      pager: true
    });
    $( '#info' ).ckeditor( {
      toolbar : 'Basic',
      height:'150',
      width: '520'
    });
  });
</script>
<div class="edit-row">
  <form method='POST' action='./' id='formularz'>
    <input type='hidden' name='rw' value='save_settings'>
    <div id="slider-code">
      <ul class="pager">
          <li><a rel="0" class="pagenum" href="#"><span class="badge">1</span>Dane teleadresowe</a></li>
          <li><a rel="1" class="pagenum" href="#"><span class="badge">2</span>Poczta</a></li>
          <li><a rel="2" class="pagenum" href="#"><span class="badge">3</span>Pozostałe</a></li>
      </ul>
      <a class="buttons prev tip" href="#" title="Wstecz">
        <img src="../../images/system/img-left.png" />
      </a>
      <div class="viewport">
        <ul class="overview">
          <li>
            <div class="slide-title">Dane teleadresowe</div>
              <div class="group">
                <label>Nazwa firmy:</label>
                <div class="content">
                  <input type='text' name='firm_name' value='<?= $this -> _firm_name;?>'>
                </div>
              </div>
              <div class="group">
                <label>Ulica:</label>
                <div class="content">
                  <input type='text' name='street' value='<?= $this -> _street;?>'>
                </div>
              </div>
              <div class="group">
                <label>Kod pocztowy:</label>
                <div class="content">
                  <input type='text' name='postal_code' value='<?= $this -> _postal_code;?>'>
                </div>
              </div>
              <div class="group">
                <label>Miasto:</label>
                <div class="content">
                  <input type='text' name='city' value='<?= $this -> _city;?>'>
                </div>
              </div>
              <div class="group">
                <label>NIP:</label>
                <div class="content">
                  <input type='text' name='nip' value='<?= $this -> _nip;?>'>
                </div>
              </div>
              <div class="group">
                <label>Numer rachunku:</label>
                <div class="content">
                  <input type='text' name='account' value='<?= $this -> _account;?>'>
                </div>
              </div>
              <div class="group">
                <label>Email:</label>
                <div class="content">
                  <input type='text' name='email' value='<?= $this -> _email;?>'>
                </div>
              </div>
              <div class="group">
                <label>Telefon:</label>
                <div class="content">
                  <input type='text' name='phone' value='<?= $this -> _phone;?>'>
                </div>
              </div>
              <div class="group">
                <label>Fax:</label>
                <div class="content">
                  <input type='text' name='fax' value='<?= $this -> _fax;?>'>
                </div>
              </div>
              <div class="group">
                <label>Osoba do kontaktu:</label>
                <div class="content">
                  <input type='text' name='person' value='<?= $this -> _person;?>'>
                </div>
              </div>
              <div class="group">
                <label>Dodatkowe informacje:</label>
                <div class="content">
                  <textarea name="info" id="info"><?= $this -> _info;?></textarea>
                </div>
                <div class="clearfix"></div>
              </div>
              <div class="group">
                <label>Formularz kontaktowy:</label>
                <div class="content">
                  <select name='contact_form'>
                    <option value='1' <? if ( $this -> _contact_form == 1 ) echo "selected='selected'";?>>włączony</option>
                    <option value='0'  <? if ( $this -> _contact_form == 0 ) echo "selected='selected'";?>>wyłączony</option>
                  </select>
                </div>
              </div>
          </li>
          <li>
            <div class="slide-title">Poczta</div>
            <div class="group">
              <label>Email administratora:</label>
              <div class="content">
                <input type='text' name='admin_email' value='<?= $this -> _admin_email;?>'>
              </div>
            </div>
            <div class="group">
              <label>Email - host:</label>
              <div class="content">
                <input type='text' name='email_host' value='<?= $this -> _email_host;?>'>
              </div>
            </div>
            <div class="group">
              <label>Email - port:</label>
              <div class="content">
                <input type='text' name='email_port' value='<?= $this -> _email_port;?>'>
              </div>
            </div>
            <div class="group">
              <label>Email - login:</label>
              <div class="content">
                <input type='text' name='email_login' value='<?= $this -> _email_login;?>'>
              </div>
            </div>
            <div class="group">
              <label>Email - hasło:</label>
              <div class="content">
                <input type='password' name='email_password' value='<?= $this -> _email_password;?>'>
              </div>
            </div>
          </li>
          <li>
            <div class="slide-title">Pozostałe</div>
            <div class="group">
              <label>Klucz Google Maps:</label>
              <div class="content">
                <input type='text' name='google_map_key' value='<?= $this -> _google_map_key;?>'>
              </div>
            </div>          
            <div class="group">
              <label>Facebook - link:</label>
              <div class="content">
                <input type='text' name='facebook_url' value='<?= $this -> _facebook_url;?>'>
              </div>
            </div>
            <div class="group">
              <label>Rejestracja:</label>
              <div class="content">
                <select name="register">
                  <option value="0" <? if ( $this -> _register == 0 ) echo 'selected="selected"'; ?>>rejestracja zamknięta</option>
                  <option value="1" <? if ( $this -> _register == 1 ) echo 'selected="selected"'; ?>>aktywacja konta przez administratora</option>
                  <option value="2" <? if ( $this -> _register == 2 ) echo 'selected="selected"'; ?>>aktywacja przez email</option>
                </select>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </form>
</div>