Example #1
0
         <td><strong>N° Totvs</strong></td>
         <td><a href="javascript:viewContrato();" class="label label-info"><?php echo $var_contrato_totvs; ?></a></td>
     </tr>
     <tr>
         <!-- cliente uno -->
         <td><strong><?php echo getTipoUsuario( $usuario["userTipo"] ); ?>:</strong></td>
         <td>
             <?php
             echo $row["eReplySentstatus"];
             echo '<a class="label label-info" href="javascript:viewUser(cliente_uno, \'cliente_uno\')">' . utf8_encode(stripslashes($var_username)) . '</a>'; ?>
         </td>
     </tr>
     <tr>
         <!-- cliente dos -->
         <?php   if ( isset($cliente_dos) ) {    ?>
             <td><strong><?php echo getTipoUsuario( $cliente_dos["userTipo"] ); ?>:</strong></td>
             <td><?php echo '<a class="label label-info" href="javascript:viewUser(cliente_dos, \'cliente_dos\')" >' . utf8_encode(stripslashes($cliente_dos["vUserName"])) .'</a>'; ?></td>
         <?php   }   ?>
     </tr>
 <?php } ?>
 <?php if ( $var_propiedad != 0 ) { ?>
     <tr>
         <td><strong>Direccion:</strong></td>
         <td><?php echo utf8_encode($propiedad["direccion"]); ?></td>
     </tr>
     <tr>
         <td><strong>Kardex:</strong></td>
         <td><span class="label label-info"><?php echo $propiedad["kardex"]; ?></span></td>
     </tr>
     <tr>
         <td><strong>Sucursal:</strong></td>
Example #2
0
function menuProfesores()
{
    if (AuthUser::TIPO_SUPER_USUARIO == getTipoUsuario()) {
        $home[] = array("img" => getPath() . "images/admin.png", "url" => getPath() . "super_usuario.php", "text" => "Home", "title" => "Home Super Ususario", "alt" => "Home", "id" => "", "class" => "");
        $home[] = array("img" => "../images/personal.png", "url" => getPath() . "profesor/utp.php", "text" => "U.T.P.", "title" => "Unidad T&eacute;cnico Pedag&oacute;gica", "alt" => "Unidad T&eacute;cnico Pedag&oacute;gica", "id" => "", "class" => "classUTP");
    }
    if (AuthUser::TIPO_UTP == getTipoUsuario()) {
        $home[] = array("img" => "../images/personal.png", "url" => getPath() . "profesor/utp.php", "text" => "U.T.P.", "title" => "Unidad T&eacute;cnico Pedag&oacute;gica", "alt" => "Unidad T&eacute;cnico Pedag&oacute;gica", "id" => "", "class" => "classUTP");
    }
    $home[] = array("img" => getPath() . "images/admin.png", "url" => getPath() . "profesor/profesores.php", "text" => "Profesor", "title" => "Home Profesor", "alt" => "Profesor", "id" => "titleProfesores", "class" => "");
    $menu = array(array("img" => "../images/back.png", "url" => "javascript:void(0);", "text" => "Salir", "title" => "Salir", "alt" => "Salir", "id" => "", "class" => "salir"), array("img" => "../images/webmail.png", "url" => "http://www.dor.cl/webmail", "text" => "Email", "title" => "Correo Institucional", "alt" => "Correo Institucional", "id" => "", "class" => ""));
    $menu = array_merge($home, $menu);
    return $menu;
}
Example #3
0
<?php

include '../data/dataUsuario.php';
$usuario = $_POST["nombreUsuario"];
$pass = $_POST["pass"];
$validarUsuario = getNombreUsuario($usuario);
if ($usuario != $validarUsuario) {
    //metodo para validar si el usuario esta registrado y armar la variable de sesion
    echo "<script> alert('Este usuario no se encuentra registrado, por favor intente de nuevo.');" . "window.location='../index.php'</script>";
} else {
    $validarPass = getPass($usuario);
    if ($pass != $validarPass) {
        //valida si la contraseña es correcta
        echo "<script> alert('Contraseña erronea, por favor intente de nuevo');" . "window.location='../index.php'</script>";
    } else {
        $tipoUsuario = getTipoUsuario($usuario);
        if ($tipoUsuario === "estudiante") {
            //si es tipo estudiante arma una variable de sesion estudiante
            session_start();
            $_SESSION['usuario'] = $usuario;
            $_SESSION['tipo'] = $tipoUsuario;
            $_SESSION['id'] = getIdUsuario($usuario);
            $_SESSION['nivel'] = getNivelUsuario($usuario);
            header('Location: ../menu.php');
        } else {
            //si no es tipo estudiante arma una variable de sesion admin
            session_start();
            $_SESSION['usuario'] = $usuario;
            $_SESSION['tipo'] = $tipoUsuario;
            $_SESSION['id'] = getIdUsuario($usuario);
            header('Location: ../menuAdmin.php');
Example #4
0
                    ?>
                                        <td>Direccion:</td>
                                        <td> <b><?php 
                    echo $propiedad["direccion"];
                    ?>
</b></td>
                                        <?php 
                }
                ?>

                                        <!-- cliente dos -->
                                        <?php 
                if (isset($cliente_dos)) {
                    ?>
                                            <td style="word-break:break-all; "><?php 
                    echo getTipoUsuario($cliente_dos["userTipo"]);
                    ?>
:</td>
                                            <td>
                                                <?php 
                    echo " <a href=\"javascript:viewUser(cliente_dos)\" > <b>" . htmlentities(stripslashes($cliente_dos["vUserName"])) . "</a></b>";
                    ?>
                                            </td>
                                        <?php 
                }
                ?>
                                    </tr>
                                    <tr>
                                        <td><?php 
                echo ucfirst(TEXT_DATE);
                ?>