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


PHP astercrm::getTicketRecordsFilteredMore方法代碼示例

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


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

示例1: createTikcetGrid

 /**
  *  generate grid HTML code
  *  @param	start		int			record start
  *  @param	limit		int			how many records need
  *  @param	filter		string		the field need to search
  *  @param	content		string		the contect want to match
  *  @param	divName		string		which div grid want to be put
  *  @param	order		string		data order
  *  @return	html		string		grid HTML code
  */
 function createTikcetGrid($Cid = 0, $Ctype = "", $start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "", $ordering = "", $stype = array())
 {
     global $locate;
     $_SESSION['ordering'] = $ordering;
     if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
         $numRows =& astercrm::getTicketNumRows($filter, $content, $Ctype, $Cid);
         $arreglo =& astercrm::getAllTicketRecords($start, $limit, $order, $Ctype, $Cid);
         $content = null;
         $filter = null;
     } else {
         foreach ($content as $value) {
             if (trim($value) != "") {
                 //搜索內容有值
                 $flag = "1";
                 break;
             }
         }
         foreach ($filter as $value) {
             if (trim($value) != "") {
                 //搜索條件有值
                 $flag2 = "1";
                 break;
             }
         }
         foreach ($stype as $value) {
             if (trim($value) != "") {
                 //搜索方式有值
                 $flag3 = "1";
                 break;
             }
         }
         if ($flag != "1" || $flag2 != "1") {
             //無值
             $numRows =& astercrm::getTicketNumRows($filter, $content, $Ctype, $Cid);
             $arreglo =& astercrm::getAllTicketRecords($start, $limit, $order, $Ctype, $Cid);
         } elseif ($flag3 != 1) {
             $order = "id";
             $numRows =& astercrm::getTicketNumRowsMore($filter, $content, $Ctype, $Cid);
             $arreglo =& astercrm::getTicketRecordsFilteredMore($start, $limit, $filter, $content, $order, $Ctype, $Cid);
         } else {
             $order = "id";
             $numRows =& astercrm::getTicketNumRowsMorewithstype($filter, $content, $stype, $table, $Ctype, $Cid);
             $arreglo =& astercrm::getTicketRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table, $Ctype, $Cid);
         }
     }
     // Select Box: type table.
     $typeFromSearch = array();
     $typeFromSearch[] = 'like';
     $typeFromSearch[] = 'equal';
     $typeFromSearch[] = 'more';
     $typeFromSearch[] = 'less';
     // Selecct Box: Labels showed on searchtype select box.
     $typeFromSearchShowAs = array();
     $typeFromSearchShowAs[] = $locate->Translate("like");
     $typeFromSearchShowAs[] = '=';
     $typeFromSearchShowAs[] = '>';
     $typeFromSearchShowAs[] = '<';
     // Editable zone
     // Databse Table: fields
     $fields = array();
     if ($Ctype == 'agent_tickets') {
         $fields[] = 'id';
         $fields[] = 'ticketname';
         $fields[] = 'customer';
         $fields[] = 'status';
         $fields[] = 'memo';
         $fields[] = 'creby';
     } else {
         $fields[] = 'id';
         $fields[] = 'ticketcategoryname';
         $fields[] = 'ticketname';
         $fields[] = 'customer';
         $fields[] = 'assignto';
         $fields[] = 'status';
         $fields[] = 'memo';
         $fields[] = 'creby';
     }
     // HTML table: Headers showed
     $headers = array();
     $headers[] = $locate->Translate("Ticket Id");
     if ($Ctype != 'agent_tickets') {
         $headers[] = $locate->Translate("TicketCategory Name");
     }
     $headers[] = $locate->Translate("Ticket Name");
     $headers[] = $locate->Translate("Customer");
     if ($Ctype != 'agent_tickets') {
         $headers[] = $locate->Translate("AssignTo");
     }
     $headers[] = $locate->Translate("Status");
     $headers[] = $locate->Translate("Memo");
//.........這裏部分代碼省略.........
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:101,代碼來源:astercrm.class.php


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