<? global $lang; ?>
<script type="text/javascript">
$(document).ready(function(){
	$("#tabs").tabs();
});
</script>
<fieldset>
	<form method='POST' action='index.php?page=shop_settings' id='formularz'>
		<input type='hidden' name='rw' value='save_shop_settings'>
		<div id="tabs">
			<ul>
				<li>
					<a href="#contact_settings"><span><?=$lang -> getTrans( 'T_DANE_ADRESOWE' );?></span></a>
				</li>
				<li>
					<a href="#post"><span><?=$lang -> getTrans( 'T_POCZTA' );?></span></a>
				</li>
				<li>
					<a href="#other"><span><?=$lang -> getTrans( 'T_POZOSTALE' );?></span></a>
				</li>
			</ul>
			<div id="contact_settings">

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_NAZWA_FIRMY' ) );?>:</label>
          <div class="input">
            <input type='text' name='firm_name' value='<?=$this -> _firm_name;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_ULICA' ) );?>:</label>
          <div class="input">
            <input type='text' name='street' value='<?=$this -> _street;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_KOD_POCZTOWY' ) );?>:</label>
          <div class="input">
            <input type='text' name='postal_code' value='<?=$this -> _postal_code;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_MIASTO' ) );?>:</label>
          <div class="input">
            <input type='text' name='city' value='<?=$this -> _city;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_NIP' ) );?>:</label>
          <div class="input">
            <input type='text' name='nip' value='<?=$this -> _nip;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_NUMER_RACHUNKU' ) );?>:</label>
          <div class="input">
            <input type='text' name='account' value='<?=$this -> _account;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL' ) );?>:</label>
          <div class="input">
            <input type='text' name='email' value='<?=$this -> _email;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_TELEFON' ) );?>:</label>
          <div class="input">
            <input type='text' name='phone' value='<?=$this -> _phone;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_FAX' ) );?>:</label>
          <div class="input">
            <input type='text' name='fax' value='<?=$this -> _fax;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_OSOBA_DO_KONTAKTU' ) );?>:</label>
          <div class="input">
            <input type='text' name='person' value='<?=$this -> _person;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_FORMULARZ_KONTAKTOWY' ) );?>:</label>
          <div class="input">
            <select name='contact_form'>
              <option value='1' <? if ( $this -> _contact_form == 1 ) echo "selected='selected'";?>>
                <?=$lang -> getTrans( 'T_WLACZONY' );?>
              </option>
              <option value='0'  <? if ( $this -> _contact_form == 0 ) echo "selected='selected'";?>>
                <?=$lang -> getTrans( 'T_WYLACZONY' );?>
              </option>
            </select>
          </div>
        </div>

			</div>
			<div id="post">

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL_ADMINISTRATORA' ) );?>:</label>
          <div class="input">
            <input type='text' name='admin_email' value='<?=$this -> _admin_email;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL_HOST' ) );?>:</label>
          <div class="input">
            <input type='text' name='email_host' value='<?=$this -> _email_host;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL_PORT' ) );?>:</label>
          <div class="input">
            <input type='text' name='email_port' value='<?=$this -> _email_port;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL_LOGIN' ) );?>:</label>
          <div class="input">
            <input type='text' name='email_login' value='<?=$this -> _email_login;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_EMAIL_HASLO' ) );?>:</label>
          <div class="input">
            <input type='password' name='email_password' value='<?=$this -> _email_password;?>'>
          </div>
        </div>

			</div>
			<div id="other">

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_KLUCZ_GOOGLE_MAP' ) );?>:</label>
          <div class="input">
            <input type='text' name='google_map_key' value='<?=$this -> _google_map_key;?>'>
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_LICZBA_ODWIEDZIN' ) );?>:</label>
          <div class="input">
            <input type="text" name="visit_count" value="<?=$this -> _visit_count;?>">
          </div>
        </div>

        <div class="edit_line">
          <label><?=ucfirst( $lang -> getTrans( 'T_REJESTRACJA' ) );?>:</label>
          <div class="input">
            <select name="register">
              <option value="0" <? if ( $this -> _register == 0 ) echo 'selected="selected"'; ?>><?=$lang -> getTrans( 'T_REJESTRACJA_ZAMKNIETA' );?></option>
              <option value="1" <? if ( $this -> _register == 1 ) echo 'selected="selected"'; ?>><?=$lang -> getTrans( 'T_AKTYWACJA_PRZEZ_ADMINISTRATORA' );?></option>
              <option value="2" <? if ( $this -> _register == 2 ) echo 'selected="selected"'; ?>><?=$lang -> getTrans( 'T_AKTYWACJA_PRZEZ_EMAIL' );?></option>
            </select>
          </div>
        </div>
        
			</div>
		</div>
	</form>
</fieldset>