本文整理汇总了PHP中astercrm::getRecNumRowsMorewithstype方法的典型用法代码示例。如果您正苦于以下问题:PHP astercrm::getRecNumRowsMorewithstype方法的具体用法?PHP astercrm::getRecNumRowsMorewithstype怎么用?PHP astercrm::getRecNumRowsMorewithstype使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astercrm
的用法示例。
在下文中一共展示了astercrm::getRecNumRowsMorewithstype方法的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;\'';
//.........这里部分代码省略.........