Page 99 - DISEÑAR ESTRATEGIAS A TRAVÉS DEL SERVICIÓ AL CLIENTE PARA LA APLICACIÓN NORMATIVA VIGENTE EN EL FUNCIONAMIENTO Y ORGANIZACIÓN DEL SERVICIO DE LABORATORIO DEL HOSPITAL DE LA COMUNIDAD DE NARANJOS
P. 99

ellos. Cuenta también con una imagen de enlace para agregar un nuevo registro y una
                     imagen (impresora) para imprimir la consulta general en formato PDF.
























                                         Figura 42. bajasconsulta_empleados.php


                     Para crear todos los elementos de esta consulta, se hizo uso del siguiente código:


                     <?php require_once('Connections/conexion_cfe.php'); ?>

                     <?php
                     if (!function_exists("GetSQLValueString")) {

                     function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
                     $theNotDefinedValue = "")

                     {

                       if (PHP_VERSION < 6) {
                         $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

                       }
                       $theValue = function_exists("mysql_real_escape_string") ?

                     mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
                       switch ($theType) {

                         case "text":

                           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
                           break;

                         case "long":

                         case "int":



                                                                                             Página 99
   94   95   96   97   98   99   100   101   102   103   104