Example #1
0
error_reporting(E_ERROR && ~E_NOTICE);
if ($_GET['case']) {
    require "../include/conf.inc.php";
    require "../include/db.inc.php";
    require "../include/fc.inc.php";
    require "../include/const.inc.php";
    $string = '';
    $ids = array();
    $ds = $db->GetAll("SELECT d_id_s, d_date_type_e, UNIX_TIMESTAMP(d_date_d) as data FROM wind_dates WHERE d_case_id_k=" . $_GET['case'] . " ORDER BY d_date_d DESC");
    if (count($ds) > 0) {
        $dates = array();
        foreach ($ds as $_id => $D) {
            $ids[] = $D['d_id_s'];
            $tmp = '';
            $tmp .= ' Data ' . select('d_date_type_e_' . $D['d_id_s'], $_datetypes, $datetypes, $D['d_date_type_e'], 'ret=1 d=1') . ' ';
            $tmp .= input('d_date_d_' . $D['d_id_s'], date("d.m.Y", $D['data']), 'w=85 r=1 ret=1') . cal_image('d_date_d_' . $D['d_id_s'], 1) . ' ' . clear('d_date_d_' . $D['d_id_s'], '', 1);
            //if (checkPerm('case', 2)) $tmp .= "<a style='cursor:pointer;' id='edit_date' case='".$_GET['case']."' date='".$D['d_id_s']."'>zmień</a> ";
            //else $string .= "";
            if (checkPerm('case', 4)) {
                $tmp .= " <a style='cursor:pointer;' id='delete_date' case='" . $_GET['case'] . "' date='" . $D['d_id_s'] . "' type='" . $D['d_date_type_e'] . "'>usuń</a> ";
            } else {
                $string .= "";
            }
            $dates[] = $tmp;
        }
    }
    $string .= implode('<br>', $dates);
    $string .= '<script type="text/javascript">';
    foreach ($ids as $_id => $ID) {
        $string .= print_calendar('d_date_d_' . $ID, 'd_date_d_' . $ID . '_handle');
    }
Example #2
0
}
?>
<form method=post action="log_history">
	<table width="75%" cellspacing=0 cellpadding=0 border=0 align="center">
		<tr>
			<th class="p10">&nbsp;Data początku (włącznie)</th>
      <th class="p10">&nbsp;Data końca (włącznie)</th>
      <th class="p10">&nbsp;Użytkownik</th>
		</tr >
		<tr>
			<td><?php 
print input('s_date1', $s_date1, 'w=85', '', "onBlur='javascript: ValidateDate(this);'") . cal_image('s_date1', 1) . ' ' . clear('s_date1', '', 1);
?>
</td>
      <td><?php 
print input('s_date2', $s_date2, 'w=85', '', "onBlur='javascript: ValidateDate(this);'") . cal_image('s_date2', 1) . ' ' . clear('s_date2', '', 1);
?>
</td>
      <td><?php 
print select("s_user", $_users2, $usersn, $s_user);
?>
</td>
		</tr >
    <tr>
			<td colspan=3><br>
				<center>
					<input type="image" id="szukaj" name="szukaj" src="img/button_szukaj.png">
				</center>
			</td>
		</tr>
	</table>
Example #3
0
        print input('cu_password_c', '', 'w=200 m=32');
        ?>
 <img id="generuj" src="./img/button_generuj.png" style="border: none; cursor: pointer; vertical-align: top;"></td></tr>
<tr><td width='20%'>&nbsp;Powtórz hasło</td><td><?php 
        print input('cu_password_c2', '', 'w=200 m=32');
        ?>
</td></tr>
<tr id="p_header"><td colspan=2><b>&nbsp;Dane pełnomocnika</b></td></tr>
<tr id="pdata"><td colspan=2>
<table width='100%' border=0 cellspacing=0 cellpadding=1>
<tr><td width='20%'>&nbsp;Kod pełnomocnika</td><td><?php 
        print input('cu_code_c', $userID ? $X["cu_code_c"] : "", 'w=100 m=10');
        ?>
</td></tr>
<tr><td width='20%'>&nbsp;Data umowy agencyjnej (do faktury)</td><td><?php 
        print input('cu_contract_d', $userID ? date("d.m.Y", $X['data']) : date("d.m.Y"), 'w=85', '', "onBlur='javascript: ValidateDate(this);'") . cal_image('ca_input_d', 1) . ' ';
        print clear('ca_input_d');
        ?>
</td></tr>
<tr><td width='20%'>&nbsp;Prowizja</td><td><?php 
        print input('cu_commision_f', $userID ? $X["cu_commision_f"] : "", 'w=100 m=3');
        ?>
