Beispiel #1
0
echo get_name('sl_gab', $_SESSION['ed_lek_bad']);
?>
</legend>
   <table align="center">
       <tr class="linia">
           <td class="linia">Typ:</td>
           <td class="linia">Płatnik:</td>
           <td rowspan="2"><input type="submit" value="Szukaj" name="filtr_badania" class="butt4"></td>
       </tr>
       <tr class="linia">
           <td class="linia"><?php 
form_auto_submit_2m("ed_przyp_typ", $list_typ_bad, $_SESSION['filtr_typ']);
?>
</td>
           <td class="linia"><?php 
form_auto_submit_2m("ed_przyp_firma", $lista_firm, $_SESSION['filtr_firma']);
?>
</td>
       </tr>
   
   </table>
   <table align="center"><tr class="linia"><td class="linia">
   <select class="required" name="bad_wolne[]" multiple="multiple" id="uslugi" size="15">
   <?php 
foreach ($list_typ_wizz as $i => $w) {
    echo '<option value="' . $i . '"';
    echo ' class=opt' . $list_typ_wizz_kolor[$i] . '>' . $w . '</option>';
}
?>
   </select>
   </td><td class="linia">
Beispiel #2
0
  if (!$_GET['page']) {
      echo '<input type=submit value="Szukaj" name="sz_pac" id="sz_pac_p">
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <input type=submit value="Wyczysc" name="wy_pac">
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <input type=submit value="Dodaj" name="dod_pac">';
  } elseif ($_GET['page'] == 'add') {
      echo '<input type=submit value="Dodaj pacjenta" name="dod_pac" id="dod_pac_butt"></li><li>';
      echo '<input type="hidden" name="pacjenci" value="pacjenci">';
  }
  if ($_GET['page'] == 'add') {
      form_auto_submit_2m("typ_firmy", $list_firm);
      form_auto_submit_2m("typ_wiz", $list_typ_wiz);
  }
  if ($_GET['page'] == 'edit') {
      form_auto_submit_2m("typ_wiz", $list_typ_wiz, $wiz_det['typ_wiz']);
  }
  echo '</li></ul></fieldset>';
  if ($_POST['wyb_pac_del']) {
      foreach ($_POST['wyb_pac_del'] as $i => $w) {
          $del_pac = $i;
      }
      $sql5 = "select count(id_pac) from wizyty where id_pac = " . $del_pac;
      $result5 = mysql_query($sql5);
      $row5 = mysql_fetch_array($result5);
      #$sql='update pac set akt=0 where id ='.$del_pac;
      echo '<table align="center" bgcolor=#ff0000><tr align="center"><td><b>Uwaga !!!<b><br>';
      echo 'Pacjent posiada ' . $row5[0] . ' zapisanych wizyt';
      echo '<br>Czy chcesz usunąć pacjenta i powiązane z nim wizyty ?';
      echo '<br>';
      echo '<form method="post" action="index.php">';
Beispiel #3
0
    ##koniec tabeli
} elseif ($_SESSION['grupa_realiz_wiz'] == 2) {
    echo '<tr><td>ICD10:</td><td class="linia"><input type="text" name="icd10" size=5 id="icd10" value="' . $_SESSION['icd10'] . '"><span id="status"></span></td></tr>';
    echo '<tr><td>Badanie ' . get_name('sl_uslugi', $_SESSION['typ_realiz_wiz']) . '</td><td align="center" class="linia"><textarea id="wiz_badanie_opis" name="wiz_badanie_opis" rows="6" cols="100" class="opis">' . $_SESSION['wiz_badanie_opis'] . '</textarea></td><td><button id="openerc" class="butt">Szablon</button></td></tr>';
    echo '<div id="timestamp"></div>';
} elseif ($_SESSION['grupa_realiz_wiz'] == 3) {
    $opis_bad = explode('###!!!', $_SESSION['wiz_badanie_opis']);
    echo '<tr><td>ICD10:</td><td class="linia"><input type="text" name="icd10" size=5 id="icd10" ' . $klasaicd . ' value="' . $_SESSION['icd10'] . '"><span id="status"></span></td></tr>';
    echo '<tr><td>Wywiad</td><td align="center" class="linia"><textarea id="wiz_wyw_opis" name="wiz_wyw_opis" rows="6" cols="100" class="opis">' . $_SESSION['wiz_wyw_opis'] . '</textarea></td><td><button id="openerw" class="butt">Szablon</button></td></tr>';
    echo '<tr><td>Badanie</td><td align="center" class="linia"><textarea id="wiz_badanie_opis" name="wiz_badanie_opis" rows="6" cols="100" class="opis">' . $opis_bad[0] . '</textarea></td><td><button id="openerb" class="butt">Szablon</button></td></tr>';
    echo '<tr><td>Badanie ' . get_name('sl_uslugi', $_SESSION['typ_realiz_wiz'], 'nazwa_opis') . '</td><td align="center" class="linia"><textarea id="wiz_badanie_opis_bad" name="wiz_badanie_opis_bad" rows="6" cols="100" class="opis">' . $opis_bad[1] . '</textarea></td><td><button id="openerc" class="butt">Szablon</button></td></tr>';
    echo '<tr><td>Zalecenia</td><td align="center" class="linia"><textarea id="wiz_zalecenia_opis" name="wiz_zalecenia_opis" rows="6" cols="100" class="opis">' . $_SESSION['wiz_zalecenia_opis'] . '</textarea></td><td><button id="opener" class="butt">Szablon</button></td></tr>';
    echo '<div id="timestamp"></div>';
}
$sql11 = "select sl_uslugi.* from sl_uslugi, gab_bad where sl_uslugi.id = gab_bad.id_bad and gab_bad.id_gab = " . $_SESSION['wyb_gab'] . " and sl_uslugi.akt=1 order by sl_uslugi.nazwa, sl_uslugi.id_grupy";
$result11 = mysql_query($sql11);
while ($row11 = mysql_fetch_array($result11)) {
    $list_typ_wiz[$row11['id']] = $row11['nazwa'];
}
echo '<tr><td colspan=3 align="center">';
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit value="Anuluj" name="wiz_anuluj" class="butt4" id="zap_anul">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit value="Zapisz" name="wiz_zapisz_ed" class="butt" id="zap_butt"></td></tr>';
echo '</form>';
echo '<tr><td colspan=3 align="center">';
echo '<div id="zmm_typw">Zmień typ wizyty na:';
echo '<form action="index.php" method=post>';
form_auto_submit_2m("zm_typ_wiz", $list_typ_wiz, $_SESSION['typ_realiz_wiz']);
echo '<input type=submit value="Zmień" name="wiz_zmien_typ" class="butt">';
echo '</div>';
echo '</form>';
echo '</td></tr>';
echo '</table>';