当前位置: 首页>>代码示例>>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;未经允许,请勿转载。