Example #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'));
?>

        <option value="0">NINGUNO</option>
    </select>
<?php 
} else {
    ?>
    <select name="dat_rde_estudiante[departamento_nac_id]" id="dat_rde_estudiante_departamento_nac_id" style="font-family: Arial;font-size: 12px;">
        <option value="-999">[Seleccionar]</option>
        <?php 
    foreach ($departamentos as $departamento) {
        ?>
        <option value="<?php 
        echo $departamento->getIdDepartamento();
        ?>
"><?php 
        echo $departamento->getDescDepartamento();
        ?>
</option>
        <?php 
    }
    ?>
    </select>
    <?php 
    echo jquery_ajax(array('listener' => array('selector' => '#dat_rde_estudiante_departamento_nac_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticaextemporaneosinrude/provincia'), 'success' => like_function("\$('#provincia').html(data)", 'data'), 'data' => "'departamento_id=' + " . jquery_get('this', 'val'), 'type' => 'POST'));
    ?>

            <?php 
    echo jquery_ajax_event('#dat_rde_estudiante_departamento_nac_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
    ?>
            <?php 
    echo jquery_ajax_event('#dat_rde_estudiante_departamento_nac_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
}
<select style="font-family: Arial;font-size: 12px;" id="unidad_educativa">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($unidades as $unidad) {
    ?>
    <option value="<?php 
    echo $unidad->getCodUe();
    ?>
"><?php 
    echo $unidad->getCodUe() . ' - ' . $unidad->getDescUe();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#unidad_educativa', 'event' => 'change'), 'url' => url_for('adultoshumanisticacrear/subcentro'), 'success' => like_function("\$('#subcentro').html(data)", 'data'), 'data' => "'ue_id=' + " . jquery_get('this', 'val') . "+'&periodo_id='+document.getElementById('periodo_id').value", 'type' => 'POST'));
?>

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

use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="grado_id" style="font-family: Arial;font-size: 12px;width: 200px;" name="dat_rde_estudiante[grado_id]">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($grados as $grado) {
    ?>
        <option value="<?php 
    echo $grado->getGradoId();
    ?>
"><?php 
    echo $grado->getGradoId() . ' - ' . Doctrine::getTable('ClaGrado')->find(array($nivel, $ciclo, $grado->getGradoId()))->getDescGrado();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#grado_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticainscripcionanterior/paralelo'), 'success' => like_function("\$('#paralelo').html(data)", 'data'), 'data' => "'grado_id='+" . jquery_get('this', 'val') . "+'&ue_id='+document.getElementById('unidad_educativa').value+'&nivel_id='+document.getElementById('nivel_id').value+'&periodo_id='+document.getElementById('periodo_id').value+'&subcea_id='+document.getElementById('subcea_id').value+'&modalidad_id='+document.getElementById('modalidad_id').value+'&gestion_id='+document.getElementById('gestion_id').value", 'type' => 'POST'));
?>

<?php 
echo jquery_ajax_event('#grado_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#grado_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
Example #5
0
        echo $page;
        ?>
</a>
      <?php 
        echo jquery_load('#result', array('listener' => array('selector' => '#page' . $page, 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $page, 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
        ?>
    <?php 
    }
    ?>
  <?php 
}
?>
  <a href="#" id="next">
    <img src="/images/next.png" alt="Siguiente P&aacute;gina" title="Siguiente P&aacute;gina"  border="0" />
  </a>
  <a href="#" id="last">
    <img src="/images/last.png" alt="Ultima p&aacute;gina" title="Ultima P&aacute;gina"  border="0"/>
  </a>
</div>
<?php 
echo jquery_load('#result', array('listener' => array('selector' => '#first', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => '1', 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#previous', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getPreviousPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#next', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getNextPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
echo jquery_load('#result', array('listener' => array('selector' => '#last', 'event' => 'click'), 'url' => url_for($url), 'data' => array('page' => $pager->getLastPage(), 'ue_id' => $ue_id, 'subcea_id' => $subcea_id, 'modalidad_id' => $modalidad_id, 'nivel_id' => $nivel_id, 'ciclo_id' => $ciclo_id, 'paralelo_id' => $paralelo_id, 'turno_id' => $turno_id)));
?>

<?php 
echo jquery_ajax_event('#result', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#result', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
echo jquery_ajax_event('#result', 'ajaxError', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
Example #6
0
<?php

use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="nivel_id" style="font-family: Arial;font-size: 12px;width: 280px;">
    <option value="-999">[Seleccionar]</option>
    <?php 
foreach ($niveles as $nivel) {
    ?>
        <option value="<?php 
    echo $nivel->getIdCiclo();
    ?>
"><?php 
    echo $nivel->getIdCiclo() . ' - ' . $nivel->getDescCiclo();
    ?>
</option>
    <?php 
}
?>
</select>
<?php 
echo jquery_ajax(array('listener' => array('selector' => '#nivel_id', 'event' => 'change'), 'url' => url_for('cea_crear_cursos/ciclo'), 'success' => like_function("\$('#ciclo').html(data)", 'data'), 'data' => "'nivel_id='+" . jquery_get('this', 'val'), 'type' => 'POST'));
?>

<?php 
echo jquery_ajax_event('#cea_crear_cursos', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#cea_crear_cursos', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
        <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'));
}


</script>

<div id="content">
		<p>
    <label>Test 1 (Local Data [Months]):</label>
    <input type="text" id="suggest1" />

    <?php 
echo jquery_autocomplete_support_to('#suggest1', array('data' => 'months'));
?>

    <?php 
jquery_ajax_event('#suggest15', 'success', like_function("alert('a')"));
?>

    <input type="button" value="Change data" id="btnSetOptions" />
    <?php 
echo jquery_execute(jquery_toggle_event('#btnSetOptions', array(like_function('changeToCities()'), like_function('changeToMonths()'))));
?>
    <br>
    <br>
    Test 2 (Local Data [Months] Multiple):
    <input type="text" id="suggest2" />

    <?php 
echo jquery_autocomplete_support_to('#suggest2', array('multiple' => true, 'highlight' => false, 'data' => 'months'));
?>
    <br>
<?php

use_helper('ysJQueryRevolutions');
?>
Frameworks: <strong><span id="divResults"></span></strong>
<hr>
<h3>Ajax events - example</h3>
<br>
<input type="button" id="btnReloadAjax" value="Click here"/>

<?php 
echo jquery_ajax(array('listener' => array('selector' => '#btnReloadAjax', 'event' => 'click'), 'url' => url_for('jquery_demo/getjson'), 'dataType' => 'json', 'confirmation' => 'Do you want ajax submit', 'onNoConfirmation' => 'alert("Not submitted")', 'success' => like_function("\$('#divResults').html(data.frameworks.toString())", 'data'), 'data' => "'cboIdLenguage=' + Math.ceil(Math.random() * 3)", 'type' => 'GET'));
?>

<?php 
echo jquery_ajax_event('#btnReloadAjax', 'ajaxComplete', like_function("alert('Complete')"));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxSend', like_function("alert('Send')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxStop', like_function("alert('Stop')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxSuccess', like_function("alert('Success')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxStart', like_function("alert('Start')", 'event,request,settings'));
echo jquery_ajax_event('#btnReloadAjax', 'ajaxError', like_function("alert('Error')", 'event,request,settings'));
?>