<?
////////////////////////////////////////////////////
// Conciliación: gestión de conciliación de activos
// Version: 1.0
//
// Copyright (C) 2014  Eustotem Multimedia, S.L.
//
// License: MIT, see LICENSE
////////////////////////////////////////////////////


include("../conf/preferences.php");
session_name(SYS_APP_SESSNAME);
session_start();
include("../conf/langs/".$langs[$_SESSION['userlang']][0]."/MAIN.php");
include("../conf/connections.php");
require_once("../phplib/utils.php");
require_once("../core/plugins.php");
$r=SYS_USER_STYLES_PATH;

$qq=mysql_query("SELECT nombre FROM " . SYS_GROUPS_TABLE . " WHERE id=" . $_SESSION[session_id()]['grupo']);
$ff=@mysql_fetch_array($qq);
if($_SESSION[session_id()]['level']==1) $ff['nombre']="Personal técnico";
?>
<!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><? echo $_SESSION['application']['name'] ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../<? echo SYS_USER_STYLES_PATH ?>styles_top.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
</style>
</head>

<body class="gradient_sanmarko">
		<div id="panel_top_derecha">
			<div id="panel_top_botonera">
				<a href="<? echo $_SESSION[session_id()]['homepage'] ?>" target="mainFrame" title="Página de inicio" class="boton01"></a>
				<a href="../core/template_detail_3.php?resId=805020" target="mainFrame" title="Mi cuenta de usuario" class="boton02"></a>
				<a href="../help/index.php" target="mainFrame" title="Ayuda de la aplicación" class="boton04"></a>
				<a href="../core/logout.php" target="_top" title="Desconectarse" class="boton06"></a>

			</div>
		</div>
		<div id="izquierda">
			<div id="logo">
			<a href="<? echo $_SESSION[session_id()]['homepage'] ?>" target="mainFrame" title="logo"><img class="logotipo" src="../<? echo SYS_USER_STYLES_PATH . $_SESSION['application']['logo'] ?>" alt="logo" align="middle" style="outline:0" /></a>
			</div>
			<div id="title">
				<h1 class="darkAgain" title="<? echo $_SESSION['application']['title'] ?>"><? echo $_SESSION['application']['title'] ?></h1>
				<? echo TOPFRAME_USER ?> <a href="mailto:<? echo $_SESSION['user']['email'] ?>"><strong><? echo $_SESSION[session_id()]['nombre'] . " " . $_SESSION[session_id()]['apellidos'] ?></strong></a> [<? echo $ff['nombre'] ?>]
			</div>
		</div>
</body>
</html>
