Location: PHPKode > projects > SGDWeb > sgdweb/index.php
<? 
	session_start();

	if($_GET['action'] == 'cerrar_sesion'){
	   $HTTP_SESSION_VARS['sesion'] = 0;   
       session_destroy();
    } 

?>

<html>
<head>

    <title>Sistema de Gestion de Documentos Web</title>
    <link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/ext-all.css" />
 	<script type="text/javascript" src="lib/extjs/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="lib/extjs/ext-all.js"></script>
	
    <link rel="stylesheet" type="text/css" href="css/layout-browser.css">
	<link rel="stylesheet" type="text/css" href="css/buttons.css">
	
	<script type='text/javascript' src='js/FileUploadField.js'></script>

     
	 

     <?php

	     require "php/selec_tipo_usuario.php"; //Selecciona la interfaz a mostrar dependiendo del tipo de usuario.
	 ?>	

</head>
<body >

		<?PHP
			if($HTTP_SESSION_VARS['sesion'] != 1){
				echo "<div style='width:100%; margin-top:200px;'>
					<div style='float:left; width:35%;'>
					 <div style='float:right; margin-right:20px;'>
					   <img src='images/icon_login.jpg' />
					  </div>
					</div>
					<div id='login' style='float:left; width:35%;'>
				<img src='images/nombre_UV.jpg'/>
					</div>
					<div style='float:left; width:24%;'>
					 <div style='float:left; margin-left:0px;'>
					 
					  </div>
					</div>
				</div>";
			}
		?>
			          	
		<div  align="center" id="cabecera" style="width:100%"></div>


		<div id="pie"  >	
			<?php
			if($HTTP_SESSION_VARS['sesion'] == 1){
		         require "./includes/pie.php";
			}	 
			?>	
		</div>

	
</body>
</html>
Return current item: SGDWeb