<!-- Creado: Félix Ricardo Oliva Alonso, 18/10/2016. Se crea la la vista registrar -->

<?php

use App\Libraries\ejLib;
$var = ejLib::getInstance();
$soapclient = $var->getWs();
$wsClave = $var->get_wsClave();

$response = $soapclient->vCat_CentroSalud($wsClave);
$RESPUESTAS = new SimpleXMLElement(utf8_encode($response));

?>







@extends('layouts.master')
@section('titulo')
  {{ 'Registrar Equipo' }}
@endsection


@section('titulo_pagina')
  <div class="titulo_pagina">
    <h2>REGISTRAR EQUIPO</h2>
  </div>
@endsection

<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/admingeneral.css">
<link rel="stylesheet" href="css/usuariogeneral.css">
<link rel="stylesheet" href="css/usuariocm.css">

<script src="js/jquery-3.1.0.min.js"></script>
<script src="js/agregarcss.js"></script>
<script src="js/validar/login.js"></script>
<script src="js/jqv/dist/jquery.validate.js"></script>

<style media="screen">
  div.error {
    height: 15px;
    padding: 3px;
    background-color:rgba(0, 0, 0, 0.7);
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    -webkit-border-radius: 3px 3px 3px 3px;
    font-size: 9pt;

    -webkit-box-shadow: 1px 2px 3px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 2px 3px -1px rgba(0,0,0,0.75);
    box-shadow: 1px 2px 3px -1px rgba(0,0,0,0.75);

    position:absolute;
    margin-top:30px;
    margin-left:0px;
    text-align:left;
    color: #ffffff;
    animation: fadein 0.8s;
  }

  @keyframes fadein {
    from { opacity: 0}
    to   { opacity: 1}
  }
</style>

@section('content')
  <div id="contenedor2">
    <form name="registrar" id="registrar"  method="post" action="{{url('consultorio-AdministrarConsultorios_registraEquipoValidar')}}"  >
    <input type="hidden" name="_token" value="{{csrf_token()}}">
      <div id="form2" >

        <fieldset> <br><br>
          <legend><h3>AUTENTICACIÓN DEL USUARIO</h3></legend>
        <div class="row">
            <div class="col2">
              <div class=" form-group col-md-12 ">
                <div class="input-group input-group-sm col-md-12">
                  <span class="input-group-addon" id="sizing-addon3">Usuario</span>
                  <input type="text" class="form-control" name="usuario_reg" id="usuario_reg" >
                </div>
              </div>
            </div>

            <div class="col2 col-md-offset-1">
              <div class=" form-group col-md-12">
                <div class="input-group input-group-sm col-md-12">
                  <span class="input-group-addon" id="sizing-addon3">Clave</span>
                  <input type="text" class="form-control" name="clave_reg" id="clave_reg">
                </div>
              </div>
            </div>

            <div class="col1 col-md-offset-1">
              <div class="input-group-sm form-group col-md-1 ">
                <button type="submit" id="btn_validar_reg">Validar</button>
              </div>
            </div>

        </div>
      </fieldset>
  </form>


      <form   method="post" action="{{url('consultorio-AdministrarConsultorios_registraEquipo')}}"  >
      <input type="hidden" name="_token" value="{{csrf_token()}}">
      <fieldset> <br> <br>
        <div class="row">
            <div class="col1 ">
              <div class="input-group-sm form-group col-md-1">
                <button type="submit" id="btn_registrar_reg">Registrar</button>
              </div>
            </div>

            <div class="col4">
              <div class="form-group col-md-11">
                <div class="input-group input-group-sm col-md-offset-3 col-md-12">
                  <select id="centro_salud_reg" name="lugar_n" class="form-control" >
                    <option disabled selected>Elija una opción</option>
                      @foreach($RESPUESTAS->respuesta as $cs)
                        <option value="{!! $cs->centro_sal !!}">{!! $cs->desc_centr !!}</option>
                      @endforeach
                  </select>
                </div>
              </div>
            </div>
        </div>
        </fieldset>


      </div>
    </form>

  </div>

@endsection
