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


PHP astercrm::getRecRecordsFilteredMore方法代碼示例

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


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

示例1: createRecordsGrid

 function createRecordsGrid($customerid = '', $start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "formRecords", $ordering = "", $stype = null)
 {
     global $locate;
     $_SESSION['ordering'] = $ordering;
     if ($filter == null || $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
         $content = null;
         $filter = null;
         $numRows =& astercrm::getRecNumRows($customerid);
         $arreglo =& astercrm::getAllRecRecords($customerid, $start, $limit, $order);
     } 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") {
             //無值
             $order = null;
             $numRows =& astercrm::getRecNumRows($customerid);
             $arreglo =& astercrm::getAllRecRecords($customerid, $start, $limit, $order);
         } elseif ($flag3 != 1) {
             //未選擇搜索方式
             $order = "mycdr.id";
             $numRows =& astercrm::getRecNumRowsMore($customerid, $filter, $content);
             $arreglo =& astercrm::getRecRecordsFilteredMore($customerid, $start, $limit, $filter, $content, $order);
         } else {
             $order = "mycdr.id";
             $numRows =& astercrm::getRecNumRowsMorewithstype($customerid, $filter, $content, $stype);
             $arreglo =& astercrm::getRecRecordsFilteredMorewithstype($customerid, $start, $limit, $filter, $content, $stype, $order);
         }
     }
     // Databse Table: fields
     $fields = array();
     $fields[] = 'calldate';
     $fields[] = 'src';
     $fields[] = 'dst';
     $fields[] = 'didnumber';
     $fields[] = 'dstchannel';
     $fields[] = 'duration';
     $fields[] = 'billsec';
     $fields[] = 'filename';
     $fields[] = 'creby';
     // HTML table: Headers showed
     $headers = array();
     $headers[] = $locate->Translate("Calldate");
     $headers[] = $locate->Translate("Src");
     $headers[] = $locate->Translate("Dst");
     $headers[] = $locate->Translate("Callee Id");
     $headers[] = $locate->Translate("Agent");
     $headers[] = $locate->Translate("Duration");
     $headers[] = $locate->Translate("Billsec");
     $headers[] = $locate->Translate("filename");
     $headers[] = $locate->Translate("creby");
     // HTML table: hearders attributes
     $attribsHeader = array();
     $attribsHeader[] = 'width="11%"';
     $attribsHeader[] = 'width="11%"';
     $attribsHeader[] = 'width="11%"';
     $attribsHeader[] = 'width="12%"';
     $attribsHeader[] = 'width="11%"';
     $attribsHeader[] = 'width="10%"';
     $attribsHeader[] = 'width="10%"';
     $attribsHeader[] = 'width="12%"';
     $attribsHeader[] = 'width="10%"';
     // HTML Table: columns attributes
     $attribsCols = array();
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     $attribsCols[] = 'style="text-align: left"';
     // HTML Table: If you want ascendent and descendent ordering, set the Header Events.
     $eventHeader = array();
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.calldate","' . $divName . '","ORDERING","' . $stype . '");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.src","' . $divName . '","ORDERING","' . $stype . '");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.dst","' . $divName . '","ORDERING","' . $stype . '");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.didnumber","' . $divName . '","ORDERING","' . $stype . '");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.dstchannel","' . $divName . '","ORDERING");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.duration","' . $divName . '","ORDERING");return false;\'';
     $eventHeader[] = 'onClick=\'xajax_showRecords(' . $customerid . ',0,' . $limit . ',"' . $filter . '","' . $content . '","mycdr.billsec","' . $divName . '","ORDERING","' . $stype . '");return false;\'';
//.........這裏部分代碼省略.........
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:101,代碼來源:astercrm.class.php


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