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


PHP astercrm::countDailedlist方法代碼示例

本文整理匯總了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;
}
開發者ID:ljhcj,項目名稱:IRISCC,代碼行數:101,代碼來源:campaignresult.server.php


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