本文整理汇总了PHP中jquery_ajax函数的典型用法代码示例。如果您正苦于以下问题:PHP jquery_ajax函数的具体用法?PHP jquery_ajax怎么用?PHP jquery_ajax使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jquery_ajax函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: use_helper
<?php
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="nivel_id" style="font-family: Arial;font-size: 12px;width: 350px;" name="dat_rde_estudiante[nivel_id]">
<option value="-999">[Seleccionar]</option>
<?php
foreach ($ciclos as $ciclo) {
?>
<option value="<?php
echo $ciclo->getCicloId();
?>
"><?php
echo $ciclo->getCicloId() . ' - ' . Doctrine::getTable('ClaCiclo')->find(array($modalidad, $ciclo->getCicloId()))->getDescCiclo();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#nivel_id', 'event' => 'change'), 'url' => url_for('ins_con_rude/ciclo'), 'success' => like_function("\$('#ciclo').html(data)", 'data'), 'data' => "'nivel_id='+" . jquery_get('this', 'val') . "+'&subsistema_id='+document.getElementById('subsistema_id').value+'&ue_id='+document.getElementById('unidad_educativa').value+'&periodo_id='+document.getElementById('periodo_id').value+'&subcea_id='+document.getElementById('subcea_id').value+'&modalidad_id='+document.getElementById('modalidad_id').value", 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#nivel_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#nivel_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
示例2: foreach
<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'));
示例3: jquery_ajax
<td class="caption">Pais(*)</td>
<td class="caption">Departamento(*)</td>
<td class="caption">Provincia(*)</td>
<td class="caption">Localidad</td>
</tr>
<tr>
<td class="caption"><?php
echo $estudiante['fecha_nacimiento']->render();
?>
</td>
<td class="caption"><?php
echo $estudiante['pais_nac_id']->render();
?>
</td>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#dat_rde_estudiante_pais_nac_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticainscripcionanterior/departamento'), 'success' => like_function("\$('#departamento').html(data)", 'data'), 'data' => "'pais_id=' + " . jquery_get('this', 'val'), 'condition' => '$("#dat_rde_estudiante_pais_nac_id").attr("value") == 1', 'onFailureCondition' => "document.getElementById('dat_rde_estudiante_departamento_nac_id').disabled = true;\n document.getElementById('dat_rde_estudiante_departamento_nac_id').value = -999;\n document.getElementById('dat_rde_estudiante_provincia_nac_id').disabled = true;\n document.getElementById('dat_rde_estudiante_provincia_nac_id').value = -999;", 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#dat_rde_estudiante_pais_nac_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
?>
<?php
echo jquery_ajax_event('#dat_rde_estudiante_pais_nac_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>
<td class="caption"><div id="departamento"><?php
$estudiante->setDefault('departamento_nac_id', '-999');
echo $estudiante['departamento_nac_id']->render();
?>
</div></td>
<td class="caption"><div id="provincia"><?php
echo $estudiante['provincia_nac_id']->render();
示例4: ui_grid_td_end
?>
<?php
$suma = $suma + (int) $curso['total'];
?>
<?php
ui_grid_td_end();
?>
<?php
ui_grid_td_init('style="text-align:center;"');
?>
<a href="#" id = <?php
echo 'modal' . $i;
?>
><img src="/images/entrega.gif" style="border-width: 0px;" title="VER LISTA" /></a>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#modal' . $i, 'event' => 'click'), 'url' => url_for('adultostecnicalistado/listaestudiantes'), 'success' => like_function("\$('#divEstudiantes').html(data)", 'data'), 'data' => "'paralelo='+'" . $curso['paralelo'] . "'+'&nivel_id='+" . $curso['nivel_id'] . "+'&grado_id='+" . $curso['grado_id'] . "+'&ciclo='+" . $curso['ciclo_id'] . "+'&cod_ue_id='+" . $a['ue'] . "+'&gestion_id='+" . $a['gestion_id'] . "+'&turno_id='+" . $curso['turno_id'] . "+'&curso_oferta_id='+" . $curso['curso_oferta_id'], 'type' => 'GET'));
?>
<?php
ui_grid_td_end();
?>
<?php
ui_grid_tr_end();
?>
<?php
}
?>
<?php
ui_grid_body_end();
?>
<?php
ui_grid_foot_init();
示例5: use_helper
<?php
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="paralelo_id" style="font-family: Arial;font-size: 12px;" name="dat_rde_estudiante[paralelo]">
<option value="-999">[Seleccionar]</option>
<?php
foreach ($paralelos as $paralelo) {
?>
<option value="<?php
echo $paralelo->getParalelo();
?>
"><?php
echo $paralelo->getParalelo();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#paralelo_id', 'event' => 'change'), 'url' => url_for('especialextemporanea/turno'), 'success' => like_function("\$('#turno').html(data)", 'data'), 'data' => "'paralelo='+" . jquery_get('this', 'val') . "+'&ue_id='+document.getElementById('unidad_educativa').value+'&nivel_id='+document.getElementById('nivel_id').value+'&grado_id=' + document.getElementById('grado_id').value+'&discapacidad_id=' + document.getElementById('discapacidad_id').value", 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#paralelo_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#paralelo_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
示例6: foreach
<?php
foreach (Doctrine::getTable('ClaPeriodo')->findAll() as $value) {
?>
<option value="<?php
echo $value->getIdPeriodo();
?>
"><?php
echo $value->getPeriodo();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#periodo_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticainscripcionanterior/periodo'), 'success' => like_function("\$('#unidad').html(data)", 'data'), 'data' => "'periodo_id=' + " . jquery_get('this', 'val') . "+'&gestion_id='+document.getElementById('gestion_id').value", 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#periodo_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
?>
<?php
echo jquery_ajax_event('#periodo_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>
</td>
<td>
<div id="unidad">
<select style="font-family: Arial; font-size: 12px;" id="unidad_educativa">
<option value="-999">[Seleccionar]</option>
</select>
</div>
</td>
示例7: use_helper
<?php
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="nivel_id" style="font-family: Arial;font-size: 12px;width: 300px;">
<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('especialcrear/grado'), 'success' => like_function("\$('#grado').html(data)", 'data'), 'data' => "'nivel_id='+" . jquery_get('this', 'val'), 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#nivel_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
echo jquery_ajax_event('#nivel_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
示例8: ui_grid_td_init
?>
<?php
ui_grid_td_init('style="text-align:left;width:32px;"');
?>
<?php
//echo $estudiante['codigo_rude'];
?>
<a href="#" id = <?php
echo 'modal' . $i;
?>
><strong><?php
echo $estudiante['codigo_rude'];
?>
</strong></a>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#modal' . $i, 'event' => 'click'), 'url' => url_for('estudiantealtbusqueda/listainscripciones'), 'success' => like_function("\$('#divUes').html(data)", 'data'), 'data' => "'codigo_rude='+'" . $estudiante['codigo_rude'] . "'", 'type' => 'GET'));
?>
<?php
ui_grid_td_end();
?>
<?php
ui_grid_td_init('style="text-align:left;width:66px;"');
?>
<?php
echo $estudiante['paterno'];
?>
<?php
ui_grid_td_end();
?>
<?php
示例9: use_helper
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="modalidad_id" style="font-family: Arial;font-size: 12px;width:300px;" name="dat_rde_estudiante[modalidad_id]">
<option value="-999">[Seleccionar]</option>
<?php
foreach ($modalidades as $modalidad) {
?>
<option value="<?php
echo $modalidad->getNivelId();
?>
"><?php
echo $modalidad->getNivelId() . ' - ' . Doctrine::getTable('ClaNivel')->find($modalidad->getNivelId())->getDescNivel();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#modalidad_id', 'event' => 'change'), 'url' => url_for('adultostecnicaextemporanea/nivel'), 'success' => like_function("\$('#nivel').html(data)", 'data'), 'data' => "'modalidad_id='+" . jquery_get('this', 'val') . "+'&ue_id='+document.getElementById('unidad_educativa').value+'&periodo_id='+document.getElementById('periodo_id').value+'&subcea_id='+document.getElementById('subcea_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'));
?>
示例10: use_helper
<?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'));
?>
示例11: foreach
<select style="font-family: Arial;font-size: 12px;" id="unidad_educativa" name="dat_rde_estudiante[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('especialextemporanea/nivel'), 'success' => like_function("\$('#nivel').html(data)", 'data'), 'data' => "'ue_id=' + " . jquery_get('this', 'val'), 'type' => 'POST'));
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'));
示例12: foreach
<?php
foreach (Doctrine::getTable('ClaPeriodo')->findAll() as $value) {
?>
<option value="<?php
echo $value->getIdPeriodo();
?>
"><?php
echo $value->getPeriodo();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#periodo_id', 'event' => 'change'), 'url' => url_for('adultoshumanisticaextemporaneosinrude/periodo'), 'success' => like_function("\$('#unidad').html(data)", 'data'), 'data' => "'periodo_id=' + " . jquery_get('this', 'val'), 'type' => 'POST'));
?>
<?php
echo jquery_ajax_event('#periodo_id', 'ajaxSuccess', like_function('$("#imagen").css("display","none")', 'event,request,settings'));
?>
<?php
echo jquery_ajax_event('#periodo_id', 'ajaxStart', like_function('$("#imagen").css("display","block")', 'event,request,settings'));
?>
</td>
<td>
<div id="unidad">
<select style="font-family: Arial; font-size: 12px;" id="unidad_educativa">
<option value="-999">[Seleccionar]</option>
</select>
</div>
</td>
示例13: use_helper
<?php
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryUIDialog');
?>
<select id="grado_id" style="font-family: Arial;font-size: 12px;">
<option value="-999">[-----]</option>
<?php
foreach ($grados as $grado) {
?>
<option value="<?php
echo $grado->getGradoId();
?>
"><?php
echo $grado->getGradoId() . ' - ' . Doctrine::getTable('ClaGrado')->find(array($nivel, $grado->getCicloId(), $grado->getGradoId()))->getDescGrado();
?>
</option>
<?php
}
?>
</select>
<?php
echo jquery_ajax(array('listener' => array('selector' => '#grado_id', 'event' => 'change'), 'url' => url_for('modificarcurso/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", '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'));
示例14: use_helper
use_helper('ysJQueryRevolutions');
use_helper('ysJQueryAutocomplete');
use_helper('ysJQueryUIDialog');
use_helper('ysJQueryUICore');
?>
<select style="font-family: Arial;font-size: 12px;" id="unidad_educativa">
<option value="-999">[-----------]</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('adultoshumanisticainscripcion/subcentro'), 'success' => like_function("\$('#subcentro').html(data)", 'data'), 'data' => "'ue_id=' + " . jquery_get('this', 'val'), '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'));
示例15: use_helper
<?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'));