<?php
session_start();
include "./var.php";
$id_session = $_SESSION['id'];
$id_usuario = $_SESSION['id_estrategia'];
$clientesoptions = getclientesoption();
$lineasdenegocio = getoptionlienaneg();
$tipologias = getoptiotipologia();
$checksetapas = getchecketapas();
$usuariosoptions = getoptionusuarios();
//$datostablausuarios = getusuarios();


/*
$cuestionario = getcuestionario();
$tratamientos = gettratamientosinput();
$cuestionarioev = getcuestionarioev();


$clientesop = getclientesop();
$Psicologo = getclientesopespecial('Psicologo');
$Nutriologo = getclientesopespecial('Nutriologo');
$Entrenador_Fisico = getclientesopespecial('Entrenador Fisico');
$Masajista = getclientesopespecial('Masajista');
$Dentista = getclientesopespecial('Dentista');
$Asesor_de_Imagen = getclientesopespecial('Asesor de Imagen');
$Psisoterapeuta = getclientesopespecial('Psisoterapeuta');
*/

$adicionales=<<<sss
<script type="text/javascript">
var id_session = "$id_usuario";
var idusuario = $id_usuario;
</script>
<script src="../vendors/fastclick/lib/fastclick.js"></script>
<script src="../vendors/nprogress/nprogress.js"></script>
<script src="../vendors/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>

<script src="../js/scripttable.js"></script>
<!--<link href='../fullcalendar/fullcalendar.min.css' rel='stylesheet' />
<link href='../fullcalendar/fullcalendar.print.min.css' rel='stylesheet' media='print' />
<script src='../fullcalendar/lib/moment.min.js'></script>

<script src='../fullcalendar/fullcalendar.min.js'></script>
<script src="../js/scripttable.js"></script>
<script src="../js/calendarerf.js"></script>-->

sss;
echo $varfirst;


echo $var=<<<llll
<div class="right_col" role="main">
  <div class="col-md-12 col-xs-12">
    <div class="x_panel">
      <div id="wizard_verticle" class="form_wizard wizard_verticle">
            <ul class="list-unstyled wizard_steps">
              <li>
                <a href="#step-11">
                  <span class="step_no">1</span>
                </a>
              </li>
              <li>
                <a href="#step-22">
                  <span class="step_no">2</span>
                </a>
              </li>
              <li>
                <a href="#step-33">
                  <span class="step_no">3</span>
                </a>
              </li>
              <li>
                <a href="#step-44">
                  <span class="step_no">4</span>
                </a>
              </li>
              <li>
                <a href="#step-55">
                  <span class="step_no">5</span>
                </a>
              </li>
            </ul>

                      <div id="step-11">
                            <div class="col-md-12 col-xs-12">

                                      <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-right">
                                          <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12"><h2>Llenar Presupuesto:</h2></label>
                                          </div>

                                          <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Folio:</label>
                                            <div class="col-md-2 col-sm-2 col-xs-12">
                                              <input id="ndegasto" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required" disabled>
                                            </div>
                                          </div>

                                          <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Cliente:</label>
                                            <div class="col-md-6 col-sm-6 col-xs-12">
                                              <select class="form-control" id="idcliente" required="required">
                                                <option value="">Seleccione opcion</option>
                                                $clientesoptions
                                              </select>
                                            </div>
                                          </div>

                                          <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Nombre Proyecto :</label>
                                            <div class="col-md-6 col-sm-6 col-xs-12">
                                              <input id="nombreproyectos" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                            </div>
                                          </div>

                                          <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">M2 :</label>
                                            <div class="col-md-6 col-sm-6 col-xs-12">
                                              <input id="idm2" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                            </div>
                                          </div>

                                          <div class="form-group">
                                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Seleccione linea de negocio:
                                            </label>
                                            <div class="col-md-6 col-sm-6 col-xs-12">
                                              <select class="form-control" id="idlineadenegocio" required="required">
                                                <option value="">Seleccione opcion</option>
                                                $lineasdenegocio
                                              </select>
                                            </div>
                                          </div>

                                          <div class="form-group">
                                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">Tipologia:
                                            </label>
                                            <div class="col-md-6 col-sm-6 col-xs-12">
                                              <select class="form-control" id="idtipologia" required="required">
                                                <option value="">Seleccione opcion</option>
                                                $tipologias
                                              </select>
                                            </div>
                                          </div>
                                            

                                            <label class="col-md-1 col-sm-1 col-xs-12 control-label">Seleccione Etapas:
                                              <br>
                                            </label>
                                          <div class="form-group">
                                            $checksetapas
                                          </div>

                                          
                                          <div class="ln_solid"></div>
                                          <br>
                                          <div class="form-group">
                                            <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                              <button id="limpiargastos" class="btn btn-primary" type="reset">Limpiar</button>
                                              <button type="button" class="btn btn-success" onclick="agregarcotizacion();">Sioguiente</button>
                                            </div>
                                          </div>
                                        </form>
                                    
                            </div>      
                      </div>
                      <div id="step-22">
                        <h2 class="StepTitle">Agregar recursos por etapa</h2>
                          <div style="width: 280; height: 500px; overflow-y: scroll;" >
                              <div class="col-md-12 col-xs-12">
                                <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                      
                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">seleccione concepto de gasto:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      $usuariosoptions
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">¿Es especialista?:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      <option value="">si</option>
                                      <option value="">no</option>
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Ingrese monto:</label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="ndegasto" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                  </div>
                                </div>
                                
                                <div class="ln_solid"></div>
                                <br>
                                <div class="form-group">
                                  <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                    <button id="limpiargastos" class="btn btn-primary" type="reset">Limpiar</button>
                                    <button type="button" class="btn btn-success" onclick="agregargastos();">Guardar</button>
                                  </div>
                                </div>

                              </form>
                              </div>  
                          </div>
                          <div class="col-md-12 col-xs-12">
                          <div class="x_panel">
                            <div class="x_title">
                              <h2><strong>Nómina arquitectura:</strong> <small></small></h2>
                              <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                              </ul>
                              <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                              <br />
                              <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                                
                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">seleccione concepto de gasto:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">¿Es especialista?:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      <option value="">si</option>
                                      <option value="">no</option>
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Ingrese monto:</label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="ndegasto" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                  </div>
                                </div>
                                
                                <div class="ln_solid"></div>
                                <br>
                                <div class="form-group">
                                  <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                    <button id="limpiargastos" class="btn btn-primary" type="reset">Limpiar</button>
                                    <button type="button" class="btn btn-success" onclick="agregargastos();">Guardar</button>
                                  </div>
                                </div>

                              </form>
                            </div>
                            
                             <div class="x_content">
                              <div class="table-responsive">
                              </div>
                            <!--<button class="btn btn-danger" type="button" id="button">Borrar</button>
                            <small>(Para eliminar un registro debe seleccionarlo y después debe oprimir Borrar).</small>-->
                          </div>
                          </div>
                      </div>
