當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Customer::formEdit方法代碼示例

本文整理匯總了PHP中Customer::formEdit方法的典型用法代碼示例。如果您正苦於以下問題:PHP Customer::formEdit方法的具體用法?PHP Customer::formEdit怎麽用?PHP Customer::formEdit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Customer的用法示例。


在下文中一共展示了Customer::formEdit方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: edit

/**
*  show account edit form
*  @param	id			int			account id
*  @return	objResponse	object		xajax response object
*/
function edit($id)
{
    global $locate;
    $html = Table::Top($locate->Translate("edit_agents"), "formDiv");
    $html .= Customer::formEdit($id);
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign("formDiv", "style.visibility", "visible");
    $objResponse->addAssign("formDiv", "innerHTML", $html);
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:17,代碼來源:agent.server.php

示例2: curCustomerDetail

function curCustomerDetail($customername)
{
    global $locate;
    $customerid = Customer::getCustomerid($customername);
    $html = Table::Top($locate->Translate("edit_record"), 'formEditInfo');
    $html .= Customer::formEdit($customerid, 'customer');
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign('formEditInfo', "style.visibility", "visible");
    $objResponse->addAssign('formEditInfo', "innerHTML", $html);
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:13,代碼來源:portal.server.php

示例3: edit

/**
*  show edit form
*  @param	id			int			id
*  @param	type		sting		customer/contact/note
*  @return	objResponse	object		xajax response object
*/
function edit($id = null, $type = "note")
{
    global $locate;
    // Edit zone
    if ($type == "diallist") {
        $formdiv = 'formeditDiallistInfo';
    } else {
        $formdiv = 'formEditInfo';
    }
    $html = Table::Top($locate->Translate("edit_record"), $formdiv);
    $html .= Customer::formEdit($id, $type);
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign($formdiv, "style.visibility", "visible");
    $objResponse->addAssign($formdiv, "innerHTML", $html);
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:24,代碼來源:astercrm.server.common.php

示例4: edit

/**
*  show account edit form
*  @param	id			int			account id
*  @return	objResponse	object		xajax response object
*/
function edit($id)
{
    global $locate;
    $html = Table::Top($locate->Translate("edit_user_type"), "formDiv");
    $html .= Customer::formEdit($id);
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign("formDiv", "style.visibility", "visible");
    $objResponse->addAssign("formDiv", "innerHTML", $html);
    $result = Customer::getCurUserTypePrivileges($id);
    foreach ($result as $tmp) {
        $objResponse->addAssign($tmp['page'] . '_' . $tmp['action'], "checked", true);
    }
    $objResponse->addScript("editPageCheckbox()");
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:22,代碼來源:user_types.server.php

示例5: edit

/**
*  show group edit form
*  @param	id			int			group id
*  @return	objResponse	object		xajax response object
*/
function edit($id)
{
    global $locate, $db;
    $html = Table::Top($locate->Translate("Edit Worktimepackage"), "formDiv");
    $html .= Customer::formEdit($id);
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign("formDiv", "style.visibility", "visible");
    $objResponse->addAssign("formDiv", "innerHTML", $html);
    $objResponse->addScript("resetC();");
    $res = astercrm::getRecordsByField('worktimepackage_id', $id, 'worktimepackage_worktimes');
    while ($res->fetchInto($row)) {
        $wp[] = $row['worktime_id'];
    }
    $query = "SELECT * FROM worktimes";
    if ($_SESSION['curuser']['usertype'] != 'admin') {
        $query .= " WHERE groupid = " . $_SESSION['curuser']['groupid'];
    }
    $worktimes_res = $db->query($query);
    $i = 0;
    $weekShow = array('', $locate->Translate("Monday"), $locate->Translate('Tuesday'), $locate->Translate('Wednesday'), $locate->Translate('Thursday'), $locate->Translate('Friday'), $locate->Translate('Saturday'), $locate->Translate('Sunday'));
    while ($worktimes_res->fetchInto($worktimes_row)) {
        $i++;
        if (in_array($worktimes_row['id'], $wp)) {
            $cur_content = $worktimes_row['id'] . '-' . $locate->Translate("from") . ':' . $worktimes_row['starttime'] . ' ' . $locate->Translate("to") . ':' . $worktimes_row['endtime'] . ' (' . $weekShow[$worktimes_row['startweek']] . '->' . $weekShow[$worktimes_row['endweek']] . ')';
            $objResponse->addScript("mf_click(" . $i . ",'" . $cur_content . "');");
        }
    }
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:36,代碼來源:worktimepackages.server.php

示例6: edit

/**
*  show ticket_details edit form
*  @param	id		int		ticket_detail id
*  @return	objResponse	object		xajax response object
*/
function edit($id)
{
    global $locate;
    $html = Table::Top($locate->Translate("edit_ticket_detail"), "formDiv");
    $html .= Customer::formEdit($id);
    $html .= Table::Footer();
    // End edit zone
    $objResponse = new xajaxResponse();
    $objResponse->addAssign("formDiv", "style.visibility", "visible");
    $objResponse->addAssign("formDiv", "innerHTML", $html);
    //$objResponse->addScript("relateBycategoryID(document.getElementById('ticketcategoryid').value,'edit')");
    return $objResponse->getXML();
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:18,代碼來源:ticket_details.server.php


注:本文中的Customer::formEdit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。