Exemplo n.º 1
0
<?php

require_once "../config.cls.php";
require_once "../modelo/usuario.cls.php";
$config = new clsConfig();
if (isset($_SESSION['vox_codigo'])) {
    $admin = new clsUsuario();
    $admin->SelecionaPorCodigo(trim($_SESSION['vox_codigo']));
} else {
    $config->Logout(false);
    $config->ConfirmaOperacao($config->GetPaginaPrincipal(), "Você não tem permissão para acessar essa página!");
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

   
<head>
    <title>&Aacute;rea Administrativa - VOX</title>
    <link href="estilo/estilo.css" rel="stylesheet" type="text/css" />
    
    <!-- ESTILO DATAGRID-->
	<link href="estilo/datagrid/dhtmlxgrid.css"  rel="stylesheet" type="text/css" />
	<link href="estilo/datagrid/dhtmlxgrid_skins.css" rel="stylesheet" type="text/css"  />
	<link href="estilo/datagrid/style.css" rel="stylesheet" type="text/css" />
	
    <!-- ESTILO JANELA -->
    <link href="css/themes/default.css" rel="stylesheet" type="text/css" />	
Exemplo n.º 2
0
  <tr>
    <td width="17" valign="top">&nbsp;</td>
    <td width="385" valign="middle" align="center" >
    
    <table width="82%" border="0" cellspacing="0" cellpadding="0" class="tabelaDeTipos">
      <tr>
        <td>&nbsp;</td>
        <td>
		<?php 
switch (trim($metodo)) {
    case 'novo':
        echo '<b> NOVO USU&Aacute;RIO</b>';
        break;
    case 'altera':
        echo '<b> ALTERA&Ccedil;&Atilde;O DE USU&Aacute;RIO</b>';
        $usuario->SelecionaPorCodigo($codigo);
        break;
}
?>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="76">C&oacute;digo:</td>
        <td width="310">
            <label>
            <input type="text" name="txtCodigo" id="txtCodigo" class="caixaGrande" disabled="disabled" value="<?php 
echo $usuario->GetCodigo();