<?
header("Content-Type: application/xhtml+xml; charset=iso-8859-1");
use_helper('UrlFunctions');
$o_ObjectBean = new DocenteBean();
if($txtNombre!=""){ $o_ObjectBean->setNombre($txtNombre); }
if($txtCodigo!=""){ $o_ObjectBean->setCodigoDocente($txtCodigo); }
if($cboFacultad     !=""){ $o_ObjectBean->setFacultadDoc($cboFacultad); }
if($cboEspecialidad !=""){ $o_ObjectBean->setEspecialidadId($cboEspecialidad); }

$tamanioPag = 10;

$o_ObjectBean->page = $page;
$o_ObjectBean->tamPag = $tamanioPag;

$o_class = new DocenteBL();
$a_ObjectBean = $o_class->busquedaDocente ($o_ObjectBean);

$o_navigation = new navigation();
$o_navigation->setPaginaActual($page);
$o_navigation->setTamanioPagina($tamanioPag);
$o_navigation->setTotalRegistros($o_class->getCountResult($o_ObjectBean));

ViewResponse::getInstance()->setMethodAjax();

?>

      <table class="marco" border="0" cellpadding="0" cellspacing="0" width="100%">
       <tr>
          <td height="17" align="right" class="pager">
            <div id="contenedor">
              <? $o_navigation->ContruirHTMLNavigation('contenedor', $strConcat); ?>
            </div>
          </td>
        </tr>
        <tr>
          <td>
            <table class="grid" width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr height="23">
                <th width="5%" nowrap="nowrap">Nro</th>
                <th width="10%" id="col01" onMouseOver="sort_col(this);" nowrap="nowrap">Código<img src="/images/common/buttons/arrow_up.gif" alt="Ordenado Ascendente" width="8" height="10" align="absmiddle" />&nbsp;</th>
                <th width="20%" id="col01" onMouseOver="sort_col(this);" nowrap="nowrap">Nombre<img src="/images/common/buttons/arrow_up.gif" alt="Ordenado Ascendente" width="8" height="10" align="absmiddle" />&nbsp;&nbsp;&nbsp;</th>
                <th width="20%" nowrap="nowrap">Telefono <img src="/images/common/buttons/arrow.gif" alt="sin ordenar" width="8" height="10" align="absmiddle">&nbsp;&nbsp;&nbsp;</th>
              </tr>
              <? if(count($a_ObjectBean)>0){ ?>
              <? foreach ($a_ObjectBean as $iKey => $o_objBean){ ?>
              <tr onClick="TR_click(this);">
                <td class="chk"><?=$iKey+1?></td>
                <td align="center"><label onclick="resultFind('<?=$o_objBean->getCodigoDocente()?>');" style="cursor:pointer"><?=$o_objBean->getCodigoDocente()?></label></td>
                <td><?=$o_objBean->getNombre()?></td>
                <td align="center"><?=$o_objBean->getTelefono()?></td>
              </tr>
              <? } ?>
              <? }else{ ?>
              <tr>
                <td colspan="7" align="center">No se produjo resultado</td>
              </tr>
              <? } ?>
            </table>
          </td>
        </tr>
        <tr>
          <td>Total Registros: <?=count($a_ObjectBean)?></td>
        </tr>
      </table>