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


PHP astercrm::createTikcetGrid方法代码示例

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


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

示例1: searchTicketsFormSubmit

function searchTicketsFormSubmit($searchFormValue, $numRows, $limit, $id = '', $type = '')
{
    global $locate, $db;
    $objResponse = new xajaxResponse();
    $searchField = array();
    $searchContent = array();
    $searchType = array();
    $customerid = $searchFormValue['customerid'];
    $searchContent = $searchFormValue['searchContent'];
    //搜索内容 数组
    $searchField = $searchFormValue['searchField'];
    //搜索条件 数组
    $searchType = $searchFormValue['searchType'];
    //搜索方式 数组
    $divName = "formCurTickets";
    $html = Table::Top($locate->Translate("My Tickets"), "formCurTickets");
    $accountid = Customer::getAccountid();
    /*if($type == "delete"){
    		$res = Customer::deleteRecord($id,'account');
    		if ($res){
    			$html = Customer::createRecordsGrid($customerid,$searchFormValue['numRows'], $searchFormValue['limit'],$searchField, $searchContent, $searchField, $divName, "");
    			$objResponse = new xajaxResponse();
    			$objResponse->addAssign("msgZone", "innerHTML", $locate->Translate("delete_rec")); 
    		}else{
    			$objResponse->addAssign("msgZone", "innerHTML", $locate->Translate("rec_cannot_delete")); 
    		}
    	}else{*/
    $html .= astercrm::createTikcetGrid($accountid, 'agent_tickets', $numRows, $limit, $searchField, $searchContent, $searchField[count($searchField) - 1], $divName, "", $searchType);
    //}
    $html .= Table::Footer();
    $objResponse->addAssign($divName, "innerHTML", $html);
    return $objResponse->getXML();
}
开发者ID:ljhcj,项目名称:IRISCC,代码行数:33,代码来源:astercrm.server.common.php

示例2: updateCurTicket

function updateCurTicket($f)
{
    global $locate, $db;
    $objResponse = new xajaxResponse();
    if (trim($f['ticketcategoryid']) == 0 || trim($f['ticketid']) == 0 || trim($f['customerid']) == 0) {
        $objResponse->addAlert($locate->Translate("obligatory_fields"));
        return $objResponse->getXML();
    }
    $validParentTicket = true;
    if ($f['parent_id'] != '') {
        if (!preg_match('/^[\\d]*$/', $f['parent_id'])) {
            $objResponse->addAlert($locate->Translate("Parent TicketDetail ID must be integer"));
            return $objResponse->getXML();
        }
        //验证写入的parent_id 是否存在
        $validParentTicket = Customer::validParentTicketId($f['parent_id']);
    }
    $oriResult = Customer::getOriResult($f['id']);
    $respOk = Customer::updateCurTicket($f);
    $accountid = Customer::getAccountid();
    if ($respOk) {
        if (!$validParentTicket) {
            $objResponse->addAlert($locate->Translate("Update Success,but Parent TicketDetail ID is not exists"));
        }
        $new_assign = '';
        if ($f['assignto'] != 0) {
            $new_assign = Customer::getAssignToName($f['assignto']);
        }
        $ori_assign = '';
        if ($oriResult['assignto'] != 0) {
            $ori_assign = Customer::getAssignToName($oriResult['assignto']);
        }
        // track the ticket_op_logs
        if ($oriResult['status'] != $f['status']) {
            Customer::ticketOpLogs('update', 'status', $oriResult['status'], $f['status'], $new_assign, $f['groupid']);
        }
        if ($oriResult['assignto'] != $f['assignto']) {
            Customer::ticketOpLogs('update', 'assignto', $ori_assign, $new_assign, $new_assign, $f['groupid']);
        }
        $html = Table::Top($locate->Translate("My Tickets"), "formCurTickets");
        $html .= astercrm::createTikcetGrid($accountid, 'agent_tickets', 0, ROWSXPAGE, '', '', '', 'formCurTickets');
        $html .= Table::Footer();
        $objResponse->addAssign("formCurTickets", "innerHTML", $html);
        $objResponse->addAssign("formCurTickets", "style.visibility", "visible");
        $objResponse->addAssign("formCurTickets", "innerHTML", $html);
        $objResponse->addAssign("formTicketDetailDiv", "style.visibility", "hidden");
        $objResponse->addAssign("formTicketDetailDiv", "innerHTML");
    } else {
        $objResponse->addAssign("msgZone", "innerHTML", $locate->Translate("rec_cannot_update"));
    }
    return $objResponse->getXML();
}
开发者ID:ljhcj,项目名称:IRISCC,代码行数:52,代码来源:portal.server.php

示例3: AllTicketOfMy

function AllTicketOfMy($cid = '', $Ctype, $start = 0, $limit = 5, $filter = null, $content = null, $order = null, $divName = "formMyTickets", $ordering = "", $stype = null)
{
    global $locate;
    $objResponse = new xajaxResponse();
    $ticketHtml = Table::Top($locate->Translate("Customer Tickets"), "formMyTickets");
    $ticketHtml .= astercrm::createTikcetGrid($cid, $Ctype, $start, $limit, $filter, $content, $order, $divName, $ordering, $stype);
    $ticketHtml .= Table::Footer();
    $objResponse->addAssign("formMyTickets", "style.visibility", "visible");
    $objResponse->addAssign("formMyTickets", "innerHTML", $ticketHtml);
    return $objResponse->getXML();
}
开发者ID:ljhcj,项目名称:IRISCC,代码行数:11,代码来源:customer.server.php


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