Beispiel #1
0
    $output .= hidden("ct_id_s", $X['ct_id_s'], 1);
}
$output .= '<br>';
$output .= '<table width="100%" cellpadding=0 cellspacing=0 border=1 bordercolor="#cfcfcf" rules="all">';
$output .= '<tr><td width="50%">&nbsp;Nazwa</td><td>' . input('ct_name_c', $edit ? stripslashes(htmlspecialchars($X['ct_name_c'])) : '', 'w=300 m=100 ret=1') . '</td></tr>';
$output .= '<tr><td width="50%">&nbsp;Skrócona nazwa (100 zn.)</td><td>' . input('ct_shortname_c', $edit ? stripslashes(htmlspecialchars($X['ct_shortname_c'])) : '', 'w=300 m=100 ret=1') . '</td></tr>';
$output .= '<tr><td>&nbsp;Adres</td><td>';
$output .= select('ct_adr_typ_e', $_adtypy, $adtypy, $edit ? $X['ct_adr_typ_e'] : 'ul.', 'ret=1', '', '', 'onChange="move_it(this, \'ct\');"');
$output .= input('ct_adr_name_c', $edit ? $X['ct_adr_name_c'] : '', 'w=300 m=255 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= input('ct_adr_num_c', $edit ? $X['ct_adr_num_c'] : '', 'w=100 m=20 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= '<br>Kod: ' . input('ct_adr_zip_c', $edit ? $X['ct_adr_zip_c'] : '', 'w=70 m=6 ret=1', '', 'onKeyUp="zipcode(this, \'ct_adr_\'); move_it(this, \'ct\');"') . ' Miejscowość: ';
$output .= input('ct_adr_msc_c', $edit ? $X['ct_adr_msc_c'] : '', 'w=200 m=255 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= '</td></tr>';
$output .= '<tr><td>&nbsp;Adres do korespondencji<br>&nbsp;<input type="checkbox" id="ct_address_copy" name="ct_address_copy" value="1"' . ($edit ? $X['ct_address_copy'] == 1 ? ' checked' : '' : ' checked') . ' onClick="if (this.checked==false) {clear_adres(\'ct\');} else {przenies_adres(this.checked, \'ct\');}">kopiuj z powyższej pozycji</td><td>';
$output .= select('ct_cadr_typ_e', $_adtypy, $adtypy, $edit ? $X['ct_cadr_typ_e'] : 'ul.', 'ret=1', '', '', 'onChange="move_it(this, \'ct\');"');
$output .= input('ct_cadr_name_c', $edit ? $X['ct_cadr_name_c'] : '', 'w=300 m=255 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= input('ct_cadr_num_c', $edit ? $X['ct_cadr_num_c'] : '', 'w=100 m=20 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= '<br>Kod: ' . input('ct_cadr_zip_c', $edit ? $X['ct_cadr_zip_c'] : '', 'w=70 m=6 ret=1', '', 'onKeyUp="zipcode(this, \'ct_adr_\'); move_it(this, \'ct\');"') . ' Miejscowość: ';
$output .= input('ct_cadr_msc_c', $edit ? $X['ct_cadr_msc_c'] : '', 'w=200 m=255 ret=1', '', 'onKeyUp="move_it(this, \'ct\');"');
$output .= '</td></tr>';
$output .= '<tr><td>&nbsp;Telefon</td><td>' . input('ct_phone_c', $edit ? $X['ct_phone_c'] : '', 'w=150 m=50 ret=1') . '</td></tr>';
$output .= '<tr><td>&nbsp;Email</td><td>' . input('ct_email_c', $edit ? $X['ct_email_c'] : '', 'w=250 m=100 ret=1') . '<div id="email_info" style="display:inline; color: #ff0000;"></div></td></tr>';
$output .= '<tr><td>&nbsp;Nr konta (format IBAN, bez odstępów)</td><td>' . input('ct_bank_c', $edit ? $X['ct_bank_c'] : '', 'w=250 m=30 ret=1', '', 'onKeyUp="signs(this, \' \')"') . '<div id="bank_pl_info" style="display:inline; color: #ff0000;"></div><div id="bank_pl_name" style="color: #0000ff;">' . ($X['ct_bank_c'] != '' ? nazwa_banku($X['ct_bank_c']) : '') . '</div></td></tr>';
if ($edit) {
    $output .= '<tr><td colspan=2><center><a id="cancel_court_edit_form" court="' . $X['ct_id_s'] . '" style="cursor:pointer;">Anuluj</a> | <a id="save_court" style="cursor:pointer;">Zmień sąd</a></center></td></tr>';
} else {
    $output .= '<tr><td colspan=2><center><a id="cancel_court_form" style="cursor:pointer;">Anuluj</a> | <a id="add_court" style="cursor:pointer;">Dodaj sąd</a></center></td></tr>';
}
$output .= '</form>';
$output .= '</table>';
print $output;
Beispiel #2
0
<?php

session_start();
error_reporting(E_ERROR && ~E_NOTICE);
require "../include/conf.inc.php";
require "../include/db.inc.php";
require "../include/fc.inc.php";
require "../include/const.inc.php";
$D = $db->getRow("SELECT * FROM wind_executive WHERE e_id_s=" . $_GET['exec']);
$output = '';
$output .= $D['e_name_c'] . ' (' . $D['e_shortname_c'] . ')<br>';
$output .= $D['e_adr_typ_e'] . ' ' . $D['e_adr_name_c'] . ' ' . $D['e_adr_num_c'] . '<br>';
$output .= $D['e_adr_zip_c'] . ' ' . $D['e_adr_msc_c'] . '<br>';
if (!$D['e_address_copy']) {
    $output .= 'Adres do korespondencji:<br>';
    $output .= $D['e_cadr_typ_e'] . ' ' . $D['e_cadr_name_c'] . ' ' . $D['e_cadr_num_c'] . '<br>';
    $output .= $D['e_cadr_zip_c'] . ' ' . $D['e_cadr_msc_c'] . '<br>';
}
$output .= 'Telefon stacj.: ' . $D['e_phone_c'] . ($D['e_phone2_c'] != '' ? ', ' . $D['e_phone2_c'] : '') . ($D['e_phone3_c'] != '' ? ', ' . $D['e_phone3_c'] : '') . '<br>';
$output .= 'Telefon kom.: ' . $D['e_mobile_c'] . ($D['e_mobile2_c'] != '' ? ', ' . $D['e_mobile2_c'] : '') . '<br>';
$output .= 'Fax: ' . $D['e_fax_c'] . '<br>';
$output .= 'Email: <a mailto="' . $D['e_email_c'] . '">' . $D['e_email_c'] . '</a><br>';
$output .= 'Nr konta: ' . $D['e_bank_pl_c'] . ($D['e_bank_pl_c'] != '' ? ' (' . nazwa_banku($D['e_bank_pl_c']) . ')' : '');
$output .= '<br><a id="edit_exec" exec="' . $_GET['exec'] . '" style="cursor:pointer;">edytuj</a>';
print $output;