當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。