<?php if(!empty($info))
	//KOMUNIKAT
	echo '<p class="info_box">'.$info.'</p>';
?>

<form action="/master/client/<?php echo $client_id ?>#tabs-2" method="post">
	<input type="hidden" name="id" value="<?php echo $user_data[0]['id']; ?>"/>
	<input type="hidden" name="user_id" value="<?php echo $user_data[0]['user_id']; ?>"/>
	<p>
		<label class="form_label" for="company_name">Nazwa firmy</label>
		<input type="text" value="<?php echo (isset($values['company_name']) ? $values['company_name'] : $user_data[0]['company_name']); ?>" name="company_name" />
		<span class="error_info"><?php if(!empty($errors['company_name'])) echo $errors['company_name'];?></span>
	</p>
	<p>
		<label class="form_label" for="contact_name">Imię nazwisko osoby kontaktowej</label>
		<input type="text" value="<?php echo (isset($values['contact_name']) ? $values['contact_name'] : $user_data[0]['contact_name']); ?>" name="contact_name" />
		<span class="error_info"><?php if(!empty($errors['contact_name'])) echo $errors['contact_name'];?></span>
	</p>
	<p>
		<label class="form_label" for="tax_id">NIP*</label>
		<input type="text" value="<?php echo (isset($values['tax_id']) ? $values['tax_id'] : $user_data[0]['tax_id']); ?>" name="tax_id" />
		<span class="error_info"><?php if(!empty($errors['tax_id'])) echo $errors['tax_id'];?></span>
	</p>
	<p>
		<label class="form_label" for="website">Strona www</label>
		<input type="text" value="<?php echo (isset($values['website']) ? $values['website'] : $user_data[0]['website']); ?>" name="website" />
		<span class="error_info"><?php if(!empty($errors['website'])) echo $errors['website'];?></span>
	</p>
	<p>
		<label class="form_label" for="email">E-mail*</label>
		<input type="text" value="<?php echo (isset($values['email']) ? $values['email'] : $user_data[0]['email']); ?>" name="email" />
		<span class="error_info"><?php if(!empty($errors['email'])) echo $errors['email'];?></span>
	</p>
	<p>
		<label class="form_label" for="city">Miejscowość*</label>
		<input type="text" value="<?php echo (isset($values['city']) ? $values['city'] : $user_data[0]['city']); ?>" name="city" />
		<span class="error_info"><?php if(!empty($errors['city'])) echo $errors['city'];?></span>
	</p>
	<p>
		<label class="form_label" for="post_code">Kod pocztowy*</label>
		<input type="text" value="<?php echo (isset($values['post_code']) ? $values['post_code'] : $user_data[0]['post_code']); ?>" name="post_code" />
		<span class="error_info"><?php if(!empty($errors['post_code'])) echo $errors['post_code'];?></span>
	</p>
	<p>
		<label class="form_label" for="street">Ulica*</label>
		<input type="text" value="<?php echo (isset($values['street']) ? $values['street'] : $user_data[0]['street']); ?>" name="street" />
		<span class="error_info"><?php if(!empty($errors['street'])) echo $errors['street'];?></span>
	</p>
	<p>
		<label class="form_label" for="b_no">Nr budynku*</label>
		<input type="text" value="<?php echo (isset($values['b_no']) ? $values['b_no'] : $user_data[0]['b_no']); ?>" name="b_no" />
		<span class="error_info"><?php if(!empty($errors['b_no'])) echo $errors['b_no'];?></span>
	</p>
	<p>
		<label class="form_label" for="a_no">Nr lokalu</label>
		<input type="text" value="<?php echo (isset($values['a_no']) ? $values['a_no'] : $user_data[0]['a_no']); ?>" name="a_no" />
		<span class="error_info"><?php if(!empty($errors['a_no'])) echo $errors['a_no'];?></span>
	</p>
	<br/>
	<!-- DANE KORESPONDENCYJNE -->							
	<p>
		<b>Dane korespondencyjne</b>
	</p>
	<p>
		<label class="form_label" for="dk_miasto">Miejscowość</label>
		<input type="text" value="<?php echo (isset($values['dk_miasto']) ? $values['dk_miasto'] : $user_data[0]['dk_miasto']); ?>" name="dk_miasto" />
		<span class="error_info"><?php if(!empty($errors['dk_miasto'])) echo $errors['dk_miasto'];?></span>
	</p>
	<p>
		<label class="form_label" for="dk_ulica">Ulica</label>
		<input type="text" value="<?php echo (isset($values['dk_ulica']) ? $values['dk_ulica'] : $user_data[0]['dk_ulica']); ?>" name="dk_ulica" />
		<span class="error_info"><?php if(!empty($errors['dk_ulica'])) echo $errors['dk_ulica'];?></span>
	</p>
	<p>
		<label class="form_label" for="dk_kod_pocztowy">Kod pocztowy</label>
		<input type="text" value="<?php echo (isset($values['dk_kod_pocztowy']) ? $values['dk_kod_pocztowy'] : $user_data[0]['dk_kod_pocztowy']); ?>" name="dk_kod_pocztowy" />
		<span class="error_info"><?php if(!empty($errors['dk_kod_pocztowy'])) echo $errors['dk_kod_pocztowy'];?></span>
	</p>
	<p>
		<label class="form_label" for="dk_nr_domu">Nr budynku</label>
		<input type="text" value="<?php echo (isset($values['dk_nr_domu']) ? $values['dk_nr_domu'] : $user_data[0]['dk_nr_domu']); ?>" name="dk_nr_domu" />
		<span class="error_info"><?php if(!empty($errors['dk_nr_domu'])) echo $errors['dk_nr_domu'];?></span>
	</p>
	<p>
		<label class="form_label" for="dk_nr_mieszkania">Nr lokalu</label>
		<input type="text" value="<?php echo (isset($values['dk_nr_mieszkania']) ? $values['dk_nr_mieszkania'] : $user_data[0]['dk_nr_mieszkania']); ?>" name="dk_nr_mieszkania" />
		<span class="error_info"><?php if(!empty($errors['dk_nr_mieszkania'])) echo $errors['dk_nr_mieszkania'];?></span>
	</p>
	<p>
		<label class="form_label" for="dk_telefon">Telefon</label>
		<input type="text" value="<?php echo (isset($values['dk_telefon']) ? $values['dk_telefon'] : $user_data[0]['dk_telefon']); ?>" name="dk_telefon"/>
		<span class="error_info"><?php if(!empty($errors['dk_telefon'])) echo $errors['dk_telefon'];?></span>
	</p>
	<p>
        <div class="formHr">&nbsp;</div>
        <div class="form_buttons_v1">
            <input type="submit" name="client_profile" value="Zatwierdź" class="formButton"/>
        </div>
        <span class="field_required">* - pole wymagane</span>
	</p>	
</form>	
