<?php $pacients = PacientData::getAll(); $medics = MedicData::getAll(); ?> <div class="row"> <div class="col-md-10"> <h1>Nueva Cita</h1> <form class="form-horizontal" role="form" method="post" action="./?action=addreservation"> <div class="form-group"> <label for="inputEmail1" class="col-lg-2 control-label">Asunto</label> <div class="col-lg-10"> <input type="text" name="title" required class="form-control" id="inputEmail1" placeholder="Asunto"> </div> </div> <div class="form-group"> <label for="inputEmail1" class="col-lg-2 control-label">Paciente</label> <div class="col-lg-10"> <select name="pacient_id" class="form-control" required> <option value="">-- SELECCIONE --</option> <?php foreach ($pacients as $p) { ?> <option value="<?php echo $p->id; ?> "><?php echo $p->id . " - " . $p->name . " " . $p->lastname; ?> </option>
</div> <div class="card-content table-responsive"> <div class="btn-group"> <a href="index.php?view=newmedic" class="btn btn-default"><i class='fa fa-support'></i> Nuevo Medico</a> <!--<div class="btn-group pull-right"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-download"></i> Descargar <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="report/medicss-word.php">Word 2007 (.docx)</a></li> </ul> </div> --> </div> <?php $users = MedicData::getAll(); if (count($users) > 0) { // si hay usuarios ?> <table class="table table-bordered table-hover"> <thead> <th>Nombre completo</th> <th>Direccion</th> <th>Email</th> <th>Telefono</th> <th>Area</th> <th></th> </thead> <?php foreach ($users as $user) {