本文整理汇总了PHP中TinyAjax::drawJavaScript方法的典型用法代码示例。如果您正苦于以下问题:PHP TinyAjax::drawJavaScript方法的具体用法?PHP TinyAjax::drawJavaScript怎么用?PHP TinyAjax::drawJavaScript使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TinyAjax
的用法示例。
在下文中一共展示了TinyAjax::drawJavaScript方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jsGetListadoAvisos
$selcat->addEspOption(SYS_TODAS);
$selcat->setOptionSelect(SYS_TODAS);
$xFRM->OHidden("idfecha-1", "", "");
$xFRM->OHidden("idfecha-2", "", "");
//$xFRM->addHElem( $xDate->get( $xFRM->lang("fecha inicial"), $xF->getDiaInicial(), 1 ));
//$xFRM->addHElem( $xDate->get( $xFRM->lang("fecha final"), $xF->getDiaFinal(), 2 ));
$xFRM->addHElem($selcat->get(true));
$xFRM->addSubmit("", "jsGetListadoAvisos()");
$xFRM->OCheck("TR.Mostrar Inactivas", "idactivas");
//$xFRM->addCreditBasico();
$xFRM->addHTML("<div id='lstalertas'></div>");
$xFRM->addAviso("", "idmsg");
echo $xFRM->get();
echo $xHP->setBodyEnd();
$jsb->show();
$jxc->drawJavaScript(false, true);
?>
<!-- HTML content -->
<script>
var xG = new Gen();
function jsGetListadoAvisos(){
jsaGetListadoDeAvisos();
}
function jsModificarEstatus(id){
xG.w({ url : "estatus_de_alerta.frm.php?codigo=" +id , w: 800, h: 600, tiny : true, callback: jsGetListadoAvisos });
}
function jsCancelarAccion(){ $(window).qtip("hide"); }
function jsGuardarDescarto(){
jsaDescartarRiesgo();
jsCancelarAccion();
jsaGetListadoDeAvisos();
示例2: Gen
if ($asalariado == true) {
$xFRM->OText("idpuesto", $puesto, "TR.Cargo");
$xFRM->OText("iddepartamento", $departamento_ae, "TR. Departamento");
$xFRM->OText("idnumeroempleado", $numero_empleado, "TR.Clave de Empleado");
$xFRM->OText("idnss", $nss, "TR.ID_DE_SEGURIDADSOCIAL");
} else {
}
$xFRM->addHElem($xSel->getListaDeTiempo("idantiguedad")->get("TR.Tiempo en el Puesto", true));
$xFRM->addHElem($xTxt->getDeMoneda("idsalario", "TR.Ingreso Mensual", $montoper_ae));
$xFRM->OHidden("idsociorelacionado", $persona);
$xFRM->addAviso("", "msg");
$xFRM->addSubmit("", "frmSubmit(true)");
$xFRM->OButton("TR.Importar de Asociada", "jsaImportarDeAsociada", "importar");
echo $xFRM->get();
$jsb->show();
$jxc->drawJavaScript(false, true, $estado);
?>
<script>
var tform = document.frmaeconomica;
var mSocio = <?php
echo $persona;
?>
;
var nGen = new Gen();
function initComponents(){ $("#iddependencia").focus(); }
function jsGetDatosEmpresa(){
if( entero($("#iddependencia").val()) == FALLBACK_CLAVE_EMPRESA){
$("#idrazonsocialtrabajo").focus();
} else {
jsaGetDatosEmpresa();
$("#idpuesto").focus();
示例3: multiply
if (!empty($_POST['number1']) && !empty($_POST['number2'])) {
$number1 = $_POST['number1'];
$number2 = $_POST['number2'];
$result = multiply($number1, $number2);
}
// Ajax-code
$ajax = new TinyAjax();
$ajax->exportFunction("multiply", array("number1", "number2"), "#result");
$ajax->process();
?>
<html>
<head>
<title>TinyAjax-calculator</title>
<?php
$ajax->drawJavaScript(false, true);
?>
</head>
<body>
Calculator with TinyAjax and graceful degradation to post:<br>
<form method="POST">
<input type="text" name="number1" value="<?php
echo $number1;
?>
"> *
<input type="text" name="number2" value="<?php
echo $number2;
?>
"> =
<span id="result"> </span>
示例4: cambiarComboAgrupacion
document.getElementById("grupo").value = grupo;
}
function cambiarComboAgrupacion(agrupacion) {
var selectBox = document.getElementById("agrupacion_dd");
selectBox[agrupacion + 1].selected = true;
old_agrup_contable = agrupacion;
}
</script>
<?php
$ajax->drawJavaScript();
?>
</head>
<body class="ppal" onload = "setfocus()">
<div class="altas">
<fieldset>
<legend>Modificacion de grupo</legend>
<?php
echo $var['mensaje'];
?>
<table>
<form action="form_grupo_modificacion.php" method="post" target="_self" name="grupo_modificacion" onsubmit="return confirma();">
<input type="hidden" value="grupo_modificacion" size="10" name="formname" id="formname">
<tr>
示例5:
$menuEntry = str_replace('<!-- dvrui_menu_pagename-->', $pageNames[$i], file_get_contents('style/pagemenu_entry.html'));
$menuEntry = str_replace('<!-- dvrui_menu_pagetitle-->', $pageTitles[$i], $menuEntry);
$menuEntries .= $menuEntry;
}
$menu_data = str_replace('<!-- dvrui_pagemenu_entries-->', $menuEntries, $menu_data);
// --- Build Page Here ---
// error_log( "Build Index Page - get version" );
$pageName = DVRUI_Vars::DVRUI_name;
$UIVersion = "Version:" . DVRUI_Vars::DVRUI_version;
$DVRVersion = "Record Engine Version: <i>" . $DVRBinVersion . "</i>";
$pagecontent = "";
// --- include header ---
// error_log( "Build Index Page - header" );
$header = file_get_contents('style/header.html');
$pagecontent = str_replace('[[pagetitle]]', $pageName, $header);
$pagecontent = str_replace('<!-- tinyAjax -->', $ajax->drawJavaScript(false, true), $pagecontent);
// --- Build Body ---
// error_log( "Build Index Page - body" );
$indexPage = file_get_contents('style/index_page.html');
$topmenu = file_get_contents('style/topmenu.html');
$logfilelist = file_get_contents('style/index_loglist.html');
$logfiledata = file_get_contents('style/index_logdata.html');
$recordingsdata = file_get_contents('style/recordings.html');
$serverdata = file_get_contents('style/server.html');
$hdhrdata = file_get_contents('style/hdhr.html');
$topmenu = str_replace('[[pagetitle]]', $pageName, $topmenu);
$topmenu = str_replace('[[UI-Version]]', $UIVersion, $topmenu);
$topmenu = str_replace('[[DVR-Version]]', $DVRVersion, $topmenu);
$indexPage = str_replace('<!-- dvrui_topmenu -->', $topmenu, $indexPage);
$indexPage = str_replace('<!-- dvrui_pagemenu -->', $menu_data, $indexPage);
$indexPage = str_replace('<!-- dvrui_loglist -->', $logfilelist, $indexPage);