Exemplo n.º 1
0
 function form_ccdev_services()
 {
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
         //print_r($arg_list);
     }
     $patient_id = healthcenter::get_patient_id($get_vars["consult_id"]);
     $ccdev_id = ccdev::registry_record_exists($patient_id);
     if ($ccdev_id == 0) {
         print "<font color='red'>" . LBL_NO_REGISTRY_ID . "</font><br/>";
     } else {
         print "<table width='300'>";
         print "<form action = '" . $_SERVER["SELF"] . "?page=" . $get_vars["page"] . "&menu_id={$menu_id}&consult_id=" . $get_vars["consult_id"] . "&ptmenu=" . $get_vars["ptmenu"] . "&module=" . $get_vars["module"] . "&ccdev=SVC' name='form_ccdev_services' method='post'>";
         print "<tr valign='top'><td>";
         print "<b>" . FTITLE_CCDEV_SERVICES . "</b><br/><br/>";
         print "</td></tr>";
         print "<tr valign='top'><td>";
         // SERVICE
         print "<table bgcolor='#FFFF66' width='300' cellpadding='3'><tr><td>";
         print "<span class='boxtitle'>" . LBL_SERVICES . "</span><br> ";
         print ccdev::checkbox_services();
         print "</td></tr>";
         print "</table>";
         print "</td></tr>";
         print "<tr valign='top'><td>";
         // VACCINE DATA
         print "<table bgcolor='#CCCCFF' width='300' cellpadding='3'><tr><td>";
         print "<span class='boxtitle'>" . LBL_VACCINATIONS . "</span><br> ";
         print ccdev::checkbox_vaccines($get_vars["consult_id"]);
         if ($_SESSION["priv_add"]) {
             // complete or incomplete
             //$status = ccdev::get_immunization_status($patient_id);
             // check if all required vaccines have been given
             //$fully_immunized = ccdev::fully_immunized($ccdev_id);
             /*if ($fully_immunized=="Y") {
                   if (eregi("Incomplete", $status)) {
                       print "<br/><input type='submit' name='submitccdev' value='Fully Immunized' class='tinylight' style='border: 1px solid black; background-color: #99FF00;' /><br/>";
                   }				
               }*/
         }
         print "</td></tr>";
         print "</table>";
         print "</td></tr>";
         print "<tr><td><br/>";
         if ($_SESSION["priv_add"]) {
             print "<input type='hidden' name='ccdev_id' value='{$ccdev_id}'>";
             print "<input type='submit' value = 'Update Record' class='textbox' name='submitccdev' style='border: 1px solid #000000'> ";
             //print "<input type='submit' value = 'For Vaccination' class='textbox' name='submitccdev' style='border: 1px solid #000000'> ";
         }
         print "</td></tr>";
         print "</form>";
         print "</table><br>";
     }
 }