当前位置: 首页>>代码示例>>PHP>>正文


PHP xajaxResponse::addCreateInput方法代码示例

本文整理汇总了PHP中xajaxResponse::addCreateInput方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxResponse::addCreateInput方法的具体用法?PHP xajaxResponse::addCreateInput怎么用?PHP xajaxResponse::addCreateInput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajaxResponse的用法示例。


在下文中一共展示了xajaxResponse::addCreateInput方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addInput

function addInput($aInputData)
{
    $sId = $aInputData['inputId'];
    $sName = $aInputData['inputName'];
    $sType = $aInputData['inputType'];
    $sValue = $aInputData['inputValue'];
    $objResponse = new xajaxResponse();
    $objResponse->addAlert("inputData: " . print_r($aInputData, true));
    $objResponse->addCreateInput("testForm1", $sType, $sName, $sId);
    $objResponse->addAssign($sId, "value", $sValue);
    return $objResponse->getXML();
}
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:12,代码来源:createFormInputTest.php

示例2: getPrivateDialListNumber

/**
*  show phone numbers and dial button if there are phone numbers assigned to this agent
*  in diallist table
*  @param	extension		string			extension
*  @return	object				xajax response object
*/
function getPrivateDialListNumber($extension = null)
{
    global $locate, $db;
    $objResponse = new xajaxResponse();
    $count = astercrm::getDialNumCountByAgent($extension);
    if ($count == 0) {
        $objResponse->addAssign("spanDialList", "innerHTML", $locate->Translate("no_dial_list"));
        $objResponse->addAssign("divWork", "innerHTML", '');
        $objResponse->addAssign("btnWorkStatus", "value", "");
        $objResponse->addAssign("btnWork", "value", $locate->Translate("Start work"));
        $objResponse->addAssign("btnWork", "disabled", true);
        $_SESSION['curuser']['WorkStatus'] = '';
    } else {
        // add div
        $objResponse->addRemove("spanDialListRecords");
        $objResponse->addRemove("btnGetAPhoneNumber");
        $objResponse->addCreate("spanDialList", "div", "spanDialListRecords");
        $objResponse->addAssign("spanDialListRecords", "innerHTML", $locate->Translate("records_in_dial_list_table") . $count);
        // add start campaign button
        $objResponse->addCreateInput("spanDialList", "button", "btnGetAPhoneNumber", "btnGetAPhoneNumber");
        $objResponse->addAssign("btnGetAPhoneNumber", "value", $locate->Translate("get_a_phone_number"));
        $objResponse->addEvent("btnGetAPhoneNumber", "onclick", "btnGetAPhoneNumberOnClick();");
        if ($_SESSION['curuser']['WorkStatus'] == '') {
            $objResponse->addAssign("btnWorkStatus", "value", "");
            $objResponse->addAssign("btnWork", "value", $locate->Translate("Start work"));
            $objResponse->addAssign("btnWork", "disabled", false);
        }
    }
    return $objResponse;
}
开发者ID:ljhcj,项目名称:IRISCC,代码行数:36,代码来源:portal.server.php

示例3: addIndexField

function addIndexField($field)
{
    $objResponse = new xajaxResponse();
    //	$objResponse->addAlert($field);
    //	$html = '<li id="idx_fld_list['.$field.']">'.$field.' => descending? <input type="checkbox" name="idx_fld_add['.$field.'][sorting]" value="1" ></li>';
    $objResponse->addCreateInput('frm_index', 'hidden', "idx_fld_add[{$field}]", "idx_fld_add_{$field}");
    $objResponse->addAssign('idx_fld_add_' . $field, 'value', '');
    //	$html = "<li id=\"idx_fld_item[{$field}]\">{$field} => descending?</li>";
    //	$objResponse->addAppend('idx_fields', 'innerHTML', $html);
    $objResponse->addCreate("idx_fields", 'li', "idx_fld_item[{$field}]");
    $objResponse->addAssign("idx_fld_item[{$field}]", 'value', $field);
    $objResponse->addAssign("idx_fld_item[{$field}]", 'innerHTML', "{$field} => descending?");
    $objResponse->addCreateInput("idx_fld_item[{$field}]", 'checkbox', "idx_fld_desc[{$field}]", "idx_fld_desc[{$field}]");
    $objResponse->addAssign("idx_fld_desc[{$field}]", 'value', "1");
    return $objResponse;
}
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:16,代码来源:oxAjax.inc.php

示例4: step7

function step7()
{
    global $BL;
    $objResponse = new xajaxResponse(CHARSET);
    $objResponse->addCreateInput("click_btn", "submit", "submit", "submit");
    $objResponse->addAssign("submit", "value", $BL->props->lang['Click_to_pay']);
    $objResponse->addScript("xajax.\$('submit').focus();");
    $objResponse->addScript("xajax.\$('submit').click()");
    $objResponse->addScript("xajax.\$('order_form').submit()");
    return $objResponse;
}
开发者ID:jwest00724,项目名称:AccountLab-Plus,代码行数:11,代码来源:ajaxFunctions.php


注:本文中的xajaxResponse::addCreateInput方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。