本文整理汇总了PHP中astercrm::countDailedlist方法的典型用法代码示例。如果您正苦于以下问题:PHP astercrm::countDailedlist方法的具体用法?PHP astercrm::countDailedlist怎么用?PHP astercrm::countDailedlist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astercrm
的用法示例。
在下文中一共展示了astercrm::countDailedlist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createGrid
//.........这里部分代码省略.........
$headers[] = $locate->Translate("Result Note");
$headers[] = $locate->Translate("Status");
$headers[] = $locate->Translate("Parent Result");
$headers[] = $locate->Translate("Group Name");
$headers[] = $locate->Translate("Campaign Name");
$headers[] = $locate->Translate("Result");
// HTML table: hearders attributes
$attribsHeader = array();
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
$attribsHeader[] = 'width=""';
// 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"';
// HTML Table: If you want ascendent and descendent ordering, set the Header Events.
$eventHeader = array();
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","resultname","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","resultnote","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","campaignresult.status","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","parentresult","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","groupname","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","campaign.campaignname","' . $divName . '","ORDERING");return false;\'';
$eventHeader[] = '';
// Select Box: fields table.
$fieldsFromSearch = array();
$fieldsFromSearch[] = 'campaignresult.resultname';
$fieldsFromSearch[] = 'campaignresult.resultnote';
$fieldsFromSearch[] = 'campaignresult.status';
$fieldsFromSearch[] = 'presult.resultname';
$fieldsFromSearch[] = 'groupname';
$fieldsFromSearch[] = 'campaignname';
$fieldsFromSearch[] = 'campaignresult.creby';
$fieldsFromSearch[] = 'campaignresult.cretime';
// Selecct Box: Labels showed on search select box.
$fieldsFromSearchShowAs = array();
$fieldsFromSearchShowAs[] = $locate->Translate("Result Name");
$fieldsFromSearchShowAs[] = $locate->Translate("Result Note");
$fieldsFromSearchShowAs[] = $locate->Translate("Status");
$fieldsFromSearchShowAs[] = $locate->Translate("Parent Result");
$fieldsFromSearchShowAs[] = $locate->Translate("Group Name");
$fieldsFromSearchShowAs[] = $locate->Translate("Campaign Name");
$fieldsFromSearchShowAs[] = $locate->Translate("Creby");
$fieldsFromSearchShowAs[] = $locate->Translate("Cretime");
//echo 'dddddddddddddd';
// Create object whit 5 cols and all data arrays set before.
$table = new ScrollTable(6, $start, $limit, $filter, $numRows, $content, $order);
$table->exportFlag = '2';
//对导出标记进行赋值
$table->ordering = $ordering;
$editFlag = 1;
$deleteFlag = 1;
if ($_SESSION['curuser']['usertype'] != 'admin' && $_SESSION['curuser']['usertype'] != 'groupadmin') {
if ($_SESSION['curuser']['privileges']['campaignresult']['delete']) {
$deleteFlag = 1;
} else {
$deleteFlag = 0;
}
if ($_SESSION['curuser']['privileges']['campaignresult']['edit']) {
$editFlag = 1;
} else {
$editFlag = 0;
}
}
$table->setHeader('title', $headers, $attribsHeader, $eventHeader, $editFlag, $deleteFlag, 0);
$table->setAttribsCols($attribsCols);
$table->addRowSearchMore("campaignresult", $fieldsFromSearch, $fieldsFromSearchShowAs, $filter, $content, $start, $limit, 1, 0, $typeFromSearch, $typeFromSearchShowAs, $stype);
while ($arreglo->fetchInto($row)) {
// Change here by the name of fields of its database table
$rowc = array();
$rowc[] = $row['id'];
$rowc[] = "<a href=? onclick=\"showReport('" . $row['id'] . "');return false;\">" . $row['resultname'] . "</a>";
// $rowc[] = $row['resultname'];
$rowc[] = $row['resultnote'];
$rowc[] = $locate->Translate($row['status']);
if ($row['parentid'] != 0) {
$rowc[] = $row['parentresult'];
} else {
$rowc[] = $locate->Translate("First Level");
}
$rowc[] = $row['groupname'];
$rowc[] = $row['campaignname'];
$rowc[] = astercrm::countDailedlist($row['resultname'], $row['campaignid'], $row['groupid']);
// $rowc[] = $row['creby'];
// $rowc[] = $row['cretime'];
$table->addRow("campaignresult", $rowc, $editFlag, $deleteFlag, 0, $divName, $fields);
}
// End Editable Zone
$html = $table->render();
return $html;
}