<?php use_helper('UrlFunctions'); ?>
<?php
//$o_UserSystemClass = new UserSystemClass(new RolBean());
//$a_Rol = $o_UserSystemClass->getRol();

  //echo "<pre>";
  //print_r($a_Rol);
  //echo "</pre>";

?>
<script>
findControl = function(){
  
  var pars = $('form1').serialize();
  
	disabledWin.setPathImage('/images/common/progress.gif');
	disabledWin.show(true,true,'resultGrtid');
  
	url = "<?=buildUrl('rol/grid', "block=".$block)?>";
	var myAjax  = new Ajax.Updater(
	"resultGrtid",
	url,
	{
		asynchronous:	true,
		method			: 'get',
		parameters	: pars,
		evalScripts	: true,
		onLoading		: function(){
			//$('contentMenu').innerHTML = $('messageLoadMenu').innerHTML;

		},
		onComplete	: function(){
			//objMainTab.showMenu();
		}
	});
  
}
</script>
<img src="/images/common/spacer.gif" width="10">
<table class="cuerpo" style="background:#FFFFFF" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
      <form name="form1" id="form1" method="POST">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td class="titleBody"><li>&nbsp;&nbsp;Busqueda Rol </li></td>
          <td align="right" valign="baseline">
            <img src="/images/common/buttons/btnAdd.gif" onClick="parent.objMainTab.modalDialog('<?=buildUrl('rol/add')?>/block/<?=$block?>',{title:'Nuevo',width:600,height:250})" style="cursor:pointer;">
          </td>
        </tr>
      </table>
      <table class="marco" width="100%">
        <tr>
          <td align="center" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="50%" valign="top">
                  <table class="SubCabecera" width="100%" border="0" cellpadding="0" cellspacing="2">
                    <tr>
                      <td width="63" height="26" nowrap="nowrap"><label class="label" for="txtNombre">Descripción : </label></td>
                      <td width="406" nowrap="nowrap"><input name="txtNombre" id="txtNombre" type="text" class="text"/></tr>
                    <tr>
                      <td height="26" nowrap="nowrap"><label class="label" for="txtRolId">Rol Id : </label></td>
                      <td nowrap="nowrap"><input name="txtRolId" id="txtRolId" type="text" class="text"/></td>
                    </tr>
                  </table>
                </td>
                <td width="50%" valign="top">
                  <table class="SubCabecera" width="100%" border="0" cellpadding="0" cellspacing="2">
                    <tr>
                      <td width="63" height="26" nowrap="nowrap"><label class="label" for="txtFecIni">Desde : </label></td>
                      <td width="406" nowrap="nowrap">
                        <input name="txtFecIni" id="txtFecIni" value="" size="8" type="text" class="text"><button type="button" onclick="return false" id="btnFecIni">...</button>
                        <script type="text/javascript">
                            document.getElementById("btnFecIni").disabled = false;
                            Calendar.setup({
                              inputField : "txtFecIni",
                              ifFormat : "%Y-%m-%d",
                              daFormat : "%Y-%m-%d",
                              button   : "btnFecIni"
                            });
                        </script>
                    </tr>
                    <tr>
                      <td height="26" nowrap="nowrap"><label class="label" for="txtCod">Hasta :</label></td>
                      <td nowrap="nowrap">
                        <input name="txtFecFin" id="txtFecFin" value="" size="8" type="text" class="text"><button type="button" onclick="return false" id="btnFecFin">...</button>
                        <script type="text/javascript">
                            document.getElementById("btnFecFin").disabled = false;
                            Calendar.setup({
                              inputField : "txtFecFin",
                              ifFormat : "%Y-%m-%d",
                              daFormat : "%Y-%m-%d",
                              button   : "btnFecFin"
                            });
                        </script>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <div align="center">
              <input class="button" type="button" value="Buscar" onclick="findControl();"/>
            </div>
          </td>
        </tr>
      </table>
      </form>
      <div id="resultGrtid">
      </div>
    </td>
  </tr>
</table>