<?php $pacients = ProjectData::getAll(); $medics = CategoryData::getAll(); ?> <div class="row"> <div class="col-md-10"> <h1>Nueva Tarea</h1> <form class="form-horizontal" role="form" method="post" action="./?action=addtask"> <div class="form-group"> <label for="inputEmail1" class="col-lg-2 control-label">Titulo</label> <div class="col-lg-10"> <input type="text" name="title" required class="form-control" id="inputEmail1" placeholder="Titulo"> </div> </div> <div class="form-group"> <label for="inputEmail1" class="col-lg-2 control-label">Descripcion</label> <div class="col-lg-10"> <textarea class="form-control" rows="5" name="description" placeholder="Descripcion"></textarea> </div> </div> <div class="form-group"> <label for="inputEmail1" class="col-lg-2 control-label">Proyecto</label> <div class="col-lg-4"> <select name="project_id" class="form-control"> <option value="">-- SELECCIONE --</option> <?php foreach ($pacients as $p) { ?>
<div class="row"> <div class="col-md-12"> <div class="btn-group pull-right"> <a href="index.php?view=newproject" class="btn btn-default"><i class='fa fa-th-list'></i> Nuevo Ministerio</a> </div> <h1>Ministerios</h1> <br> <?php $users = ProjectData::getAll(); if (count($users) > 0) { // si hay usuarios ?> <table class="table table-bordered table-hover"> <thead> <th>Nombre</th> <th>Opciones</th> </thead> <?php foreach ($users as $user) { ?> <tr> <td><?php echo $user->name . " " . $user->lastname; ?> </td> <td style="width:190px;"><a href="index.php?view=projecthistory&id=<?php echo $user->id; ?> " class="btn btn-default btn-xs">Historial</a> <a href="index.php?view=editproject&id=<?php echo $user->id;