<div class="col-md-12 col-xs-12">
                          <div class="x_panel">
                            <div class="x_title">
                              <h2><strong>Especialistas:</strong> <small></small></h2>
                              <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                              </ul>
                              <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                              <br />
                              <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                                
                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">seleccione concepto de gasto:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">¿Es especialista?:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      <option value="">si</option>
                                      <option value="">no</option>
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Ingrese monto:</label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="ndegasto" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                  </div>
                                </div>
                                
                                <div class="ln_solid"></div>
                                <br>
                                <div class="form-group">
                                  <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                    <button id="limpiargastos" class="btn btn-primary" type="reset">Limpiar</button>
                                    <button type="button" class="btn btn-success" onclick="agregargastos();">Guardar</button>
                                  </div>
                                </div>

                              </form>
                            </div>
                            
                             <div class="x_content">
                              <div class="table-responsive">
                              </div>
                            <!--<button class="btn btn-danger" type="button" id="button">Borrar</button>
                            <small>(Para eliminar un registro debe seleccionarlo y después debe oprimir Borrar).</small>-->
                          </div>
                          </div>
                      </div>
                      <!---->
                      <div class="col-md-12 col-xs-12">
                          <div class="x_panel">
                            <div class="x_title">
                              <h2><strong>Otros Directos:</strong> <small></small></h2>
                              <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                              </ul>
                              <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                              <br />
                              <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                                
                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">seleccione concepto de gasto:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">¿Es especialista?:
                                  </label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <select class="form-control" id="cuentaegreso" required="required">
                                      <option value="">Seleccione opcion</option>
                                      <option value="">si</option>
                                      <option value="">no</option>
                                    </select>
                                  </div>
                                </div>

                                <div class="form-group">
                                  <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Ingrese monto:</label>
                                  <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input id="ndegasto" class="form-control col-md-7 col-xs-12" type="text" name="ndegasto" required="required">
                                  </div>
                                </div>
                                
                                <div class="ln_solid"></div>
                                <br>
                                <div class="form-group">
                                  <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                    <button id="limpiargastos" class="btn btn-primary" type="reset">Limpiar</button>
                                    <button type="button" class="btn btn-success" onclick="agregargastos();">Guardar</button>
                                  </div>
                                </div>

                              </form>
                            </div>
                            
                             <div class="x_content">
                              <div class="table-responsive">
                              </div>
                            <!--<button class="btn btn-danger" type="button" id="button">Borrar</button>
                            <small>(Para eliminar un registro debe seleccionarlo y después debe oprimir Borrar).</small>-->
                          </div>
                          </div>
                      </div>
                      <!---->
                      </div>
                      <div id="step-33">
                        <h2 class="StepTitle">Revisar Información</h2>
                          <div style="width: 280; height: 500px; overflow-y: scroll;" >
                              
                          </div>
                        
                      </div>
                      <div id="step-44">
                        <h2 class="StepTitle">Guardar</h2>
                        
                      </div>
                    

      </div>
    </div>
  </div>
</div>
llll;
echo $varend;
echo $adicionales;
echo $cerrarend;
?>