<?
session_start();
if(!isset($_SESSION['usuario']))
{
 	echo "<script languaje='JavaScript'>";       
	echo "parent.location.href='index.php'; ";
	echo "</script>";
}
include ("clases/aviso.class.php"); $obja=new aviso();
include ("clases/autor.class.php"); $objd = new autor();
include ("clases/doc_curso.class.php"); $objdc = new doc_curso();
//////////////////////////////
include ("clases/reunion.class.php"); $objr=new reunion();
/////////////////////////////

 $iddoc = $_REQUEST["id"]; //id docente curso

/*if($objdc->BuscarPorCodigo($iddoc))
{
  $iddoce = $objdc->getIddoc();
  if($objd->BuscarPorCodigo($iddoce))
  {
     $iddocente = $objd->getIddocente();
  }*/
   
//}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Pagina Docente</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap-theme.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">

<link href="css/css.css" rel="stylesheet" type="text/css">
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/app.js"></script>
<script language="javascript">
function envia2(id)
	{ 
	  window.open("modificadoc.php?id="+id,"","fullscreen=no, height=270,width=620,left=100,top=200,resizable = yes,scrollbars=yes,toolbar = no,status = no");						
	}
	function envia(id)
	{ 
	  window.open("manclase.php?id="+id,"","fullscreen=no, height=270,width=620,left=100,top=200,resizable = yes,scrollbars=yes,toolbar = no,status = no");						
	}
	function envia3(id)
	{ 
	  window.open("manaviso.php?id="+id,"","fullscreen=no, height=220,width=620,left=100,top=200,resizable = yes,scrollbars=yes,toolbar = no,status = no");						
	}
	
</script>
<style>
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.embed-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 1063px;
}

.container_iframe {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%;  /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  margin:1px;
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: -1px;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1916px;
}

.text_docentes{ font-size:11px; font-family:Arial, Helvetica, sans-serif;}
</style>

<style>
  h2{
color:#006699;
  }
  label{
color:006699;
  }
  span{
	  color:#673ab7;
	  font-weight:bold;
  }
  
  .btn-primary {
    background-color: #673AB7;
	}
	.display-chat{
		height:370px;
		background-color:#BADDEF;
		margin-bottom:4%;
		overflow:auto;
		padding:15px;
	}
	.message{
		background-color:#ffffff;
		color:#404040;
		border-radius: 5px; border:#999999;
		padding: 5px;
		margin-bottom: 3%;
	}
  </style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">

          <div id="message">
<table width="100%" class="table table-responsive" bgcolor="#FFFFFF">
            <tr>
              <td colspan="2" class="active">REUNIONES:<input type="hidden" name="iddoc2" value="<?=$cod;?>" class="inputbox" /><input type="hidden" name="text2" value="R" /></td>
              </tr>      
      			 <? 
			  $lista = $objr->ListarPorDocenteVisble($iddoc);
			  
			  for($i = 0; $i<count($lista); $i++)
			  {
			     
			  ?>
			  <tr onMouseOver="this.style.backgroundColor='#f5f5f5'" onMouseOut="this.style.backgroundColor='#FFFFFF'" class="Estilo1">
              <td width="44%" align="center">
			  <span class="glyphicon glyphicon-ok"></span> <?=$lista[$i]["titulo"].": ";?>			  </td>
			  <td><?php echo "(visite: <a href=".$lista[$i]["url"]." target='_blank'>".$lista[$i]["url"]."</a>)";?><br /><div class="text_docentes"><?php echo $lista[$i]['detalle'];?></div>
			    <div class="text_docentes"><?php echo "Fecha Pub.: ".$lista[$i]['fecha'].")";?></div></td>
		     </tr>
			 <?php } ?>
      </table>
	  </div>
	 
</form>



</body>

</html>

