<?php
   session_start(); //Iniciamos la session
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Description" content="CECONEA - UNNE" />
<title>HPC-CECONEA</title>
<style media="all" type="text/css">
@import url("./css/estiloP.css");
@import url("./css/fuentes.css");
@import url("./css/menu.css");
</style>

<style media="all" type="text/css">
#link{
  text-decoration:none;
  color: #ACACAC;
}
</style>


<script type="text/javascript">
var numero = 0;

// Funciones comunes
c= function (tag) { // Crea un elemento
   return document.createElement(tag);
}
d = function (id) { // Retorna un elemento en base al id
   return document.getElementById(id);
}
e = function (evt) { // Retorna el evento
   return (!evt) ? event : evt;
}
f = function (evt) { // Retorna el objeto que genera el evento
   return evt.srcElement ?  evt.srcElement : evt.target;
}

addField = function () {
   container = d('files');
   
   span = c('SPAN');
   span.className = 'file';
   span.id = 'file' + (++numero);

   field = c('INPUT');   
   field.name = 'archivos[]';
   field.type = 'file';
   
   a = c('A');
   a.name = span.id;
   a.href = '#';
   a.onclick = removeField;
   a.innerHTML = 'Quitar';

   span.appendChild(field);
   span.appendChild(a);
   container.appendChild(span);
}
removeField = function (evt) {
   lnk = f(e(evt));
   span = d(lnk.name);
   span.parentNode.removeChild(span);
}
</script>






</head>

<body bgcolor="#5C6350">
<table id="tabla" align="center" cellspacing="0" cellpadding="0"  >
  <tr>
    <td>
       <?php
	 include "titulo.php";
      ?>     
    </td>
  </tr>
  <tr>
    <td valign="bottom">
      <?php
         if(isset($_SESSION['user'])) {
	   include "menulogueado.php";
	 }
         else{
	   include "menu.php";
         }
      ?>
    </td>
  <tr>
    <td padding="10px" margin="3px" bgcolor="#FFFFFF">
	<?php
	   include "colas_contenido.php";
	?>
    </td>
  </tr>
  <tr>
    <?php
       include "bottom.php";
    ?>
  </tr>
</table>
	      
</body>
</html>