</td></tr>
<tr><td>&nbsp;Adres</td><td>
<?php 
        print select('cu_adr_typ_e', $_adtypy, $adtypy, $userID ? $X["cu_adr_typ_e"] : "ul.", '', '', 'onChange="move_it(this, \'c\');"');
        print input('cu_adr_name_c', $userID ? $X["cu_adr_name_c"] : "", 'w=300 m=255', '', 'onKeyUp="move_it(this, \'c\');"');
        print input('cu_adr_num_c', $userID ? $X["cu_adr_num_c"] : "", 'w=100 m=20', '', 'onKeyUp="move_it(this, \'c\');"');
        ?>
<br>Kraj: <?php 
        print input('cu_adr_country_c', $userID ? $X["cu_adr_country_c"] : "Polska", 'w=200 m=50', '', 'onKeyUp="move_it(this, \'c\');"');
Example #4
0
    ?>
</td></tr>
  <tr><td>&nbsp;Data zobowiązania * <i>(format dd.mm.yyyy)</i></td><td><?php 
    print input('frn_date_d', '', 'w=85', '', 'onBlur="javascript: ValidateDate(this);" onChange="document.getElementById(\'frn_deadline_d\').value=this.value;"') . cal_image('frn_date_d', 1) . ' ';
    ?>
</td></tr>
  <tr><td>&nbsp;Waluta</td><td><?php 
    print select('frn_currency_e', $_currencies, $currencies, 'PLN');
    ?>
</td></tr>
  <tr><td>&nbsp;Kwota *</td><td><?php 
    print input('frn_amount_f', 0, 'w=100 m=10 cl=p13r', '', 'onKeyUp="comma(this); copy_amount(this)"');
    ?>
</td></tr>
  <tr><td>&nbsp;Termin zapłaty *</td><td><?php 
    print input('frn_deadline_d', '', 'w=85') . cal_image('frn_deadline_d', 1) . ' ';
    print clear('frn_deadline_d');
    ?>
 lub <?php 
    print input('dni', '', 'w=40 m=10 cl=p13r');
    ?>
 dni</td></tr>
  <tr><td>&nbsp;Pozostało do zapłaty *</td><td><?php 
    print input('frn_amount_left_f', 0, 'w=100 m=10 cl=p13r', '', 'onKeyUp="comma(this)"');
    ?>
</td></tr>
  <tr><td>&nbsp;Przedawnienie *</td><td><?php 
    print select('frn_expired_e', $_expired, $expired, '2r');
    ?>
</td></tr>
  <tr><td colspan=2><center><?php 
Example #5
0
        <td><?php 
            print input('ca_exec_apply_d', $caID && $X['data_apply'] > 0 ? date("d.m.Y", $X['data_apply']) : '', 'w=85' . (!$edit ? ' d=1' : '')) . ($edit ? cal_image('ca_exec_apply_d', 1) . ' ' . clear('ca_exec_apply_d', '', 1) : '');
            ?>
</td>
      </tr>
      <tr>
        <td>&nbsp;Data nadania klauzuli wykonalności <i>(format dd.mm.yyyy)</i></td>
        <td><?php 
            print input('ca_exec_d', $caID && $X['data_exec0'] > 0 ? date("d.m.Y", $X['data_exec0']) : '', 'w=85' . (!$edit ? ' d=1' : '')) . ($edit ? cal_image('ca_exec_d', 1) . ' ' . clear('ca_exec_d', '', 1) : '');
            ?>
</td>
      </tr>
      <tr>
        <td>&nbsp;Data doręczenia  z klauzulą wykonalności <i>(format dd.mm.yyyy)</i></td>
        <td><?php 
            print input('ca_statement_exec_d', $caID && $X['data_exec'] > 0 ? date("d.m.Y", $X['data_exec']) : '', 'w=85' . (!$edit ? ' d=1' : ''), '', "onBlur='javascript: ValidateDate(this);'") . ($edit ? cal_image('ca_statement_exec_d', 1) . ' ' . clear('ca_statement_exec_d', '', 1) : '');
            ?>
</td>
      </tr>
      <?php 
            if ($_SESSION["fh49ty58u893ytf83902g758902djr4cf302ty5798"]["type"] != 't') {
                ?>
      <tr>
        <td align="center">&nbsp;Druki</td>
        <td><div style=" padding: 5px;"><a href="druk.php?typ=wwonzk&case=<?php 
                print $caID;
                ?>
"><img src="./img/druk.png" alt="druk" border=0 style="vertical-align: bottom;"  /></a> Wniosek o wydanie odpisu nakazu zapłaty z klauzulą </div>
            <div style="padding: 5px;"><a href="druk.php?typ=wyrwnkw&case=<?php 
                print $caID;
                ?>