Exemple #1
0
?>
		</td>		
		<td>
                    OPERATIVO: 
		</td>
		<td>
	   	<?php 
echo $operativo['operativo_id']->render();
?>
		</td>
		<td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
        </table>
        <?php 
echo jquery_autocomplete_support_to('#dat_sie_operativos_ue', array('url' => url_for('adultoshumanisticainformacion/autocompleteData'), 'max' => 20, 'width' => 300, 'highlight' => false, 'formatItem' => like_function('return row[0] + " - <strong> " + row[1] + "</strong>"', 'row'), 'formatResult' => like_function('return row[0].replace(/(<.+?>)/gi, "")', 'row')));
?>
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($ue), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#dat_sie_operativos_ue").attr("value") != ""', 'onFailureCondition' => 'alert("Debe registrar el SIE de la unidad educativa")', 'type' => 'POST'));
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>

use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
use_helper('ysJQueryUICore');
use_helper('ysUtil');
ui_add_effects_support('blind');
?>
<div id="divResults" style="width:770px;margin-left: auto; margin-right: auto;">
    <form id="myForm" action="#">
        <?php 
include_partial('adultoshumanisticaextemporaneosinrude/formularioestudiante', array('estudiante' => $estudiante));
?>
        <div style="margin-left: auto;margin-right: auto; text-align: center;padding-top: 15px;padding-bottom: 15px;">
                <input type="submit" value="Continuar" id ="btnGrabar" />
        </div>
    </form>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for('adultoshumanisticaextemporaneosinrude/unidadeducativa'), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => 'verificar() == false ', 'onFailureCondition' => 'alert("Debe registrar los campos marcados con (*)")', 'type' => 'POST'));
