+<?php
+
+function print_addr($title,$pfx,$ico)
+{
+ ?>
+ <tr><td align="center"><table border="0">
+ <colgroup width="0*" span="3" />
+ <tr><td colspan="3" align="center" class="tab-bold"><?php print($title); ?></td></tr>
+ <tr><td class="nowrap">Název firmy / Jméno:</td><td colspan="2"><input type="text" name="<?php print("${pfx}name"); ?>" size="60" /></td></tr>
+ <tr><td valign="top">Adresa:</td><td colspan="2"><table border="0">
+ <colgroup width="0*" span="3" />
+ <tr><td>Ulice:</td><td colspan="2"><input type="text" name="<?php print("${pfx}ulice"); ?>" size="60" /></td></tr>
+ <tr><td>Mìsto:</td><td ><input type="text" name="<?php print("${pfx}ulice"); ?>" size="30" /></td>
+ <td>PSÈ: <input type="text" name="<?php print("${pfx}psc"); ?>" size="5" maxlength="5" /></td></tr>
+ </table></td></tr>
+ <?php
+ if ($ico) {
+ ?>
+ <tr><td>IÈO:</td><td ><input type="text" name="<?php print("${pfx}ico"); ?>" size="20" /></td>
+ <td>DIÈ: <input type="text" name="<?php print("${pfx}dic"); ?>" size="20" /></td></tr>
+ <?php
+ }
+ ?>
+ <tr><td class="nowrap">Kontaktní osoba:</td ><td colspan="2"><input type="text" name="<?php print("${pfx}contact"); ?>" size="60" /></td></tr>
+ <tr><td>Telefon:</td><td><input type="text" name="<?php print("${pfx}tel"); ?>" size="25" /></td>
+ <td>Fax: <input type="text" name="<?php print("${pfx}fax"); ?>" size="25" /></td></tr>
+ <tr><td>e-mail:</td ><td colspan="2"><input type="text" name="<?php print("${pfx}mail"); ?>" size="40" /></td></tr>
+ </table></td></tr>
+ <?php
+}
+
+print_addr("Adresa pro vystavení a zaslání faktury" ,"name1_",true);
+print_addr("Adresa pro zasílaní èasopisu (jen pokud se li¹í)","name2_",false);
+
+?>