コード例 #1
0
                                        </div>
                                        <div class="tabla">
                                            <table id="TablaFiltro" >
                                                <thead>
                                                    <tr id="encabezado">
                                                        <td>Tipo de dispositivo</td>
                                                        <td>Clase de equipo</td>
                                                        <td>Modificar</td>
                                                        <td>Eliminar</td>
                                                    </tr>
                                                </thead>
                                                <tbody>

                                                    <?php 
                                foreach ($tipos as $tDto) {
                                    $cDto = $controlador->verClase($tDto->getIdClase());
                                    ?>
                                                        <tr>
                                                            <td><?php 
                                    echo utf8_encode($tDto->getNombreTipo());
                                    ?>
</td>
                                                            <td><?php 
                                    echo utf8_encode($cDto->getNombreClase());
                                    ?>
</td>
                                                            <td><a href="tipos.php?id=<?php 
                                    echo $tDto->getIdTipo();
                                    ?>
"><img alt="Modificar tipo" src="../resources/imagenes/Modificar.png" ></a></td>
                                                            <td><a href="tipos.php?no=<?php 
コード例 #2
0
                                    <?php 
                            }
                            break;
                        default:
                            ?>

                            <script>
                                location.href = "index_admin.php";
                            </script> 

                        <?php 
                    }
                } else {
                    if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) {
                        $cDto = $controlador->verClase($_REQUEST['id']);
                        if ($cDto != null) {
                            ?>

                        <form class="formClase" id="signupForm" action="clases.php" method="post">
                            <h3 style="color: #6495ED; font-family: 'arial';">Modifique la clase de equipo</h3>
                            <hr>
                            <table>
                                <tr>
                                    <td></td>
                                    <td><input type="text" name="txtNumero" id="txtNumero" hidden="true" value="<?php 
                            echo $cDto->getIdClase();
                            ?>
"></td>
                                </tr>
                                <tr>