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