本文整理汇总了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();
}
示例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;
}
示例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;
}
示例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;
}