コード例 #1
0
ファイル: ActionRrhh.php プロジェクト: gianpascal/yachay
 public function grabarTurnoProgramar($datos)
 {
     $oLRrhh = new LRrhh();
     $respuesta = $oLRrhh->grabarTurnoProgramar($datos);
     if (is_array($respuesta)) {
         if ($respuesta[0][0] == 'ok') {
             $respuesta = "<h2 style='color: blue'>Se Agreg&oacute; Corectamente.</h2>";
         } else {
             if ($respuesta[0][0] == 'existe') {
                 $respuesta = "<h2 style='color: red'>El c&oacute;digo " . $datos["idTurnoProgramar"] . " que intenta ingresar ya existe.</h2>";
             } else {
                 $respuesta = "<h2 style='color: red'>Fallo el registro.</h2>";
             }
         }
     }
     return $respuesta;
 }