echo jquery_ajax_event('#divResults', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#divResults', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>
</div>

<script type="text/javascript">
/* <![CDATA[ */
function verificar()
{
    if((document.getElementById('dat_rde_estudiante_nombre').value!='')&&(document.getElementById('dat_rde_estudiante_pais_nac_id').value!=0)) {if((document.getElementById('dat_rde_estudiante_pais_nac_id').value==1)){if((document.getElementById('dat_rde_estudiante_departamento_nac_id').value!=-999)&&(document.getElementById('dat_rde_estudiante_provincia_nac_id').value!=-999)){return false;}else{return true;}}else return false;} else return true;
}
/* ]]> */
</script>
" id ="btnBuscar" />
                </td>
            </tr>
        </table>
      <?php 
echo jquery_autocomplete_support_to('#dat_sie_operativos_ue', array('url' => url_for('unidadeducativainformacion/autocompleteData'), 'max' => 20, 'width' => 300, 'highlight' => false, 'formatItem' => like_function('return row[0] + " - <strong> " + row[1] + "</strong>"', 'row'), 'formatResult' => like_function('return row[0].replace(/(<.+?>)/gi, "")', 'row')));
?>
  
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>



<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($url_action), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#dat_rde_estudiante_codigo_rude").attr("value") != "" && $("#dat_sie_operativos_ue").attr("value") != ""', 'onFailureCondition' => 'alert("Dege ingresar el codigo Rude del estudiante y codigo de la Unidad Educativa.")', 'type' => 'POST'));
echo jquery_ajax_event('#dat_rde_estudiante_codigo_rude', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_rde_estudiante_codigo_rude', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>

<?php 
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_sie_operativos_ue', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>



                    <option value="<?php 
    echo $periodo->getIdPeriodo();
    ?>
"><?php 
    echo $periodo->getPeriodo();
    ?>
</option>
                    <?php 
}
?>
                    </select>
                </td>                
                <td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
                
        </table>
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($url), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#dat_rde_estudiante_codigo_rude").attr("value") != ""', 'onFailureCondition' => 'alert("Debe registrar el RUDE del estudiante")', 'type' => 'POST'));
echo jquery_ajax_event('#dat_rde_estudiante_codigo_rude', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_rde_estudiante_codigo_rude', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>

    <form id="myForm" action="#">
        <table align="center">
            <tr>
                <td>Paterno:</td>
                <td>
                    <input type="text" id="datos_estudiante_paterno" name="datos_estudiante[paterno]" size="16" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>Materno:</td>
                <td>
                    <input type="text" id="datos_estudiante_materno" name="datos_estudiante[materno]" size="16" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>Nombre:</td>
                <td>
                    <input type="text" id="datos_estudiante_nombre" name="datos_estudiante[nombre]" size="24" maxlength="35" style="text-transform: uppercase;" />
                </td>
                <td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
        </table>
        
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($url), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#datos_estudiante_paterno").attr("value") != "" || $("#datos_estudiante_materno").attr("value") != "" || $("#datos_estudiante_nombre").attr("value") != ""', 'onFailureCondition' => 'alert("Debe ingresar al menos un criterio.")', 'type' => 'POST'));
echo jquery_ajax_event('#datos_estudiante_nombre', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#datos_estudiante_nombre', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
    ?>
</td>
            </tr>
          </table>
        <?php 
    echo ui_end_content();
    ?>
    <?php 
    echo ui_end_content_panel();
    ?>
        <div style="margin-left: auto;margin-right: auto; text-align: center;padding-top: 15px;padding-bottom: 15px;">
                <input type="submit" value="Guardar Cambios" id ="btnGrabar" />
        </div>
    </form>
    <?php 
    echo jquery_ajax_form('#myForm2', array('url' => url_for('estudiantealtmodificar/modificardatos'), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => 'verificar() == false ', 'onFailureCondition' => 'alert("Debe registrar los campos marcados con (*)")', 'type' => 'POST'));
    ?>
    <?php 
    echo jquery_ajax_event('#divResults', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
    ?>
    <?php 
    echo jquery_ajax_event('#divResults', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
    ?>
<script type="text/javascript">
/* <![CDATA[ */
function verificar()
{
    if((document.getElementById('dat_rde_estudiante_nombre').value!='')&&(document.getElementById('dat_rde_estudiante_pais_nac_id').value!=0)) {if((document.getElementById('dat_rde_estudiante_pais_nac_id').value==1)){if((document.getElementById('dat_rde_estudiante_departamento_nac_id').value!=-999)&&(document.getElementById('dat_rde_estudiante_provincia_nac_id').value!=-999)){return false;}else{return true;}}else return false;} else return true;
}
/* ]]> */
</script>
    Registre los datos para la busqueda
    <?php 
echo ui_end_title();
?>
    <?php 
echo ui_init_content();
?>
    <form id="myForm" action="#">
        <table align="center" style="width: 100%;padding:10px;">
            <tr>
                <td>Centro de Educaci&oacute;n Alternativa : </td>
                <td>
                    <?php 
echo $ceas['cod_ue_id']->render();
?>
		<td>
                    <input type="submit" value="Buscar" id ="btnBuscar" />
                </td>
            </tr>
        </table>        
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($ue), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'type' => 'POST'));
?>

<form id="myForm" action="#">
  <label>Name: </label><input value="Rich" name="txtName" id="txtName" />
  <label>Lastname: </label><input value="Symfony" name="txtLastname" id="txtLastname" />
  <label>Gender: </label>
  <select id="cboGender" name="cboGender">
    <option value="M">M</option>
    <option value="F">F</option>
  </select>
  <br>
  Magazine:
  Sport <input type="checkbox" name="chkMagazine[]" value="0">
  Development <input type="checkbox" name="chkMagazine[]" value="1">
  Food <input type="checkbox" name="chkMagazine[]" value="2">
  <br>
  Do you like this Symfony Plugin
  No <input type="radio" value="0" name="optBool"   />
  Yes <input type="radio" value="1" name="optBool"   />
  <input type="submit" value="Ok"  />
  <input type="reset" value="Reset"  />
</form>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for('jquery_demo/sayhello'), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'data' => "'anotherParam=helloworld'", 'confirmation' => 'Do you want ajax submit', 'onNoConfirmation' => 'alert("Not submitted")', 'condition' => '$("#chkCondition").attr("checked") == true', 'onFailureCondition' => 'alert("Check the submit option")', 'type' => 'POST'));
?>
<div id="divResults"></div>
<br>
<b>Condition for Submit:</b> <input type="checkbox" id="chkCondition" checked="false" />




?>
    <form id="myForm" action="#">
        <table align="center" style="width: 100%;padding:10px;">            
		<tr>
			<td>
			   &Aacute;rea de Educaci&oacute;n
			</td>
			<td>
				<?php 
echo $acreditaciones['acreditacion_id']->render();
?>
		
			</td>		
			<td>
				<input type="submit" value="Buscar" id ="btnBuscar" />
			</td>
		</tr>
        </table>        
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($ue), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#cla_acreditacion_acreditacion_id").attr("value") != ""', 'onFailureCondition' => 'alert("Debe Seleccionar una Modalidad de Educacion")', 'type' => 'POST'));
echo jquery_ajax_event('#cla_acreditacion_acreditacion_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#cla_acreditacion_acreditacion_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>

?>
    <form id="myForm" action="#">
        <table align="center" style="width: 100%;padding:10px;">            
		<tr>
			<td>
			   SUB CENTRO:
			</td>
			<td>
				<?php 
echo $subcentros['subcentro_id']->render();
?>
		
			</td>		
			<td>
				<input type="submit" value="Buscar" id ="btnBuscar" />
			</td>
		</tr>
        </table>        
    </form>
    <?php 
echo ui_end_content();
echo ui_end_content_panel();
?>
</div>
<?php 
echo jquery_ajax_form('#myForm', array('url' => url_for($ue), 'success' => like_function("\$('#divResults').html(data)", 'data'), 'condition' => '$("#dat_rue_subcentro_subcentro_id").attr("value") != ""', 'onFailureCondition' => 'alert("Debe Seleccionar un Sub Centro")', 'type' => 'POST'));
echo jquery_ajax_event('#dat_rue_subcentro_subcentro_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#dat_rue_subcentro_subcentro_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>