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

<form action="/master/networds" method="post">
<?php
		echo '<input type="hidden" value="'.((isset($values['id'])) ?  $values['id'] : '').'" name="id"/>';
?>
	<table width="100%">
		<!-- NAZWA -->
		<tr>
			<td width="200">Nazwa</td>
			<td>
			<input type="text" name="nazwa" value="<?php if(isset($values['nazwa'])) echo $values['nazwa'];?>" size="50"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nazwa'])) echo $errors['nazwa'];?></span></td>
		</tr>
		<!-- NIP -->
		<tr>
			<td>NIP</td>
			<td>
			<input type="text" name="nip" value="<?php if(isset($values['nip'])) echo $values['nip'];?>" size="10" maxlength="10"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nip'])) echo $errors['nip'];?></span></td>
		</tr>
		<!-- REGON -->
		<tr>
			<td>REGON</td>
			<td>
                <input type="text" name="regon" value="<?php if(isset($values['regon'])) echo $values['regon'];?>" size="10" maxlength="9"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['regon'])) echo $errors['regon'];?></span></td>
		</tr>
		<!-- BANK -->
		<tr>
			<td>Bank</td>
			<td>
			<input type="text" name="bank" value="<?php if(isset($values['bank'])) echo $values['bank'];?>" size="50"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['bank'])) echo $errors['bank'];?></span></td>
		</tr>
		<!-- NR KONTA -->
		<tr>
			<td>Numer konta</td>
			<td>
			<input type="text" name="nr_konta" value="<?php if(isset($values['nr_konta'])) echo $values['nr_konta'];?>" size="30"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nr_konta'])) echo $errors['nr_konta'];?></span></td>
		</tr>		
		<!-- MIASTO -->
		<tr>
			<td>Miasto</td>
			<td>
			<input type="text" name="miasto" value="<?php if(isset($values['miasto'])) echo $values['miasto'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['miasto'])) echo $errors['miasto'];?></span></td>
		</tr>
		<!-- ULICA -->
		<tr>
			<td>Ulica</td>
			<td>
			<input type="text" name="ulica" value="<?php if(isset($values['ulica'])) echo $values['ulica'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['ulica'])) echo $errors['ulica'];?></span></td>
		</tr>	
		<!-- NR BUDYNKU -->
		<tr>
			<td>Nr budynku</td>
			<td>
			<input type="text" name="nr_budynku" value="<?php if(isset($values['nr_budynku'])) echo $values['nr_budynku'];?>" size="6"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nr_budynku'])) echo $errors['nr_budynku'];?></span></td>
		</tr>
		<!-- NR LOKALU -->
		<tr>
			<td>Nr lokalu</td>
			<td>
			<input type="text" name="nr_lokalu" value="<?php if(isset($values['nr_lokalu'])) echo $values['nr_lokalu'];?>" size="6" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nr_lokalu'])) echo $errors['nr_lokalu'];?></span></td>
		</tr>	
		<!-- KOD POCZTOWY -->
		<tr>
			<td>Kod pocztowy</td>
			<td>
			<input type="text" name="kod_pocztowy" value="<?php if(isset($values['kod_pocztowy'])) echo $values['kod_pocztowy'];?>" size="6"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['kod_pocztowy'])) echo $errors['kod_pocztowy'];?></span></td>
		</tr>
		<!-- KRAJ-->
		<tr>
			<td>Kraj</td>
			<td>
			<input type="text" name="kraj" value="<?php if(isset($values['kraj'])) echo $values['kraj'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['kraj'])) echo $errors['kraj'];?></span></td>
		</tr>
		<!-- TELEFON -->
		<tr>
			<td>Telefon</td>
			<td>
			<input type="text" name="telefon" value="<?php if(isset($values['telefon'])) echo $values['telefon'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['telefon'])) echo $errors['telefon'];?></span></td>
		</tr>
		<!-- TELEFON KOM -->
		<tr>
			<td>Telefon kom.</td>
			<td>
			<input type="text" name="telefon_kom" value="<?php if(isset($values['telefon_kom'])) echo $values['telefon_kom'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['telefon_kom'])) echo $errors['telefon_kom'];?></span></td>
		</tr>
		<!-- FAX -->
		<tr>
			<td>Fax</td>
			<td>
			<input type="text" name="fax" value="<?php if(isset($values['fax'])) echo $values['fax'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['fax'])) echo $errors['fax'];?></span></td>
		</tr>	
		<!-- SKYPE -->
		<tr>
			<td>Skype</td>
			<td>
			<input type="text" name="skype" value="<?php if(isset($values['skype'])) echo $values['skype'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['skype'])) echo $errors['skype'];?></span></td>
		</tr>
		<!-- WWW -->
		<tr>
			<td>WWW</td>
			<td>
			<input type="text" name="www" value="<?php if(isset($values['www'])) echo $values['www'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['www'])) echo $errors['www'];?></span></td>
		</tr>
		<!-- Email -->
		<tr>
			<td>Email</td>
			<td>
			<input type="text" name="email" value="<?php if(isset($values['email'])) echo $values['email'];?>" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['email'])) echo $errors['email'];?></span></td>
		</tr>
		<tr>
			<td colspan="2" align="left">
                <div class="formHr">&nbsp;</div>
				<input type="submit" value="Zatwierdź" class="formButton"/>
                <input type="button" name="anuluj" value="Anuluj" class="formButton" onClick="document.location.href='<?php echo base_url();?>master';"/>				
				<span class="field_required">* - pole wymagane</span>
			</td>
		</tr>																															
	</table>	
</form>		